【增加】增加字典接口 增加权限的组件

This commit is contained in:
zhoulingpo
2023-05-05 18:04:30 +08:00
parent 2b32ef9201
commit 2da2f29c11
3 changed files with 11 additions and 9 deletions
+3 -3
View File
@@ -174,7 +174,7 @@ export default {
// },
// 删除
deleteRow (row) {
this.deleteUser(row.id)
this.deleteUser([row.id])
},
// 新增用户
sysUserAddUser () {
@@ -224,7 +224,7 @@ export default {
if (!users.length) {
return this.$message.warning('请选择数据后在进行操作')
}
const ids = users.map(item => item.id).join(',')
const ids = users.map(item => item.id)
this.deleteUser(ids)
},
// 删除用户
@@ -234,7 +234,7 @@ export default {
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
this.$api.dictionary.delDic(ids ).then(_ => {
this.$api.dictionary.delDic({ids:ids} ).then(_ => {
this.$message.success('操作成功')
this.sysUserList()
})