update:数据总览兼容没有模板
This commit is contained in:
@@ -2,12 +2,12 @@
|
||||
NODE_ENV=production
|
||||
VITE_APP_ENV=production
|
||||
VITE_API_BASE_URL=/api/simulation
|
||||
VITE_API_HTTP_URL=http://192.168.65.161:7100
|
||||
VITE_API_HTTP_URL=http://192.168.190.161:7100
|
||||
VITE_API_WS_BASE_URL=/wsApi/simulation
|
||||
VITE_API_WS_URL=ws://192.168.65.161:7100
|
||||
VITE_API_IMAGE_PREVIEW_URL=http://192.168.65.161:7104
|
||||
VITE_API_FILE_PREVIEW_URL=http://192.168.65.161:3000/preview/onlinePreview
|
||||
VITE_API_FILE_URL=http://192.168.65.161:7104
|
||||
VITE_API_WS_URL=ws://192.168.190.161:7100
|
||||
VITE_API_IMAGE_PREVIEW_URL=http://192.168.190.161:7104
|
||||
VITE_API_FILE_PREVIEW_URL=http://192.168.190.161:3000/preview/onlinePreview
|
||||
VITE_API_FILE_URL=http://192.168.190.161:7104
|
||||
|
||||
VITE_API_PREFIX_APPROVE=/approve/
|
||||
VITE_API_PREFIX_CAPABILITY=/capability/
|
||||
|
||||
@@ -15,6 +15,6 @@ export const getAllTemplateApi = () => {
|
||||
return post(`${PREFIX}dimensionTemplate/getAllTemplate`);
|
||||
};
|
||||
|
||||
export const deleteTemplateWithHierarchiesApi = (params: {id:number}) => {
|
||||
export const deleteTemplateWithHierarchiesApi = (params: { id: number }) => {
|
||||
return get(`${PREFIX}dimensionTemplate/deleteTemplateWithHierarchies`, params);
|
||||
};
|
||||
|
||||
@@ -121,7 +121,7 @@ const loadMoreFun = async (node: any, resolve: any) => {
|
||||
|
||||
// 获取节点数据
|
||||
const getDataFun = async (data: any) => {
|
||||
if (props.api) {
|
||||
if (props.api && props.templateId) {
|
||||
const params = {
|
||||
dimensionTemplateId: props.templateId,
|
||||
fileIds: data.fileIds || [],
|
||||
@@ -132,6 +132,8 @@ const getDataFun = async (data: any) => {
|
||||
} else {
|
||||
return [];
|
||||
}
|
||||
} else {
|
||||
return [];
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
@@ -240,6 +240,9 @@ const tabChangeFun = () => {
|
||||
};
|
||||
|
||||
const getTemplateWithHierarchiesFun = () => {
|
||||
if (!currentEditableTab.value) {
|
||||
return;
|
||||
}
|
||||
getTemplateWithHierarchiesApi({ id: currentEditableTab.value }).then((res: any) => {
|
||||
if (res.code === 200) {
|
||||
selectLevelFormData.value.selectLevelList = res.data.dimensionTemplateHierarchies?.map(
|
||||
@@ -269,7 +272,7 @@ const addSelectLevelFun = () => {
|
||||
});
|
||||
};
|
||||
|
||||
const deleteSelectLevelFun = (index: number) => {
|
||||
const deleteSelectLevelFun = (index: any) => {
|
||||
selectLevelFormData.value.selectLevelList.splice(index, 1);
|
||||
selectLevelFormData.value.selectLevelList.forEach((item: SelectLevelItem, index: number) => {
|
||||
item.name = index + 1 + '级';
|
||||
|
||||
@@ -2,7 +2,6 @@
|
||||
<div class="gl-page-content-grey-full">
|
||||
<div class="content">
|
||||
<FileTree
|
||||
v-if="currentDimension"
|
||||
ref="FileTreeRef"
|
||||
:api="getSimulationNodeTreeApi"
|
||||
:templateId="currentDimension"
|
||||
@@ -188,7 +187,6 @@
|
||||
</FileTree>
|
||||
</div>
|
||||
<Configuration
|
||||
v-if="currentDimension"
|
||||
v-model="configurationShow"
|
||||
:dimensionId="currentDimension"
|
||||
@confirm="reloadNodeFun"
|
||||
|
||||
Reference in New Issue
Block a user