|
@@ -499,7 +499,7 @@
|
|
|
</div>
|
|
|
|
|
|
<div class="scriptbottom-btn">
|
|
|
- <a-button type='primary' @click="scriptApproved" v-if="currentMaterial.materialStatus==2" style="margin-right:20px" >通过审核</a-button>
|
|
|
+ <a-button type='primary' @click="scriptApproved" v-if="currentMaterial.materialStatus==2" :loading='acceptLoading' style="margin-right:20px" >通过审核</a-button>
|
|
|
|
|
|
<a-button type='default' v-if="currentMaterial.materialStatus==2" @click="()=>{scriptRejectVisiable=true}" style="margin-right:20px">驳回</a-button>
|
|
|
|
|
@@ -809,21 +809,34 @@ export default {
|
|
|
|
|
|
// 脚本通过审核
|
|
|
scriptApproved(){
|
|
|
- postAction(this.url.scriptAccept,{
|
|
|
- id:this.currentMaterial.materialId,
|
|
|
- orderCode:this.currentMaterial.orderCode,
|
|
|
- materialCode:this.currentMaterial.materialCode
|
|
|
+ this.acceptLoading=true;
|
|
|
+ getAction('/platform/material/verifyScript',{
|
|
|
+ materialCode:this.currentMaterial.materialCode,
|
|
|
+ scriptId:this.currentMaterial.scriptId,
|
|
|
}).then(res=>{
|
|
|
- console.log(res);
|
|
|
-
|
|
|
- this.scriptVisible=false;
|
|
|
if(res.success){
|
|
|
- this.$message.success(res.message);
|
|
|
- this.tableHttp(this.$parent.materialStatus)
|
|
|
+ postAction(this.url.scriptAccept,{
|
|
|
+ id:this.currentMaterial.materialId,
|
|
|
+ orderCode:this.currentMaterial.orderCode,
|
|
|
+ materialCode:this.currentMaterial.materialCode
|
|
|
+ }).then(res=>{
|
|
|
+ console.log(res);
|
|
|
+ this.acceptLoading=false;
|
|
|
+ this.scriptVisible=false;
|
|
|
+ if(res.success){
|
|
|
+
|
|
|
+ this.$message.success(res.message);
|
|
|
+ this.tableHttp(this.$parent.materialStatus)
|
|
|
+ }else{
|
|
|
+ this.$message.error(res.message)
|
|
|
+ }
|
|
|
+ })
|
|
|
}else{
|
|
|
+ this.acceptLoading=false;
|
|
|
this.$message.error(res.message)
|
|
|
}
|
|
|
})
|
|
|
+
|
|
|
},
|
|
|
// 脚本驳回
|
|
|
scriptReject(){
|
|
@@ -855,22 +868,30 @@ export default {
|
|
|
// 视频通过审核
|
|
|
approved(){
|
|
|
this.acceptLoading=true;
|
|
|
- postAction(this.url.videoAccept,{
|
|
|
- id:this.currentMaterial.materialId,
|
|
|
- orderCode:this.currentMaterial.orderCode,
|
|
|
- materialCode:this.currentMaterial.materialCode,
|
|
|
- videoId:this.currentVideo.videoId
|
|
|
- }).then(res=>{
|
|
|
- console.log(res);
|
|
|
- this.acceptLoading=false;
|
|
|
- this.visible=false;
|
|
|
+ getAction('',{}).then(res=>{
|
|
|
if(res.success){
|
|
|
- this.$message.success(res.message);
|
|
|
- this.tableHttp(this.$parent.materialStatus)
|
|
|
+ postAction(this.url.videoAccept,{
|
|
|
+ id:this.currentMaterial.materialId,
|
|
|
+ orderCode:this.currentMaterial.orderCode,
|
|
|
+ materialCode:this.currentMaterial.materialCode,
|
|
|
+ videoId:this.currentVideo.videoId
|
|
|
+ }).then(res=>{
|
|
|
+ console.log(res);
|
|
|
+ this.acceptLoading=false;
|
|
|
+ this.visible=false;
|
|
|
+ if(res.success){
|
|
|
+ this.$message.success(res.message);
|
|
|
+ this.tableHttp(this.$parent.materialStatus)
|
|
|
+ }else{
|
|
|
+ this.$message.error(res.message)
|
|
|
+ }
|
|
|
+ })
|
|
|
}else{
|
|
|
this.$message.error(res.message)
|
|
|
+ this.acceptLoading=false
|
|
|
}
|
|
|
})
|
|
|
+
|
|
|
},
|
|
|
// 视频驳回
|
|
|
reject(){
|