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

View File

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