Commit ad0ab7a0 authored by qzhxx's avatar qzhxx

视频管理

parent 78a5d931
......@@ -26,7 +26,8 @@ export default {
},
computed: {
headers() {
// return { 'token': this.backToken }
// return { 'authType': this.backToken }
return {'Authorization':localStorage.getItem('backToken')}
}
},
methods: {
......
......@@ -27,6 +27,7 @@ export default {
computed: {
headers() {
// return { 'token': this.backToken }
return {'Authorization':localStorage.getItem('backToken')}
}
},
methods: {
......
......@@ -120,7 +120,6 @@
<el-button size="mini" @click="close1">取 消</el-button>
</div>
</el-dialog>
<!--编辑-->
<el-dialog custom-class="party-dialog" title="编辑" width="468px" :visible.sync="FormVisible" :before-close="close" >
<div class="dialog-content">
<el-form :model="editform" disabled class="party-form" ref="editform" label-width="80px" label-position="right" :rules="rules">
......
......@@ -358,7 +358,7 @@ export default {
} else {
_this.$message({
type: "error",
message: res.data.msg
message: res.data.meessage
});
}
},
......@@ -404,7 +404,7 @@ export default {
} else {
_this.$message({
type: "error",
message: res.data.msg
message: res.data.message
});
}
},
......@@ -493,11 +493,17 @@ export default {
.then(
res => {
// this.$message({ type: "success", message: "删除成功!" });
this.msgInfo = {
type: "wait",
des: `申请已提交,待审核…`,
};
// this.msgInfo = {
// type: "wait",
// des: `申请已提交,待审核…`,
// };
if(res.data.resultCode === "200"){
this.$message({ type: "success", message: "删除视频分类申请已提交,待审核!" });
_this.Search();
}else{
this.$message({ type: "error", message: res.data.message });
}
},
error => {
this.$message({
......
......@@ -64,7 +64,7 @@
<span>若没有相应的视频分类,请点击</span>
<el-button type="text" @click="addVideoClass">新建视频分类</el-button>
</el-form-item>
<el-form-item label="请选择视频分类" prop="videoContentCatIdList">
<el-form-item label="请选择视频分类" >
<el-select
placeholder="请选择预设视频分类"
@focus="getVideoContentCatData"
......@@ -287,9 +287,6 @@ export default {
{
url: "videoContentCat/save",
method: "post",
// headers: {
// 'Content-Type': 'application/json'
// },
authType: this.backToken
},
this.classForm
......@@ -328,8 +325,13 @@ export default {
},
this.$qs.stringify(this.ruleForm)
).then(res => {
this.$message({ type: "success", message: "新增成功!" });
if(res.data.resultCode === "200"){
this.$message({ type: "success", message: "新增视频申请已提交,待审核!" });
history.go(-1);
}else{
this.$message({ type: "error", message: res.data.message });
}
}).catch(function(err) {
console.log(err);
});
......
......@@ -207,7 +207,7 @@ export default {
method: "post",
authType: this.backToken
},
this.$qs.stringify(this.ruleForm)
this.$qs.stringify(this.classForm)
// this.classForm
)
.then(res => {
......@@ -257,11 +257,11 @@ export default {
this.$qs.stringify(this.ruleForm)
)
.then(res => {
if(res.resultCode === "200"){
this.$message({ type: "success", message: "新增成功!" });
if(res.data.resultCode === "200"){
this.$message({ type: "success", message: "新增视频版权方申请已提交,待审核!" });
history.go(-1);
}else{
this.$message({ type: "error", message: res.message });
this.$message({ type: "error", message: res.data.message });
}
......@@ -293,8 +293,12 @@ export default {
// this.ruleForm
)
.then(res => {
this.$message({ type: "success", message: "修改成功!" });
if(res.data.resultCode === "200"){
this.$message({ type: "success", message: "修改视频版权方申请已提交,待审核!" });
history.go(-1);
}else{
this.$message({ type: "error", message: res.data.message });
}
})
.catch(function(err) {
console.log(err);
......
......@@ -214,6 +214,7 @@ export default {
Reset() {
// this.$refs["form"].resetFields();
this.form = { ownerType: "VIDEO_CONTENT" };
this.value1 = []
this.Search();
},
Search() {
......@@ -336,12 +337,18 @@ export default {
})
.then(
res => {
// this.$message({ type: "success", message: "删除成功!" });
this.msgInfo = {
type: "wait",
des: `删除申请已提交,待审核…`,
};
if(res.data.resultCode === "200"){
this.$message({ type: "success", message: "删除视频版权方申请已提交,待审核!" });
_this.Search();
}else{
this.$message({ type: "error", message: res.data.message });
}
// this.$message({ type: "success", message: "删除成功!" });
// this.msgInfo = {
// type: "wait",
// des: `删除申请已提交,待审核…`,
// };
},
error => {
this.$message({
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment