判分点新增选择调整

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

@ -62,7 +62,9 @@
:data="treeData"
@check="currentChecked"
header-align="center"
show-checkbox node-key="id"
show-checkbox
ref="tree"
node-key="id"
:props="defaultProps">
</el-tree>
</div>
@ -479,10 +481,12 @@ export default {
isDisabled: false, //
isSave: false //
};
if(item.type == undefined){
if(item.type == undefined || item.type == ''){
item.operationIds = item.id
item.type = null
}
console.log(item.operationIds)
console.log(item.type)
//(1 2 3 4 5)
if (item.type == 1 || item.type == 2) {
obj.subjectId = Number(item.emptyOne);
@ -747,7 +751,19 @@ export default {
}
},
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() { //
this.changeArr.splice(0, this.changeArr.length)

Loading…
Cancel
Save