This commit is contained in:
2024-07-16 14:51:54 +08:00
parent 6b2533b73d
commit 4f02bdb066

View File

@ -1,6 +1,6 @@
<template> <template>
<div style="background-color: #f1f3f5;width:100%"> <div style="background-color: #f1f3f5;width:100%">
<!-- 画像审核 --> <!-- 路径审核 -->
<div class="card"> <div class="card">
<div class="cardleft"> <div class="cardleft">
<div class="title"> <div class="title">
@ -128,10 +128,14 @@
<img src="../../../assets/pathReview/bluexinxi.png" alt="" v-else> <img src="../../../assets/pathReview/bluexinxi.png" alt="" v-else>
<span>路径信息</span> <span>路径信息</span>
</div> </div>
<div class="topbutton" :class="tab == 2 ? 'blue' : ''" @click="getlist"> <div class="topbutton" :class="tab == 2 ? 'blue' : ''" @click="getlist"
:style="tab == 2 ? 'width:150px' : ''">
<img src="../../../assets/pathReview/blackrenwu.png" alt="" v-if="tab != 2"> <img src="../../../assets/pathReview/blackrenwu.png" alt="" v-if="tab != 2">
<img src="../../../assets/pathReview/bluerenwu.png" alt="" v-else> <img src="../../../assets/pathReview/bluerenwu.png" alt="" v-else>
<span>路径任务</span> <span>路径任务</span>
<el-switch v-if="tab == 2" v-model="switchvalue" active-color="#1890ff" inactive-color="#DDE0E9"
@change="changeswitch">
</el-switch>
</div> </div>
</div> </div>
<div v-if="tab == 1"> <div v-if="tab == 1">
@ -167,7 +171,8 @@
<el-collapse-item title="子路径" name="2"> <el-collapse-item title="子路径" name="2">
<div v-for="item in informationlist.childRouteList" :key="item.id"> <div v-for="item in informationlist.childRouteList" :key="item.id">
<div class="zljtitle"> <div class="zljtitle">
{{ item.routeName }} {{ item.routeName }} <span v-if="!informationlist.conditionSatisfyStatus"
style="color: red">(不符合条件)</span>
</div> </div>
<el-table :data="item.nodeList" style="width: 100%"> <el-table :data="item.nodeList" style="width: 100%">
<el-table-column prop="" label="" width="160"> <el-table-column prop="" label="" width="160">
@ -318,6 +323,7 @@ export default {
components: { questionopennew, Scriptpreview }, components: { questionopennew, Scriptpreview },
data() { data() {
return { return {
switchvalue: false,
baseUrl: process.env.VUE_APP_BASE_API, baseUrl: process.env.VUE_APP_BASE_API,
list: {}, list: {},
tab: 1, tab: 1,
@ -328,7 +334,8 @@ export default {
nodeList: [], nodeList: [],
childRouteList: [] childRouteList: []
}, },
routelist: undefined, routelist: [],
allroutelist: [],
phoneNodeContent: { phoneNodeContent: {
scriptInfoId: null, scriptInfoId: null,
flowScheme: null, flowScheme: null,
@ -342,6 +349,13 @@ export default {
this.info(); this.info();
}, },
methods: { methods: {
changeswitch(e) {
if (e) {
this.routelist = this.allroutelist.filter(item => !item.conditionSatisfyStatus);
} else {
this.routelist = this.allroutelist
}
},
info() { info() {
this.tab = 1 this.tab = 1
const loading = this.$loading({ const loading = this.$loading({
@ -374,7 +388,7 @@ export default {
}) })
}, },
getlist() { getlist() {
if (!this.routelist) { if (this.routelist.length == 0) {
const loading = this.$loading({ const loading = this.$loading({
lock: true, lock: true,
text: '加载中', text: '加载中',
@ -382,6 +396,7 @@ export default {
background: 'rgba(255, 255, 255, 0.7)' background: 'rgba(255, 255, 255, 0.7)'
}); });
getRouteNodeInfo(this.$route.query.signRecordId).then(res => { getRouteNodeInfo(this.$route.query.signRecordId).then(res => {
this.allroutelist = res.data
this.routelist = res.data this.routelist = res.data
this.tab = 2 this.tab = 2
loading.close(); loading.close();
@ -448,7 +463,6 @@ export default {
font-size: 14px; font-size: 14px;
height: 50px; height: 50px;
line-height: 50px; line-height: 50px;
color: #92A2AB;
border-bottom: 1px solid #e6ebf5; border-bottom: 1px solid #e6ebf5;
} }