|
|
|
@ -382,7 +382,6 @@ export default { |
|
|
|
|
methods: { |
|
|
|
|
getInfoData(lcId) { // 获取判分点详细信息 |
|
|
|
|
this.$get(`${this.api.queryJudgmentPointDetails}?lcId=${lcId}`).then(res => { |
|
|
|
|
console.log(res) |
|
|
|
|
if (res.status === 200) { |
|
|
|
|
let {judgmentPoint, judgmentRuleList} = res; |
|
|
|
|
this.formData = { |
|
|
|
@ -395,7 +394,6 @@ export default { |
|
|
|
|
if (item.operationIds) { |
|
|
|
|
this.$nextTick(() => { |
|
|
|
|
this.$refs[`tree-${index}`].setCheckedKeys([item.operationIds]); |
|
|
|
|
console.log(this.$refs[`tree-${index}`].getCheckedNodes(true)) |
|
|
|
|
for (var i=0;i<this.treeData.length;i++){ |
|
|
|
|
if (this.treeData[i].children>0){ |
|
|
|
|
let children = this.treeData[i].children |
|
|
|
@ -478,8 +476,6 @@ export default { |
|
|
|
|
}, |
|
|
|
|
getSubjectData(subjectId, index) { // 获取题目信息 |
|
|
|
|
this.$get(`${this.api.getSubjectInfo}?subject_id=${subjectId}`).then(res => { |
|
|
|
|
console.log('getSubjectData') |
|
|
|
|
console.log(res) |
|
|
|
|
if (res.status === 200) { |
|
|
|
|
let item = { |
|
|
|
|
...this.tableData[index], |
|
|
|
@ -487,10 +483,7 @@ export default { |
|
|
|
|
items: res.items |
|
|
|
|
}; |
|
|
|
|
this.$set(this.tableData, index, item); |
|
|
|
|
// console.log(JSON.stringify(this.tableData)) |
|
|
|
|
} |
|
|
|
|
console.log('---') |
|
|
|
|
console.log(res) |
|
|
|
|
}).catch(err => { |
|
|
|
|
console.log(err); |
|
|
|
|
}); |
|
|
|
@ -517,24 +510,16 @@ export default { |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
getTreeData() { // 获取树结构数据 |
|
|
|
|
console.log('getTreeData') |
|
|
|
|
this.$get(this.api.getLcRecord).then(res => { |
|
|
|
|
console.log(res) |
|
|
|
|
if (res.status == 200 && res.list.length>0) { |
|
|
|
|
if (res.list.length>0) { |
|
|
|
|
this.treeData = this.toTreeId(res.list, res.list[0].parentId); |
|
|
|
|
<<<<<<< HEAD |
|
|
|
|
console.log('---this.treeData') |
|
|
|
|
console.log(this.treeData) |
|
|
|
|
======= |
|
|
|
|
if (this.$route.query.lcId) { |
|
|
|
|
this.lcId = this.$route.query.lcId; |
|
|
|
|
this.getInfoData(this.$route.query.lcId); |
|
|
|
|
} |
|
|
|
|
>>>>>>> ec22a93db6e0a2fc0e096d7988bd1adb8413af1a |
|
|
|
|
} |
|
|
|
|
} else { |
|
|
|
|
console.log('---this.treeData拿取失败') |
|
|
|
|
this.$message.warning(res.message); |
|
|
|
|
} |
|
|
|
|
}).catch(err => { |
|
|
|
@ -644,7 +629,6 @@ export default { |
|
|
|
|
tempArr.push(obj); |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
console.log(tempArr) |
|
|
|
|
this.formData.lcJudgmentRuleList = tempArr; |
|
|
|
|
if (this.isAdd) { // 新增判分点 |
|
|
|
|
this.$post(this.api.addJudgmentPoint, this.formData).then(res => { |
|
|
|
@ -708,7 +692,6 @@ export default { |
|
|
|
|
value5: "" |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
console.log(this.tableData) |
|
|
|
|
// anewPosttingData(judgmentRuleList) |
|
|
|
|
}, |
|
|
|
|
changeResult(row) { // (左右)结果运算符(0:且 1:或 默认0) |
|
|
|
|