|
@@ -538,12 +538,18 @@ export default {
|
|
|
// 上下架
|
|
|
handleChange(item, status) {
|
|
|
let tips = status === 0 ? '上架' : '下架'
|
|
|
- upOrDown(item.id, status).then(res => {
|
|
|
- if (res.code === 0) {
|
|
|
- this.$message.success(`${tips}成功!`)
|
|
|
- this.getContentDetail(item.moduleId)
|
|
|
- }
|
|
|
- })
|
|
|
+ this.$confirm(`是否要${tips}?`, '提醒', {
|
|
|
+ confirmButtonText: '确定',
|
|
|
+ cancelButtonText: '取消',
|
|
|
+ type: 'warning'
|
|
|
+ }).then(() => {
|
|
|
+ upOrDown(item.id, status).then(res => {
|
|
|
+ if (res.code === 0) {
|
|
|
+ this.$message.success(`${tips}成功!`)
|
|
|
+ this.getContentDetail(item.moduleId)
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }).catch(() => { })
|
|
|
},
|
|
|
|
|
|
// 字典翻译
|