|
|
@@ -36,6 +36,7 @@
|
|
|
height="314px"
|
|
|
width="100%"
|
|
|
style="padding: 0 16px 30px"
|
|
|
+ @row-click="handleViewDetail"
|
|
|
>
|
|
|
<template #riskLevel="{ row }">
|
|
|
<div class="risk-icon" :class="row.riskLevel"></div>
|
|
|
@@ -61,6 +62,7 @@
|
|
|
height="370px"
|
|
|
width="100%"
|
|
|
style="padding: 0 28px; margin-top: 36px"
|
|
|
+ @row-click="handleViewDetail"
|
|
|
>
|
|
|
<template #riskLevel="{ row }">
|
|
|
<div class="risk-icon" :class="row.riskLevel"></div>
|
|
|
@@ -92,6 +94,7 @@
|
|
|
height="560px"
|
|
|
width="100%"
|
|
|
style="padding: 0 28px; margin-top: 36px"
|
|
|
+ @row-click="handleViewDetail"
|
|
|
>
|
|
|
<template #riskLevel="{ row }">
|
|
|
<div class="risk-icon" :class="row.riskLevel"></div>
|
|
|
@@ -116,6 +119,7 @@
|
|
|
height="330px"
|
|
|
width="100%"
|
|
|
style="padding: 0 28px; margin-top: 36px"
|
|
|
+ @row-click="handleViewDetail"
|
|
|
>
|
|
|
<template #date="{ row }">
|
|
|
<div class="table-cell">{{ row.date }}</div>
|
|
|
@@ -143,6 +147,7 @@
|
|
|
height="328px"
|
|
|
width="100%"
|
|
|
style="padding: 0 16px; margin-top: 36px"
|
|
|
+ @row-click="handleViewDetail"
|
|
|
>
|
|
|
<template #riskLevel="{ row }">
|
|
|
<div class="risk-icon" :class="row.riskLevel"></div>
|
|
|
@@ -177,11 +182,18 @@
|
|
|
|
|
|
<!-- 底部 -->
|
|
|
<Footer />
|
|
|
+
|
|
|
+ <!-- 问题详情弹窗 -->
|
|
|
+ <ProblemDetail
|
|
|
+ :visible="showProblemDetail"
|
|
|
+ :row-data="selectedRow"
|
|
|
+ @close="showProblemDetail = false"
|
|
|
+ />
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
|
<script setup lang="ts">
|
|
|
-import { onMounted, onUnmounted } from 'vue'
|
|
|
+import { ref, onMounted, onUnmounted } from 'vue'
|
|
|
import 'swiper/css'
|
|
|
import Header from '../components/Header.vue'
|
|
|
import Footer from '../components/Footer.vue'
|
|
|
@@ -194,12 +206,21 @@ import HorizontalProgressChart from '../components/HorizontalProgressChart.vue'
|
|
|
import ImageCarousel from '../components/ImageCarousel.vue'
|
|
|
import RegionElderly from '../components/RegionElderly.vue'
|
|
|
import ElderlyInstitutionService from '../components/ElderlyInstitutionService.vue'
|
|
|
+import ProblemDetail from '../components/ProblemDetail.vue'
|
|
|
import { subsidyData } from '../data/subsidy'
|
|
|
import { foodData } from '../data/food'
|
|
|
import { housingData } from '../data/housing'
|
|
|
import { clothingData } from '../data/clothing'
|
|
|
import { dignityData } from '../data/dignity'
|
|
|
|
|
|
+const showProblemDetail = ref(false)
|
|
|
+const selectedRow = ref<any>(null)
|
|
|
+
|
|
|
+const handleViewDetail = (row: any) => {
|
|
|
+ selectedRow.value = row
|
|
|
+ showProblemDetail.value = true
|
|
|
+}
|
|
|
+
|
|
|
// 生命周期
|
|
|
onMounted(() => {
|
|
|
onUnmounted(() => {})
|