利元亨 部门选仿真负责人功能
This commit is contained in:
@@ -39,9 +39,19 @@
|
||||
:hideKeys="hideKeys"
|
||||
:data="editFormInfo"
|
||||
>
|
||||
<template v-for="name in Object.keys($slots)" :key="name" #[name]="scope">
|
||||
<slot :name="name" v-bind="scope" />
|
||||
<template #form-pMemberList>
|
||||
<el-select v-model="editFormInfo.pMemberList" filterable placeholder="请选择">
|
||||
<el-option
|
||||
v-for="item in deptOptions"
|
||||
:key="item.value"
|
||||
:label="item.label"
|
||||
:value="item.value"
|
||||
/>
|
||||
</el-select>
|
||||
</template>
|
||||
<!-- <template v-for="name in Object.keys($slots)" :key="name" #[name]="scope">
|
||||
<slot :name="name" v-bind="scope" />
|
||||
</template> -->
|
||||
</TableForm>
|
||||
<template #footer>
|
||||
<div>
|
||||
@@ -72,6 +82,7 @@ import { getMemberListIds } from '@/utils/task';
|
||||
import { enableConfigByTenant, TENANT_ENUM } from '@/tenants/tenant';
|
||||
import { syncDemandList } from '../taskPage';
|
||||
import { getChildrenNodeListApi } from '@/api/project/node';
|
||||
import type { Options } from '@/types';
|
||||
|
||||
const env = import.meta.env;
|
||||
const PREFIX = env.VITE_API_PREFIX_PROJECT;
|
||||
@@ -81,6 +92,10 @@ defineProps({
|
||||
type: Array,
|
||||
default: () => [],
|
||||
},
|
||||
deptOptions: {
|
||||
type: Array<Options>,
|
||||
default: () => [],
|
||||
},
|
||||
});
|
||||
|
||||
const emits = defineEmits(['visibleDialog', 'loadTableForm', 'changeForm']);
|
||||
@@ -129,7 +144,7 @@ const demandInfo = reactive({
|
||||
|
||||
const isCreateDialog = ref(true);
|
||||
|
||||
const editFormInfo = ref({});
|
||||
const editFormInfo = ref<any>({});
|
||||
|
||||
const visibleDialog = async (isCreate: boolean, row?: any) => {
|
||||
formVisible.value = true;
|
||||
@@ -202,6 +217,7 @@ const confirmFun = async () => {
|
||||
if (await tableFormRef.value.validateFun()) {
|
||||
loadingInterface.value = true;
|
||||
const fromData: any = tableFormRef.value.getFormDataFun();
|
||||
console.log('fromData', fromData);
|
||||
if (fromData.planTime) {
|
||||
fromData.beginTime = fromData.planTime[0];
|
||||
fromData.endTime = fromData.planTime[1];
|
||||
|
||||
Reference in New Issue
Block a user