代码优化

This commit is contained in:
Elune
2019-12-14 15:30:18 +08:00
parent 6ba45c1a0c
commit 5d743c1d9b

View File

@@ -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)