From dcf9c9e0410fe1186239e3f8d6f7bdc789c08010 Mon Sep 17 00:00:00 2001
From: lzhe <lzhe@example.com>
Date: 星期三, 05 六月 2024 18:00:39 +0800
Subject: [PATCH] 1

---
 src/views/mdc/MYTree.vue |   13 +++++++------
 1 files changed, 7 insertions(+), 6 deletions(-)

diff --git a/src/views/mdc/MYTree.vue b/src/views/mdc/MYTree.vue
index 4e70583..1713833 100644
--- a/src/views/mdc/MYTree.vue
+++ b/src/views/mdc/MYTree.vue
@@ -1,7 +1,7 @@
 <!--
  * @Date: 2024-04-18 19:53:35
  * @LastEditors: Sneed
- * @LastEditTime: 2024-05-26 15:49:11
+ * @LastEditTime: 2024-06-04 21:33:08
  * @FilePath: /belleson-frontend/Users/mache/Documents/demo/cps-web/src/views/mdc/MYTree.vue
 -->
 <template>
@@ -37,7 +37,7 @@
             defalutProps: {
                 label: 'title',
                 children: 'children',
-                disabled: 'disabled',
+                disabled: this.showCheckbox ? '' : 'disabled',
                 class: (data, node) => {
                     return this.value.includes(data.id) ? 'active' : ''
                 },
@@ -61,13 +61,13 @@
         this.getList()
     },
     methods: {
-        renderContent(h, { data,node }) {
+        renderContent(h, { data, node }) {
             let img = data.groupTag == 'fms_beltline'
             return h('a', {
                 class: {
-                    disabled: this.props.disabled ? this.props.disabled(data,node) : data.disabled
+                    disabled: this.props.disabled ? this.props.disabled(data, node) : data.disabled
                 },
-                disabled: this.props.disabled ? this.props.disabled(data,node) : data.disabled
+                disabled: this.props.disabled ? this.props.disabled(data, node) : data.disabled
             },
                 img ? h('img', {
                     src: pmsPng
@@ -139,9 +139,10 @@
 </script>
 
 <style lang="scss">
-.active .el-tree-node__content {
+.is-current .el-tree-node__content {
     background: var(--el-color-primary) !important;
 }
+
 a.disabled {
     color: #ccc;
 }

--
Gitblit v1.9.3