银行判分点数据修改

master
e 3 years ago
parent 1e44b63b0e
commit c5a605d7d4
  1. 9
      src/views/Transaction.vue

@ -388,7 +388,8 @@ export default {
itemkey:'', itemkey:'',
judgePoints:false,// judgePoints:false,//
configVisible:false, configVisible:false,
SelectedObj:[] SelectedObj:[],
counts:0,
}; };
}, },
mounted() { mounted() {
@ -403,6 +404,7 @@ export default {
}, },
methods: { methods: {
getInfoData(lcId) { // getInfoData(lcId) { //
this.counts = 0
this.$get(`${this.api.queryJudgmentPointDetails}?lcId=${lcId}`).then(res => { this.$get(`${this.api.queryJudgmentPointDetails}?lcId=${lcId}`).then(res => {
if (res.status === 200) { if (res.status === 200) {
let {judgmentPoint, judgmentRuleList} = res; let {judgmentPoint, judgmentRuleList} = res;
@ -438,6 +440,7 @@ export default {
this.SelectedObj = SelectedObj this.SelectedObj = SelectedObj
}, },
handleConfirm(){ handleConfirm(){
this.counts = this.counts+1
let list = [] let list = []
if (this.SelectedObj.checkedNodes.length > 0){ if (this.SelectedObj.checkedNodes.length > 0){
for (var i=0;i<this.SelectedObj.checkedNodes.length;i++){ for (var i=0;i<this.SelectedObj.checkedNodes.length;i++){
@ -590,7 +593,9 @@ export default {
if (data.subjectId) { // id if (data.subjectId) { // id
this.currentNodeData = data; this.currentNodeData = data;
this.$refs[`tree-${index}`].setCheckedNodes([data]); this.$refs[`tree-${index}`].setCheckedNodes([data]);
this.getSubjectData(data.subjectId, index); if(this.counts > 0){
this.getSubjectData(data.subjectId, index);
}
} else { } else {
row.type = null; row.type = null;
this.currentNodeData = {}; this.currentNodeData = {};

Loading…
Cancel
Save