|
|
|
@ -304,7 +304,7 @@ export default {
|
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
props:['pageType', 'id', 'audit', 'isModdle'],
|
|
|
|
|
props:['pageType', 'id', 'audit', 'isModdle', 'name', 'queryData'],
|
|
|
|
|
mounted(){
|
|
|
|
|
if(this.isModdle) {
|
|
|
|
|
if(this.pageType == 'look') {
|
|
|
|
@ -390,14 +390,16 @@ export default {
|
|
|
|
|
// console.log(res,"res");
|
|
|
|
|
this.loading = false;
|
|
|
|
|
this.$modal.msgSuccess("提交成功,待管理员审核通过后完成修改");
|
|
|
|
|
this.$router.go(-1);
|
|
|
|
|
// this.$router.go(-1);
|
|
|
|
|
this.$router.push({name:this.name,params: this.queryData})
|
|
|
|
|
})
|
|
|
|
|
} else {
|
|
|
|
|
assetEmail('post',this.ruleForm).then(res=>{
|
|
|
|
|
// console.log(res,"res");
|
|
|
|
|
this.loading = false;
|
|
|
|
|
this.$modal.msgSuccess("新增成功");
|
|
|
|
|
this.$router.go(-1);
|
|
|
|
|
// this.$router.go(-1);
|
|
|
|
|
this.$router.push({name:this.name,params: this.queryData})
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
@ -429,7 +431,8 @@ export default {
|
|
|
|
|
EmailAudit(tijioaobj).then(res=>{
|
|
|
|
|
if(res.code == 200){
|
|
|
|
|
this.$modal.msgSuccess("审核驳回");
|
|
|
|
|
this.$router.go(-1);
|
|
|
|
|
// this.$router.go(-1);
|
|
|
|
|
this.$router.push({name:this.name,params: this.queryData})
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
} else {
|
|
|
|
@ -443,7 +446,8 @@ export default {
|
|
|
|
|
this.loading = true;
|
|
|
|
|
EmailAudit({currentId:Number(this.id),auditState:"2"}).then(res=>{
|
|
|
|
|
this.$modal.msgSuccess("审核通过");
|
|
|
|
|
this.$router.go(-1);
|
|
|
|
|
// this.$router.go(-1);
|
|
|
|
|
this.$router.push({name:this.name,params: this.queryData})
|
|
|
|
|
this.loading = false;
|
|
|
|
|
}).catch(err=>{
|
|
|
|
|
this.loading = false;
|
|
|
|
|