fix: 征求意见列表中来源、意见处理等字段根据状态反馈显示还是不显示

This commit is contained in:
zhangyanduan
2022-08-29 11:07:19 +08:00
parent 68041a564b
commit e31fdacb4c
@@ -163,11 +163,13 @@
align="center" align="center"
width="100" width="100"
label="来源" label="来源"
v-if="showOther"
> >
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="state" prop="state"
align="center" align="center"
v-if="showOther"
label="处理意见"> label="处理意见">
<template slot-scope="scope"> <template slot-scope="scope">
<div>{{ stateText(scope.row.state) }}</div> <div>{{ stateText(scope.row.state) }}</div>
@@ -177,6 +179,7 @@
prop="cause" prop="cause"
align="center" align="center"
label="原因" label="原因"
v-if="showOther"
width="170" width="170"
> >
</el-table-column> </el-table-column>
@@ -317,7 +320,8 @@ export default {
endTime: '' endTime: ''
}, // 详情数据 }, // 详情数据
ideaKey: false, ideaKey: false,
refreshTimer: null refreshTimer: null,
showOther:false
} }
}, },
methods: { methods: {
@@ -385,6 +389,12 @@ export default {
_this: this _this: this
}, res => { }, res => {
this.standinfoList = res.data.records this.standinfoList = res.data.records
if(this.standinfoList && this.standinfoList.length>0){
const oneData = this.standinfoList[0]
if(oneData.state && oneData != ''){
this.showOther =true
}
}
console.log(res.data.records); console.log(res.data.records);
this.total = res.data.total this.total = res.data.total
this.spinShow = false this.spinShow = false