From 1f1f6b2f9c8b3614cc8c182b8c4a204cda0e0a9b Mon Sep 17 00:00:00 2001
From: licp <lichunping@guanfang.com.cn>
Date: 星期三, 29 五月 2024 15:15:39 +0800
Subject: [PATCH] 完成人员管理、角色管理优化,完成检验任务光纤配置

---
 src/components/view/person-manage.vue |   12 +++++-------
 1 files changed, 5 insertions(+), 7 deletions(-)

diff --git a/src/components/view/person-manage.vue b/src/components/view/person-manage.vue
index 5938846..1467cdb 100644
--- a/src/components/view/person-manage.vue
+++ b/src/components/view/person-manage.vue
@@ -252,9 +252,6 @@
 </template>
 
 <script>
-  import {
-    compileToFunctions
-  } from 'vue-template-compiler'
   import ValueTable from '../tool/value-table.vue'
   export default {
     components: {
@@ -438,6 +435,7 @@
         })
       },
       opeaAdd() {
+        console.log(this.addOb.fatherId,this.selectTree)
         if (!this.addOb.fatherId || this.selectTree == '' || this.selectTree == '鍏ㄩ儴') {
           this.$message.error('璇烽�夋嫨涓�涓粍缁�')
           return
@@ -538,7 +536,7 @@
       },
       getNodeParent(val) {
         if (val.parent != null) {
-          this.selectTree += ' - ' + val.label
+          this.selectTree += ' - ' + val.data.name
           this.getNodeParent(val.parent)
         }
       },
@@ -600,7 +598,7 @@
         })
       },
       nodeClick2(ob, node, el) {
-        this.getNodeParent(node)
+        this.getNodeParent0(node)
         if (ob.id !== 'SC21') {
           this.personLoad = true
           this.$axios.post(this.$api.companies.selectSimpleList, {
@@ -613,10 +611,10 @@
           })
         }
       },
-      getNodeParent(val){
+      getNodeParent0(val){
         this.currentCompaniesList[val.level-1] = val.data.id
         if(val.parent!=null){
-          this.getNodeParent(val.parent)
+          this.getNodeParent0(val.parent)
         }
       },
       handleSelectionChange(val) {

--
Gitblit v1.9.3