银行判分点数据修改

master 判分点系统V2.1
e 3 years ago
parent b02929a0c6
commit 6b9999eac7
  1. 24
      src/views/Transaction.vue

@ -64,7 +64,7 @@
header-align="center"
show-checkbox
ref="tree"
node-key="id"
node-key="operationIds"
:props="defaultProps">
</el-tree>
</div>
@ -96,7 +96,7 @@
:data="treeData"
:props="defaultProps"
default-expand-all
node-key="id"
node-key="operationIds"
show-checkbox
@check-change="(data, checked, indeterminate) => {
handleCheckChange(data, checked, indeterminate, scope.row, scope.$index);
@ -481,7 +481,7 @@ export default {
isDisabled: false, //
isSave: false //
};
obj.operationIds = item.id
obj.operationIds = item.operationIds
if(item.type == undefined || item.type == ''){
obj.type = null
}else{
@ -536,8 +536,6 @@ export default {
isSave: true //
};
//(1 2 3 4 5)
console.log(item)
console.log(obj)
if (item.type == 1 || item.type == 2) {
obj.subjectId = Number(item.emptyOne);
obj.value1 = +item.emptyTwo;
@ -583,8 +581,13 @@ export default {
});
},
handleCheckChange(data, checked, indeterminate, row, index) { //
if (checked && data.isNode === 1) {
// this.tableData[index].operationIds = data.id; // id
console.log(data)
if (!data.type){
this.getSubjectData(data.subjectId, index);
}
this.tableData[index].operationIds = data.operationIds; // id
// row.value1 = "";
// row.value2 = "";
// row.value3 = "";
@ -638,10 +641,13 @@ export default {
item.showCheckbox = true;
}
if (item.children && item.children.length) {
item.id = `${parentId},${item.id}`;
item.children = this.toTreeId(item.children, item.id);
// item.id = `${parentId},${item.id}`;
item.operationIds = `${parentId},${item.id}`;
item.children = this.toTreeId(item.children, item.operationIds);
} else {
item.id = `${parentId},${item.id}`;
// item.id = `${parentId},${item.id}`;
item.operationIds = `${parentId},${item.id}`;
}
result.push(item);
});

Loading…
Cancel
Save