【增加】增加字典
This commit is contained in:
@@ -123,16 +123,7 @@ export default {
|
||||
},
|
||||
// 获取所有字典
|
||||
sysUserList () {
|
||||
this.$api.user.sysUserList(this.q).then(({ data }) => {
|
||||
this.tableData = data.records
|
||||
this.total = data.total
|
||||
this.q.pageNo = data.current
|
||||
this.q.pageSize = data.size
|
||||
if (!data.records.length && this.q.pageNo !== 1) {
|
||||
this.q.pageNo = 1
|
||||
this.sysUserList()
|
||||
}
|
||||
})
|
||||
|
||||
},
|
||||
// 重置
|
||||
reset () {
|
||||
@@ -248,10 +239,10 @@ export default {
|
||||
cancelButtonText: '取消',
|
||||
type: 'warning'
|
||||
}).then(() => {
|
||||
this.$api.user.sysUserDelete({ ids }).then(_ => {
|
||||
// this.$api.user.sysUserDelete({ ids }).then(_ => {
|
||||
this.$message.success('操作成功')
|
||||
this.sysUserList()
|
||||
})
|
||||
// })
|
||||
})
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user