master
yujialong 3 years ago
parent ed8235ff6a
commit abed2385e2
  1. 15207
      package-lock.json
  2. 27
      src/views/Transaction.vue

15207
package-lock.json generated

File diff suppressed because it is too large Load Diff

@ -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 => {

Loading…
Cancel
Save