fix: 征求意见列表中来源、意见处理等字段根据状态反馈显示还是不显示
This commit is contained in:
@@ -163,11 +163,13 @@
|
||||
align="center"
|
||||
width="100"
|
||||
label="来源"
|
||||
v-if="showOther"
|
||||
>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="state"
|
||||
align="center"
|
||||
v-if="showOther"
|
||||
label="处理意见">
|
||||
<template slot-scope="scope">
|
||||
<div>{{ stateText(scope.row.state) }}</div>
|
||||
@@ -177,6 +179,7 @@
|
||||
prop="cause"
|
||||
align="center"
|
||||
label="原因"
|
||||
v-if="showOther"
|
||||
width="170"
|
||||
>
|
||||
</el-table-column>
|
||||
@@ -317,7 +320,8 @@ export default {
|
||||
endTime: ''
|
||||
}, // 详情数据
|
||||
ideaKey: false,
|
||||
refreshTimer: null
|
||||
refreshTimer: null,
|
||||
showOther:false
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
@@ -385,6 +389,12 @@ export default {
|
||||
_this: this
|
||||
}, res => {
|
||||
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);
|
||||
this.total = res.data.total
|
||||
this.spinShow = false
|
||||
|
||||
Reference in New Issue
Block a user