|
|
|
@ -4,7 +4,7 @@ |
|
|
|
|
|
|
|
<div class="detail-content"> |
|
|
|
<!-- 执法信息 --> |
|
|
|
<div class="info-card" v-if="lawDetail"> |
|
|
|
<div class="info-card" v-if="hasLawDetail"> |
|
|
|
<div class="card-title">执法信息</div> |
|
|
|
<div class="info-row"> |
|
|
|
<span class="info-label">执法单位</span> |
|
|
|
@ -270,6 +270,17 @@ const pageTitle = computed(() => { |
|
|
|
return map[category] || '执法详情'; |
|
|
|
}); |
|
|
|
|
|
|
|
const hasLawDetail = computed(() => { |
|
|
|
const detail = lawDetail.value; |
|
|
|
return detail && Object.keys(detail).length > 0 && ( |
|
|
|
detail.bureauDeptName || |
|
|
|
detail.lawEnforcer || |
|
|
|
detail.lawEnforceCategoryText || |
|
|
|
detail.lawEnforcementItemText || |
|
|
|
detail.enforcementTime |
|
|
|
); |
|
|
|
}); |
|
|
|
|
|
|
|
// 执法类别文字映射 |
|
|
|
const getCategoryText = (val) => { |
|
|
|
const map = { '1': '行政检查', '2': '行政处罚', '4': '行政强制' }; |
|
|
|
|