代码优化
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user