From ba614829f008504d2316ba0916db8f3c9af0b563 Mon Sep 17 00:00:00 2001 From: zhiyong.zhou <zhiyong.zhou@highdatas.com> Date: 星期一, 04 三月 2024 15:07:05 +0800 Subject: [PATCH] 删除多余文件 提交 --- src/views/admin/layout/process/ProcessTree.vue | 13 ++++++++----- 1 files changed, 8 insertions(+), 5 deletions(-) diff --git a/src/views/admin/layout/process/ProcessTree.vue b/src/views/admin/layout/process/ProcessTree.vue index 692518c..cbd0cf5 100644 --- a/src/views/admin/layout/process/ProcessTree.vue +++ b/src/views/admin/layout/process/ProcessTree.vue @@ -171,7 +171,7 @@ }, getRandomId(){ console.log("tree鐢熸垚鑺傜偣id") - return ''; + return ' '; //return `HighDatas_${new Date().getTime().toString().substring(5)}${Math.round(Math.random()*9000+1000)}` }, //閫変腑涓�涓妭鐐� @@ -181,15 +181,17 @@ }, //澶勭悊鑺傜偣鎻掑叆閫昏緫 insertNode(type, parentNode){ + console.log("insertNode-parentNode",parentNode) this.$refs['_root'].click() - //缂撳瓨涓�涓嬪悗闈㈢殑鑺傜偣 let afterNode = parentNode.children + console.log("afterNode",afterNode) //鎻掑叆鏂拌妭鐐� parentNode.children = { id: this.getRandomId(), parentId: parentNode.id, props: {}, - type: type, + type: type + } switch (type){ case 'APPROVAL': this.insertApprovalNode(parentNode, afterNode); break; @@ -213,15 +215,16 @@ if (afterNode && afterNode.id){ afterNode.parentId = parentNode.children.id } - this.$set(parentNode.children, 'children', afterNode) + this.$set(parentNode.children, 'children', Object) + console.log("parentNode.children",parentNode.children) } this.$forceUpdate() }, insertApprovalNode(parentNode){ - console.log("tree 娣诲姞閫氳繃鑺傜偣",parentNode.children) this.$set(parentNode.children, "name", "瀹℃壒浜�") console.log("tree-DefaultProps.APPROVAL_PROPS)",DefaultProps.APPROVAL_PROPS) this.$set(parentNode.children, "props", this.$deepCopy(DefaultProps.APPROVAL_PROPS)) + console.log("parentNode.children",parentNode.children) }, insertTaskNode(parentNode){ this.$set(parentNode.children, "name", "鍔炵悊浜�") -- Gitblit v1.8.0