|
@@ -43,8 +43,10 @@
|
|
|
</template>
|
|
|
</div>
|
|
|
</div>
|
|
|
- <!-- <Data v-if="activeAssets === 'data'" :group="activedGroup" /> -->
|
|
|
- <DataSource v-if="activeAssets === 'data'" :group="activedGroup" />
|
|
|
+ <template v-if="activeAssets === 'data'">
|
|
|
+ <Data v-if="old" :group="activedGroup" />
|
|
|
+ <DataSource v-else :group="activedGroup" />
|
|
|
+ </template>
|
|
|
<Structure v-else-if="activeAssets === 'structure'" :group="activedGroup"/>
|
|
|
<template v-else>
|
|
|
<div class="list" :class="groupType ? 'two-columns' : ''">
|
|
@@ -444,7 +446,7 @@ import {
|
|
|
WifiIcon
|
|
|
} from 'tdesign-icons-vue-next';
|
|
|
import { getNetJsDiagram } from '@/services/material';
|
|
|
-// import Data from './Data.vue';
|
|
|
+import Data from './Data.vue';
|
|
|
import DataSource from './DataSource.vue';
|
|
|
import Structure from './Structure.vue';
|
|
|
import { useDot } from '@/services/common';
|
|
@@ -567,6 +569,25 @@ const dataGroups = [
|
|
|
// key: '',
|
|
|
// }
|
|
|
];
|
|
|
+
|
|
|
+const old_dataGroups = [
|
|
|
+ {
|
|
|
+ icon: 'data',
|
|
|
+ name: '数据源',
|
|
|
+ key: '',
|
|
|
+ },
|
|
|
+ {
|
|
|
+ icon: 'install',
|
|
|
+ name: '属性',
|
|
|
+ key: '',
|
|
|
+ },
|
|
|
+ {
|
|
|
+ icon: 'code',
|
|
|
+ name: '解析',
|
|
|
+ key: 'chart',
|
|
|
+ },
|
|
|
+];
|
|
|
+
|
|
|
const structureGroups = [
|
|
|
{
|
|
|
icon: 'layers',
|
|
@@ -628,8 +649,13 @@ const assetsChange = (value) => {
|
|
|
groups = userGroups;
|
|
|
activedGroup.value = userLastName;
|
|
|
}else if(value === 'data'){
|
|
|
- groups = dataGroups;
|
|
|
- activedGroup.value = '数据';
|
|
|
+ if(old){
|
|
|
+ groups=old_dataGroups;
|
|
|
+ activedGroup.value = '数据源';
|
|
|
+ }else{
|
|
|
+ groups = dataGroups;
|
|
|
+ activedGroup.value = '数据';
|
|
|
+ }
|
|
|
}else if(value === 'structure'){
|
|
|
groups = structureGroups;
|
|
|
activedGroup.value = '图层';
|
|
@@ -2437,6 +2463,8 @@ const popupProps = ref({
|
|
|
overlayClassName:'',
|
|
|
});
|
|
|
|
|
|
+const old = globalThis.uiVersion === 'v20250208';
|
|
|
+
|
|
|
onUnmounted(() => {
|
|
|
document.removeEventListener('dragstart', dragstart);
|
|
|
document.removeEventListener('dragend', dragend);
|