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