【增加】增加字典
This commit is contained in:
@@ -123,16 +123,7 @@ export default {
|
|||||||
},
|
},
|
||||||
// 获取所有字典
|
// 获取所有字典
|
||||||
sysUserList () {
|
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 () {
|
reset () {
|
||||||
@@ -248,10 +239,10 @@ export default {
|
|||||||
cancelButtonText: '取消',
|
cancelButtonText: '取消',
|
||||||
type: 'warning'
|
type: 'warning'
|
||||||
}).then(() => {
|
}).then(() => {
|
||||||
this.$api.user.sysUserDelete({ ids }).then(_ => {
|
// this.$api.user.sysUserDelete({ ids }).then(_ => {
|
||||||
this.$message.success('操作成功')
|
this.$message.success('操作成功')
|
||||||
this.sysUserList()
|
this.sysUserList()
|
||||||
})
|
// })
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user