diff --git a/src/components/taskDetail/taskDemand.vue b/src/components/taskDetail/taskDemand.vue index 6fca6ac5..f1e2affa 100644 --- a/src/components/taskDetail/taskDemand.vue +++ b/src/components/taskDetail/taskDemand.vue @@ -66,6 +66,9 @@ const getDemandInfoFun = async () => { ]); const simTypeList: any = commonStore.getDictData(res.data.demandType); tableFormRef.value.setOptionsFun('simType', simTypeList.A); + tableFormRef.value.setOptionsFun('workspaceId', [ + { label: res.data.workspaceName, value: res.data.workspaceId }, + ]); } }; diff --git a/src/views/task/simulationTask/components/demandDetailDialog.vue b/src/views/task/simulationTask/components/demandDetailDialog.vue index b489cf5c..bd0df758 100644 --- a/src/views/task/simulationTask/components/demandDetailDialog.vue +++ b/src/views/task/simulationTask/components/demandDetailDialog.vue @@ -96,6 +96,9 @@ const getDemandInfo = async () => { ]); const simTypeList: any = commonStore.getDictData(res.data.demandType); tableFormRef.value.setOptionsFun('simType', simTypeList.A); + tableFormRef.value.setOptionsFun('workspaceId', [ + { label: res.data.workspaceName, value: res.data.workspaceId }, + ]); } };