|
@@ -12,25 +12,25 @@
|
|
|
<template #default="scope">
|
|
|
<img
|
|
|
v-if="scope.row.level === '1'"
|
|
|
- :src="'src/assets/images/disasterRiskMonitor/warningSituation/icon5.png'"
|
|
|
+ src="@/assets/images/disasterRiskMonitor/warningSituation/icon5.png"
|
|
|
alt="blue alert"
|
|
|
class="alert-icon"
|
|
|
/>
|
|
|
<img
|
|
|
v-else-if="scope.row.level === '2'"
|
|
|
- :src="'src/assets/images/disasterRiskMonitor/warningSituation/icon2.png'"
|
|
|
+ src="@/assets/images/disasterRiskMonitor/warningSituation/icon2.png"
|
|
|
alt="yellow alert"
|
|
|
class="alert-icon"
|
|
|
/>
|
|
|
<img
|
|
|
v-else-if="scope.row.level === '3'"
|
|
|
- :src="'src/assets/images/disasterRiskMonitor/warningSituation/icon3.png'"
|
|
|
+ src="@/assets/images/disasterRiskMonitor/warningSituation/icon3.png"
|
|
|
alt="orange alert"
|
|
|
class="alert-icon"
|
|
|
/>
|
|
|
<img
|
|
|
v-else-if="scope.row.level === '4'"
|
|
|
- :src="'src/assets/images/disasterRiskMonitor/warningSituation/icon4.png'"
|
|
|
+ src="@/assets/images/disasterRiskMonitor/warningSituation/icon4.png"
|
|
|
alt="red alert"
|
|
|
class="alert-icon"
|
|
|
/>
|
|
@@ -73,6 +73,7 @@
|
|
|
<script lang="ts" setup name="warningSituation">
|
|
|
import { onMounted, reactive, ref } from "vue";
|
|
|
import { ElTable, ElTableColumn } from "element-plus";
|
|
|
+import icon1 from '@/assets/images/disasterRiskMonitor/warningSituation/icon1.png'
|
|
|
|
|
|
const labelData = reactive({
|
|
|
type: "",
|
|
@@ -116,7 +117,7 @@ const getLabel = (data: string) => {
|
|
|
};
|
|
|
const initData = () => {
|
|
|
detailsData.value = {
|
|
|
- img: "src/assets/images/disasterRiskMonitor/warningSituation/icon1.png",
|
|
|
+ img: icon1,
|
|
|
dataList: [
|
|
|
{
|
|
|
area: "电白",
|