【增加】增加字典

This commit is contained in:
zhoulingpo
2023-05-05 11:36:53 +08:00
parent 879f2c3709
commit b987dc4e96
+3 -12
View File
@@ -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()
})
// })
})
},