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