内容发布新增审核功能

This commit is contained in:
yanran200730
2022-03-18 14:30:56 +08:00
parent af65ba44ab
commit e67e0fbb82
6 changed files with 43 additions and 15 deletions

View File

@@ -135,7 +135,8 @@
}
],
isHideCoverimg: false,
cateList: []
cateList: [],
needExamine: '0'
}
},
@@ -162,7 +163,6 @@
this.form.pictureUrl = res.data.pictureUrl ? [{
url: res.data.pictureUrl
}] : []
}
})
},
@@ -171,6 +171,7 @@
this.instance.post(`/app/appcontentmoduleinfo/queryDetailById?id=${this.$route.query.moduleId}`).then(res => {
if (res.code === 0) {
this.isHideCoverimg = res.data.styleType === '0'
this.needExamine = res.data.needExamine
}
})
},
@@ -254,7 +255,11 @@
pictureUrl: this.form.pictureUrl.length ? this.form.pictureUrl[0].url : ''
}).then(res => {
if (res.code == 0) {
this.$message.success('提交成功')
if (this.needExamine === '1') {
this.$message.success('提交成功,等待管理员审核')
} else {
this.$message.success('提交成功')
}
setTimeout(() => {
this.cancel(true)
}, 600)