|
|
@ -302,11 +302,11 @@ |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
|
|
|
|
|
|
|
|
<template v-else-if="scope.row.type == 7"> |
|
|
|
<template v-else-if="scope.row.type == 7"> |
|
|
|
<div style="line-height: 65px">需</div> |
|
|
|
<div style="line-height: 65px">需点击</div> |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
|
|
|
|
|
|
|
|
<template v-else> |
|
|
|
<template v-else> |
|
|
|
<div style="line-height: 65px">{{ checkChange[scope.$index]? '需点击222' : checkChange[scope.$index] }}</div> |
|
|
|
<div style="line-height: 65px">{{ checkChange[scope.$index] ? '需点击' : '' }}</div> |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
</template> |
|
|
@ -342,7 +342,7 @@ export default { |
|
|
|
components: {quill, MyTree}, |
|
|
|
components: {quill, MyTree}, |
|
|
|
data() { |
|
|
|
data() { |
|
|
|
return { |
|
|
|
return { |
|
|
|
checkChange: [false], |
|
|
|
checkChange: [], |
|
|
|
|
|
|
|
|
|
|
|
lcId: "", // 流程类判分点id |
|
|
|
lcId: "", // 流程类判分点id |
|
|
|
isAdd: Boolean(this.$route.query.isAdd), // 添加 |
|
|
|
isAdd: Boolean(this.$route.query.isAdd), // 添加 |
|
|
@ -377,6 +377,7 @@ export default { |
|
|
|
this.$route.query.token && this.$store.commit("setParam", { |
|
|
|
this.$route.query.token && this.$store.commit("setParam", { |
|
|
|
token: atob(decodeURI(this.$route.query.token)) |
|
|
|
token: atob(decodeURI(this.$route.query.token)) |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
this.checkChange.push(false) |
|
|
|
|
|
|
|
|
|
|
|
this.getTreeData(); |
|
|
|
this.getTreeData(); |
|
|
|
console.log(this.treeData) |
|
|
|
console.log(this.treeData) |
|
|
@ -484,9 +485,7 @@ export default { |
|
|
|
}); |
|
|
|
}); |
|
|
|
}, |
|
|
|
}, |
|
|
|
handleCheckChange(data, checked, indeterminate, row, index) { // 处理勾选 |
|
|
|
handleCheckChange(data, checked, indeterminate, row, index) { // 处理勾选 |
|
|
|
console.log('---') |
|
|
|
this.checkChange.splice(index, 1, true) |
|
|
|
console.log(this.checkChange) |
|
|
|
|
|
|
|
this.checkChange[this.checkChange.length -1 ] = true |
|
|
|
|
|
|
|
this.checkChange.push(false) |
|
|
|
this.checkChange.push(false) |
|
|
|
let divTree = '#divTree'+index; |
|
|
|
let divTree = '#divTree'+index; |
|
|
|
let dom = document.querySelector(divTree) |
|
|
|
let dom = document.querySelector(divTree) |
|
|
@ -496,7 +495,6 @@ export default { |
|
|
|
dom1.style.height = (data.number * nodeHight) + "px" |
|
|
|
dom1.style.height = (data.number * nodeHight) + "px" |
|
|
|
let contHeight=(data.number * nodeHight)//总高度,盒子高度的一半 |
|
|
|
let contHeight=(data.number * nodeHight)//总高度,盒子高度的一半 |
|
|
|
dom.scrollTo(0, contHeight) |
|
|
|
dom.scrollTo(0, contHeight) |
|
|
|
this.checkChange = true |
|
|
|
|
|
|
|
if (checked && data.isNode === 1) { |
|
|
|
if (checked && data.isNode === 1) { |
|
|
|
this.tableData[index].operationIds = data.id; // 操作id串 |
|
|
|
this.tableData[index].operationIds = data.id; // 操作id串 |
|
|
|
// for () |
|
|
|
// for () |
|
|
@ -510,7 +508,6 @@ export default { |
|
|
|
this.$refs[`tree-${index}`].setCheckedNodes([data]); |
|
|
|
this.$refs[`tree-${index}`].setCheckedNodes([data]); |
|
|
|
this.getSubjectData(data.subjectId, index); |
|
|
|
this.getSubjectData(data.subjectId, index); |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
row.type = ""; |
|
|
|
|
|
|
|
this.currentNodeData = {}; |
|
|
|
this.currentNodeData = {}; |
|
|
|
this.$refs[`tree-${index}`].setCheckedNodes([data]); |
|
|
|
this.$refs[`tree-${index}`].setCheckedNodes([data]); |
|
|
|
} |
|
|
|
} |
|
|
@ -521,6 +518,7 @@ export default { |
|
|
|
if (res.status == 200 && res.list.length>0) { |
|
|
|
if (res.status == 200 && res.list.length>0) { |
|
|
|
if (res.list.length>0) { |
|
|
|
if (res.list.length>0) { |
|
|
|
this.treeData = this.toTreeId(res.list, res.list[0].parentId); |
|
|
|
this.treeData = this.toTreeId(res.list, res.list[0].parentId); |
|
|
|
|
|
|
|
console.log(this.treeData) |
|
|
|
if (this.$route.query.lcId) { |
|
|
|
if (this.$route.query.lcId) { |
|
|
|
this.lcId = this.$route.query.lcId; |
|
|
|
this.lcId = this.$route.query.lcId; |
|
|
|
this.getInfoData(this.$route.query.lcId); |
|
|
|
this.getInfoData(this.$route.query.lcId); |
|
|
|