Prechádzať zdrojové kódy

Merge branch 'master' of http://110.41.163.243:9980/kd-aiot/kd-aiot-frontend-wt

liujt 1 týždeň pred
rodič
commit
fc60396afe
1 zmenil súbory, kde vykonal 5 pridanie a 10 odobranie
  1. 5 10
      src/views/bpm/collaborative/index.vue

+ 5 - 10
src/views/bpm/collaborative/index.vue

@@ -640,15 +640,7 @@
           return find.name;
         };
       },
-      getDeptAndUserName() {
-        return (id = []) => {
-          if (!id.length) return '';
-          id = Array.isArray(id) ? id : [id];
-          let find =
-            this.userList.find((item) => item.id == id[id.length - 1]) || {};
-          return find.name;
-        };
-      },
+
       getDeptUserName() {
         return (id = []) => {
           if (!id.length) return '';
@@ -753,8 +745,11 @@
         let nodes = tree;
         for (const id of pathArr) {
           const node = nodes.find((item) => item.id == id);
+          console.log(node, 'node');
           if (node) {
-            names.push(node.name);
+            if (node.type == '1') {
+              names.push(node.name);
+            }
             nodes = node.children || [];
           } else {
             break;