Commit 5d743c1d by Elune

代码优化

parent 6ba45c1a
...@@ -135,8 +135,8 @@ export default { ...@@ -135,8 +135,8 @@ export default {
cancelButtonText: '取消', cancelButtonText: '取消',
type: 'warning' type: 'warning'
}).then(() => { }).then(() => {
this.crudMethod.edit(data).then(res => { crudDept.edit(data).then(res => {
this.notify(this.dict.label.dept_status[val] + '成功', 'success') this.crud.notify(this.dict.label.dept_status[val] + '成功', CRUD.NOTIFICATION_TYPE.SUCCESS)
}).catch(err => { }).catch(err => {
data.enabled = !data.enabled data.enabled = !data.enabled
console.log(err.response.data.message) 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