|
|
@ -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]); |
|
|
|