style: 格式化 UserSelectModal 文件

pull/960/head
ykcory 2023-12-28 05:56:35 +08:00
parent 32d2a19fb9
commit f2f162daec
1 changed files with 11 additions and 11 deletions

View File

@ -40,7 +40,7 @@
>
<!--操作栏-->
<template #action="{ record }">
<a href="javascript:void(0)" @click="handleDeleteSelected(record)"><Icon icon="ant-design:delete-outlined"></Icon></a>
<a href="javascript:void(0)" @click="handleDeleteSelected(record)"><Icon icon="ant-design:delete-outlined" /></a>
</template>
</BasicTable>
</a-col>
@ -77,12 +77,12 @@
//id
excludeUserIdList: {
type: Array,
default: [],
default: () => [],
},
//update-end---author:wangshuai ---date:20230703 forQQYUN-56855------------
},
emits: ['register', 'getSelectResult'],
setup(props, { emit, refs }) {
setup(props, { emit }) {
// update-begin-author:taoyan date:2022-5-24 for: VUEN-1086
const tableScroll = ref<any>({ x: false });
const tableRef = ref();
@ -118,7 +118,7 @@
// update-begin--author:liaozhiyang---date:20230811---forissues/657
watch(rowSelection.selectedRowKeys, (newVal) => {
//update-begin---author:wangshuai ---date: 20230829 fornull------------
if(tableRef.value){
if (tableRef.value) {
tableRef.value.setSelectedRowKeys(newVal);
}
//update-end---author:wangshuai ---date: 20230829 fornull------------
@ -226,22 +226,22 @@
closeModal();
});
}
//update-begin---author:wangshuai ---date:20230703 forQQYUN-56855------------
/**
* 用户返回结果逻辑查询
*/
function afterFetch(record) {
let excludeList = props.excludeUserIdList;
if(!excludeList){
if (!excludeList) {
return record;
}
let arr:any[] = [];
let arr: any[] = [];
//id
if(excludeList.length>0 && record && record.length>0){
for(let item of record){
if(excludeList.indexOf(item.id)<0){
arr.push({...item})
if (excludeList.length > 0 && record && record.length > 0) {
for (let item of record) {
if (excludeList.indexOf(item.id) < 0) {
arr.push({ ...item });
}
}
return arr;