访客修改

This commit is contained in:
FLL
2025-08-06 14:09:26 +08:00
parent 34b6f8e738
commit 65e371d16e
5 changed files with 46 additions and 152 deletions

View File

@@ -61,7 +61,7 @@ const [BasicModal, modalApi] = useVbenModal({
return null;
}
modalApi.modalLoading(true);
await queryPersonData()
await queryWorkOrdersType()
const {id} = modalApi.getData() as { id?: number | string };
isUpdate.value = !!id;
@@ -106,34 +106,30 @@ async function handleClosed() {
resetInitialized();
}
async function queryPersonData() {
async function queryWorkOrdersType() {
let params = {
pageSize: 1000,
pageNum: 1,
pageNum: 1
}
const res = await personList(params);
const options = res.rows.map((user) => ({
label: user.userName + '-' + renderDictValue(user.gender, 'sys_user_sex') + '-' + user.phone,
value: user.id,
const res = await tree(params)
const options = res.rows.map((item) => ({
label: item.orderTypeName,
value: item.id,
}));
formApi.updateSchema([{
componentProps: () => ({
options: options,
filterOption: filterOption,
showSearch:true,
filterOption: filterOption
}),
fieldName: 'initiatorName',
},
{
componentProps: () => ({
options: options,
showSearch:true,
filterOption: filterOption
}),
fieldName: 'handler',
}])
fieldName: 'type',
}])
}
const filterOption = (input: string, option: any) => {
return option.label.toLowerCase().indexOf(input.toLowerCase()) >= 0;
};
</script>
<template>