|
@@ -39,7 +39,7 @@
|
|
import UseSelectModal from './UseSelectModal.vue';
|
|
import UseSelectModal from './UseSelectModal.vue';
|
|
import { userList, deleteUserRole, batchDeleteUserRole, addUserRole } from '../role.api';
|
|
import { userList, deleteUserRole, batchDeleteUserRole, addUserRole } from '../role.api';
|
|
import { userColumns, searchUserFormSchema } from '../role.data';
|
|
import { userColumns, searchUserFormSchema } from '../role.data';
|
|
- import { getUserRoles } from '../../user/user.api';
|
|
|
|
|
|
+ import { getUserRoles,userComplexConditionTwo } from '../../user/user.api';
|
|
|
|
|
|
const emit = defineEmits(['register', 'hideUserList']);
|
|
const emit = defineEmits(['register', 'hideUserList']);
|
|
const props = defineProps({
|
|
const props = defineProps({
|
|
@@ -48,8 +48,10 @@
|
|
|
|
|
|
const checkedKeys = ref<Array<string | number>>([]);
|
|
const checkedKeys = ref<Array<string | number>>([]);
|
|
const roleId = ref('');
|
|
const roleId = ref('');
|
|
|
|
+ const appId = ref('');
|
|
const [registerBaseDrawer, { setDrawerProps, closeDrawer }] = useDrawerInner(async (data) => {
|
|
const [registerBaseDrawer, { setDrawerProps, closeDrawer }] = useDrawerInner(async (data) => {
|
|
roleId.value = data.id;
|
|
roleId.value = data.id;
|
|
|
|
+ appId.value = data.appId;
|
|
setProps({ searchInfo: { roleId: data.id } });
|
|
setProps({ searchInfo: { roleId: data.id } });
|
|
reload();
|
|
reload();
|
|
});
|
|
});
|
|
@@ -59,7 +61,7 @@
|
|
const [registerModal, { openModal }] = useModal();
|
|
const [registerModal, { openModal }] = useModal();
|
|
const [registerTable, { reload, updateTableDataRecord, setProps,getDataSource }] = useTable({
|
|
const [registerTable, { reload, updateTableDataRecord, setProps,getDataSource }] = useTable({
|
|
title: '用户列表',
|
|
title: '用户列表',
|
|
- api: userList,
|
|
|
|
|
|
+ api: userComplexConditionTwo,
|
|
columns: userColumns,
|
|
columns: userColumns,
|
|
formConfig: {
|
|
formConfig: {
|
|
//update-begin---author:wangshuai ---date:20230703 for:【QQYUN-5685】3、租户角色下,查询居左显示
|
|
//update-begin---author:wangshuai ---date:20230703 for:【QQYUN-5685】3、租户角色下,查询居左显示
|
|
@@ -67,8 +69,24 @@
|
|
//update-end---author:wangshuai ---date:20230703 for:【QQYUN-5685】3、租户角色下,查询居左显示
|
|
//update-end---author:wangshuai ---date:20230703 for:【QQYUN-5685】3、租户角色下,查询居左显示
|
|
schemas: searchUserFormSchema,
|
|
schemas: searchUserFormSchema,
|
|
autoSubmitOnEnter: true,
|
|
autoSubmitOnEnter: true,
|
|
- showAdvancedButton: false,
|
|
|
|
- showSubmitButton:false
|
|
|
|
|
|
+ baseColProps: {
|
|
|
|
+ xs: 24,
|
|
|
|
+ sm: 10,
|
|
|
|
+ md: 10,
|
|
|
|
+ lg: 10,
|
|
|
|
+ xl: 10,
|
|
|
|
+ xxl: 10,
|
|
|
|
+ },
|
|
|
|
+ actionColOptions: {
|
|
|
|
+ push: 3,
|
|
|
|
+ xs: 24,
|
|
|
|
+ sm: 8,
|
|
|
|
+ md: 8,
|
|
|
|
+ lg: 8,
|
|
|
|
+ xl: 8,
|
|
|
|
+ xxl: 8,
|
|
|
|
+ },
|
|
|
|
+
|
|
},
|
|
},
|
|
striped: true,
|
|
striped: true,
|
|
useSearchForm: true,
|
|
useSearchForm: true,
|
|
@@ -162,7 +180,7 @@
|
|
function handleSelect() {
|
|
function handleSelect() {
|
|
const list = getDataSource();
|
|
const list = getDataSource();
|
|
console.log('list', list);
|
|
console.log('list', list);
|
|
- openModal(true,{list:list});
|
|
|
|
|
|
+ openModal(true,{list:list,appId:ref(appId)});
|
|
}
|
|
}
|
|
/**
|
|
/**
|
|
* 添加已有用户
|
|
* 添加已有用户
|