Commit aa5ca355 by 匡雅琴

禁用启用

1 parent e6bd9f8e
...@@ -369,14 +369,18 @@ export default { ...@@ -369,14 +369,18 @@ export default {
} }
}) })
}, },
// 素材禁用 // 素材禁用&启用
handleForbid(scope) { handleForbid(scope) {
console.log(scope) console.log(scope)
var params = {} var params = {}
params.id = scope.id params.id = scope.id
params.status = -1 if (params.status == 0) {
console.log(params) params.status = -1
this.secondConfirm('提示', '禁用素材,所有已经发送给客户的素材链接均会失效,是否继续禁用?', 'material', 'materialEdit', params ) this.secondConfirm('提示', '禁用素材,所有已经发送给客户的素材链接均会失效,是否继续禁用?', 'material', 'materialEdit', params )
} else {
params.status = 0
this.secondConfirm('提示', '启用素材,确定启用此素材?', 'material', 'materialEdit', params )
}
}, },
// 素材删除 // 素材删除
handleDelete(scope) { handleDelete(scope) {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!