|
|
|
@ -110,7 +110,6 @@ |
|
|
|
|
<p class="p" style="margin-top: 1px">交易结果一致性规则:用户交易结果需要与下面设置的交易结果指标要求一致</p> |
|
|
|
|
<div class="block"> |
|
|
|
|
<!-- type: 题目类型(1选择 2判断 3填空 4问答 5指标结果) --> |
|
|
|
|
<div v-if="scope.row.type == ''" style="line-height: 65px">需点击</div> |
|
|
|
|
<template v-if="scope.row.type == 1"> |
|
|
|
|
<div class="box"> |
|
|
|
|
<div class="line"> |
|
|
|
@ -138,7 +137,7 @@ |
|
|
|
|
</div> |
|
|
|
|
</template> |
|
|
|
|
|
|
|
|
|
<template v-if="scope.row.type == 2"> |
|
|
|
|
<template v-else-if="scope.row.type == 2"> |
|
|
|
|
<div class="box"> |
|
|
|
|
<div class="line"> |
|
|
|
|
<div>{{ scope.row.name }}</div> |
|
|
|
@ -164,7 +163,7 @@ |
|
|
|
|
</div> |
|
|
|
|
</template> |
|
|
|
|
|
|
|
|
|
<template v-if="scope.row.type == 3"> |
|
|
|
|
<template v-else-if="scope.row.type == 3"> |
|
|
|
|
<div class="box"> |
|
|
|
|
<div class="line" style="min-height: 100%;"> |
|
|
|
|
<span class="label"> |
|
|
|
@ -186,7 +185,7 @@ |
|
|
|
|
</div> |
|
|
|
|
</template> |
|
|
|
|
|
|
|
|
|
<template v-if="scope.row.type == 4"> |
|
|
|
|
<template v-else-if="scope.row.type == 4"> |
|
|
|
|
<div class="box"> |
|
|
|
|
<div class="line"> |
|
|
|
|
<span class="label"> |
|
|
|
@ -239,7 +238,7 @@ |
|
|
|
|
</div> |
|
|
|
|
</template> |
|
|
|
|
|
|
|
|
|
<template v-if="scope.row.type == 5"> |
|
|
|
|
<template v-else-if="scope.row.type == 5"> |
|
|
|
|
<div class="box"> |
|
|
|
|
<div class="line"> |
|
|
|
|
<!-- |
|
|
|
@ -301,6 +300,10 @@ |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
</template> |
|
|
|
|
|
|
|
|
|
<template v-else> |
|
|
|
|
<div style="line-height: 65px">{{ checkChange? '需点击' : '' }}</div> |
|
|
|
|
</template> |
|
|
|
|
</div> |
|
|
|
|
</template> |
|
|
|
|
</el-table-column> |
|
|
|
@ -335,6 +338,8 @@ export default { |
|
|
|
|
components: {quill, MyTree}, |
|
|
|
|
data() { |
|
|
|
|
return { |
|
|
|
|
checkChange: false, |
|
|
|
|
|
|
|
|
|
lcId: "", // 流程类判分点id |
|
|
|
|
isAdd: Boolean(this.$route.query.isAdd), // 添加 |
|
|
|
|
isEdit: Boolean(this.$route.query.isEdit), // 编辑 |
|
|
|
@ -368,6 +373,7 @@ export default { |
|
|
|
|
this.$route.query.token && this.$store.commit("setParam", { |
|
|
|
|
token: atob(decodeURI(this.$route.query.token)) |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
this.getTreeData(); |
|
|
|
|
if (this.$route.query.lcId) { |
|
|
|
|
this.lcId = this.$route.query.lcId; |
|
|
|
@ -380,6 +386,7 @@ 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 = { |
|
|
|
@ -498,6 +505,8 @@ 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], |
|
|
|
@ -507,11 +516,14 @@ export default { |
|
|
|
|
this.$set(this.tableData, index, item); |
|
|
|
|
// console.log(JSON.stringify(this.tableData)) |
|
|
|
|
} |
|
|
|
|
console.log('---') |
|
|
|
|
console.log(res) |
|
|
|
|
}).catch(err => { |
|
|
|
|
console.log(err); |
|
|
|
|
}); |
|
|
|
|
}, |
|
|
|
|
handleCheckChange(data, checked, indeterminate, row, index) { // 处理勾选 |
|
|
|
|
this.checkChange = true |
|
|
|
|
if (checked && data.isNode === 1) { |
|
|
|
|
this.tableData[index].operationIds = data.id; // 操作id串 |
|
|
|
|
row.value1 = ""; |
|
|
|
@ -532,13 +544,16 @@ export default { |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
getTreeData() { // 获取树结构数据 |
|
|
|
|
console.log('getTreeData') |
|
|
|
|
this.$get(this.api.getLcRecord).then(res => { |
|
|
|
|
if (res.status === 200 && res.list) { |
|
|
|
|
if (res.list.length) { |
|
|
|
|
this.treeData = this.toTreeId(res.list, res.list[0].parentId); |
|
|
|
|
// console.log(this.treeData) |
|
|
|
|
console.log('---this.treeData') |
|
|
|
|
console.log(this.treeData) |
|
|
|
|
} |
|
|
|
|
} else { |
|
|
|
|
console.log('---this.treeData拿取失败') |
|
|
|
|
this.$message.warning(res.message); |
|
|
|
|
} |
|
|
|
|
}).catch(err => { |
|
|
|
|