进入页面展示数据

新增时被后面禁用功能影响
master
e 3 years ago
parent 5445df6e0c
commit 013042a320
  1. 27
      src/views/Transaction.vue

@ -54,7 +54,7 @@
<!-- <el-button v-if="!isView" type="primary" size="mini" @click="addRule">新增</el-button>--> <!-- <el-button v-if="!isView" type="primary" size="mini" @click="addRule">新增</el-button>-->
</div> </div>
</div> </div>
<el-dialog :visible.sync="configVisible" width="30%" title="批量新增判分点" center :append-to-body='true'> <el-dialog :visible.sync="configVisible" width="25%" title="批量新增判分点" center :append-to-body="false">
<div class="flex-between mgb20"> <div class="flex-between mgb20">
<div style="width: 100%;height: 400px;overflow: auto;margin: auto;background: #F5F5F5"> <div style="width: 100%;height: 400px;overflow: auto;margin: auto;background: #F5F5F5">
<el-tree <el-tree
@ -439,14 +439,6 @@ export default {
}, },
handleConfirm(){ handleConfirm(){
let list = [] let list = []
// if (this.formData.lcJudgmentRuleList.length){
// for (var j = 0;j<this.formData.lcJudgmentRuleList.length;j++){
// list.push(this.formData.lcJudgmentRuleList[j]);
// }
// for (var i=0;i<list.length;i++){
// list[i].id = list[i].operationIds
// }
// }
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++){
if(this.SelectedObj.checkedNodes[i].children.length > 0){ if(this.SelectedObj.checkedNodes[i].children.length > 0){
@ -489,7 +481,7 @@ export default {
//(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);
obj.value1 = item.itemId; obj.value1 = item.emptyTwo;
} else if (item.type == 3) { } else if (item.type == 3) {
obj.subjectId = Number(item.emptyOne); obj.subjectId = Number(item.emptyOne);
obj.value1 = item.emptyTwo; obj.value1 = item.emptyTwo;
@ -533,10 +525,13 @@ export default {
isSave: true // isSave: true //
}; };
//(1 2 3 4 5) //(1 2 3 4 5)
console.log(item)
console.log(obj)
if (item.type == 1 || item.type == 2) { if (item.type == 1 || item.type == 2) {
obj.subjectId = Number(item.emptyOne); obj.subjectId = Number(item.emptyOne);
obj.value1 = item.itemId; obj.value1 = item.emptyTwo;
} else if (item.type == 3) { } else if (item.type == 3) {
console.log('============')
obj.subjectId = Number(item.emptyOne); obj.subjectId = Number(item.emptyOne);
obj.value1 = item.emptyTwo; obj.value1 = item.emptyTwo;
} else if (item.type == 4) { } else if (item.type == 4) {
@ -580,11 +575,11 @@ export default {
handleCheckChange(data, checked, indeterminate, row, index) { // handleCheckChange(data, checked, indeterminate, row, index) { //
if (checked && data.isNode === 1) { if (checked && data.isNode === 1) {
this.tableData[index].operationIds = data.id; // id this.tableData[index].operationIds = data.id; // id
row.value1 = ""; // row.value1 = "";
row.value2 = ""; // row.value2 = "";
row.value3 = ""; // row.value3 = "";
row.value4 = ""; // row.value4 = "";
row.value5 = ""; // row.value5 = "";
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]);

Loading…
Cancel
Save