From eef1ef0be935d4a3d8fc691b2666f41796b2d4a5 Mon Sep 17 00:00:00 2001
From: gaoshp <291585735@qq.com>
Date: 星期一, 04 十一月 2024 19:57:08 +0800
Subject: [PATCH] 增加列表显示

---
 src/views/dnc/craft/document/File.vue |   31 +++++++++++++++++--------------
 1 files changed, 17 insertions(+), 14 deletions(-)

diff --git a/src/views/dnc/craft/document/File.vue b/src/views/dnc/craft/document/File.vue
index f9bd176..f2b6099 100644
--- a/src/views/dnc/craft/document/File.vue
+++ b/src/views/dnc/craft/document/File.vue
@@ -1,7 +1,7 @@
 <!--
  * @Date: 2024-06-12 22:07:23
  * @LastEditors: Sneed
- * @LastEditTime: 2024-06-13 00:07:27
+ * @LastEditTime: 2024-06-16 16:18:43
  * @FilePath: /belleson-frontend/Users/mache/Documents/demo/cps-web/src/views/dnc/craft/document/File.vue
 -->
 <template>
@@ -16,9 +16,10 @@
                                     <el-input style="width: 180px;" v-model="filterText" placeholder="璇疯緭鍏ュ叧閿瘝杩涜杩囨护" />
                                 </el-col>
                                 <el-col style="margin-top: 8px;">
-                                    <el-tree ref="treeRef" default-expand-all node-key="id" :data="treeData" :props="{
-                                        label: 'name',
-                                    }" @node-click="nodeClick" :filter-node-method="filterNode" highlight-current
+                                    <el-tree ref="treeRef" :expand-on-click-node="false" default-expand-all
+                                        node-key="id" :data="treeData" :props="{
+                                            label: 'name',
+                                        }" @node-click="nodeClick" :filter-node-method="filterNode" highlight-current
                                         :current-node-key="selectNode?.id">
                                         <template #default="{ node, data }">
                                             <span :class="data.isGroup ? 'active' : ''" class="custom-tree-node">
@@ -61,10 +62,11 @@
                                     <el-input style="width: 180px;" v-model="filterText" placeholder="璇疯緭鍏ュ叧閿瘝杩涜杩囨护" />
                                 </el-col>
                                 <el-col style="margin-top: 8px;">
-                                    <el-tree :load="loadNode" ref="treeRef" default-expand-all node-key="id" :props="{
-                                        label: 'name',
-                                        hasChildren: 'id'
-                                    }" @node-click="nodeClick" :filter-node-method="filterNode" highlight-current
+                                    <el-tree :expand-on-click-node="false" :load="loadNode" ref="treeRef"
+                                        default-expand-all node-key="id" :props="{
+                                            label: 'name',
+                                            hasChildren: 'id'
+                                        }" @node-click="nodeClick" :filter-node-method="filterNode" highlight-current
                                         :current-node-key="selectNode?.id" lazy>
                                         <template #default="{ node, data }">
                                             <span :class="data.isGroup ? 'active' : ''" class="custom-tree-node">
@@ -104,10 +106,11 @@
                                     <el-input style="width: 180px;" v-model="filterText" placeholder="璇疯緭鍏ュ叧閿瘝杩涜杩囨护" />
                                 </el-col>
                                 <el-col style="margin-top: 8px;">
-                                    <el-tree :load="loadNode1" ref="treeRef" default-expand-all node-key="id" :props="{
-                                        label: 'name',
-                                        hasChildren: 'id'
-                                    }" @node-click="nodeClick" :filter-node-method="filterNode" highlight-current
+                                    <el-tree :expand-on-click-node="false" :load="loadNode1" ref="treeRef"
+                                        default-expand-all node-key="id" :props="{
+                                            label: 'name',
+                                            hasChildren: 'id'
+                                        }" @node-click="nodeClick" :filter-node-method="filterNode" highlight-current
                                         :current-node-key="selectNode?.id" lazy>
                                         <template #default="{ node, data }">
                                             <span :class="data.isGroup ? 'active' : ''" class="custom-tree-node">
@@ -269,7 +272,7 @@
         loadNode(node, resolve) {
             let id = node.level === 0 ? '' : node.data.id
             if (node.level === 0) {
-                return this.$HTTP.get(`/api/blade-cps/group/getRootNode?groupCategory=1&groupType=group_workstation`).then(res => {
+                return this.$HTTP.get(`/api/smis/group/getRootNode?groupCategory=1&groupType=group_workstation`).then(res => {
                     this.nodeClick(res.data)
                     resolve([res.data].map(v => {
                         return {
@@ -280,7 +283,7 @@
                     }))
                 })
             } else {
-                this.$HTTP.get(`/api/blade-cps/group/groupWorkstation/lazy?groupId=${id}`).then(res => {
+                this.$HTTP.get(`/api/smis/group/groupWorkstation/lazy?groupId=${id}`).then(res => {
                     resolve(res.data.map(v => {
                         return {
                             ...v,

--
Gitblit v1.9.3