master
e 3 years ago
parent 0336e798e9
commit b9a0875540
  1. 2
      src/components/myTree/src/tree.vue
  2. 21
      src/views/Transaction.vue

@ -137,10 +137,8 @@
children: {
set(value) {
this.data = value;
console.log(this.data)
},
get() {
console.log(this.data)
return this.data;
}
},

@ -392,6 +392,7 @@ export default {
this.$nextTick(() => {
this.$refs[`tree-${index}`].setCheckedKeys([item.operationIds]);
// this.$refs.tree.setCurrentKey(item.operationIds)
// this.scrollToDepTree(item.operationIds)
});
}
@ -583,6 +584,7 @@ export default {
if (i.type == 1 || i.type == 2) {
obj.emptyOne = i.subjectId ? i.subjectId.toString() : "";
obj.itemId = i.value1 ? i.value1.toString() : "";
obj.emptyTwo = i.value1 ? i.value1.toString() : "";
} else if (i.type == 3) {
obj.emptyOne = i.subjectId ? i.subjectId.toString() : "";
obj.emptyTwo = i.value1;
@ -615,7 +617,6 @@ export default {
console.log(err);
});
} else if (this.isEdit) { //
console.log(this.formData)
this.$post(this.api.updateJudgmentPoint, this.formData).then(res => {
if (res.status === 200) {
this.$message.success("更新判分点成功");
@ -631,6 +632,7 @@ export default {
addRule() { //
this.isAddRule = true;
// this.tableData.length && this.tableData.push({ruleOperation: 0, indexNo: ""});
if (this.tableData.length > 0){
this.tableData.push({
ruleOperation: 0
},{
@ -648,6 +650,23 @@ export default {
value4: "",
value5: ""
});
}else{
this.tableData.push({
indexNo: this.tableData.length +1,
isSubject: true,
isDisabled: false, //
isSave: false, //
lcId: this.lcId,
resultOperation: 0,
ruleOperation: 0,
operationIds: "",
value1: "",
value2: "",
value3: "",
value4: "",
value5: ""
});
}
console.log(this.tableData)
// anewPosttingData(judgmentRuleList)
},

Loading…
Cancel
Save