zhaoke 1 år sedan
förälder
incheckning
3810801b15

+ 2 - 1
src/views/dataAccessPage/components/accessPageNode.vue

@@ -153,7 +153,8 @@ export default {
       this.tableId = val
     },
     treeNodeClick (item) {
-      const { id, code } = item
+      const { id, code, type } = item
+      if (type != 'algorithm') return
       this.tabFlag = true
       this.groupId = id
       this.tableId = id

+ 3 - 1
src/views/dataAccessPage/components/nodeTree.vue

@@ -70,7 +70,9 @@ export default {
     async getTreeData () {
       const { code, returnData } = await getQueryData(20, { 1: 1 })
       if (code == 0 && returnData?.length) {
-        const result = listToTree(_.cloneDeep(returnData), 'superiorid', 'id')
+        const alldata = _.cloneDeep(returnData)
+        const checkdata = alldata.filter(item => item.type != 'parameter')
+        const result = listToTree(_.cloneDeep(checkdata), 'superiorid', 'id')
         const resall = [{
           name: '全部',
           id: 0,