diff --git a/src/components/taskDetail/resultImage.vue b/src/components/taskDetail/resultImage.vue index 3e1fef50..c81e3e81 100644 --- a/src/components/taskDetail/resultImage.vue +++ b/src/components/taskDetail/resultImage.vue @@ -25,7 +25,7 @@ :fileType="FILE_TYPE.PNG_FILE" tableName="TASK_DETAIL_UPLOAD_FILE" callbackFlag="RESULT_IMAGE_UPLOAD_FINISHED" - :discipline="discipline" + :discipline="taskData?.discipline" multiple :data="{ dirId: nodeFIleId, @@ -94,9 +94,9 @@ const props = defineProps({ type: Boolean, default: true, }, - discipline: { - type: String, - default: '', + taskData: { + type: Object, + default: () => ({}), }, }); diff --git a/src/components/taskDetail/task3DModel.vue b/src/components/taskDetail/task3DModel.vue index 9ada989c..b8202ebc 100644 --- a/src/components/taskDetail/task3DModel.vue +++ b/src/components/taskDetail/task3DModel.vue @@ -17,7 +17,7 @@ :fileType="FILE_TYPE.MODEL_3D_FILE" tableName="TASK_DETAIL_UPLOAD_FILE" callbackFlag="TASK_3D_UPLOAD_FINISHED" - :discipline="discipline" + :discipline="taskData?.discipline" multiple :data="{ dirId: nodeFIleId, @@ -88,9 +88,9 @@ const props = defineProps({ type: Boolean, default: false, }, - discipline: { - type: String, - default: '', + taskData: { + type: Object, + default: () => ({}), }, }); diff --git a/src/components/taskDetail/taskCurve.vue b/src/components/taskDetail/taskCurve.vue index 2f6e3751..0f48860d 100644 --- a/src/components/taskDetail/taskCurve.vue +++ b/src/components/taskDetail/taskCurve.vue @@ -20,7 +20,7 @@ tableName="TASK_DETAIL_UPLOAD_FILE" callbackFlag="TASK_CURVE_UPLOAD_FINISHED" multiple - :discipline="discipline" + :discipline="taskData?.discipline" :data="{ dirId: nodeFIleId, projectId: null, @@ -106,9 +106,9 @@ const props = defineProps({ type: Boolean, default: true, }, - discipline: { - type: String, - default: '', + taskData: { + type: Object, + default: () => ({}), }, }); const runTreeData = ref([]); diff --git a/src/components/taskDetail/taskModel.vue b/src/components/taskDetail/taskModel.vue index ccf768d5..4aae6d47 100644 --- a/src/components/taskDetail/taskModel.vue +++ b/src/components/taskDetail/taskModel.vue @@ -17,7 +17,7 @@ :fileType="FILE_TYPE.CALCULATION_FILE" tableName="TASK_DETAIL_UPLOAD_FILE" callbackFlag="TASK_MODEL_UPLOAD_FINISHED" - :discipline="discipline" + :discipline="taskData?.discipline" multiple :data="{ dirId: nodeFIleId, @@ -79,9 +79,9 @@ const props = defineProps({ type: Boolean, default: true, }, - discipline: { - type: String, - default: '', + taskData: { + type: Object, + default: () => ({}), }, }); // const env = import.meta.env; diff --git a/src/components/taskDetail/taskReport.vue b/src/components/taskDetail/taskReport.vue index 0ea9487a..944df977 100644 --- a/src/components/taskDetail/taskReport.vue +++ b/src/components/taskDetail/taskReport.vue @@ -18,7 +18,7 @@ tableName="TASK_DETAIL_UPLOAD_FILE" callbackFlag="TASK_REPORT_UPLOAD_FINISHED" multiple - :discipline="discipline" + :discipline="taskData?.discipline" :data="{ dirId: nodeFIleId, projectId: null, @@ -80,9 +80,9 @@ const props = defineProps({ type: Boolean, default: true, }, - discipline: { - type: String, - default: '', + taskData: { + type: Object, + default: () => ({}), }, }); const baseTableRef = ref(); diff --git a/src/views/task/projectDetail/components/taskDetail.vue b/src/views/task/projectDetail/components/taskDetail.vue index 5a6e58f9..d8695f19 100644 --- a/src/views/task/projectDetail/components/taskDetail.vue +++ b/src/views/task/projectDetail/components/taskDetail.vue @@ -15,7 +15,7 @@ @@ -40,7 +40,7 @@ @@ -51,7 +51,7 @@ @@ -77,7 +77,7 @@ @@ -87,7 +87,7 @@