houyaf 3 年之前
父节点
当前提交
a8572e0d95

+ 1 - 1
src/assets/styles/globals.scss

@@ -82,7 +82,7 @@ body {
   box-sizing: inherit;
 }
 
-// 右侧内容区针对fixed元素,有横向铺满的需求,可在fixed元素上设置 [db-fixed-calc-width]
+// 右侧内容区针对fixed元素,有横向铺满的需求,可在fixed元素上设置 [data-fixed-calc-width]
 [data-fixed-calc-width] {
   position: fixed;
   left: 50%;

+ 1 - 1
src/components/GroupSelector/index.vue

@@ -24,7 +24,7 @@ const getData = async () => {
   const { data } = await getGroupView()
   state.dataList = data
   // 初始化第一个给tree
-  // emit('update:modelValue', db[0].groupId)
+  // emit('update:modelValue', data[0].groupId)
 }
 
 const groupId = computed({

+ 3 - 3
src/components/Sparkline/sparkline.ts

@@ -61,10 +61,10 @@ export function sparkline(svg: any, entries: any, options: any) {
   // rendering offset.
   const strokeWidth = parseFloat(svg.attributes['stroke-width'].value)
 
-  // By default, db must be formatted as an array of numbers or
+  // By default, data must be formatted as an array of numbers or
   // an array of objects with the value key (like `[{value: 1}]`).
-  // You can set a custom function to return db for a different
-  // db structure.
+  // You can set a custom function to return data for a different
+  // data structure.
   const fetch = options.fetch || defaultFetch
 
   // Retrieve only values, easing the find for the maximum value.

+ 14 - 23
src/router/modules/repo.ts

@@ -4,46 +4,37 @@ const Layout = () => import('@/layouts/index.vue')
 
 const routes: RouteRecordRaw[] = [
   {
-    path: '/repo/db',
+    path: '/repo',
     component: Layout,
-    redirect: '/repo/db/repo',
-    name: 'database_data',
+    redirect: '/repo/index',
+    name: 'repo',
     meta: {
       title: '数据仓库',
       icon: 'ep:coin',
     },
     children: [
       {
-        path: 'repo',
-        name: 'database_data_index',
-        component: () => import('@/views/repository/db/index.vue'),
+        path: 'index',
+        name: 'repo_index',
+        component: () => import('@/views/repository/repo/index.vue'),
         meta: {
           title: '数据仓库',
           sidebar: false,
-          breadcrumb: false,
+          breadcrumb: true,
           activeMenu: '/repo/db',
         },
       },
-    ],
-  },
-  {
-    path: '/repo/repo',
-    component: Layout,
-    redirect: '/repo/repo/index',
-    name: 'database_access',
-    meta: {
-      title: '数据库接入',
-      icon: 'ep:link',
-    },
-    children: [
+
       {
-        path: 'index',
-        name: 'database_access',
+        path: 'access',
+        name: 'repo_access',
         component: () => import('@/views/repository/access/index.vue'),
         meta: {
-          title: '数据库接入',
+          title: '数据仓库接入',
           sidebar: false,
-          activeMenu: '/repo/repo',
+          activeMenu: '/repo',
+          cache: true,
+          noCache: 'repo_access',
         },
       },
     ],

+ 4 - 4
src/store/modules/settings.ts

@@ -11,7 +11,7 @@ const useSettingsStore = defineStore(
     const mergeSettings: RecursiveRequired<Settings.all> = defaultsDeep(settingsCustom, settingsDefault)
     const settings = ref(mergeSettings)
     watch(() => settings.value.app.theme, (val) => {
-      document.body.setAttribute('db-theme', val)
+      document.body.setAttribute('data-theme', val)
     }, {
       immediate: true,
     })
@@ -31,12 +31,12 @@ const useSettingsStore = defineStore(
       immediate: true,
     })
     watch(() => settings.value.layout.widthMode, (val) => {
-      document.body.setAttribute('db-app-width-mode', val)
+      document.body.setAttribute('data-app-width-mode', val)
     }, {
       immediate: true,
     })
     watch(() => settings.value.menu.menuMode, (val) => {
-      document.body.setAttribute('db-menu-mode', val)
+      document.body.setAttribute('data-menu-mode', val)
     }, {
       immediate: true,
     })
@@ -104,7 +104,7 @@ const useSettingsStore = defineStore(
           settings.value.menu.subMenuCollapse = true
           break
       }
-      document.body.setAttribute('db-mode', val)
+      document.body.setAttribute('data-mode', val)
     }, {
       immediate: true,
     })

+ 3 - 10
src/views/biz/biz/index.vue

@@ -56,22 +56,15 @@ const getObjectData = async () => {
 
 const getBizData = async () => {
   const { data } = await getBizByList('')
-  const children: TreeNode[] = []
+  const treeNodes: TreeNode[] = []
   data.forEach((item: any) => {
-    return children.push({
+    return treeNodes.push({
       label: item.bizTitle,
       bizId: item.bizId,
       isLeaf: true,
     })
   })
-  state.treeData = [
-    {
-      label: '事务模型库',
-      isLeaf: false,
-      bizId: -1,
-      children,
-    },
-  ]
+  state.treeData = treeNodes
 
   if (data && data.length > 0) {
     state.curBizId = data[0].bizId

+ 1 - 1
src/views/biz/object_attr/index.vue

@@ -153,7 +153,7 @@ onMounted(() => {
     <div class="container">
       <tool-bar>
         <template #left>
-          <h5>对象属性</h5>
+          <h4>对象属性</h4>
         </template>
         <template #right>
           <el-input v-model="state.search.keywords" placeholder="请输入关键词筛选" clearable style="width: 200px;" />

+ 3 - 10
src/views/model/model/index.vue

@@ -57,22 +57,15 @@ const getObjectData = async () => {
 
 const getModelData = async () => {
   const { data } = await getModelByList('')
-  const children: TreeNode[] = []
+  const treeNodes: TreeNode[] = []
   data.forEach((item: any) => {
-    return children.push({
+    return treeNodes.push({
       label: item.modelTitle,
       modelId: item.modelId,
       isLeaf: true,
     })
   })
-  state.treeData = [
-    {
-      label: '数据模型库',
-      isLeaf: false,
-      modelId: -1,
-      children,
-    },
-  ]
+  state.treeData = treeNodes
 
   if (data && data.length > 0) {
     state.curModelId = data[0].modelId