Commit ad0ab7a0 authored by qzhxx's avatar qzhxx

视频管理

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