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

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

Loading…
Cancel
Save