修改响应情况弹窗数据展示。修改bug
This commit is contained in:
parent
037cd50871
commit
ce00b7c624
@ -357,7 +357,7 @@ const getAffectedObjectTypeId = (data) => {
|
||||
} else if (pointType === '路段') {
|
||||
// 更新基本信息 - 根据路段数据库字段映射
|
||||
basicInfo.value = {
|
||||
district: data.rawData.GL1_QXMC || '-', // 起点名称(区县)
|
||||
district: data.rawData.COUNTY_NAME || '-', // 起点名称(区县)
|
||||
level: data.rawData.GL1_FXDJ || '未评定', // 技术等级
|
||||
levelClass: data.rawData.GL1_FXDJ, // 一二级为一般,三四五级为重大
|
||||
roadCode: data.rawData.GL1_LXBH || '-', // 路线编号
|
||||
|
||||
@ -841,6 +841,8 @@ watch(
|
||||
watch(
|
||||
() => props.visible,
|
||||
(newVal) => {
|
||||
tableColumns.value = bridgeColumns
|
||||
|
||||
// if (newVal) {
|
||||
// filterForm.value = {
|
||||
// pointType: '',
|
||||
|
||||
@ -81,7 +81,7 @@
|
||||
<!-- 交通主管部门负责人列插槽 -->
|
||||
<template #trafficDept="{ row }">
|
||||
<div class="person-info">
|
||||
<div class="person-name center">
|
||||
<div class="person-name center" v-if="row.trafficDept.name != '-'">
|
||||
<span style="margin-right: 5px">{{ row.trafficDept.name }}</span>
|
||||
<img class="response-icon" :src="row.trafficDept.isResponded ? row.trafficDept.img : row.trafficDept.img" alt />
|
||||
</div>
|
||||
@ -92,7 +92,7 @@
|
||||
<!-- 公路机构责任人列插槽 -->
|
||||
<template #roadOrg="{ row }">
|
||||
<div class="person-info">
|
||||
<div class="person-name center">
|
||||
<div class="person-name center" v-if="row.roadOrg.name != '-'">
|
||||
<span style="margin-right: 5px">{{ row.roadOrg.name }}</span>
|
||||
<img :src="row.roadOrg.img" class="response-icon" alt="" />
|
||||
</div>
|
||||
@ -103,7 +103,7 @@
|
||||
<!-- 养护站负责人列插槽 -->
|
||||
<template #maintenance="{ row }">
|
||||
<div class="person-info">
|
||||
<div class="person-name center">
|
||||
<div class="person-name center" v-if="row.maintenance.name != '-'">
|
||||
<span style="margin-right: 5px">{{ row.maintenance.name }}</span>
|
||||
<img :src="row.maintenance.img" class="response-icon" alt="" />
|
||||
</div>
|
||||
@ -114,7 +114,7 @@
|
||||
<!-- 护路员列插槽 -->
|
||||
<template #roadKeeper="{ row }">
|
||||
<div class="person-info">
|
||||
<div class="person-name center">
|
||||
<div class="person-name center" v-if="row.roadKeeper.name != '-'">
|
||||
<span style="margin-right: 5px">{{ row.roadKeeper.name }}</span>
|
||||
<img :src="row.roadKeeper.img" class="response-icon" alt="" />
|
||||
</div>
|
||||
@ -122,6 +122,17 @@
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<!-- 路长列插槽 -->
|
||||
<template #generalStaff="{ row }">
|
||||
<div class="person-info">
|
||||
<div class="person-name center" v-if="row.generalStaff.name != '-'">
|
||||
<span style="margin-right: 5px">{{ row.generalStaff.name }}</span>
|
||||
<img :src="row.generalStaff.img" class="response-icon" alt="" />
|
||||
</div>
|
||||
<span class="person-phone">{{ row.generalStaff.phone }}</span>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<!-- 回应状态列插槽 -->
|
||||
<!-- <template #responseStatusData="{ row }">
|
||||
<span class="response-status" :class="row.responseClass">{{
|
||||
@ -322,6 +333,7 @@ const fetchData = async () => {
|
||||
const roadKeeperEvent = item.events?.find((e) => e.noticeRoles?.includes('护路员')) || {}
|
||||
const roadOrgEvent = item.events?.find((e) => e.noticeRoles?.includes('公路机构')) || {}
|
||||
const maintenanceEvent = item.events?.find((e) => e.noticeRoles?.includes('养护站')) || {}
|
||||
const generalStaffEvent = item.events?.find((e) => e.noticeRoles?.includes('路长')) || {}
|
||||
|
||||
// 获取最新的催告时间
|
||||
const lastNoticeTime = item.events?.[0]?.lastNoticeTime || ''
|
||||
@ -359,8 +371,10 @@ const fetchData = async () => {
|
||||
isResponded: roadKeeperEvent.replyState === 'read',
|
||||
},
|
||||
generalStaff: {
|
||||
name: item.GL1_QLGCS || '-',
|
||||
phone: item.GL1_QLGCSDH || '-',
|
||||
name: generalStaffEvent.noticeName || '-',
|
||||
phone: generalStaffEvent.noticePhone || '-',
|
||||
img: generalStaffEvent.replyState === 'read' ? respondedIcon : notRespondedIcon,
|
||||
isResponded: generalStaffEvent.replyState === 'read',
|
||||
},
|
||||
|
||||
urgeTime: {
|
||||
@ -369,7 +383,10 @@ const fetchData = async () => {
|
||||
},
|
||||
}
|
||||
})
|
||||
total.value = res.data.length
|
||||
total.value = res.total || 0
|
||||
}else{
|
||||
tableData.value = []
|
||||
total.value = 0
|
||||
}
|
||||
} catch (error) {
|
||||
console.error('获取通知实体数据失败:', error)
|
||||
@ -424,7 +441,7 @@ watch(
|
||||
cardType.value = '路段'
|
||||
currentPage.value = 1
|
||||
if (newVal) {
|
||||
// fetchData()
|
||||
fetchData()
|
||||
loadBarChartData()
|
||||
}
|
||||
},
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user