转发功能增加
parent
5987613e58
commit
870eaa7597
|
|
@ -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,
|
||||
});
|
||||
}
|
||||
|
|
|
|||
|
|
@ -185,6 +185,7 @@
|
|||
});
|
||||
};
|
||||
function handleSuccess() {
|
||||
closeModal();
|
||||
emit('success');
|
||||
}
|
||||
</script>
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -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(() => {
|
||||
|
|
|
|||
|
|
@ -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';
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue