判分点新增选择调整

master
e 3 years ago
parent 7b22f92776
commit 198e8be2e8
  1. 22
      src/views/Transaction.vue

@ -62,7 +62,9 @@
:data="treeData" :data="treeData"
@check="currentChecked" @check="currentChecked"
header-align="center" header-align="center"
show-checkbox node-key="id" show-checkbox
ref="tree"
node-key="id"
:props="defaultProps"> :props="defaultProps">
</el-tree> </el-tree>
</div> </div>
@ -479,10 +481,12 @@ export default {
isDisabled: false, // isDisabled: false, //
isSave: false // isSave: false //
}; };
if(item.type == undefined){ if(item.type == undefined || item.type == ''){
item.operationIds = item.id item.operationIds = item.id
item.type = null item.type = null
} }
console.log(item.operationIds)
console.log(item.type)
//(1 2 3 4 5) //(1 2 3 4 5)
if (item.type == 1 || item.type == 2) { if (item.type == 1 || item.type == 2) {
obj.subjectId = Number(item.emptyOne); obj.subjectId = Number(item.emptyOne);
@ -747,7 +751,19 @@ export default {
} }
}, },
addRules(){ addRules(){
this.configVisible = true this.configVisible = true;
console.log(this.formData.lcJudgmentRuleList)
let operationIds = []
this.tableData.forEach(async (item, index) => {
//
if (item.operationIds) {
operationIds.push(item.operationIds)
}
});
this.$nextTick(() => {
this.$refs.tree.setCheckedKeys(operationIds);
})
}, },
addRule() { // addRule() { //
this.changeArr.splice(0, this.changeArr.length) this.changeArr.splice(0, this.changeArr.length)

Loading…
Cancel
Save