|
|
|
@ -234,11 +234,13 @@ export default {
|
|
|
|
|
add(stringify(data)).then(res => {
|
|
|
|
|
this.$message.success(res.msg)
|
|
|
|
|
this.dialogVisible = false
|
|
|
|
|
this.getList()
|
|
|
|
|
})
|
|
|
|
|
} else {
|
|
|
|
|
update(stringify(data)).then(res => {
|
|
|
|
|
this.$message.success(res.msg)
|
|
|
|
|
this.dialogVisible = false
|
|
|
|
|
this.getList()
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
@ -246,7 +248,7 @@ export default {
|
|
|
|
|
this.userFormData = {}
|
|
|
|
|
},
|
|
|
|
|
handleUserFormCancel() {
|
|
|
|
|
this.dialogVisible = true
|
|
|
|
|
this.dialogVisible = false
|
|
|
|
|
this.userFormData = {}
|
|
|
|
|
},
|
|
|
|
|
handleAddUser() {
|
|
|
|
@ -276,7 +278,7 @@ export default {
|
|
|
|
|
cancelButtonText: '取消',
|
|
|
|
|
type: 'warning'
|
|
|
|
|
}).then(() =>
|
|
|
|
|
del(stringify({ 'user_id': this.multipleSelection[0].user })).then(
|
|
|
|
|
del(stringify({ 'user_id': this.multipleSelection[0].user_id })).then(
|
|
|
|
|
res => {
|
|
|
|
|
this.$message.success({
|
|
|
|
|
type: 'success',
|
|
|
|
|