转发功能增加

main
刘妍 2026-02-08 13:53:02 +08:00
parent 5987613e58
commit 870eaa7597
5 changed files with 14 additions and 11 deletions

View File

@ -13,6 +13,7 @@ enum Api {
QueryMyAllItems = '/api/Workflow/QueryMyAllItems',
Detail = '/api/Workflow/Detail',
GetUserInfoWithDept = '/api/Workflow/GetUserInfoWithDept',
ListSupervisionOrg = '/api/Workflow/ListSupervisionOrg',
}
export function initiateFlow(params) {
@ -86,3 +87,9 @@ export function getUserInfoWithDept(params) {
params,
});
}
export function listSupervisionOrg(params) {
return defHttp.get<responsesmodel>({
url: Api.ListSupervisionOrg,
params,
});
}

View File

@ -185,6 +185,7 @@
});
};
function handleSuccess() {
closeModal();
emit('success');
}
</script>

View File

@ -8,7 +8,7 @@
width="60%"
>
<template #insertFooter>
<a-button type="primary" @click="register"></a-button>
<a-button type="primary" @click="register"></a-button>
</template>
<BasicForm @register="registerForm" />
</BasicModal>

View File

@ -18,7 +18,7 @@
loadData
:clickRowToExpand="false"
:treeData="treeDeptData"
:fieldNames="{ key: 'userId', title: 'dept' }"
:fieldNames="{ key: 'id', title: 'name' }"
:checkable="true"
:checkStrictly="true"
@check="handleDeptSelect"
@ -36,7 +36,7 @@
:key="item.id"
@close="closeTag(item)"
>
{{ item.dept }}
{{ item.name }}
</a-tag>
</div>
<!-- <CollapseContainer title="选中部门" :canExpan="false">
@ -69,7 +69,7 @@
import { useMessage } from '@/hooks/web/useMessage';
import { CollapseContainer } from '@/components/Container/index';
import { getUserInfoWithDept } from '@/api/demo/handlingmanagement';
import { handleWorkitem } from '@/api/demo/handlingmanagement';
import { handleWorkitem,listSupervisionOrg } from '@/api/demo/handlingmanagement';
defineOptions({ name: 'OrgPositonModal' });
const emit = defineEmits(['success', 'register', 'select']);
@ -150,13 +150,8 @@
});
}
const getDeptOptions = async () => {
const data = await getUserInfoWithDept({
workitemId: props.workItemId,
});
const data = await listSupervisionOrg({});
console.log(data);
data.forEach((element) => {
element.title = element.dept;
});
treeDeptData.value = data;
//
nextTick(() => {

View File

@ -30,7 +30,7 @@
import { useMessage } from '@/hooks/web/useMessage';
import { useModal } from '@/components/Modal';
import { AuditModel } from '@/views/demo/handlingmanagement/intend/page';
import { AuditModel,CreateModal } from '@/views/demo/handlingmanagement/intend/page';
import { PermissionBtn } from '@/components/PermissionBtn/index';
import { columns, searchFormSchema } from '@/views/demo/handlingmanagement/intend/data';