diff --git a/src/views/Transaction.vue b/src/views/Transaction.vue index 9c3e2ec..bd96810 100644 --- a/src/views/Transaction.vue +++ b/src/views/Transaction.vue @@ -54,7 +54,7 @@ - +
0){ for (var i=0;i 0){ @@ -489,7 +481,7 @@ export default { //题目类型(1选择 2判断 3填空 4问答 5指标结果) if (item.type == 1 || item.type == 2) { obj.subjectId = Number(item.emptyOne); - obj.value1 = item.itemId; + obj.value1 = item.emptyTwo; } else if (item.type == 3) { obj.subjectId = Number(item.emptyOne); obj.value1 = item.emptyTwo; @@ -533,10 +525,13 @@ 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.itemId; + obj.value1 = item.emptyTwo; } else if (item.type == 3) { + console.log('============') obj.subjectId = Number(item.emptyOne); obj.value1 = item.emptyTwo; } else if (item.type == 4) { @@ -580,11 +575,11 @@ export default { handleCheckChange(data, checked, indeterminate, row, index) { // 处理勾选 if (checked && data.isNode === 1) { this.tableData[index].operationIds = data.id; // 操作id串 - row.value1 = ""; - row.value2 = ""; - row.value3 = ""; - row.value4 = ""; - row.value5 = ""; + // row.value1 = ""; + // row.value2 = ""; + // row.value3 = ""; + // row.value4 = ""; + // row.value5 = ""; if (data.subjectId) { // 是否有题目id this.currentNodeData = data; this.$refs[`tree-${index}`].setCheckedNodes([data]);