Commit 5d743c1d by Elune

代码优化

parent 6ba45c1a
......@@ -135,8 +135,8 @@ export default {
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
this.crudMethod.edit(data).then(res => {
this.notify(this.dict.label.dept_status[val] + '成功', 'success')
crudDept.edit(data).then(res => {
this.crud.notify(this.dict.label.dept_status[val] + '成功', CRUD.NOTIFICATION_TYPE.SUCCESS)
}).catch(err => {
data.enabled = !data.enabled
console.log(err.response.data.message)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment