update:更新数据查询界面相关
This commit is contained in:
@@ -81,7 +81,7 @@
|
||||
:searchItems="searchItems"
|
||||
:searchParams="{model:'模型文件'}"
|
||||
:params="{ fileBizType:1}"
|
||||
:api="getSimulationTaskFileApi"
|
||||
:api="getSimulationTaskFileFn"
|
||||
:searchLimitNum="3"
|
||||
tableName="RESULT_MODEL"
|
||||
showIndex
|
||||
@@ -111,7 +111,7 @@
|
||||
:searchItems="searchItems"
|
||||
:searchParams="{model:'仿真报告'}"
|
||||
:params="{ fileBizType:2}"
|
||||
:api="getSimulationTaskFileApi"
|
||||
:api="getSimulationTaskFileFn"
|
||||
:searchLimitNum="3"
|
||||
tableName="RESULT_REPORT"
|
||||
showIndex
|
||||
@@ -141,7 +141,7 @@
|
||||
:searchItems="searchItems"
|
||||
:searchParams="{model:'计算文件'}"
|
||||
:params="{ fileBizType:3}"
|
||||
:api="getSimulationTaskFileApi"
|
||||
:api="getSimulationTaskFileFn"
|
||||
:searchLimitNum="3"
|
||||
tableName="RESULT_FILE"
|
||||
showIndex
|
||||
@@ -170,7 +170,7 @@
|
||||
:searchItems="searchItems"
|
||||
:searchParams="{model:'结果曲线'}"
|
||||
:params="{ fileBizType:4}"
|
||||
:api="getSimulationTaskFileApi"
|
||||
:api="getSimulationTaskFileFn"
|
||||
:searchLimitNum="3"
|
||||
tableName="RESULT_CURVE"
|
||||
showIndex
|
||||
@@ -200,7 +200,7 @@
|
||||
:searchItems="searchItems"
|
||||
:searchParams="{model:'结果云图'}"
|
||||
:params="{ fileBizType:5}"
|
||||
:api="getSimulationTaskFileApi"
|
||||
:api="getSimulationTaskFileFn"
|
||||
:searchLimitNum="3"
|
||||
tableName="RESULT_PNG"
|
||||
showIndex
|
||||
@@ -455,6 +455,7 @@ const getProjectOptionsFun = () => {
|
||||
return {
|
||||
label: item.nodeName,
|
||||
value: item.id,
|
||||
uuid: item.uuid,
|
||||
};
|
||||
});
|
||||
tableRef.value?.setOptionsFun( NODE_TYPE.PROJECT, projectOptions.value );
|
||||
@@ -471,6 +472,7 @@ const getPhaseOptionsFun = () => {
|
||||
return {
|
||||
label: item.nodeName,
|
||||
value: item.id,
|
||||
uuid: item.uuid,
|
||||
};
|
||||
});
|
||||
tableRef.value?.setOptionsFun( NODE_TYPE.PHASE, phaseOptions.value );
|
||||
@@ -486,6 +488,7 @@ const getDisciplineOptionsFun = () => {
|
||||
return {
|
||||
label: item.nodeName,
|
||||
value: item.id,
|
||||
uuid: item.uuid,
|
||||
};
|
||||
});
|
||||
tableRef.value?.setOptionsFun( 'discipline', disciplineOptions.value );
|
||||
@@ -793,6 +796,36 @@ const deleteCompareDataFn = (data:any) => {
|
||||
});
|
||||
};
|
||||
|
||||
const getSimulationTaskFileFn = async (param:any) => {
|
||||
const params:any = {
|
||||
...param,
|
||||
};
|
||||
|
||||
if (params?.project) {
|
||||
params.uuid = projectOptions.value.find((item:any) => {
|
||||
return item.value === params.project;
|
||||
})?.uuid;
|
||||
}
|
||||
|
||||
if (params?.phase) {
|
||||
params.uuid = phaseOptions.value.find((item:any) => {
|
||||
return item.value === params.phase;
|
||||
})?.uuid;
|
||||
}
|
||||
|
||||
if (params?.discipline) {
|
||||
params.uuid = disciplineOptions.value.find((item:any) => {
|
||||
return item.value === params.discipline;
|
||||
})?.uuid;
|
||||
}
|
||||
|
||||
const res:any = await getSimulationTaskFileApi(params);
|
||||
if (res && res.code === 200) {
|
||||
return res;
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
onMounted(() => {
|
||||
getProjectOptionsFun();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user