关联需求时,区分工业设计的表头

This commit is contained in:
魏保林
2026-03-27 11:47:36 +08:00
parent f75fbb3a30
commit 5d8f602c1c

View File

@@ -6,7 +6,7 @@
v-model:data="demandInfo"
:show-disabled="true"
ref="tableFormRef"
tableName="SIMULATION_TASK_DEMAND_CREATE"
:tableName="demandFormName"
:colNum="3"
:hideKeys="hideKeys"
>
@@ -38,7 +38,7 @@
</template>
<script lang="ts" setup>
import { ref, watch } from 'vue';
import { computed, ref, watch } from 'vue';
import TableForm from '@/components/common/table/tableForm.vue';
import { getDemandDetailApi, queryDemandFilesApi } from '@/api/project/demand';
import { getMemberListIds } from '@/utils/task';
@@ -59,6 +59,12 @@ const tableFormRef = ref();
const hideKeys = ref(['attachments']);
const demandFormName = computed(() => {
return demandInfo.value.demandType === '工业设计'
? 'SIMULATION_TASK_DEMAND_INDUSTRIAL_CREATE'
: 'SIMULATION_TASK_DEMAND_CREATE';
});
const getDemandInfoFun = async () => {
const res: any = await getDemandDetailApi({ demandId: props.demandUid });
if (res.code === 200) {