diff --git a/src/views/Transaction.vue b/src/views/Transaction.vue index 07b58c6..5c2481a 100644 --- a/src/views/Transaction.vue +++ b/src/views/Transaction.vue @@ -89,19 +89,20 @@

操作一致性规则:用户完成的功能操作与下方设置的操作点一致

- + + + + + + + + + + + + + +
@@ -370,6 +371,10 @@ export default { children: "children", label: "name" }, // 树结构配置项 + defaultProp: { + children: "children", + label: "name" + }, // 树结构配置项 currentNodeData: {}, // 当前选中的节点 formData: { lcJudgmentPoint: { @@ -415,36 +420,23 @@ export default { this.anewPosttingData(judgmentRuleList) this.tableData.forEach(async (item, index) => { // 勾选树节点 + let lists = JSON.parse(JSON.stringify(this.treeData)) if (item.operationIds) { - this.operationIData = [] - let list = this.treeData + let list = lists let idstr = item.operationIds item.operationIData = [] let idArr = idstr.split(',') idArr.shift() let startId = idArr.shift() - let findOut = null let testObj = null for(let i=0; i { - // this.$refs[`tree-${index}`].setCheckedKeys([item.operationIds]); - // }) + item.operationIData.push(testObj) } // 根据题目id,获取题目信息 if (item.isSubject && item.type && item.type != 4 && item.emptyOne) { @@ -462,9 +454,6 @@ export default { if(arr.length === 0) { return obj } - // console.log('arr') - // console.log(arr) - this.operationIData.push(obj) let findIt = arr.shift() let tmp = obj.children.find(item => item.id == findIt) needObj.children = obj.children.filter(item => item.id == findIt) @@ -495,13 +484,25 @@ export default { this.anewPosttingDatas(list) this.tableData.forEach(async (item, index) => { // 勾选树节点 - // item.operationIds = item.id + let lists = JSON.parse(JSON.stringify(this.treeData)) if (item.operationIds) { - this.$nextTick(() => { - this.$refs[`tree-${index}`].setCheckedKeys([item.operationIds]); - }) + let list = lists + let idstr = item.operationIds + item.operationIData = [] + let idArr = idstr.split(',') + idArr.shift() + let startId = idArr.shift() + let findOut = null + let testObj = null + for(let i=0; i { - this.$refs[`tree-${index}`].setCheckedKeys([item.operationIds]); + // this.$refs[`tree-${index}`].setCheckedKeys([item.operationIds]); }); } // 根据题目id,获取题目信息