|
@@ -13,7 +13,7 @@
|
|
|
<!-- 政府部门 -->
|
|
|
<div class='government-department'>
|
|
|
<!-- <div class='government-department' v-if='item.department.indexOf("其他")'> -->
|
|
|
- <van-cell :title='item.department' is-link :value='`${item.count}`' @click='goToMattersFetail(item,1)' />
|
|
|
+ <van-cell :title='item.text' is-link :value='`${item.count}`' @click='goToMattersFetail(item)' />
|
|
|
</div>
|
|
|
<!-- 其他部门 -->
|
|
|
<!-- <div class='other-department' v-else>
|
|
@@ -163,7 +163,10 @@ export default {
|
|
|
}
|
|
|
if (item.otherdescription) {
|
|
|
let otherdescription = item.otherdescription.replace(/(\(无\)|\(无\))/g, '')
|
|
|
- otherdescription && (item.department = item.department + '-' + otherdescription)
|
|
|
+ otherdescription && (item.text = item.department + '-' + otherdescription)
|
|
|
+ otherdescription === '无' && (item.text = item.department)
|
|
|
+ } else {
|
|
|
+ item.text = item.department
|
|
|
}
|
|
|
})
|
|
|
// if (['其他部门', '其他', '其它'].includes(data[0].department)) {
|
|
@@ -253,15 +256,14 @@ export default {
|
|
|
},
|
|
|
/**
|
|
|
* 跳转 列表页面
|
|
|
- * @param { Number } 1:政府部门 2:其他部门
|
|
|
*/
|
|
|
- goToMattersFetail(data, type) {
|
|
|
+ goToMattersFetail(data) {
|
|
|
// console.log(data)
|
|
|
let { department, otherdescription, cnt } = data
|
|
|
console.log(data)
|
|
|
let params = {
|
|
|
- type, //部门类型
|
|
|
department, //部门名称
|
|
|
+ otherdescription,
|
|
|
size: cnt, //分页,按照cnt(count)字段
|
|
|
createdateStartDate: this.createdateStartDate,
|
|
|
createdateEndDate: this.createdateEndDate,
|
|
@@ -273,7 +275,7 @@ export default {
|
|
|
delete params.createdateEndDate
|
|
|
}
|
|
|
// 其他部门,传递 其他部门说明字段
|
|
|
- type == 2 && (params.otherdescription = otherdescription)
|
|
|
+ otherdescription && (params.otherdescription = otherdescription)
|
|
|
this.$router.push({ name: 'ComprehensiveMatterList', params })
|
|
|
},
|
|
|
},
|