|
|
|
|
@ -12,6 +12,12 @@
|
|
|
|
|
@input="e => $emit('update:isShow',e)"
|
|
|
|
|
>
|
|
|
|
|
<template>
|
|
|
|
|
<vxe-toolbar>
|
|
|
|
|
<template #buttons>
|
|
|
|
|
<el-input v-model="select.keyword" style="max-width: 200px;margin-right: 10px;" size="small" placeholder="请输入关键词" />
|
|
|
|
|
<el-button icon="el-icon-search" type="primary" plain size="small" @click="select.page = 1,getUsers()">搜索</el-button>
|
|
|
|
|
</template>
|
|
|
|
|
</vxe-toolbar>
|
|
|
|
|
<vxe-table
|
|
|
|
|
ref="table"
|
|
|
|
|
stripe
|
|
|
|
|
@ -78,6 +84,7 @@ export default {
|
|
|
|
|
return {
|
|
|
|
|
zIndex: PopupManager.nextZIndex(),
|
|
|
|
|
loading: false,
|
|
|
|
|
tableLoading: false,
|
|
|
|
|
|
|
|
|
|
select: {
|
|
|
|
|
page: 1,
|
|
|
|
|
@ -135,9 +142,15 @@ export default {
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
async getUsers() {
|
|
|
|
|
const res = await index(this.select)
|
|
|
|
|
this.tableData = res.data
|
|
|
|
|
this.total = res.total
|
|
|
|
|
this.tableLoading = true
|
|
|
|
|
try {
|
|
|
|
|
const res = await index(this.select)
|
|
|
|
|
this.tableData = res.data
|
|
|
|
|
this.total = res.total
|
|
|
|
|
this.tableLoading = false
|
|
|
|
|
} catch (err) {
|
|
|
|
|
this.tableLoading = false
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
async getRoleUsers() {
|
|
|
|
|
@ -161,7 +174,7 @@ export default {
|
|
|
|
|
batchRoles({
|
|
|
|
|
...this.form,
|
|
|
|
|
module_id: this.moduleId,
|
|
|
|
|
user_ids: selectRecords.map(row => row.id)
|
|
|
|
|
user_ids: Array.from(new Set([...selectRecords.map(row => row.id), this.form.user_ids]))
|
|
|
|
|
})
|
|
|
|
|
// 接口中角色信息有延迟
|
|
|
|
|
setTimeout(() => {
|
|
|
|
|
|