Transaction_create

master
yujialong 3 years ago
parent 77cffaf9bd
commit 502ae60db5
  1. 14
      src/views/Transaction.vue

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

Loading…
Cancel
Save