update:参数库
This commit is contained in:
@@ -38,14 +38,14 @@
|
|||||||
</div>
|
</div>
|
||||||
</el-tooltip>
|
</el-tooltip>
|
||||||
</template>
|
</template>
|
||||||
<el-tooltip :content="$t('表格.导出')" placement="top" >
|
<el-tooltip v-if="exportApi" :content="$t('表格.导出')" placement="top" >
|
||||||
<div v-if="exportApi" class="icon-btn" @click="exportFun">
|
<div v-if="exportApi" class="icon-btn" @click="exportFun">
|
||||||
<el-icon :size="18">
|
<el-icon :size="18">
|
||||||
<Download />
|
<Download />
|
||||||
</el-icon>
|
</el-icon>
|
||||||
</div>
|
</div>
|
||||||
</el-tooltip>
|
</el-tooltip>
|
||||||
<el-tooltip :content="$t('表格.导入')" placement="top" >
|
<el-tooltip v-if="showImport" :content="$t('表格.导入')" placement="top" >
|
||||||
<div v-if="showImport" class="icon-btn" @click="formDiaVisible = true">
|
<div v-if="showImport" class="icon-btn" @click="formDiaVisible = true">
|
||||||
<el-icon :size="18">
|
<el-icon :size="18">
|
||||||
<Upload />
|
<Upload />
|
||||||
|
|||||||
@@ -181,3 +181,9 @@ const removeFun = (key: string, val: any) => {
|
|||||||
});
|
});
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
<style lang="scss" scoped>
|
||||||
|
.upload-btn {
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
|||||||
@@ -22,14 +22,14 @@
|
|||||||
<div class="item">
|
<div class="item">
|
||||||
<div class="btns">
|
<div class="btns">
|
||||||
<slot name="leftOptions" />
|
<slot name="leftOptions" />
|
||||||
<el-tooltip :content="$t('表格.导出')" placement="top" >
|
<el-tooltip v-if="exportApi" :content="$t('表格.导出')" placement="top" >
|
||||||
<div v-if="exportApi" class="icon-btn" @click="exportFun">
|
<div v-if="exportApi" class="icon-btn" @click="exportFun">
|
||||||
<el-icon :size="18">
|
<el-icon :size="18">
|
||||||
<Download />
|
<Download />
|
||||||
</el-icon>
|
</el-icon>
|
||||||
</div>
|
</div>
|
||||||
</el-tooltip>
|
</el-tooltip>
|
||||||
<el-tooltip :content="$t('表格.导入')" placement="top" >
|
<el-tooltip v-if="showImport" :content="$t('表格.导入')" placement="top" >
|
||||||
<div v-if="showImport" class="icon-btn" @click="formDiaVisible = true">
|
<div v-if="showImport" class="icon-btn" @click="formDiaVisible = true">
|
||||||
<el-icon :size="18">
|
<el-icon :size="18">
|
||||||
<Upload />
|
<Upload />
|
||||||
|
|||||||
@@ -55,7 +55,7 @@ import emitter from '@/utils/eventBus';
|
|||||||
const taskStatusObj: any = {}; // 更具uploadTaskId和businessId记录所以任务文件的上传状态
|
const taskStatusObj: any = {}; // 更具uploadTaskId和businessId记录所以任务文件的上传状态
|
||||||
const listVisible = ref(false);
|
const listVisible = ref(false);
|
||||||
const listData = ref<any>([]);
|
const listData = ref<any>([]);
|
||||||
const chunkSize = 1024 * 1024 * 5; // 每片5MB
|
const chunkSize = 1024 * 1024 * 10; // 每片10MB
|
||||||
const UPLOAD_FILE_STATUS: any = { // TODO
|
const UPLOAD_FILE_STATUS: any = { // TODO
|
||||||
'-1': '上传失败',
|
'-1': '上传失败',
|
||||||
'0': '待上传',
|
'0': '待上传',
|
||||||
|
|||||||
@@ -166,7 +166,8 @@
|
|||||||
import { ref, onMounted } from 'vue';
|
import { ref, onMounted } from 'vue';
|
||||||
import FileTree from '@/components/common/dataFileTree/index.vue';
|
import FileTree from '@/components/common/dataFileTree/index.vue';
|
||||||
import { getSimulationNodeTreeApi, getAllTemplateApi } from '@/api/data/dimensionTemplate';
|
import { getSimulationNodeTreeApi, getAllTemplateApi } from '@/api/data/dimensionTemplate';
|
||||||
import { addNodeForDataApi, addTaskForDataApi } from '@/api/project/node';
|
import { addNodeForDataApi, addTaskForDataApi, getNodeDetailForDataApi } from '@/api/project/node';
|
||||||
|
import { getTaskDetailApi } from '@/api/project/task';
|
||||||
import { dataOverViewListSimulationNodeFilesApi, dataOverViewDeleteSimulationNodeFilesApi, dataOverViewUploadSimulationNodeFilesApi } from '@/api/data/dataOverView';
|
import { dataOverViewListSimulationNodeFilesApi, dataOverViewDeleteSimulationNodeFilesApi, dataOverViewUploadSimulationNodeFilesApi } from '@/api/data/dataOverView';
|
||||||
import BaseTable from '@/components/common/table/baseTable.vue';
|
import BaseTable from '@/components/common/table/baseTable.vue';
|
||||||
import Configuration from './components/configuration.vue';
|
import Configuration from './components/configuration.vue';
|
||||||
@@ -246,6 +247,7 @@ const editFun = () => {
|
|||||||
ElMessage.warning('请选择一个目录');
|
ElMessage.warning('请选择一个目录');
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
nodeType.value = currentData.value.relatedResourceUuidOwnType;
|
||||||
if (currentData.value.relatedResourceUuidOwnType === NODE_TYPE.PROJECT) {
|
if (currentData.value.relatedResourceUuidOwnType === NODE_TYPE.PROJECT) {
|
||||||
editId.value = currentData.value.relatedResourceUuid;
|
editId.value = currentData.value.relatedResourceUuid;
|
||||||
showProjectInfoDialog.value = true;
|
showProjectInfoDialog.value = true;
|
||||||
@@ -254,15 +256,29 @@ const editFun = () => {
|
|||||||
editId.value = currentData.value.relatedParentUuid;
|
editId.value = currentData.value.relatedParentUuid;
|
||||||
showNodeInfoDialog.value = true;
|
showNodeInfoDialog.value = true;
|
||||||
}
|
}
|
||||||
if (currentData.value.relatedResourceUuidOwnType === NODE_TYPE.WORKSPACE) {
|
if ([NODE_TYPE.WORKSPACE, NODE_TYPE.MACHINE].includes(currentData.value.relatedResourceUuidOwnType)) {
|
||||||
editId.value = currentData.value.relatedParentUuid;
|
editId.value = currentData.value.relatedParentUuid;
|
||||||
editData.value = {
|
const params = {
|
||||||
nodeName: currentData.value.originalName,
|
relatedResourceUuid: currentData.value.relatedResourceUuid,
|
||||||
englishName: '',
|
|
||||||
nodeCode: '',
|
|
||||||
nodeType: currentData.value.relatedResourceUuidOwnType,
|
|
||||||
};
|
};
|
||||||
modalVisible.value = true;
|
getNodeDetailForDataApi(params).then((res: any) => {
|
||||||
|
if (res.code === 200) {
|
||||||
|
editData.value = res.data;
|
||||||
|
}
|
||||||
|
modalVisible.value = true;
|
||||||
|
});
|
||||||
|
}
|
||||||
|
if ([NODE_TYPE.TASK].includes(currentData.value.relatedResourceUuidOwnType)) {
|
||||||
|
editId.value = currentData.value.relatedParentUuid;
|
||||||
|
const params = {
|
||||||
|
relatedResourceUuid: currentData.value.relatedResourceUuid,
|
||||||
|
};
|
||||||
|
getTaskDetailApi(params).then((res: any) => {
|
||||||
|
if (res.code === 200) {
|
||||||
|
editData.value = res.data;
|
||||||
|
}
|
||||||
|
modalVisible.value = true;
|
||||||
|
});
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user