Browse Source

[Feat 0000]预警监测全系页面样式优化升级

bobo04052021@163.com 2 months ago
parent
commit
d6375fd2ba
40 changed files with 3521 additions and 2095 deletions
  1. 5 7
      .vscode/launch.json
  2. 2 1
      pages/component/chart/line.vue
  3. 51 17
      pages/device/index.vue
  4. 128 63
      pages/history/history.vue
  5. 348 362
      pages/home/detail/autodoor/autodoor.vue
  6. 69 58
      pages/home/detail/fanmainAnimate/fanmainAnimate.vue
  7. 98 25
      pages/home/home.vue
  8. 205 213
      pages/warndata/components/device-detail.vue
  9. 158 56
      pages/warndata/components/dust-detail.vue
  10. 317 171
      pages/warndata/components/fire-detail-ckq.vue
  11. 382 142
      pages/warndata/components/fire-detail-mb.vue
  12. 309 274
      pages/warndata/components/fire-detail-out.vue
  13. 232 171
      pages/warndata/components/fire-detail-zb.vue
  14. 71 29
      pages/warndata/components/fire-detail.vue
  15. 231 50
      pages/warndata/components/gas-detail.vue
  16. 124 120
      pages/warndata/components/vent-detail.vue
  17. 399 329
      pages/warndata/components/warn-zb.vue
  18. 105 0
      pnpm-lock.yaml
  19. 19 7
      static/warndata/CO.svg
  20. 26 0
      static/warndata/O₂.svg
  21. 12 0
      static/warndata/cankaozhi.svg
  22. 9 0
      static/warndata/cedian-leixing.svg
  23. 17 0
      static/warndata/fenchen-nongdu.svg
  24. 24 0
      static/warndata/hui.svg
  25. 9 0
      static/warndata/jiawan.svg
  26. 18 0
      static/warndata/jin.svg
  27. 12 0
      static/warndata/meiziran-jieduan.svg
  28. 9 0
      static/warndata/nongdu.svg
  29. 9 0
      static/warndata/penwu-shuiya.svg
  30. 10 0
      static/warndata/pingjun-wendu.svg
  31. 9 0
      static/warndata/shijian.svg
  32. 12 0
      static/warndata/tiaojian.svg
  33. 12 0
      static/warndata/weizhi.svg
  34. 11 0
      static/warndata/wendu.svg
  35. 16 0
      static/warndata/xu.svg
  36. 12 0
      static/warndata/yujing-dengji.svg
  37. 12 0
      static/warndata/zhibiao.svg
  38. 9 0
      static/warndata/zhuangtai.svg
  39. 10 0
      static/warndata/zuidi-wendu.svg
  40. 10 0
      static/warndata/zuigao-wendu.svg

+ 5 - 7
.vscode/launch.json

@@ -1,15 +1,13 @@
 {
-  // 使用 IntelliSense 了解相关属性。 
-  // 悬停以查看现有属性的描述。
-  // 欲了解更多信息,请访问: https://go.microsoft.com/fwlink/?linkid=830387
   "version": "0.2.0",
   "configurations": [
     {
-      "type": "chrome",
+      "type": "uniapp-run",
       "request": "launch",
-      "name": "针对 localhost 启动 Chrome",
-      "url": "http://localhost:8080",
-      "webRoot": "${workspaceFolder}"
+      "name": "运行H5",
+      "platform": "h5",
+      "openBrowser": true,
+      "vueVersion": "v2"
     }
   ]
 }

+ 2 - 1
pages/component/chart/line.vue

@@ -1,6 +1,6 @@
 <template>
   <view style="width: 100%; height: 100%">
-    <qiun-data-charts type="line" :opts="opts" :chartData="chartData" />
+    <qiun-data-charts :type="type" :opts="mergedOpts" :chartData="chartData" />
   </view>
 </template>
 
@@ -10,6 +10,7 @@ export default {
   props: {
     chartData: { type: Object, default: () => ({}) }, // 图表数据
     chartOpts: { type: Object, default: () => ({}) }, // 图表配置项
+    type: { type: String, default: "line" }, // 图表类型:line、area 等
   },
   components: { qiunDataCharts },
   data() {

+ 51 - 17
pages/device/index.vue

@@ -1,9 +1,18 @@
 <template>
   <view class="devic-box">
     <!-- 建议放在外层 -->
-    <u-navbar :bgStatusImage="backPic0" :bgImage="backPic" title="设备监测" @leftClick="devicemenuShow"
-      :safeAreaInsetTop="true" :fixed="true" height="50px" bgColor="transparent" titleStyle="fw600 fs-18"
-      leftIconColor="#303133">
+    <u-navbar
+      :bgStatusImage="backPic0"
+      :bgImage="backPic"
+      title="设备监测"
+      @leftClick="devicemenuShow"
+      :safeAreaInsetTop="true"
+      :fixed="true"
+      height="50px"
+      bgColor="transparent"
+      titleStyle="fw600 fs-18"
+      leftIconColor="#303133"
+    >
       <view class="u-nav-slot" slot="left">
         <u-icon name="arrow-left" size="20"> </u-icon>
       </view>
@@ -14,20 +23,31 @@
       </view>
 
       <!-- <u-tabs v-if="!menushow" class="devic-box-tab" :current="PageCur" :list="tabList" @click="NavChange"></u-tabs> -->
-      <u-tabs v-if="!menushow" class="devic-box-tab" :current="pageCurNew" :list="tabListNew"
-        @click="NavChange"></u-tabs>
+      <u-tabs
+        v-if="!menushow"
+        class="devic-box-tab"
+        :current="pageCurNew"
+        :list="tabListNew"
+        @click="NavChange"
+      ></u-tabs>
       <view class="">
         <!-- <home cur="home" :showColum="showColum" v-if="pageCurNew == '0' && !menushow" :key="0" :deviceType="deviceType"
           @setMenushow="setMenushow"></home> -->
-        <home cur="home" :showColum="showColum" v-if="!menushow" :key="0" :deviceType="deviceType"
-          @setMenushow="setMenushow"></home>
+        <home
+          ref="homeRef"
+          cur="home"
+          :showColum="showColum"
+          v-if="!menushow"
+          :key="0"
+          :deviceType="deviceType"
+          @setMenushow="setMenushow"
+        ></home>
         <!-- <history :key="1" cur="history" :showColum="showColum" :deviceType="deviceType"
           v-if="PageCur == '1' && !menushow" @setMenushow="setMenushow"></history>
         <operation :key="2" :showColum="showColum" :deviceType="deviceType" cur="operation"
           v-if="PageCur == '2' && !menushow" @setMenushow="setMenushow"></operation> -->
       </view>
     </view>
-
   </view>
 </template>
 
@@ -45,7 +65,7 @@ export default {
       backPic0: "",
       backPic: "",
       // PageCur: "0",
-      pageCurNew: '',
+      pageCurNew: "",
       showColum: {},
       menushow: true,
       deviceType: "",
@@ -69,6 +89,15 @@ export default {
   onLoad: function () {
     // this.PageCur = "0";
   },
+  onShow() {
+    // 从设备详情页返回时,恢复子组件的轮询并立即刷新数据
+    this.$nextTick(() => {
+      const homeRef = this.$refs.homeRef;
+      if (homeRef && typeof homeRef.restartTimer === "function") {
+        homeRef.restartTimer();
+      }
+    });
+  },
   methods: {
     NavChange: function (item) {
       console.log("item", item);
@@ -81,16 +110,21 @@ export default {
     },
     menuClick(params) {
       debugger;
-      let data = params.menu.map((item) => item.children).flatMap((i) => i).map((v, index) => {
-        return {
-          name: v.itemText,
-          id: v.itemValue,
-          index: index,
-        };
-      });
+      let data = params.menu
+        .map((item) => item.children)
+        .flatMap((i) => i)
+        .map((v, index) => {
+          return {
+            name: v.itemText,
+            id: v.itemValue,
+            index: index,
+          };
+        });
       this.deviceType = params.id;
       this.tabListNew = data;
-      this.pageCurNew = this.tabListNew.find(item => item.id == params.id).index;
+      this.pageCurNew = this.tabListNew.find(
+        (item) => item.id == params.id
+      ).index;
       console.log("data", data);
       this.menushow = false;
     },

+ 128 - 63
pages/history/history.vue

@@ -18,45 +18,35 @@
     <!-- 历史数据列表页 -->
     <view v-if="!menushow" class="main">
       <view class="u-page">
-        <div class="flcard">
-          <div class="btns" style="margin-top: 10px">
-            <u-button
-              type="normal"
-              class="u-button"
-              :text="deviceName ? deviceName : '选择设备'"
-              @click="deviceShow = true"
-            ></u-button>
-            <u-button
-              type="normal"
-              class="u-button"
-              :text="lable ? lable : '间隔时间'"
-              @click="show = true"
-            ></u-button>
-          </div>
-          <div class="btns" style="margin-top: 10px">
+        <!-- 一、查询条件:上为时间查询,下为选择设备 / 间隔时间 / 查询 -->
+        <view class="query-card">
+          <!-- 时间查询 -->
+          <view class="query-row">
             <uni-datetime-picker
-              class="u-button"
-              :show="dataShow"
+              class="query-item"
               mode="datetime"
-              @cancel="dataShow = false"
               @confirm="selectStartTime"
               v-model="StartTime"
             ></uni-datetime-picker>
             <uni-datetime-picker
-              class="u-button"
-              :show="dataShow1"
+              class="query-item"
               mode="datetime"
-              @cancel="dataShow1 = false"
               @confirm="selectEndTime"
               v-model="EndTime"
             ></uni-datetime-picker>
-            <u-button
-              type="primary"
-              text="查询"
-              @click="checkHistory"
-              class="btn"
-            ></u-button>
-          </div>
+          </view>
+          <!-- 选择设备 / 间隔时间 / 查询 -->
+          <view class="query-row">
+            <view class="query-btn" @click="deviceShow = true">
+              {{ deviceName ? deviceName : "选择设备" }}
+            </view>
+            <view class="query-btn" @click="show = true">
+              {{ lable ? lable : "间隔时间" }}
+            </view>
+            <view class="query-btn query-btn-query" @click="checkHistory">
+              查询
+            </view>
+          </view>
           <u-picker
             :show="deviceShow"
             :columns="[devices]"
@@ -79,11 +69,8 @@
             keyName="label"
             @confirm="selectSkipTime"
           ></u-picker>
-        </div>
-        <u-list
-          :class="{ emptyhistory: historyData.length === 0 }"
-          class="historycontainer"
-        >
+        </view>
+        <u-list class="historycontainer">
           <template v-if="historyData.length > 0">
             <u-list-item
               class="itemback"
@@ -204,7 +191,15 @@
             </u-list-item>
           </template>
           <template v-else>
-            <div class="empty-message">数据为空</div>
+            <!-- 空数据状态 -->
+            <view class="empty-box">
+              <image
+                class="empty-img"
+                src="/static/empty.png"
+                mode="widthFix"
+              ></image>
+              <text class="empty-text">数据为空</text>
+            </view>
           </template>
         </u-list>
       </view>
@@ -608,15 +603,86 @@ export default {
 </script>
 
 <style lang="scss" scoped>
-.btn {
-  width: 80px;
-  background: linear-gradient(to right, #338afe, #07b4ff, #338afe) !important;
-  border-radius: 5px;
+.container {
+  padding: 0 !important;
 }
-.u-button {
-  border-radius: 5px;
-  border: 1px solid #2299fe;
-  font-weight: bold;
+.u-page {
+  padding: 20rpx 0;
+  box-sizing: border-box;
+}
+
+/* ===== 一、查询条件 ===== */
+.query-card {
+  padding: 24rpx;
+  background-color: #ffffff;
+  border-radius: 16rpx;
+  box-shadow: 0 4rpx 16rpx rgba(41, 121, 255, 0.06);
+  margin-bottom: 20rpx;
+}
+.query-row {
+  display: flex;
+  align-items: center;
+}
+.query-row + .query-row {
+  margin-top: 20rpx;
+}
+.query-row > * {
+  flex: 1;
+  min-width: 0;
+  margin-right: 20rpx;
+}
+.query-row > *:last-child {
+  margin-right: 0;
+}
+
+.query-item {
+  flex: 1;
+  min-width: 0;
+}
+::v-deep .query-item .uni-date-editor--x {
+  height: 72rpx;
+  padding: 0 12rpx;
+  border: none;
+  border-radius: 12rpx;
+  background: #0068fb;
+  justify-content: center;
+}
+::v-deep .query-item .uni-date-x {
+  height: 72rpx;
+  background-color: transparent;
+  font-size: 26rpx;
+}
+::v-deep .query-item .icon-calendar,
+::v-deep .query-item .uni-date__icon-clear {
+  display: none;
+}
+::v-deep .query-item .uni-date__x-input {
+  flex: none;
+  height: 72rpx;
+  line-height: 72rpx;
+  padding: 0;
+  color: #ffffff;
+  font-size: 26rpx;
+  font-weight: 500;
+  text-align: center;
+}
+
+/* 选择设备 / 间隔时间 / 查询 */
+.query-btn {
+  height: 72rpx;
+  line-height: 72rpx;
+  padding: 0 8rpx;
+  text-align: center;
+  color: #ffffff;
+  font-size: 28rpx;
+  border-radius: 12rpx;
+  background: #0068fb;
+  overflow: hidden;
+  white-space: nowrap;
+  text-overflow: ellipsis;
+}
+.query-btn-query {
+  font-weight: 600;
 }
 .time-bg {
   background-color: #cce6fb;
@@ -630,17 +696,28 @@ export default {
   text-align: center;
   color: #2591eb;
 }
-.emptyhistory {
-  background: url("/static/empty.png") no-repeat;
-  background-size: 100% 50%;
+/* ===== 二、数据区(与查询条件分为两部分展示) ===== */
+.historycontainer {
+  background-color: #ffffff;
+  border-radius: 16rpx;
+  box-shadow: 0 4rpx 16rpx rgba(41, 121, 255, 0.06);
+  overflow: hidden;
 }
-.empty-message {
+/* 空数据状态 */
+.empty-box {
   display: flex;
-  justify-content: center;
+  flex-direction: column;
   align-items: center;
-  font-size: 16px;
-  line-height: 80vh;
-  color: #333;
+  padding: 60rpx 40rpx 40rpx;
+}
+.empty-img {
+  width: 60%;
+}
+.empty-text {
+  margin-top: 30rpx;
+  font-size: 32rpx;
+  font-weight: bold;
+  color: #000000;
 }
 .content {
   width: 100%;
@@ -659,18 +736,6 @@ export default {
   height: calc(100% - 40rpx);
   width: 100%;
 }
-.btns {
-  display: flex;
-}
-.btns > * {
-  margin-right: 10px; /* 根据需要调整间距大小 */
-}
-
-/* 去除最后一个按钮的右边距 */
-.btns > *:last-child {
-  margin-right: 0;
-}
-
 .flcard {
   padding: 20rpx;
   background-color: #ffffff;

+ 348 - 362
pages/home/detail/autodoor/autodoor.vue

@@ -1,18 +1,35 @@
 <template>
   <view class="page-wrap">
     <!-- 建议放在外层 -->
-    <u-navbar :title="name" @leftClick="backPage" bgColor="transparent" :bgImage="backPic" :bgStatusImage="backPic0"
-      :safeAreaInsetTop="true" titleStyle="fw600 fs-18" height="50px" leftIconColor="#303133">
+    <u-navbar
+      :title="name"
+      @leftClick="backPage"
+      bgColor="transparent"
+      :bgImage="backPic"
+      :bgStatusImage="backPic0"
+      :safeAreaInsetTop="true"
+      titleStyle="fw600 fs-18"
+      height="50px"
+      leftIconColor="#303133"
+    >
       <view class="u-nav-slot" slot="left">
         <u-icon name="arrow-left" size="20" color="#303133"> </u-icon>
       </view>
     </u-navbar>
     <!-- 实时 / 历史 切换(仅样式分区,历史沿用空态提示) -->
     <view class="detail-tabs">
-      <view class="detail-tab" :class="{ active: detailTab === 0 }" @tap="detailTab = 0">
+      <view
+        class="detail-tab"
+        :class="{ active: detailTab === 0 }"
+        @tap="detailTab = 0"
+      >
         <text>实时数据</text>
       </view>
-      <view class="detail-tab" :class="{ active: detailTab === 1 }" @tap="detailTab = 1">
+      <view
+        class="detail-tab"
+        :class="{ active: detailTab === 1 }"
+        @tap="detailTab = 1"
+      >
         <text>历史数据</text>
       </view>
     </view>
@@ -22,386 +39,302 @@
           <!-- 控制按钮 -->
           <view class="flcard control-card" v-if="TabCur == 'gate'">
             <view class="btn-row">
-              <view class="ctrl-btn" @click="showPasswordDialog('frontGateOpen_S')">打开前门</view>
-              <view class="ctrl-btn" @click="showPasswordDialog('frontGateClose_S')">关闭前门</view>
-              <view class="ctrl-btn" @click="showPasswordDialog('rearGateOpen_S')">打开后门</view>
-              <view class="ctrl-btn" @click="showPasswordDialog('rearGateClose_S')">关闭后门</view>
+              <view
+                class="ctrl-btn"
+                @click="showPasswordDialog('frontGateOpen_S')"
+                >打开前门</view
+              >
+              <view
+                class="ctrl-btn"
+                @click="showPasswordDialog('frontGateClose_S')"
+                >关闭前门</view
+              >
+              <view
+                class="ctrl-btn"
+                @click="showPasswordDialog('rearGateOpen_S')"
+                >打开后门</view
+              >
+              <view
+                class="ctrl-btn"
+                @click="showPasswordDialog('rearGateClose_S')"
+                >关闭后门</view
+              >
             </view>
             <view class="btn-row btn-row-second">
-              <view class="ctrl-btn ctrl-btn-wide" @click="showPasswordDialog('sameTimeOpen')">打开前后门</view>
-              <view class="ctrl-btn ctrl-btn-wide" @click="showPasswordDialog('sameTimeClose')">关闭前后门</view>
+              <view
+                class="ctrl-btn ctrl-btn-wide"
+                @click="showPasswordDialog('sameTimeOpen')"
+                >打开前后门</view
+              >
+              <view
+                class="ctrl-btn ctrl-btn-wide"
+                @click="showPasswordDialog('sameTimeClose')"
+                >关闭前后门</view
+              >
               <view class="mode-group">
                 <text class="mode-label">控制模式:</text>
                 <view class="mode-item" @tap="controlMode = 'local'">
-                  <view class="radio" :class="{ checked: controlMode === 'local' }"></view>
+                  <view
+                    class="radio"
+                    :class="{ checked: controlMode === 'local' }"
+                  ></view>
                   <text>就地</text>
                 </view>
                 <view class="mode-item" @tap="controlMode = 'remote'">
-                  <view class="radio" :class="{ checked: controlMode === 'remote' }"></view>
+                  <view
+                    class="radio"
+                    :class="{ checked: controlMode === 'remote' }"
+                  ></view>
                   <text>远程</text>
                 </view>
               </view>
             </view>
           </view>
-          <view class="flcard control-card" v-if="TabCur == 'window' && nwindownum == 1">
+          <view
+            class="flcard control-card"
+            v-if="TabCur == 'window' && nwindownum == 1"
+          >
             <view class="btn-row">
-              <view class="ctrl-btn ctrl-btn-wide" @click="showPasswordDialog('frontSetValue')">设定面积</view>
+              <view
+                class="ctrl-btn ctrl-btn-wide"
+                @click="showPasswordDialog('frontSetValue')"
+                >设定面积</view
+              >
             </view>
           </view>
-          <view class="flcard control-card" v-if="TabCur == 'window' && nwindownum == 2">
+          <view
+            class="flcard control-card"
+            v-if="TabCur == 'window' && nwindownum == 2"
+          >
             <view class="btn-row">
-              <view class="ctrl-btn ctrl-btn-wide" @click="showPasswordDialog('frontSetValue')">设定前窗面积</view>
-              <view class="ctrl-btn ctrl-btn-wide" @click="showPasswordDialog('rearSetValue')">设定后窗面积</view>
+              <view
+                class="ctrl-btn ctrl-btn-wide"
+                @click="showPasswordDialog('frontSetValue')"
+                >设定前窗面积</view
+              >
+              <view
+                class="ctrl-btn ctrl-btn-wide"
+                @click="showPasswordDialog('rearSetValue')"
+                >设定后窗面积</view
+              >
             </view>
           </view>
 
           <view class="flcard deviceback" v-if="TabCur == 'gate'">
-            <doorAnimate :gatestate1="frontGateStatus" :gatestate2="midGateStatus" :gatestate3="rearGateStatus"
-              :height="height" :doorcount="ndoorcount">
+            <doorAnimate
+              :gatestate1="frontGateStatus"
+              :gatestate2="midGateStatus"
+              :gatestate3="rearGateStatus"
+              :height="height"
+              :doorcount="ndoorcount"
+            >
             </doorAnimate>
           </view>
           <view class="flcard deviceback" v-if="TabCur == 'windrect'">
-            <windrectAnimate :state="state" :title="title" :height="height" :type="deviceType">
+            <windrectAnimate
+              :state="state"
+              :title="title"
+              :height="height"
+              :type="deviceType"
+            >
             </windrectAnimate>
           </view>
           <view class="flcard deviceback" v-if="TabCur == 'fanlocal'">
-            <fanlocalAnimate :fan1State="fan1State" :fan2State="fan2State" :title="title" :height="height">
+            <fanlocalAnimate
+              :fan1State="fan1State"
+              :fan2State="fan2State"
+              :title="title"
+              :height="height"
+            >
             </fanlocalAnimate>
           </view>
           <view class="flcard deviceback" v-if="TabCur == 'fanmain'">
-            <fanmainAnimate ref="fanpage" style="width: 100%" :door1="door1" :topdoor1="topdoor1" :fundoor1="fundoor1"
-              :door2="door2" :topdoor2="topdoor2" :fundoor2="fundoor2" :nowfengji="qidongfengji"></fanmainAnimate>
+            <fanmainAnimate
+              ref="fanpage"
+              style="width: 100%"
+              :door1="door1"
+              :topdoor1="topdoor1"
+              :fundoor1="fundoor1"
+              :door2="door2"
+              :topdoor2="topdoor2"
+              :fundoor2="fundoor2"
+              :nowfengji="qidongfengji"
+            ></fanmainAnimate>
           </view>
           <view class="flcard deviceback" v-if="TabCur == 'window'">
-            <windowAnimate :windowAngle="windowAngle" :windowAngle1="windowAngle1" :height="height"
-              :windowcount="nwindownum"></windowAnimate>
+            <windowAnimate
+              :windowAngle="windowAngle"
+              :windowAngle1="windowAngle1"
+              :height="height"
+              :windowcount="nwindownum"
+            ></windowAnimate>
           </view>
           <view v-if="cameraList.length > 0">
-            <view class="flcard deviceback" v-for="(item, index) in cameraList" :key="index">
-              <yingbing-video v-if="item.devicekind == 'flv'" style="width: 100%; height: 250px" :src="item.addr"
-                autoplay muted></yingbing-video>
-              <video v-else style="width: 100%; height: 250px" id="myVideo" controls show-loading autoplay
-                class="r-video" :vslide-gesture="true" :vslide-gesture-in-fullscreen="true" :src="item.addr"></video>
+            <view
+              class="flcard deviceback"
+              v-for="(item, index) in cameraList"
+              :key="index"
+            >
+              <yingbing-video
+                v-if="item.devicekind == 'flv'"
+                style="width: 100%; height: 250px"
+                :src="item.addr"
+                autoplay
+                muted
+              ></yingbing-video>
+              <video
+                v-else
+                style="width: 100%; height: 250px"
+                id="myVideo"
+                controls
+                show-loading
+                autoplay
+                class="r-video"
+                :vslide-gesture="true"
+                :vslide-gesture-in-fullscreen="true"
+                :src="item.addr"
+              ></video>
             </view>
           </view>
           <view class="flcard data-card-wrap">
-            <view class="flex-container data-grid" v-if="TabCur != 'fanlocal' && TabCur != 'fanmain'">
-              <view class="datacard" v-for="(item, index) in deviceShowList" :key="index" v-show="item.appShow == 1 &&
-                item.monitorcode != 'strinstallpos' &&
-                item.monitorcode != 'netStatus' &&
-                item.monitorcode != 'warnFlag' &&
-                item.monitorcode != ''
-                ">
+            <view
+              class="flex-container data-grid"
+              v-if="TabCur != 'fanlocal' && TabCur != 'fanmain'"
+            >
+              <view
+                class="datacard"
+                v-for="(item, index) in deviceShowList"
+                :key="index"
+                v-show="
+                  item.appShow == 1 &&
+                  item.monitorcode != 'strinstallpos' &&
+                  item.monitorcode != 'netStatus' &&
+                  item.monitorcode != 'warnFlag' &&
+                  item.monitorcode != ''
+                "
+              >
                 <view class="data-icon">
-                  <u-icon :name="getFieldIcon(item.monitorcode)" color="#ffffff" size="14"></u-icon>
+                  <u-icon
+                    :name="getFieldIcon(item.monitorcode)"
+                    color="#ffffff"
+                    size="14"
+                  ></u-icon>
                 </view>
                 <view class="data-text">
-                  <text class="data-value" :class="{ 'data-value-error': isErrorValue(item) }">{{ getMonitorValue(item)
-                  }}</text>
+                  <text
+                    class="data-value"
+                    :class="{ 'data-value-error': isErrorValue(item) }"
+                    >{{ getMonitorValue(item) }}</text
+                  >
+                  <text class="data-label">{{ item.des }}</text>
+                </view>
+              </view>
+            </view>
+            <view
+              class="flex-container data-grid"
+              v-else-if="TabCur == 'fanmain' || TabCur == 'fanlocal'"
+            >
+              <view class="fan-group-title">主机</view>
+              <view
+                class="datacard"
+                v-for="(item, index) in deviceShowList1"
+                :key="'host-' + index"
+                v-show="item.appShow == 1"
+              >
+                <view class="data-icon">
+                  <u-icon
+                    :name="getFieldIcon(item.monitorcode)"
+                    color="#ffffff"
+                    size="14"
+                  ></u-icon>
+                </view>
+                <view class="data-text">
+                  <text
+                    class="data-value"
+                    :class="{ 'data-value-error': isFanMonitorError(item, 1) }"
+                    >{{ getFanMonitorValue(item, 1) }}</text
+                  >
+                  <text class="data-label">{{ item.des }}</text>
+                </view>
+              </view>
+              <view class="fan-group-title">备机</view>
+              <view
+                class="datacard"
+                v-for="(item, index) in deviceShowList1"
+                :key="'backup-' + index"
+                v-show="item.appShow == 1"
+              >
+                <view class="data-icon">
+                  <u-icon
+                    :name="getFieldIcon(item.monitorcode)"
+                    color="#ffffff"
+                    size="14"
+                  ></u-icon>
+                </view>
+                <view class="data-text">
+                  <text
+                    class="data-value"
+                    :class="{ 'data-value-error': isFanMonitorError(item, 2) }"
+                    >{{ getFanMonitorValue(item, 2) }}</text
+                  >
                   <text class="data-label">{{ item.des }}</text>
                 </view>
               </view>
             </view>
-            <div class="flex-container" v-else-if="TabCur == 'fanmain'">
-              <div class="monitor-content">
-                <div class="zhuji">
-                  <div>主机</div>
-                  <div class="itemback" v-for="(item, index) in deviceShowList1" :key="index"
-                    v-show="item.appShow == 1">
-                    <div class="datacardtime" v-if="item.monitorcode == 'readTime' && item.datatype == 1">
-                      <view class="demo-layout bg-purple-light" style="padding: 20rpx; color: #3787fe">
-                        {{ readTime }}
-                      </view>
-                    </div>
-                    <div class="datacard" v-if="item.monitorcode !== 'readTime'">
-                      <div class="TabCurCSS">
-                        <view v-if="
-                          item.monitorcode == 'netStatus' && item.datatype == 1
-                        " class="demo-layout bg-purple-light" style="margin-top: 60rpx; color: #3787fe">
-                          {{ doorNetStatus == "1" ? "正常" : "异常" }}
-                        </view>
-                        <view v-else-if="item.datatype == 1" class="demo-layout bg-purple-light"
-                          style="margin-top: 60rpx; color: #3787fe">
-                          {{
-                            tableData[
-                              item.monitorcode.startsWith("Fan")
-                                ? item.monitorcode.replace(/^Fan/, "Fan1")
-                                : item.monitorcode
-                            ] !== undefined &&
-                              tableData[
-                              item.monitorcode.startsWith("Fan")
-                                ? item.monitorcode.replace(/^Fan/, "Fan1")
-                                : item.monitorcode
-                              ] !== null
-                              ? tableData[
-                              item.monitorcode.startsWith("Fan")
-                                ? item.monitorcode.replace(/^Fan/, "Fan1")
-                                : item.monitorcode
-                              ]
-                              : "-"
-                          }}
-                        </view>
-                        <view v-else-if="item.datatype == 2" class="demo-layout bg-purple-light"
-                          style="margin-top: 60rpx; color: #3787fe">
-                          {{
-                            tableData[
-                              item.monitorcode.startsWith("Fan")
-                                ? item.monitorcode.replace(/^Fan/, "Fan1")
-                                : item.monitorcode
-                            ] !== undefined &&
-                              tableData[
-                              item.monitorcode.startsWith("Fan")
-                                ? item.monitorcode.replace(/^Fan/, "Fan1")
-                                : item.monitorcode
-                              ] !== null
-                              ? tableData[
-                              item.monitorcode.startsWith("Fan")
-                                ? item.monitorcode.replace(/^Fan/, "Fan1")
-                                : item.monitorcode
-                              ]
-                              : "-"
-                          }}
-                        </view>
-                        <div class="spacer"></div>
-                        <!-- 间距 -->
-                        <view class="demo-layout bg-purple-light" style="color: #677799">
-                          {{ item.des }}
-                        </view>
-                      </div>
-                    </div>
-                  </div>
-                </div>
-                <div class="beiji">
-                  <div>备机</div>
-                  <div class="itemback" v-for="(item, index) in deviceShowList1" :key="index"
-                    v-show="item.appShow == 1">
-                    <div class="datacardtime" v-if="item.monitorcode == 'readTime' && item.datatype == 1">
-                      <view class="demo-layout bg-purple-light" style="padding: 20rpx; color: #3787fe">
-                        {{ readTime }}
-                      </view>
-                    </div>
-                    <div class="datacard" v-if="item.monitorcode !== 'readTime'">
-                      <div class="TabCurCSS">
-                        <view v-if="
-                          item.monitorcode == 'netStatus' && item.datatype == 1
-                        " class="demo-layout bg-purple-light" style="margin-top: 60rpx; color: #3787fe">
-                          {{ doorNetStatus == "1" ? "正常" : "异常" }}
-                        </view>
-                        <view v-else-if="item.datatype == 1" class="demo-layout bg-purple-light"
-                          style="margin-top: 60rpx; color: #3787fe">
-                          {{
-                            tableData[
-                              item.monitorcode.startsWith("Fan")
-                                ? item.monitorcode.replace(/^Fan/, "Fan2")
-                                : item.monitorcode
-                            ] !== undefined &&
-                              tableData[
-                              item.monitorcode.startsWith("Fan")
-                                ? item.monitorcode.replace(/^Fan/, "Fan2")
-                                : item.monitorcode
-                              ] !== null
-                              ? tableData[
-                              item.monitorcode.startsWith("Fan")
-                                ? item.monitorcode.replace(/^Fan/, "Fan2")
-                                : item.monitorcode
-                              ]
-                              : "-"
-                          }}
-                        </view>
-                        <view v-else-if="item.datatype == 2" class="demo-layout bg-purple-light"
-                          style="margin-top: 60rpx; color: #3787fe">
-                          {{
-                            tableData[
-                              item.monitorcode.startsWith("Fan")
-                                ? item.monitorcode.replace(/^Fan/, "Fan2")
-                                : item.monitorcode
-                            ] !== undefined &&
-                              tableData[
-                              item.monitorcode.startsWith("Fan")
-                                ? item.monitorcode.replace(/^Fan/, "Fan2")
-                                : item.monitorcode
-                              ] !== null
-                              ? tableData[
-                              item.monitorcode.startsWith("Fan")
-                                ? item.monitorcode.replace(/^Fan/, "Fan2")
-                                : item.monitorcode
-                              ]
-                              : "-"
-                          }}
-                        </view>
-                        <div class="spacer"></div>
-                        <!-- 间距 -->
-                        <view class="demo-layout bg-purple-light" style="color: #677799">
-                          {{ item.des }}
-                        </view>
-                      </div>
-                    </div>
-                  </div>
-                </div>
-              </div>
-            </div>
-            <div class="flex-container" v-else-if="TabCur == 'fanlocal'">
-              <div class="monitor-content">
-                <div class="zhuji">
-                  <div>主机</div>
-                  <div class="itemback" v-for="(item, index) in deviceShowList1" :key="index"
-                    v-show="item.appShow == 1">
-                    <div class="datacardtime" v-if="item.monitorcode == 'readTime' && item.datatype == 1">
-                      <view class="demo-layout bg-purple-light" style="padding: 20rpx; color: #3787fe">
-                        {{ readTime }}
-                      </view>
-                    </div>
-                    <div class="datacard" v-if="item.monitorcode !== 'readTime'">
-                      <div class="TabCurCSS">
-                        <view v-if="
-                          item.monitorcode == 'netStatus' && item.datatype == 1
-                        " class="demo-layout bg-purple-light" style="margin-top: 60rpx; color: #3787fe">
-                          {{ doorNetStatus == "1" ? "正常" : "异常" }}
-                        </view>
-                        <view v-else-if="item.datatype == 1" class="demo-layout bg-purple-light"
-                          style="margin-top: 60rpx; color: #3787fe">
-                          {{
-                            tableData[
-                              item.monitorcode.startsWith("Fan")
-                                ? item.monitorcode.replace(/^Fan/, "Fan1")
-                                : item.monitorcode
-                            ] !== undefined &&
-                              tableData[
-                              item.monitorcode.startsWith("Fan")
-                                ? item.monitorcode.replace(/^Fan/, "Fan1")
-                                : item.monitorcode
-                              ] !== null
-                              ? tableData[
-                              item.monitorcode.startsWith("Fan")
-                                ? item.monitorcode.replace(/^Fan/, "Fan1")
-                                : item.monitorcode
-                              ]
-                              : "-"
-                          }}
-                        </view>
-                        <view v-else-if="item.datatype == 2" class="demo-layout bg-purple-light"
-                          style="margin-top: 60rpx; color: #3787fe">
-                          {{
-                            tableData[
-                              item.monitorcode.startsWith("Fan")
-                                ? item.monitorcode.replace(/^Fan/, "Fan1")
-                                : item.monitorcode
-                            ] !== undefined &&
-                              tableData[
-                              item.monitorcode.startsWith("Fan")
-                                ? item.monitorcode.replace(/^Fan/, "Fan1")
-                                : item.monitorcode
-                              ] !== null
-                              ? tableData[
-                              item.monitorcode.startsWith("Fan")
-                                ? item.monitorcode.replace(/^Fan/, "Fan1")
-                                : item.monitorcode
-                              ]
-                              : "-"
-                          }}
-                        </view>
-                        <div class="spacer"></div>
-                        <!-- 间距 -->
-                        <view class="demo-layout bg-purple-light" style="color: #677799">
-                          {{ item.des }}
-                        </view>
-                      </div>
-                    </div>
-                  </div>
-                </div>
-                <div class="beiji">
-                  <div>备机</div>
-                  <div class="itemback" v-for="(item, index) in deviceShowList1" :key="index"
-                    v-show="item.appShow == 1">
-                    <div class="datacardtime" v-if="item.monitorcode == 'readTime' && item.datatype == 1">
-                      <view class="demo-layout bg-purple-light" style="padding: 20rpx; color: #3787fe">
-                        {{ readTime }}
-                      </view>
-                    </div>
-                    <div class="datacard" v-if="item.monitorcode !== 'readTime'">
-                      <div class="TabCurCSS">
-                        <view v-if="
-                          item.monitorcode == 'netStatus' && item.datatype == 1
-                        " class="demo-layout bg-purple-light" style="margin-top: 60rpx; color: #3787fe">
-                          {{ doorNetStatus == "1" ? "正常" : "异常" }}
-                        </view>
-                        <view v-else-if="item.datatype == 1" class="demo-layout bg-purple-light"
-                          style="margin-top: 60rpx; color: #3787fe">
-                          {{
-                            tableData[
-                              item.monitorcode.startsWith("Fan")
-                                ? item.monitorcode.replace(/^Fan/, "Fan2")
-                                : item.monitorcode
-                            ] !== undefined &&
-                              tableData[
-                              item.monitorcode.startsWith("Fan")
-                                ? item.monitorcode.replace(/^Fan/, "Fan2")
-                                : item.monitorcode
-                              ] !== null
-                              ? tableData[
-                              item.monitorcode.startsWith("Fan")
-                                ? item.monitorcode.replace(/^Fan/, "Fan2")
-                                : item.monitorcode
-                              ]
-                              : "-"
-                          }}
-                        </view>
-                        <view v-else-if="item.datatype == 2" class="demo-layout bg-purple-light"
-                          style="margin-top: 60rpx; color: #3787fe">
-                          {{
-                            tableData[
-                              item.monitorcode.startsWith("Fan")
-                                ? item.monitorcode.replace(/^Fan/, "Fan2")
-                                : item.monitorcode
-                            ] !== undefined &&
-                              tableData[
-                              item.monitorcode.startsWith("Fan")
-                                ? item.monitorcode.replace(/^Fan/, "Fan2")
-                                : item.monitorcode
-                              ] !== null
-                              ? tableData[
-                              item.monitorcode.startsWith("Fan")
-                                ? item.monitorcode.replace(/^Fan/, "Fan2")
-                                : item.monitorcode
-                              ]
-                              : "-"
-                          }}
-                        </view>
-                        <div class="spacer"></div>
-                        <!-- 间距 -->
-                        <view class="demo-layout bg-purple-light" style="color: #677799">
-                          {{ item.des }}
-                        </view>
-                      </div>
-                    </div>
-                  </div>
-                </div>
-              </div>
-            </div>
           </view>
         </view>
-        <!-- 历史数据占位:跳转回设备页历史 Tab 由上层承接,此处仅做界面分区 -->
-        <view v-show="detailTab === 1" class="history-placeholder flcard">
-          <history :key="1" cur="history" :showColum="showColum" :deviceType="deviceTypeHis"></history>
+        <!-- 历史数据 -->
+        <view v-show="detailTab === 1">
+          <history
+            :key="1"
+            cur="history"
+            :showColum="showColum"
+            :deviceType="deviceTypeHis"
+          ></history>
         </view>
       </view>
     </view>
     <u-popup :show="show" mode="bottom" :safeAreaInsetBottom="false">
       <div class="containers">
         <view class="passWordName">
-          <view class="title" style="margin-top: 15px" v-if="this.TabCur == 'window'">风窗面积</view>
-          <u-input class="passArea" style="margin-top: 15px; border-color: #2a94ff" v-model="windowArea" type="text"
-            v-if="this.TabCur == 'window'"></u-input>
+          <view
+            class="title"
+            style="margin-top: 15px"
+            v-if="this.TabCur == 'window'"
+            >风窗面积</view
+          >
+          <u-input
+            class="passArea"
+            style="margin-top: 15px; border-color: #2a94ff"
+            v-model="windowArea"
+            type="text"
+            v-if="this.TabCur == 'window'"
+          ></u-input>
         </view>
         <view class="passWordInput">
           <view style="margin-top: 15px" class="title">输入密码</view>
-          <u-input style="margin-top: 15px; border-color: #2a94ff" v-model="password" type="password"></u-input>
+          <u-input
+            style="margin-top: 15px; border-color: #2a94ff"
+            v-model="password"
+            type="password"
+          ></u-input>
         </view>
       </div>
       <view class="btns">
-        <u-button style="margin: 20px" type="primary" @click="confirmPassword()"
-          color="linear-gradient(to right, rgb(53, 138, 254), rgb(38, 171, 244))">确认</u-button>
-        <u-button style="margin: 20px" type="primary" :plain="true" @click="cancelPassword()">取消</u-button>
+        <u-button
+          style="margin: 20px"
+          type="primary"
+          @click="confirmPassword()"
+          color="linear-gradient(to right, rgb(53, 138, 254), rgb(38, 171, 244))"
+          >确认</u-button
+        >
+        <u-button
+          style="margin: 20px"
+          type="primary"
+          :plain="true"
+          @click="cancelPassword()"
+          >取消</u-button
+        >
       </view>
     </u-popup>
   </view>
@@ -472,7 +405,7 @@ export default {
       fundoor2: 0, //蝶阀2#      1打开 0 关闭
       detailTab: 0, // 0实时 1历史
       controlMode: "local", // 控制模式展示:就地/远程
-      deviceTypeHis:'', //历史数据设备类型
+      deviceTypeHis: "", //历史数据设备类型
     };
   },
   onLoad(query) {
@@ -511,12 +444,12 @@ export default {
     },
     // 返回上一个页面
     backPage() {
-      this.$destroy();
+      this.stopTimer();
       uni.navigateBack({
         delta: 1,
       });
     },
-     
+
     getShowColum() {
       new Promise((resolve, reject) => {
         api
@@ -612,7 +545,10 @@ export default {
               this.nwindownum = result.nwindownum;
               this.ndoorcount = result.ndoorcount;
               this.deviceType = result.deviceType;
-              this.deviceTypeHis = result.deviceType.substring(0,result.deviceType.indexOf('_')) //历史数据设备类型
+              this.deviceTypeHis = result.deviceType.substring(
+                0,
+                result.deviceType.indexOf("_")
+              ); //历史数据设备类型
               this.state = result.readData.sign;
               this.frontGateStatus = this.tableData.frontGateOpen;
               this.midGateStatus = this.tableData.midGateOpen;
@@ -622,7 +558,7 @@ export default {
               this.readTime = result.readTime;
               this.qidongfengji =
                 result.readData.Fan1MOT2_RunningStatus1 == "1" ||
-                  result.readData.Fan1StartStatus == "1"
+                result.readData.Fan1StartStatus == "1"
                   ? "1"
                   : "2";
               if (this.qidongfengji == "1") {
@@ -765,14 +701,79 @@ export default {
       if (item.monitorcode == "readTime") {
         return this.readTime || this.tableData.readTime || "-";
       }
-      const val = this.tableData[item.monitorcode];
-      if (val !== undefined && val !== null && val !== "") return val;
+      const raw = this.tableData[item.monitorcode];
+      const statusText = this.getStatusText(item.monitorcode, item.des, raw);
+      if (statusText !== null) return statusText;
+      if (raw !== undefined && raw !== null && raw !== "") return raw;
       return "-";
     },
+    // 是否为报警/故障等状态类字段
+    isStatusField(code, des) {
+      const key = String(code || "").toLowerCase();
+      const label = String(des || "");
+      return (
+        key.indexOf("warn") > -1 ||
+        key.indexOf("fault") > -1 ||
+        key.indexOf("alarm") > -1 ||
+        key.indexOf("err") > -1 ||
+        label.indexOf("报警") > -1 ||
+        label.indexOf("故障") > -1
+      );
+    },
+    // 报警/故障等状态类字段值转中文(0-正常 1-报警/故障 2-断开)
+    getStatusText(code, des, val) {
+      if (!this.isStatusField(code, des)) return null;
+      const key = String(code || "").toLowerCase();
+      const label = String(des || "");
+      const isFault =
+        key.indexOf("fault") > -1 ||
+        key.indexOf("err") > -1 ||
+        label.indexOf("故障") > -1;
+      const text = val === undefined || val === null ? "" : String(val);
+      if (text === "" || text === "-") return "未监测";
+      if (text == "0" || text.indexOf("正常") > -1) return "正常";
+      if (text == "2" || text.indexOf("断开") > -1) return "断开";
+      if (text == "1") return isFault ? "故障" : "报警";
+      return text;
+    },
     isErrorValue(item) {
       const val = String(this.getMonitorValue(item) || "");
       const code = (item.monitorcode || "").toLowerCase();
-      if (code.indexOf("warn") > -1 || code.indexOf("fault") > -1) return true;
+      if (this.isStatusField(code, item.des)) {
+        return val !== "正常";
+      }
+      return (
+        val.indexOf("异常") > -1 ||
+        val.indexOf("故障") > -1 ||
+        val.indexOf("报警") > -1 ||
+        val.indexOf("超限") > -1
+      );
+    },
+    // 风机类设备(fanmain/fanlocal)主机/备机监测数值
+    getFanMonitorValue(item, fanNo) {
+      const code = String(item.monitorcode || "");
+      if (code == "netStatus") {
+        return this.doorNetStatus == "1" ? "正常" : "异常";
+      }
+      if (code == "readTime") {
+        return this.readTime || this.tableData.readTime || "-";
+      }
+      const key = code.startsWith("Fan")
+        ? code.replace(/^Fan/, "Fan" + fanNo)
+        : code;
+      const val = this.tableData[key];
+      const statusText = this.getStatusText(code, item.des, val);
+      if (statusText !== null) return statusText;
+      if (val !== undefined && val !== null && val !== "") return val;
+      return "-";
+    },
+    // 风机类设备(fanmain/fanlocal)异常判断
+    isFanMonitorError(item, fanNo) {
+      const val = String(this.getFanMonitorValue(item, fanNo) || "");
+      const code = String(item.monitorcode || "").toLowerCase();
+      if (this.isStatusField(code, item.des)) {
+        return val !== "正常";
+      }
       return (
         val.indexOf("异常") > -1 ||
         val.indexOf("故障") > -1 ||
@@ -791,7 +792,7 @@ export default {
 .page-wrap {
   // overflow: auto;
   height: 100vh;
-  background: url('../../../../static/desk-img/1-3.png') no-repeat;
+  background: url("../../../../static/desk-img/1-3.png") no-repeat;
   background-size: 100% auto;
 }
 
@@ -1005,19 +1006,6 @@ export default {
   flex-wrap: wrap;
 }
 
-.datacardtime {
-  display: flex;
-  width: 100%;
-  flex: 1;
-  margin: 6rpx;
-  height: auto;
-  min-height: 50px;
-  line-height: 29px;
-  text-align: left;
-  border-radius: 12rpx;
-  background: linear-gradient(to bottom, #e6eeff, #ffffff);
-}
-
 .datacard {
   display: flex;
   flex-direction: row;
@@ -1034,7 +1022,11 @@ export default {
   border: none;
   // background: linear-gradient(to bottom, #e6eeff 0%, #ffffff 100%);
   // background-image: linear-gradient(to bottom, #e6eeff 0%, #ffffff 100%);
-  background: linear-gradient(to bottom, rgba(175, 195, 252, .6) 0%, rgba(175, 195, 252, .1) 100%);
+  background: linear-gradient(
+    to bottom,
+    rgba(175, 195, 252, 0.6) 0%,
+    rgba(175, 195, 252, 0.1) 100%
+  );
 }
 
 .data-icon {
@@ -1080,11 +1072,14 @@ export default {
   white-space: nowrap;
 }
 
-.datacard .TabCurCSS {
-  background: transparent;
-  display: flex;
-  flex-direction: column;
+/* 风机类设备(fanmain/fanlocal)主机/备机分组标题 */
+.fan-group-title {
   width: 100%;
+  margin: 10rpx 6rpx 4rpx;
+  font-size: 24rpx;
+  font-weight: 600;
+  color: #333333;
+  line-height: 1.4;
 }
 
 .left-content {
@@ -1095,10 +1090,6 @@ export default {
   height: 100%;
 }
 
-.spacer {
-  height: 10rpx;
-}
-
 .right-content {
   width: 50%;
   background-image: url("/static/dataBg.png");
@@ -1253,9 +1244,4 @@ div.window_new_5 {
 .passArea {
   border-color: red;
 }
-
-.monitor-content {
-  display: flex;
-  flex-direction: column;
-}
 </style>

+ 69 - 58
pages/home/detail/fanmainAnimate/fanmainAnimate.vue

@@ -336,61 +336,25 @@
               <span></span>
             </div>
           </div>
+
+          <!-- 文字标识:放在风筒容器内用百分比定位,随图片一起缩放,分辨率变化不影响相对位置 -->
+          <!-- 上风筒:1号电机在左侧小风扇(left:30.4%)左边,2号电机在右侧小风扇(left:34.5%)右边 -->
+          <div class="fan-tag tag-top-motor1"><span>1号电机</span></div>
+          <div class="fan-tag tag-top-motor2"><span>2号电机</span></div>
+          <!-- 下风筒:1号电机在左侧小风扇(left:27.8%)左边,2号电机在右侧小风扇(left:32.4%)右边 -->
+          <div class="fan-tag tag-bottom-motor1"><span>1号电机</span></div>
+          <div class="fan-tag tag-bottom-motor2"><span>2号电机</span></div>
+          <!-- 1#/2# 风机标识:分别固定在上下两个风筒旁边(topindex==1 时上风筒为 1#风机) -->
+          <div class="fan-tag1 tag-top-name">
+            <span v-if="topindex == 1">1#风机</span>
+            <span v-else>2#风机</span>
+          </div>
+          <div class="fan-tag1 tag-bottom-name">
+            <span v-if="topindex == 1">2#风机</span>
+            <span v-else>1#风机</span>
+          </div>
         </div>
       </div>
-      <!-- 文字标识 -->
-      <div
-        style="
-          position: absolute;
-          color: #fff;
-          top: 20%;
-          left: 10%;
-          color: #ff0;
-        "
-      >
-        <span>1号电机</span>
-      </div>
-      <div
-        style="
-          position: absolute;
-          color: #fff;
-          top: 20%;
-          left: 39%;
-          color: #ff0;
-        "
-      >
-        <span>2号电机</span>
-      </div>
-      <div
-        style="
-          position: absolute;
-          color: #fff;
-          color: #ff0;
-          bottom: 57%;
-          left: 10%;
-        "
-      >
-        <span>1号电机</span>
-      </div>
-      <div
-        style="
-          position: absolute;
-          color: #fff;
-          bottom: 57%;
-          left: 38%;
-          color: #ff0;
-        "
-      >
-        <span>2号电机</span>
-      </div>
-      <div style="position: absolute; color: #fff; top: 45%; left: 28.4%">
-        <span v-if="topindex == 2">1#风机</span>
-        <span v-if="topindex == 1">2#风机</span>
-      </div>
-      <div style="position: absolute; color: #fff; top: 19%; left: 31.4%">
-        <span v-if="topindex == 2">2#风机</span>
-        <span v-if="topindex == 1">1#风机</span>
-      </div>
       <!-- 风筒风速传感器 -->
       <div class="imgF1"></div>
       <div class="imgF2"></div>
@@ -499,19 +463,66 @@ export default {
 <style scoped>
 div.pageback {
   height: calc(60% - 50px);
-  min-height: 350px;
+  min-height: 200px;
   background-image: url(/static/mainfan/page-back.png);
   background-size: 100% 100%;
 }
 div.ventilate {
-  margin-top: 12px;
-  width: calc(100vw - 20px);
-  height: calc(60% - 50px);
-  min-height: 330px;
+  position: relative;
+  width: calc(91vw - 20px);
+  height: calc(62% - 50px);
+  min-height: 185px;
   background-image: url(/static/mainfan/main_ventilate_new.png);
   background-size: 100% 100%;
   perspective: 800px;
 }
+
+/* ===== 文字标识(相对风筒容器定位,百分比不会随分辨率漂移) ===== */
+.fan-tag {
+  position: absolute;
+  z-index: 200;
+  color: #ff0;
+  font-size: clamp(12px, 0.85vw, 18px);
+  line-height: 1;
+  white-space: nowrap;
+  pointer-events: none;
+  text-shadow: 0 1px 2px rgba(0, 30, 60, 0.85);
+}
+.fan-tag1 {
+  font-size: 20px;
+  position: absolute;
+  z-index: 200;
+  color: #4565f8;
+  line-height: 1;
+  white-space: nowrap;
+  pointer-events: none;
+  text-shadow: 0 1px 2px rgba(0, 30, 60, 0.85);
+}
+.tag-top-name {
+  right: 2%;
+  top: 8%;
+}
+.tag-top-motor1 {
+  right: 71.5%;
+  top: calc(22.2% - 0.5em);
+}
+.tag-top-motor2 {
+  left: 37.2%;
+  top: calc(22.2% - 0.5em);
+}
+
+.tag-bottom-name {
+  right: 2%;
+  top: 88%;
+}
+.tag-bottom-motor1 {
+  right: 73.9%;
+  top: calc(78.3% - 0.5em);
+}
+.tag-bottom-motor2 {
+  left: 35.2%;
+  top: calc(78.3% - 0.5em);
+}
 div.arrowpic1,
 div.arrowpic2,
 div.arrowpic3,

+ 98 - 25
pages/home/home.vue

@@ -9,28 +9,52 @@
                 <!-- 标题 -->
                 <view class="card-title-row">
                   <text class="card-title">{{ item.strinstallpos }}</text>
-                  <text class="card-time" v-if="item.readTime">{{ item.readTime }}</text>
+                  <text class="card-time" v-if="item.readTime">{{
+                    item.readTime
+                  }}</text>
                 </view>
                 <view class="card-divider"></view>
 
                 <!-- 状态标签行 -->
                 <view class="status-row">
                   <view class="status-left">
-                    <view v-if="item.netStatus == 0" class="status-tag tag-offline">
-                      <image src="/static/model/connectFalse.svg" class="tag-icon" />
+                    <view
+                      v-if="item.netStatus == 0"
+                      class="status-tag tag-offline"
+                    >
+                      <image
+                        src="/static/model/connectFalse.svg"
+                        class="tag-icon"
+                      />
                       <text>断开</text>
                     </view>
                     <view v-else class="status-tag tag-online">
-                      <image src="/static/model/connectTrue.svg" class="tag-icon" />
+                      <image
+                        src="/static/model/connectTrue.svg"
+                        class="tag-icon"
+                      />
                       <text>连接</text>
                     </view>
 
-                    <view v-if="item.warnFlag == 0" class="status-tag tag-normal">
-                      <image src="/static/model/alarmTrue.svg" class="tag-icon" />
+                    <view
+                      v-if="item.warnFlag == 0"
+                      class="status-tag tag-normal"
+                    >
+                      <image
+                        src="/static/model/alarmTrue.svg"
+                        class="tag-icon"
+                      />
                       <text>正常</text>
                     </view>
-                    <view v-else class="status-tag tag-warn" @click="toggleWarn()">
-                      <image src="/static/model/alarmFalse.svg" class="tag-icon" />
+                    <view
+                      v-else
+                      class="status-tag tag-warn"
+                      @click="toggleWarn()"
+                    >
+                      <image
+                        src="/static/model/alarmFalse.svg"
+                        class="tag-icon"
+                      />
                       <text class="warn-text">{{ item.warnDes }}</text>
                     </view>
                   </view>
@@ -41,16 +65,28 @@
                 </view>
 
                 <!-- 普通设备数据 -->
-                <view v-if="TabCur != 'fanmain' && TabCur != 'fanlocal'" class="data-grid" @tap="openNewPage(item)">
-                  <view class="datacard" v-for="(showitem, sIndex) in deviceShowList" :key="sIndex"
-                    v-show="isDataField(showitem)">
+                <view
+                  v-if="TabCur != 'fanmain' && TabCur != 'fanlocal'"
+                  class="data-grid"
+                  @tap="openNewPage(item)"
+                >
+                  <view
+                    class="datacard"
+                    v-for="(showitem, sIndex) in deviceShowList"
+                    :key="sIndex"
+                    v-show="isDataField(showitem)"
+                  >
                     <view class="data-icon">
                       <!-- <u-icon
                         :name="getFieldIcon(showitem.monitorcode)"
                         color="#ffffff"
                         size="14"
                       ></u-icon> -->
-                      <image class="icon-top" :src="getIcon1(showitem.monitorcode)" mode="aspectFit"></image>
+                      <image
+                        class="icon-top"
+                        :src="getIcon1(showitem.monitorcode)"
+                        mode="aspectFit"
+                      ></image>
                     </view>
                     <view class="data-text">
                       <text class="data-value">{{
@@ -66,10 +102,18 @@
                   <view class="fan-block">
                     <view class="fan-label">主机</view>
                     <view class="data-grid">
-                      <view class="datacard" v-for="(showitem, sIndex) in deviceShowList" :key="'f1-' + sIndex"
-                        v-show="isDataField(showitem)">
+                      <view
+                        class="datacard"
+                        v-for="(showitem, sIndex) in deviceShowList"
+                        :key="'f1-' + sIndex"
+                        v-show="isDataField(showitem)"
+                      >
                         <view class="data-icon">
-                          <u-icon :name="getFieldIcon(showitem.monitorcode)" color="#ffffff" size="14"></u-icon>
+                          <u-icon
+                            :name="getFieldIcon(showitem.monitorcode)"
+                            color="#ffffff"
+                            size="14"
+                          ></u-icon>
                         </view>
                         <view class="data-text">
                           <text class="data-value">{{
@@ -83,10 +127,18 @@
                   <view class="fan-block">
                     <view class="fan-label">备机</view>
                     <view class="data-grid">
-                      <view class="datacard" v-for="(showitem, sIndex) in deviceShowList" :key="'f2-' + sIndex"
-                        v-show="isDataField(showitem)">
+                      <view
+                        class="datacard"
+                        v-for="(showitem, sIndex) in deviceShowList"
+                        :key="'f2-' + sIndex"
+                        v-show="isDataField(showitem)"
+                      >
                         <view class="data-icon">
-                          <u-icon :name="getFieldIcon(showitem.monitorcode)" color="#ffffff" size="14"></u-icon>
+                          <u-icon
+                            :name="getFieldIcon(showitem.monitorcode)"
+                            color="#ffffff"
+                            size="14"
+                          ></u-icon>
                         </view>
                         <view class="data-text">
                           <text class="data-value">{{
@@ -235,13 +287,19 @@ export default {
       if (code.indexOf("area") > -1) {
         return "/static/icon-new/dmj.svg";
       }
-       if (code.indexOf("m3") > -1 || code.indexOf("va") > -1 || code.indexOf("forward") > -1) {
+      if (
+        code.indexOf("m3") > -1 ||
+        code.indexOf("va") > -1 ||
+        code.indexOf("forward") > -1
+      ) {
         return "/static/icon-new/fl.svg";
       }
 
-       return "/static/icon-new/dmj.svg";
+      return "/static/icon-new/dmj.svg";
     },
     startTimer() {
+      // 避免重复创建定时器
+      this.stopTimer();
       // 每隔一段时间执行某个操作
       this.timer = setInterval(async () => {
         // 执行定时任务
@@ -251,7 +309,17 @@ export default {
     },
     stopTimer() {
       // 停止定时器
-      clearInterval(this.timer);
+      if (this.timer) {
+        clearInterval(this.timer);
+        this.timer = null;
+      }
+    },
+    // 从详情页返回时:恢复轮询并立即刷新一次数据
+    restartTimer() {
+      this.startTimer();
+      if (this.deviceType) {
+        this.loadData(this.deviceType);
+      }
     },
     getIcon(itemValue) {
       // 根据itemValue获取对应的图标路径,如果找不到对应关系则返回默认图标
@@ -307,10 +375,10 @@ export default {
                 const key1 = this.deviceType1 + "_monitor";
                 if (this.showColum?.[key1]?.length > 0) {
                   this.deviceShowList = this.showColum[key1];
-                  console.log(this.deviceShowList,'this.deviceShowList')
+                  console.log(this.deviceShowList, "this.deviceShowList");
                 } else {
                   this.deviceShowList = this.showColum[key] ?? [];
-                  console.log(this.deviceShowList,'this.deviceShowList')
+                  console.log(this.deviceShowList, "this.deviceShowList");
                 }
               });
               if (this.TabCur == "sys_pulping") {
@@ -388,7 +456,8 @@ export default {
       const reqparams = uni.$u.queryParams(reqData);
       // const key = this.deviceType1 + "_monitor";
       if (this.deviceShowList.length > 0) {
-        this.$destroy();
+        // 仅暂停轮询,不能 $destroy(否则返回后组件不再响应 deviceType 变化)
+        this.stopTimer();
         uni.navigateTo({
           url: `/pages/home/detail/autodoor/autodoor${reqparams}`,
         });
@@ -581,7 +650,11 @@ export default {
   padding: 16rpx 12rpx;
   box-sizing: border-box;
   border-radius: 12rpx;
-  background: linear-gradient(to bottom, rgba(175, 195, 252, .6) 0%, rgba(175, 195, 252, .1) 100%);
+  background: linear-gradient(
+    to bottom,
+    rgba(175, 195, 252, 0.6) 0%,
+    rgba(175, 195, 252, 0.1) 100%
+  );
 }
 
 .data-icon {

+ 205 - 213
pages/warndata/components/device-detail.vue

@@ -1,88 +1,88 @@
 <template>
   <view class="device-detail">
-    <u-tabs
-      class="devic-box-tab"
-      :current="PageCur"
-      :list="tabList"
-      @click="NavChange"
-    ></u-tabs>
+    <view class="device-tab">
+      <u-tabs
+        class="devic-box-tab"
+        :current="PageCur"
+        :list="tabList"
+        :activeStyle="activeTabStyle"
+        :inactiveStyle="inactiveTabStyle"
+        :itemStyle="tabItemStyle"
+        lineColor="#2b7cff"
+        :lineWidth="24"
+        :lineHeight="3"
+        @click="NavChange"
+      ></u-tabs>
+    </view>
     <view class="device-content">
-      <view class="top-area" v-if="PageCur != 0">
-        <view class="date-box" style="margin-bottom: 10px">
-          <view class="date-text">开始时间:</view>
+      <view class="filter-card" v-if="PageCur != 0">
+        <view class="filter-row">
+          <view class="filter-label">
+            <text class="req">*</text>
+            <text>开始时间</text>
+          </view>
           <uni-datetime-picker
+            class="filter-picker"
             :clear-icon="false"
-            placeholder="请选择开始时间..."
+            placeholder="请选择开始时间"
             :disabled="isDisabled"
             type="datetime"
             v-model="datetimeStart"
             @change="changeStart"
           />
-          <u-button
-            type="primary"
-            size="small"
-            :disabled="isDisabled"
+          <view
+            class="filter-btn btn-primary"
+            :class="{ 'is-disabled': isDisabled }"
             @click="getSearch"
-            >查询</u-button
+            >查询</view
           >
         </view>
-        <view class="date-box">
-          <view class="date-text">结束时间:</view>
+        <view class="filter-row">
+          <view class="filter-label">
+            <text class="req">*</text>
+            <text>结束时间</text>
+          </view>
           <uni-datetime-picker
+            class="filter-picker"
             :clear-icon="false"
-            placeholder="请选择结束时间..."
+            placeholder="请选择结束时间"
             :disabled="isDisabled"
             type="datetime"
             v-model="datetimeEnd"
             @change="changeEnd"
           />
-          <u-button
-            type="primary"
-            size="small"
-            :disabled="isDisabled"
+          <view
+            class="filter-btn btn-plain"
+            :class="{ 'is-disabled': isDisabled }"
             @click="getReset"
-            >重置</u-button
+            >重置</view
           >
         </view>
       </view>
       <view class="bot-area">
         <view class="h-table">
-          <view class="table-head" v-if="isDisabled">
+          <view class="table-head">
             <view
               class="head-item"
-              v-for="(item, index) in headList"
+              v-for="(item, index) in currentHead"
               :key="index"
+              :style="{ width: item.width }"
               >{{ item.title }}</view
             >
           </view>
-          <view class="table-headHis" v-else>
-            <view
-              class="head-item"
-              v-for="(item, index) in headListHis"
-              :key="index"
-              >{{ item.title }}</view
-            >
-          </view>
-          <view class="table-content" v-if="isDisabled">
-            <view class="content-tr" v-for="(ite, ind) in tableData" :key="ind">
-              <view class="content-td td">{{ ite.devicename }}</view>
-              <view class="content-td td1">{{ ite.nwartype_dictText }}</view>
-              <view class="content-td td2">{{ ite.starttime }}</view>
-              <!-- <view class="content-td td3">{{ ite.endTime }}</view> -->
-              <view class="content-td td3">{{ ite.wardescrip }}</view>
-            </view>
-          </view>
-          <view class="table-contentHis" v-else>
+          <view class="table-content">
             <view
               class="content-tr"
-              v-for="(ite, ind) in tableDataHis"
+              v-for="(ite, ind) in currentData"
               :key="ind"
             >
-              <view class="content-td td">{{ ite.devicename }}</view>
-              <view class="content-td td1">{{ ite.nwartype_dictText }}</view>
-              <view class="content-td td2">{{ ite.starttime }}</view>
-              <view class="content-td td3">{{ ite.warntime }}</view>
-              <view class="content-td td4">{{ ite.wardescrip }}</view>
+              <view
+                class="content-td"
+                v-for="(col, ci) in currentHead"
+                :key="ci"
+                :style="{ width: col.width }"
+                >{{ cellText(ite, col.key) }}</view
+              >
             </view>
           </view>
         </view>
@@ -106,21 +106,20 @@ export default {
       isDisabled: true,
       datetimeStart: null,
       datetimeEnd: null,
-      PageCur: "0",
+      PageCur: 0,
       tabList: [{ name: "实时预警" }, { name: "报警历史" }],
+      tabItemStyle: { height: "46px", padding: "0 24px" },
+      activeTabStyle: {
+        color: "#2b7cff",
+        fontWeight: "600",
+        fontSize: "15px",
+      },
+      inactiveTabStyle: { color: "#666666", fontSize: "15px" },
       headList: [
-        { title: "设备名称" },
-        { title: "报警类型" },
-        { title: "报警开始时间" },
-        // { title: '报警持续时间' },
-        { title: "报警描述" },
-      ],
-      headListHis: [
-        { title: "设备名称" },
-        { title: "报警类型" },
-        { title: "开始时间" },
-        { title: "持续时间" },
-        { title: "报警描述" },
+        { title: "设备名称", key: "devicename", width: "20%" },
+        { title: "报警类型", key: "nwartype_dictText", width: "20%" },
+        { title: "报警开始时间", key: "starttime", width: "34%" },
+        { title: "报警描述", key: "wardescrip", width: "26%" },
       ],
       tableData: [],
       tableDataHis: [],
@@ -205,8 +204,24 @@ export default {
       this.datetimeEnd = Date.now();
       this.getHistoryList();
     },
+    //表格单元格文本
+    cellText(item, key) {
+      const value = item ? item[key] : "";
+      return value === null || value === undefined || value === ""
+        ? "--"
+        : value;
+    },
+  },
+  computed: {
+    //当前表格表头
+    currentHead() {
+      return this.headList;
+    },
+    //当前表格数据
+    currentData() {
+      return this.isDisabled ? this.tableData : this.tableDataHis;
+    },
   },
-  computed: {},
 };
 </script>
 
@@ -215,225 +230,178 @@ export default {
   position: relative;
   box-sizing: border-box;
 
+  .device-tab {
+    background-color: #fff;
+    border-bottom: 1px solid #eef2f8;
+  }
+
   .devic-box-tab {
     padding: 0px 10px !important;
   }
 
   .device-content {
+    display: flex;
+    flex-direction: column;
     height: 704px;
     box-sizing: border-box;
-    overflow-y: auto;
+    overflow: hidden;
 
-    .top-area {
+    /* 查询条件卡片 */
+    .filter-card {
+      flex-shrink: 0;
       width: 100%;
-      padding: 10px;
+      padding: 12px 10px;
       box-sizing: border-box;
       background-color: #fff;
-      margin-bottom: 2px;
+      border-radius: 10px;
+      box-shadow: 0 2px 8px rgba(43, 124, 255, 0.08);
+      margin-bottom: 10px;
 
-      .date-box {
+      .filter-row {
         width: 100%;
         display: flex;
         align-items: center;
 
-        .date-text {
-          font-size: 12px;
+        & + .filter-row {
+          margin-top: 10px;
         }
 
-        .uni-date {
-          flex: 2.5;
-          border: 1px solid #0eb4fc;
-          border-radius: 5px;
-          margin: 0px 5px;
+        .filter-label {
+          flex-shrink: 0;
+          width: 64px;
+          display: flex;
+          align-items: center;
+          font-size: 13px;
+          color: #333;
+
+          .req {
+            color: #f5222d;
+            font-size: 13px;
+            margin-right: 3px;
+          }
         }
 
-        .u-button {
+        .filter-picker {
           flex: 1;
-          font-size: 12px;
+          min-width: 0;
+        }
+
+        .filter-btn {
+          flex-shrink: 0;
+          width: 64px;
+          height: 32px;
+          margin-left: 8px;
+          box-sizing: border-box;
+          display: flex;
+          align-items: center;
+          justify-content: center;
+          border-radius: 4px;
+          font-size: 13px;
+        }
+
+        .btn-primary {
+          color: #fff;
+          background: linear-gradient(90deg, #3f8cff 0%, #2b7cff 100%);
+        }
+
+        .btn-plain {
+          color: #2b7cff;
+          background-color: #fff;
+          border: 1px solid #2b7cff;
+        }
+
+        .is-disabled {
+          opacity: 0.6;
         }
       }
     }
 
     .bot-area {
+      flex: 1;
+      min-height: 0;
       width: 100%;
-      height: calc(100% - 96px);
       padding: 10px;
       box-sizing: border-box;
       background-color: #fff;
+      border-radius: 10px;
+      box-shadow: 0 2px 8px rgba(43, 124, 255, 0.08);
 
       .h-table {
+        display: flex;
+        flex-direction: column;
         width: 100%;
         height: 100%;
-        border: 1px solid #0eb4fc;
+        box-sizing: border-box;
+        border: 1px solid #bcd7fb;
+        border-radius: 4px;
+        overflow: hidden;
 
         .table-head {
+          flex-shrink: 0;
           display: flex;
-          justify-content: space-between;
           align-items: center;
-          height: 36px;
-          border-bottom: 1px solid #0eb4fc;
-          padding: 0px 10px;
+          height: 38px;
+          background-color: transparent;
+          border-bottom: 1px solid #bcd7fb;
           box-sizing: border-box;
 
           .head-item {
-            font-size: 12px;
-            color: #0eb4fc;
+            height: 100%;
             display: flex;
             justify-content: center;
             align-items: center;
-            font-weight: bold;
-
-            &:nth-child(1) {
-              width: 20%;
-            }
-
-            &:nth-child(2) {
-              width: 20%;
-            }
-
-            &:nth-child(3) {
-              width: 35%;
-            }
-
-            &:nth-child(4) {
-              width: 25%;
-            }
-          }
-        }
-
-        .table-headHis {
-          display: flex;
-          justify-content: space-between;
-          align-items: center;
-          height: 36px;
-          border-bottom: 1px solid #0eb4fc;
-          padding: 0px 10px;
-          box-sizing: border-box;
-
-          .head-item {
+            box-sizing: border-box;
             font-size: 12px;
-            color: #0eb4fc;
-            display: flex;
-            justify-content: center;
-            align-items: center;
-            font-weight: bold;
+            font-weight: 600;
+            color: #1a6dff;
+            text-align: center;
+            border-right: 1px solid #bcd7fb;
 
-            &:nth-child(1) {
-              width: 15%;
-            }
-
-            &:nth-child(2) {
-              width: 15%;
-            }
-
-            &:nth-child(3) {
-              width: 30%;
-            }
-
-            &:nth-child(4) {
-              width: 20%;
-            }
-
-            &:nth-child(5) {
-              width: 20%;
+            &:last-child {
+              border-right: none;
             }
           }
         }
 
         .table-content {
-          height: calc(100% - 36px);
+          flex: 1;
+          min-height: 0;
           overflow-y: auto;
 
           .content-tr {
-            height: 80px;
             display: flex;
-            justify-content: space-between;
-            align-items: center;
-            padding: 0px 10px;
+            align-items: stretch;
+            min-height: 44px;
             box-sizing: border-box;
+            border-bottom: 1px solid #cfe1fa;
 
-            &:nth-child(odd) {
-              background-color: #f3faff;
+            &:last-child {
+              border-bottom: none;
             }
 
-            &:nth-child(even) {
-              background-color: #e8f5ff;
-            }
-
-            .content-td {
-              height: 100%;
-              font-size: 12px;
-              display: flex;
-              justify-content: center;
-              align-items: center;
-              text-align: center;
-            }
-
-            .td {
-              width: 20%;
-            }
-
-            .td1 {
-              width: 20%;
-            }
-
-            .td2 {
-              width: 30%;
-            }
-
-            .td3 {
-              width: 30%;
-            }
-          }
-        }
-
-        .table-contentHis {
-          height: calc(100% - 36px);
-          overflow-y: auto;
-
-          .content-tr {
-            height: 80px;
-            display: flex;
-            justify-content: space-between;
-            align-items: center;
-            padding: 0px 10px;
-            box-sizing: border-box;
-
             &:nth-child(odd) {
-              background-color: #f3faff;
+              background-color: #f5f9ff;
             }
 
             &:nth-child(even) {
-              background-color: #e8f5ff;
+              background-color: #e9f3ff;
             }
 
             .content-td {
-              height: 100%;
-              font-size: 12px;
               display: flex;
               justify-content: center;
               align-items: center;
+              box-sizing: border-box;
+              padding: 6px 4px;
+              font-size: 12px;
+              color: #333;
               text-align: center;
-            }
-
-            .td {
-              width: 15%;
-            }
-
-            .td1 {
-              width: 15%;
-            }
-
-            .td2 {
-              width: 30%;
-            }
-
-            .td3 {
-              width: 15%;
-            }
+              word-break: break-all;
+              border-right: 1px solid #cfe1fa;
 
-            .td4 {
-              width: 25%;
+              &:last-child {
+                border-right: none;
+              }
             }
           }
         }
@@ -442,8 +410,32 @@ export default {
   }
 }
 
+/* 日期选择器样式覆盖 */
+::v-deep .uni-date-editor--x {
+  box-sizing: border-box;
+  height: 32px;
+  border-radius: 4px;
+  border-color: #dcdfe6;
+  background-color: #fff;
+}
+
+::v-deep .uni-date-x {
+  flex-direction: row-reverse;
+  height: 32px;
+  background-color: transparent;
+}
+
+::v-deep .uni-date-x .icon-calendar {
+  padding-left: 0;
+  padding-right: 6px;
+}
+
 ::v-deep .uni-date__x-input {
-  height: 28px !important;
-  line-height: 28px !important;
+  height: 32px !important;
+  line-height: 32px !important;
+  padding-left: 8px !important;
+  font-size: 12px !important;
+  color: #333 !important;
+  text-align: left;
 }
 </style>

+ 158 - 56
pages/warndata/components/dust-detail.vue

@@ -12,39 +12,81 @@
           <view style="font-weight: bold">{{ item.label }}</view>
         </view>
         <view class="top-card">
-          <!-- <view class="card-item card-item1">
-            <view class="item-box item-box1">
-              <view class="box-val">{{ item.temperature || "--" }}</view>
-              <view class="box-name">温度(℃)</view>
+          <view class="card-item card-item1">
+            <view class="item-box">
+              <view class="item-icon">
+                <image
+                  class="icon-img"
+                  src="/static/warndata/wendu.svg"
+                  mode="aspectFit"
+                ></image>
+              </view>
+              <view class="item-info">
+                <view class="box-val">{{ item.temperature || "--" }}</view>
+                <view class="box-name">温度(℃)</view>
+              </view>
             </view>
-          </view> -->
+          </view>
           <view class="card-item card-item1">
-            <view class="item-box item-box2">
-              <view class="box-val">{{ item.dustval || "--" }}</view>
-              <view class="box-name">粉尘浓度(mg/m³)</view>
+            <view class="item-box">
+              <view class="item-icon">
+                <image
+                  class="icon-img"
+                  src="/static/warndata/fenchen-nongdu.svg"
+                  mode="aspectFit"
+                ></image>
+              </view>
+              <view class="item-info">
+                <view class="box-val">{{ item.dustval || "--" }}</view>
+                <view class="box-name">粉尘浓度(mg/m³)</view>
+              </view>
             </view>
           </view>
-          <!-- <view class="card-item">
-            <view class="item-box item-box3">
-              <view class="box-val">{{ item.waterPressure || "--" }}</view>
-              <view class="box-name">喷雾水压(MPa)</view>
+          <view class="card-item">
+            <view class="item-box">
+              <view class="item-icon">
+                <image
+                  class="icon-img"
+                  src="/static/warndata/penwu-shuiya.svg"
+                  mode="aspectFit"
+                ></image>
+              </view>
+              <view class="item-info">
+                <view class="box-val">{{ item.waterPressure || "--" }}</view>
+                <view class="box-name">喷雾水压(MPa)</view>
+              </view>
             </view>
-          </view> -->
-          <!-- <view class="card-item">
-            <view class="item-box item-box4">
-              <view class="box-val">{{ item.atomizingState || "--" }}</view>
-              <view class="box-name">喷雾状态</view>
+          </view>
+          <view class="card-item">
+            <view class="item-box">
+              <view class="item-icon">
+                <image
+                  class="icon-img"
+                  src="/static/warndata/zhuangtai.svg"
+                  mode="aspectFit"
+                ></image>
+              </view>
+              <view class="item-info">
+                <view
+                  class="box-val"
+                  :class="{ 'is-normal': item.atomizingState === 1 }"
+                  >{{ item.atomizingState === 1 ? "正常" : "异常" }}</view
+                >
+                <view class="box-name">喷雾状态</view>
+              </view>
             </view>
-          </view> -->
+          </view>
         </view>
         <view class="top-echart">
           <LineChart
+            type="area"
             :chartData="option"
+            :chartOpts="areaOpts"
             :style="{ width: '100%', height: '180px' }"
           ></LineChart>
         </view>
       </view>
-      <view class="bot-area">
+      <!-- <view class="bot-area">
         <view class="bot-title">
           <view style="font-weight: bold">粉尘监控测点信息</view>
         </view>
@@ -76,7 +118,7 @@
             </div>
           </view>
         </view>
-      </view>
+      </view> -->
     </view>
   </view>
 </template>
@@ -206,7 +248,7 @@ export default {
                   that.yDataN = [];
                   setData.forEach((el) => {
                     if (el.value && el.value != "0") {
-                      that.xData.push(el.time);
+                      that.xData.push(that.formatAxisTime(el.time));
                       that.yDataS.push(el.value);
                       that.yDataY.push(
                         JSON.parse(v.readData.expectInfo)["aveVal"]
@@ -319,6 +361,14 @@ export default {
           });
       });
     },
+    //横轴时间格式化,避免标签太长叠在一起
+    formatAxisTime(time) {
+      if (typeof time != "string") {
+        return time;
+      }
+      //2024-03-11 17:58:11 -> 03-11 17:58
+      return time.length > 16 ? time.slice(5, 16) : time;
+    },
     formatRoundNum(num) {
       let interger = Math.ceil(num);
       let leng = String(interger).length;
@@ -327,7 +377,28 @@ export default {
       );
     },
   },
-  computed: {},
+  computed: {
+    //曲线通用配置:曲线下方渐变填充 + 横轴标签抽稀
+    areaOpts() {
+      return {
+        xAxis: {
+          disableGrid: true,
+          labelCount: 3,
+          fontSize: 10,
+        },
+        extra: {
+          area: {
+            type: "curve",
+            opacity: 0.35,
+            addLine: true,
+            width: 2,
+            gradient: true,
+            activeType: "hollow",
+          },
+        },
+      };
+    },
+  },
 };
 </script>
 
@@ -363,6 +434,9 @@ export default {
         display: flex;
         justify-content: space-between;
         align-items: center;
+        font-size: 14px;
+        font-weight: 600;
+        color: #000;
       }
 
       .top-card {
@@ -375,54 +449,79 @@ export default {
 
         .card-item {
           width: calc(50% - 5px);
-          height: 60px;
-          border-radius: 5px;
+          height: 62px;
+          border-radius: 10px;
           background: linear-gradient(
-            to right,
-            rgba(55, 135, 254, 0.08),
-            rgba(4, 184, 255, 0.08),
-            rgba(60, 161, 237, 0.08)
+            135deg,
+            rgba(55, 135, 254, 0.12) 0%,
+            rgba(4, 184, 255, 0.08) 100%
           );
 
           .item-box {
-            display: flex;
-            flex-direction: column;
-            justify-content: center;
-            align-items: flex-start;
             width: 100%;
             height: 100%;
-            padding: 0px 15px;
+            padding: 0px 8px;
+            box-sizing: border-box;
+            display: flex;
+            align-items: center;
 
-            .box-val {
+            .item-icon {
+              position: relative;
+              flex-shrink: 0;
+              width: 28px;
               height: 28px;
-              line-height: 28px;
-              color: #0eb4fc;
-              font-weight: bold;
-            }
+              border-radius: 8px;
+              display: flex;
+              align-items: center;
+              justify-content: center;
+              background: linear-gradient(135deg, #4d9dff 0%, #0065f8 100%);
+
+              //图标后面叠一层浅蓝方块
+              &::before {
+                content: "";
+                position: absolute;
+                left: -3px;
+                top: -3px;
+                width: 100%;
+                height: 100%;
+                border-radius: 8px;
+                background: rgba(77, 157, 255, 0.35);
+              }
 
-            .box-name {
-              font-size: 12px;
+              .icon-img {
+                position: relative;
+                width: 16px;
+                height: 16px;
+                filter: brightness(0) invert(1);
+              }
             }
-          }
 
-          .item-box1 {
-            background: url("/static/wd.png") no-repeat right;
-            background-size: 30% 80%;
-          }
+            .item-info {
+              flex: 1;
+              min-width: 0px;
+              padding-left: 8px;
+              display: flex;
+              flex-direction: column;
+              justify-content: center;
+            }
 
-          .item-box2 {
-            background: url("/static/dust.png") no-repeat right;
-            background-size: 30% 80%;
-          }
+            .box-val {
+              font-size: 13px;
+              font-weight: bold;
+              line-height: 16px;
+              color: #2b7cff;
+            }
 
-          .item-box3 {
-            background: url("/static/pwsy.png") no-repeat right;
-            background-size: 30% 80%;
-          }
+            .box-val.is-normal {
+              color: #39b54a;
+            }
 
-          .item-box4 {
-            background: url("/static/pwzt.png") no-repeat right;
-            background-size: 30% 80%;
+            .box-name {
+              margin-top: 2px;
+              font-size: 11px;
+              line-height: 15px;
+              color: #000;
+            }
           }
         }
 
@@ -449,6 +548,9 @@ export default {
         display: flex;
         justify-content: space-between;
         align-items: center;
+        font-size: 14px;
+        font-weight: 600;
+        color: #000;
       }
 
       .bot-content {

+ 317 - 171
pages/warndata/components/fire-detail-ckq.vue

@@ -1,23 +1,37 @@
 <template>
   <view class="fire-detail-ckq">
-    <!-- <view class="top-area">
+    <view class="top-area">
       <view class="top-card">
         <view class="card-box" v-for="(item, index) in cardList" :key="index">
           <view class="box-item">
-            <view class="box-val">{{ item.value }}</view>
-            <view class="box-name">{{ item.name }}</view>
+            <view class="item-icon">
+              <image class="icon-img" :src="item.icon" mode="aspectFit"></image>
+            </view>
+            <view class="item-info">
+              <view
+                class="box-val"
+                :class="{ 'is-normal': item.value == '正常' }"
+                >{{ item.value }}</view
+              >
+              <view class="box-name">{{ item.name }}</view>
+            </view>
           </view>
         </view>
       </view>
-    </view> -->
-    <!-- <view class="center-area">
+    </view>
+    <view class="center-area">
       <view class="bot-title">
-        <view style="font-weight: bold">光钎测温系统温度实时监测</view>
+        <view style="font-weight: bold">光纤测温系统温度实时监测</view>
       </view>
       <view class="echartBox">
-        <LineChart :chartData="option" :style="{ width: '100%' }"></LineChart>
+        <LineChart
+          type="area"
+          :chartData="option"
+          :chartOpts="areaOpts"
+          :style="{ width: '100%' }"
+        ></LineChart>
       </view>
-    </view> -->
+    </view>
     <view class="bot-area">
       <view class="bot-title">
         <view style="font-weight: bold">束管系统监测</view>
@@ -27,51 +41,83 @@
         v-for="(item, index) in botContentList"
         :key="index"
       >
-        <view class="content-title">{{ item.title }}</view>
+        <view class="content-title"
+          >{{ item.title }}{{ item.dw ? " (" + item.dw + ")" : "" }}</view
+        >
         <view class="content-item-box">
           <view class="content-item">
             <view class="item-l">
-              <view class="item-value">{{ item.value }}</view>
-              <view class="item-label">浓度</view>
+              <view class="item-icon">
+                <image
+                  class="icon-img"
+                  :src="item.icon"
+                  mode="aspectFit"
+                ></image>
+              </view>
+              <view class="item-info">
+                <view class="item-value">{{ item.value }}</view>
+                <view class="item-label">浓度</view>
+              </view>
             </view>
 
             <view class="item-r">
-              <view class="item-value">{{ item.time }}</view>
-              <view class="item-label">时间</view>
+              <view class="item-icon">
+                <image
+                  class="icon-img"
+                  src="/static/warndata/shijian.svg"
+                  mode="aspectFit"
+                ></image>
+              </view>
+              <view class="item-info">
+                <view class="item-value">{{ item.time }}</view>
+                <view class="item-label">时间</view>
+              </view>
             </view>
           </view>
         </view>
         <view class="echartbox1">
           <LineChart
             v-if="item.title == 'O₂'"
+            type="area"
             :chartData="option1"
+            :chartOpts="areaOpts"
             :style="{
               width: '100%',
             }"
           />
           <LineChart
             v-if="item.title == 'C₂H₄'"
+            type="area"
             :chartData="option2"
+            :chartOpts="areaOpts"
             :style="{ width: '100%' }"
           />
           <LineChart
             v-if="item.title == 'CO'"
+            type="area"
             :chartData="option3"
+            :chartOpts="areaOpts"
             :style="{ width: '100%' }"
           />
           <LineChart
             v-if="item.title == 'CH₄'"
+            type="area"
             :chartData="option4"
+            :chartOpts="areaOpts"
             :style="{ width: '100%' }"
           />
           <LineChart
             v-if="item.title == 'CO₂'"
+            type="area"
             :chartData="option5"
+            :chartOpts="areaOpts"
             :style="{ width: '100%' }"
           />
           <LineChart
             v-if="item.title == 'C₂H₂'"
+            type="area"
             :chartData="option6"
+            :chartOpts="areaOpts"
             :style="{ width: '100%' }"
           />
         </view>
@@ -106,12 +152,36 @@ export default {
       xData: [],
       yData: [],
       cardList: [
-        { name: "最高温度()", value: 0 },
-        { name: "最低温度()", value: 0 },
-        { name: "平均温度()", value: 0 },
-        { name: "状态", value: "" },
-        { name: "回风隅角-O2", value: 0 },
-        { name: "回风隅角-CO", value: 0 },
+        {
+          name: "最高温度(℃)",
+          value: 0,
+          icon: "/static/warndata/zuigao-wendu.svg",
+        },
+        {
+          name: "最低温度(℃)",
+          value: 0,
+          icon: "/static/warndata/zuidi-wendu.svg",
+        },
+        {
+          name: "平均温度(℃)",
+          value: 0,
+          icon: "/static/warndata/pingjun-wendu.svg",
+        },
+        {
+          name: "状态",
+          value: "",
+          icon: "/static/warndata/zhuangtai.svg",
+        },
+        {
+          name: "回风隅角-O₂",
+          value: 0,
+          icon: "/static/warndata/O₂.svg",
+        },
+        {
+          name: "回风隅角-CO",
+          value: 0,
+          icon: "/static/warndata/CO.svg",
+        },
       ],
       myChartH: null,
       legendName: "",
@@ -119,12 +189,54 @@ export default {
       xDataH: [],
       yDataH: [],
       botContentList: [
-        { title: "O₂", value: 0, time: "", address: "" },
-        { title: "C₂H₄", value: 0, time: "", address: "" },
-        { title: "CO", value: 0, time: "", address: "" },
-        { title: "CH₄", value: 0, time: "", address: "" },
-        { title: "CO₂", value: 0, time: "", address: "" },
-        { title: "C₂H₂", value: 0, time: "", address: "" },
+        {
+          title: "O₂",
+          value: 0,
+          time: "",
+          address: "",
+          dw: "%",
+          icon: "/static/warndata/O₂.svg",
+        },
+        {
+          title: "C₂H₄",
+          value: 0,
+          time: "",
+          address: "",
+          dw: "ppm",
+          icon: "/static/warndata/C2H4.svg",
+        },
+        {
+          title: "CO",
+          value: 0,
+          time: "",
+          address: "",
+          dw: "ppm",
+          icon: "/static/warndata/CO.svg",
+        },
+        {
+          title: "CH₄",
+          value: 0,
+          time: "",
+          address: "",
+          dw: "ppm",
+          icon: "/static/warndata/CH4.svg",
+        },
+        {
+          title: "CO₂",
+          value: 0,
+          time: "",
+          address: "",
+          dw: "%",
+          icon: "/static/warndata/CO2.svg",
+        },
+        {
+          title: "C₂H₂",
+          value: 0,
+          time: "",
+          address: "",
+          dw: "ppm",
+          icon: "/static/warndata/zhibiao.svg",
+        },
       ],
     };
   },
@@ -166,32 +278,44 @@ export default {
             that.botContentList.forEach((el, index) => {
               el.time = newC.bundletube[0].readTime;
               if (el.title == "O₂") {
-                that.xDataH = newC.bundletube[0].history.map((x) => x.time);
+                that.xDataH = newC.bundletube[0].history.map((x) =>
+                  that.formatAxisTime(x.time)
+                );
                 that.yDataH = newC.bundletube[0].history.map((y) => y.o2val);
                 that.legendName = "O₂";
                 that.axisDw = "%";
               } else if (el.title == "C₂H₄") {
-                that.xDataH = newC.bundletube[0].history.map((x) => x.time);
+                that.xDataH = newC.bundletube[0].history.map((x) =>
+                  that.formatAxisTime(x.time)
+                );
                 that.yDataH = newC.bundletube[0].history.map((y) => y.ch2val);
                 that.legendName = "C₂H₄";
                 that.axisDw = "ppm";
               } else if (el.title == "CO") {
-                that.xDataH = newC.bundletube[0].history.map((x) => x.time);
+                that.xDataH = newC.bundletube[0].history.map((x) =>
+                  that.formatAxisTime(x.time)
+                );
                 that.yDataH = newC.bundletube[0].history.map((y) => y.coval);
                 that.legendName = "CO";
                 that.axisDw = "ppm";
               } else if (el.title == "CH₄") {
-                that.xDataH = newC.bundletube[0].history.map((x) => x.time);
+                that.xDataH = newC.bundletube[0].history.map((x) =>
+                  that.formatAxisTime(x.time)
+                );
                 that.yDataH = newC.bundletube[0].history.map((y) => y.chval);
                 that.legendName = "CH₄";
                 that.axisDw = "ppm";
               } else if (el.title == "CO₂") {
-                that.xDataH = newC.bundletube[0].history.map((x) => x.time);
+                that.xDataH = newC.bundletube[0].history.map((x) =>
+                  that.formatAxisTime(x.time)
+                );
                 that.yDataH = newC.bundletube[0].history.map((y) => y.co2val);
                 that.legendName = "CO₂";
                 that.axisDw = "%";
               } else if (el.title == "C₂H₂") {
-                that.xDataH = newC.bundletube[0].history.map((x) => x.time);
+                that.xDataH = newC.bundletube[0].history.map((x) =>
+                  that.formatAxisTime(x.time)
+                );
                 that.yDataH = newC.bundletube[0].history.map((y) => y.gasval);
                 that.legendName = "C₂H₂";
                 that.axisDw = "ppm";
@@ -220,6 +344,14 @@ export default {
   },
   mounted() {},
   methods: {
+    //横轴时间格式化,避免标签太长叠在一起
+    formatAxisTime(time) {
+      if (typeof time != "string") {
+        return time;
+      }
+      //2024-03-11 17:58:11 -> 03-11 17:58
+      return time.length > 16 ? time.slice(5, 16) : time;
+    },
     //初始化echarts实例
     initChart() {
       this.option = {
@@ -297,7 +429,28 @@ export default {
       }
     },
   },
-  computed: {},
+  computed: {
+    //曲线通用配置:曲线下方渐变填充 + 横轴标签抽稀
+    areaOpts() {
+      return {
+        xAxis: {
+          disableGrid: true,
+          labelCount: 3,
+          fontSize: 10,
+        },
+        extra: {
+          area: {
+            type: "curve",
+            opacity: 0.35,
+            addLine: true,
+            width: 2,
+            gradient: true,
+            activeType: "hollow",
+          },
+        },
+      };
+    },
+  },
 };
 </script>
 
@@ -318,123 +471,93 @@ export default {
     .top-card {
       width: 100%;
       display: flex;
-      justify-content: flex-start;
+      justify-content: space-between;
       align-items: flex-start;
       flex-wrap: wrap;
 
       .card-box {
-        width: 31.5%;
-        height: 60px;
-        border-radius: 5px;
+        width: calc((100% - 20px) / 3);
+        height: 62px;
+        border-radius: 10px;
         background: linear-gradient(
-          to right,
-          rgba(55, 135, 254, 0.08),
-          rgba(4, 184, 255, 0.08),
-          rgba(60, 161, 237, 0.08)
+          135deg,
+          rgba(55, 135, 254, 0.12) 0%,
+          rgba(4, 184, 255, 0.08) 100%
         );
 
-        &:nth-child(1) {
-          margin-bottom: 10px;
-        }
-
-        &:nth-child(2) {
-          margin-bottom: 10px;
-          margin-left: 10px;
-          margin-right: 10px;
-        }
-
+        &:nth-child(1),
+        &:nth-child(2),
         &:nth-child(3) {
           margin-bottom: 10px;
         }
 
-        &:nth-child(5) {
-          margin-left: 10px;
-          margin-right: 10px;
-        }
-      }
-
-      .card-box:nth-child(1) .box-item {
-        display: flex;
-        flex-direction: column;
-        justify-content: center;
-        align-items: flex-start;
-        width: 100%;
-        height: 100%;
-        padding: 0px 15px;
-        background: url("/static/zgwd.png") no-repeat right;
-        background-size: 40% 80%;
-      }
-
-      .card-box:nth-child(2) .box-item {
-        display: flex;
-        flex-direction: column;
-        justify-content: center;
-        align-items: flex-start;
-        width: 100%;
-        height: 100%;
-        padding: 0px 15px;
-        background: url("/static/zdwd.png") no-repeat right;
-        background-size: 40% 80%;
-      }
-
-      .card-box:nth-child(3) .box-item {
-        display: flex;
-        flex-direction: column;
-        justify-content: center;
-        align-items: flex-start;
-        width: 100%;
-        height: 100%;
-        padding: 0px 15px;
-        background: url("/static/pjwd.png") no-repeat right;
-        background-size: 40% 80%;
-      }
-
-      .card-box:nth-child(4) .box-item {
-        display: flex;
-        flex-direction: column;
-        justify-content: center;
-        align-items: flex-start;
-        width: 100%;
-        height: 100%;
-        padding: 0px 15px;
-        background: url("/static/zt.png") no-repeat right;
-        background-size: 40% 80%;
-      }
+        .box-item {
+          width: 100%;
+          height: 100%;
+          padding: 0px 8px;
+          box-sizing: border-box;
+          display: flex;
+          align-items: center;
 
-      .card-box:nth-child(5) .box-item {
-        display: flex;
-        flex-direction: column;
-        justify-content: center;
-        align-items: flex-start;
-        width: 100%;
-        height: 100%;
-        padding: 0px 15px;
-        background: url("/static/O₂.png") no-repeat right;
-        background-size: 40% 80%;
-      }
+          .item-icon {
+            position: relative;
+            flex-shrink: 0;
+            width: 32px;
+            height: 32px;
+            border-radius: 8px;
+            display: flex;
+            align-items: center;
+            justify-content: center;
+            background: linear-gradient(135deg, #4d9dff 0%, #0065f8 100%);
+
+            //图标后面叠一层浅蓝方块
+            &::before {
+              content: "";
+              position: absolute;
+              left: -4px;
+              top: -4px;
+              width: 100%;
+              height: 100%;
+              border-radius: 8px;
+              background: rgba(77, 157, 255, 0.35);
+            }
+
+            .icon-img {
+              position: relative;
+              width: 16px;
+              height: 16px;
+              filter: brightness(0) invert(1);
+            }
+          }
 
-      .card-box:nth-child(6) .box-item {
-        display: flex;
-        flex-direction: column;
-        justify-content: center;
-        align-items: flex-start;
-        width: 100%;
-        height: 100%;
-        padding: 0px 15px;
-        background: url("/static/CO.png") no-repeat right;
-        background-size: 40% 80%;
+          .item-info {
+            flex: 1;
+            min-width: 0px;
+            padding-left: 8px;
+            display: flex;
+            flex-direction: column;
+            justify-content: center;
+          }
+        }
       }
     }
 
     .box-item .box-val {
-      height: 28px;
-      line-height: 28px;
-      color: #0eb4fc;
+      font-size: 15px;
       font-weight: bold;
+      line-height: 18px;
+      color: #2b7cff;
+    }
+
+    .box-item .box-val.is-normal {
+      color: #39b54a;
     }
 
     .box-item .box-name {
-      font-size: 12px;
+      margin-top: 2px;
+      font-size: 11px;
+      line-height: 14px;
+      color: #000;
     }
   }
 
@@ -481,7 +604,9 @@ export default {
         height: 26px;
         line-height: 26px;
         padding: 0px 20px;
-        font-size: 12px;
+        font-size: 13px;
+        font-weight: 600;
+        color: #000;
         background: url("/static/warndata/title.png") no-repeat;
         background-size: 100% 100%;
       }
@@ -490,65 +615,86 @@ export default {
         padding: 5px 0px;
 
         .content-item {
-          height: 50px;
+          height: 56px;
           display: flex;
           justify-content: space-between;
           align-items: center;
-          // background: linear-gradient(to right, rgba(55, 135, 254, 0.08), rgba(4, 184, 255, 0.08), rgba(60, 161, 237, 0.08));
-          // border-radius: 10px;
           margin-bottom: 5px;
 
-          .item-l {
-            width: calc(50% - 10px);
-            height: 100%;
-            display: flex;
-            flex-direction: column;
-            justify-content: center;
-            align-items: flex-start;
-            border-radius: 10px;
-            padding: 0px 15px;
-            background: url("/static/nd.png"),
-              linear-gradient(
-                to right,
-                rgba(55, 135, 254, 0.08),
-                rgba(4, 184, 255, 0.08),
-                rgba(60, 161, 237, 0.08)
-              );
-            background-size: auto 100%;
-            background-position: right;
-            background-repeat: no-repeat;
-          }
-
+          .item-l,
           .item-r {
-            width: calc(50% - 10px);
+            width: calc(50% - 5px);
             height: 100%;
+            box-sizing: border-box;
             display: flex;
-            flex-direction: column;
-            justify-content: center;
-            align-items: flex-start;
+            align-items: center;
+            padding: 0px 6px;
             border-radius: 10px;
-            padding: 0px 15px;
-            background: url("/static/time.png"),
-              linear-gradient(
-                to right,
-                rgba(55, 135, 254, 0.08),
-                rgba(4, 184, 255, 0.08),
-                rgba(60, 161, 237, 0.08)
-              );
-            background-size: auto 100%;
-            background-position: right;
-            background-repeat: no-repeat;
+            background: linear-gradient(
+              135deg,
+              rgba(55, 135, 254, 0.12) 0%,
+              rgba(4, 184, 255, 0.08) 100%
+            );
+
+            .item-icon {
+              position: relative;
+              flex-shrink: 0;
+              width: 28px;
+              height: 28px;
+              border-radius: 8px;
+              display: flex;
+              align-items: center;
+              justify-content: center;
+              background: linear-gradient(135deg, #4d9dff 0%, #0065f8 100%);
+
+              //图标后面叠一层浅蓝方块
+              &::before {
+                content: "";
+                position: absolute;
+                left: -3px;
+                top: -3px;
+                width: 100%;
+                height: 100%;
+                border-radius: 8px;
+                background: rgba(77, 157, 255, 0.35);
+              }
+
+              .icon-img {
+                position: relative;
+                width: 15px;
+                height: 15px;
+                filter: brightness(0) invert(1);
+              }
+            }
+
+            .item-info {
+              flex: 1;
+              min-width: 0px;
+              padding-left: 6px;
+              display: flex;
+              flex-direction: column;
+              justify-content: center;
+            }
           }
 
           .item-value {
-            height: 20px;
-            line-height: 20px;
-            color: #0eb4fc;
+            font-size: 11px;
             font-weight: bold;
+            line-height: 16px;
+            color: #2b7cff;
+            word-break: break-all;
+          }
+
+          //时间不换行,保证一行显示
+          .item-r .item-value {
+            white-space: nowrap;
           }
 
           .item-label {
+            margin-top: 2px;
             font-size: 12px;
+            line-height: 15px;
+            color: #000;
           }
         }
       }

+ 382 - 142
pages/warndata/components/fire-detail-mb.vue

@@ -3,18 +3,44 @@
   <view class="fire-detail-mb">
     <view class="top-area">
       <view class="top-card">
-        <view class="card-box" v-for="(item, index) in cardList" :key="index">
+        <view
+          class="card-box"
+          v-for="(item, index) in topCardList.slice(0, 3)"
+          :key="index"
+        >
           <view class="box-item">
-            <view class="box-val">{{ item.value }}</view>
-            <view class="box-name">{{ item.name }}</view>
+            <view class="item-icon">
+              <image class="icon-img" :src="item.icon" mode="aspectFit"></image>
+            </view>
+            <view class="item-info">
+              <view
+                class="box-val"
+                :class="{ 'is-normal': item.value == '正常' }"
+                >{{ item.value }}</view
+              >
+              <view class="box-name">{{ item.name }}</view>
+            </view>
           </view>
         </view>
       </view>
       <view class="top-card1">
-        <view class="card-box" v-for="(item, index) in cardList1" :key="index">
+        <view
+          class="card-box"
+          v-for="(item, index) in topCardList.slice(3)"
+          :key="index"
+        >
           <view class="box-item">
-            <view class="box-val">{{ item.value }}</view>
-            <view class="box-name">{{ item.name }}</view>
+            <view class="item-icon">
+              <image class="icon-img" :src="item.icon" mode="aspectFit"></image>
+            </view>
+            <view class="item-info">
+              <view
+                class="box-val"
+                :class="{ 'is-normal': item.value == '正常' }"
+                >{{ item.value }}</view
+              >
+              <view class="box-name">{{ item.name }}</view>
+            </view>
           </view>
         </view>
       </view>
@@ -28,56 +54,95 @@
         v-for="(item, index) in botContentList"
         :key="index"
       >
-        <view class="content-title">{{ item.title }}</view>
+        <view class="content-title"
+          >{{ item.title }}{{ item.dw ? " (" + item.dw + ")" : "" }}</view
+        >
         <view class="content-item-box">
           <view class="content-item">
             <view class="item-l">
-              <view class="item-value">{{ item.nd }}</view>
-              <view class="item-label">浓度</view>
+              <view class="item-icon">
+                <image
+                  class="icon-img"
+                  :src="item.icon"
+                  mode="aspectFit"
+                ></image>
+              </view>
+              <view class="item-info">
+                <view class="item-value">{{ item.value }}</view>
+                <view class="item-label">浓度</view>
+              </view>
             </view>
-            <view class="item-line"></view>
             <view class="item-c">
-              <view class="item-value">{{ item.time }}</view>
-              <view class="item-label">时间</view>
+              <view class="item-icon">
+                <image
+                  class="icon-img"
+                  src="/static/warndata/shijian.svg"
+                  mode="aspectFit"
+                ></image>
+              </view>
+              <view class="item-info">
+                <view class="item-value is-nowrap">{{ item.time }}</view>
+                <view class="item-label">时间</view>
+              </view>
             </view>
-            <view class="item-line"></view>
             <view class="item-r">
-              <view class="item-value">{{ item.address }}</view>
-              <view class="item-label">位置</view>
+              <view class="item-icon">
+                <image
+                  class="icon-img"
+                  src="/static/warndata/weizhi.svg"
+                  mode="aspectFit"
+                ></image>
+              </view>
+              <view class="item-info">
+                <view class="item-value">{{ item.address }}</view>
+                <view class="item-label">位置</view>
+              </view>
             </view>
           </view>
         </view>
         <view class="echartbox1">
           <LineChart
             v-if="item.title == 'O₂'"
+            type="area"
             :chartData="option1"
+            :chartOpts="areaOpts"
             :style="{
               width: '100%',
             }"
           />
           <LineChart
             v-if="item.title == 'C₂H₄'"
+            type="area"
             :chartData="option2"
+            :chartOpts="areaOpts"
             :style="{ width: '100%' }"
           />
           <LineChart
             v-if="item.title == 'CO'"
+            type="area"
             :chartData="option3"
+            :chartOpts="areaOpts"
             :style="{ width: '100%' }"
           />
           <LineChart
             v-if="item.title == 'CH₄'"
+            type="area"
             :chartData="option4"
+            :chartOpts="areaOpts"
             :style="{ width: '100%' }"
           />
           <LineChart
             v-if="item.title == 'CO₂'"
+            type="area"
             :chartData="option5"
+            :chartOpts="areaOpts"
             :style="{ width: '100%' }"
           />
           <LineChart
             v-if="item.title == 'C₂H₂'"
+            type="area"
             :chartData="option6"
+            :chartOpts="areaOpts"
             :style="{ width: '100%' }"
           />
         </view>
@@ -132,7 +197,7 @@ export default {
       legendName: "",
       axisDw: "",
       cardList: [
-        { name: "平均温度()", value: 0 },
+        { name: "平均温度(℃)", value: 0 },
         { name: "位置", value: "" },
         { name: "时间", value: "" },
       ],
@@ -141,12 +206,54 @@ export default {
         { name: "预警等级", value: "" },
       ],
       botContentList: [
-        { title: "O₂", value: 0, time: "", address: "" },
-        { title: "C₂H₄", value: 0, time: "", address: "" },
-        { title: "CO", value: 0, time: "", address: "" },
-        { title: "CH₄", value: 0, time: "", address: "" },
-        { title: "CO₂", value: 0, time: "", address: "" },
-        { title: "C₂H₂", value: 0, time: "", address: "" },
+        {
+          title: "O₂",
+          value: 0,
+          time: "",
+          address: "",
+          dw: "%",
+          icon: "/static/warndata/O₂.svg",
+        },
+        {
+          title: "C₂H₄",
+          value: 0,
+          time: "",
+          address: "",
+          dw: "ppm",
+          icon: "/static/warndata/C2H4.svg",
+        },
+        {
+          title: "CO",
+          value: 0,
+          time: "",
+          address: "",
+          dw: "ppm",
+          icon: "/static/warndata/CO.svg",
+        },
+        {
+          title: "CH₄",
+          value: 0,
+          time: "",
+          address: "",
+          dw: "ppm",
+          icon: "/static/warndata/CH4.svg",
+        },
+        {
+          title: "CO₂",
+          value: 0,
+          time: "",
+          address: "",
+          dw: "%",
+          icon: "/static/warndata/CO2.svg",
+        },
+        {
+          title: "C₂H₂",
+          value: 0,
+          time: "",
+          address: "",
+          dw: "ppm",
+          icon: "/static/warndata/zhibiao.svg",
+        },
       ],
     };
   },
@@ -154,6 +261,36 @@ export default {
     warnLevel: function () {
       return this.cardList1[1].value;
     },
+    //顶部卡片:位置、平均温度、预警等级、煤自燃阶段、时间
+    topCardList() {
+      return [
+        { ...this.cardList[1], icon: "/static/warndata/weizhi.svg" },
+        { ...this.cardList[0], icon: "/static/warndata/pingjun-wendu.svg" },
+        { ...this.cardList1[1], icon: "/static/warndata/yujing-dengji.svg" },
+        { ...this.cardList1[0], icon: "/static/warndata/meiziran-jieduan.svg" },
+        { ...this.cardList[2], icon: "/static/warndata/shijian.svg" },
+      ];
+    },
+    //曲线通用配置:曲线下方渐变填充 + 横轴标签抽稀
+    areaOpts() {
+      return {
+        xAxis: {
+          disableGrid: true,
+          labelCount: 3,
+          fontSize: 10,
+        },
+        extra: {
+          area: {
+            type: "curve",
+            opacity: 0.35,
+            addLine: true,
+            width: 2,
+            gradient: true,
+            activeType: "hollow",
+          },
+        },
+      };
+    },
   },
   watch: {
     detailMb: {
@@ -182,32 +319,44 @@ export default {
               el.time = newM.bundletube[0].readTime;
               el.address = newM.bundletube[0].strinstallpos;
               if (el.title == "O₂") {
-                that.xData = newM.bundletube[0].history.map((x) => x.time);
+                that.xData = newM.bundletube[0].history.map((x) =>
+                  that.formatAxisTime(x.time)
+                );
                 that.yData = newM.bundletube[0].history.map((y) => y.o2val);
                 that.legendName = "O₂";
                 that.axisDw = "%";
               } else if (el.title == "C₂H₄") {
-                that.xData = newM.bundletube[0].history.map((x) => x.time);
+                that.xData = newM.bundletube[0].history.map((x) =>
+                  that.formatAxisTime(x.time)
+                );
                 that.yData = newM.bundletube[0].history.map((y) => y.ch2val);
                 that.legendName = "C₂H₄";
                 that.axisDw = "ppm";
               } else if (el.title == "CO") {
-                that.xData = newM.bundletube[0].history.map((x) => x.time);
+                that.xData = newM.bundletube[0].history.map((x) =>
+                  that.formatAxisTime(x.time)
+                );
                 that.yData = newM.bundletube[0].history.map((y) => y.coval);
                 that.legendName = "CO";
                 that.axisDw = "ppm";
               } else if (el.title == "CH₄") {
-                that.xData = newM.bundletube[0].history.map((x) => x.time);
+                that.xData = newM.bundletube[0].history.map((x) =>
+                  that.formatAxisTime(x.time)
+                );
                 that.yData = newM.bundletube[0].history.map((y) => y.chval);
                 that.legendName = "CH₄";
                 that.axisDw = "ppm";
               } else if (el.title == "CO₂") {
-                that.xData = newM.bundletube[0].history.map((x) => x.time);
+                that.xData = newM.bundletube[0].history.map((x) =>
+                  that.formatAxisTime(x.time)
+                );
                 that.yData = newM.bundletube[0].history.map((y) => y.co2val);
                 that.legendName = "CO₂";
                 that.axisDw = "%";
               } else if (el.title == "C₂H₂") {
-                that.xData = newM.bundletube[0].history.map((x) => x.time);
+                that.xData = newM.bundletube[0].history.map((x) =>
+                  that.formatAxisTime(x.time)
+                );
                 that.yData = newM.bundletube[0].history.map((y) => y.gasval);
                 that.legendName = "C₂H₂";
                 that.axisDw = "ppm";
@@ -242,6 +391,14 @@ export default {
   },
   mounted() {},
   methods: {
+    //横轴时间格式化,避免标签太长叠在一起
+    formatAxisTime(time) {
+      if (typeof time != "string") {
+        return time;
+      }
+      //2024-03-11 17:58:11 -> 03-11 17:58
+      return time.length > 16 ? time.slice(5, 16) : time;
+    },
     initChartH(el) {
       switch (el.title) {
         case "O₂":
@@ -333,51 +490,63 @@ export default {
       align-items: center;
 
       .card-box {
-        width: 32%;
+        width: calc((100% - 20px) / 3);
         height: 100%;
-        border-radius: 5px;
+        border-radius: 10px;
         background: linear-gradient(
-          to right,
-          rgba(55, 135, 254, 0.08),
-          rgba(4, 184, 255, 0.08),
-          rgba(60, 161, 237, 0.08)
+          135deg,
+          rgba(55, 135, 254, 0.12) 0%,
+          rgba(4, 184, 255, 0.08) 100%
         );
-      }
 
-      .card-box:nth-child(1) .box-item {
-        display: flex;
-        flex-direction: column;
-        justify-content: center;
-        align-items: flex-start;
-        width: 100%;
-        height: 100%;
-        padding: 0px 15px;
-        background: url("/static/address.png") no-repeat right;
-        background-size: 40% 80%;
-      }
+        .box-item {
+          width: 100%;
+          height: 100%;
+          padding: 0px 6px;
+          box-sizing: border-box;
+          display: flex;
+          align-items: center;
 
-      .card-box:nth-child(2) .box-item {
-        display: flex;
-        flex-direction: column;
-        justify-content: center;
-        align-items: flex-start;
-        width: 100%;
-        height: 100%;
-        padding: 0px 15px;
-        background: url("/static/pjwd.png") no-repeat right;
-        background-size: 40% 80%;
-      }
+          .item-icon {
+            position: relative;
+            flex-shrink: 0;
+            width: 28px;
+            height: 28px;
+            border-radius: 8px;
+            display: flex;
+            align-items: center;
+            justify-content: center;
+            background: linear-gradient(135deg, #4d9dff 0%, #0065f8 100%);
 
-      .card-box:nth-child(3) .box-item {
-        display: flex;
-        flex-direction: column;
-        justify-content: center;
-        align-items: flex-start;
-        width: 100%;
-        height: 100%;
-        padding: 0px 15px;
-        background: url("/static/yjdj.png") no-repeat right;
-        background-size: 40% 80%;
+            //图标后面叠一层浅蓝方块
+            &::before {
+              content: "";
+              position: absolute;
+              left: -3px;
+              top: -3px;
+              width: 100%;
+              height: 100%;
+              border-radius: 8px;
+              background: rgba(77, 157, 255, 0.35);
+            }
+
+            .icon-img {
+              position: relative;
+              width: 15px;
+              height: 15px;
+              filter: brightness(0) invert(1);
+            }
+          }
+
+          .item-info {
+            flex: 1;
+            min-width: 0px;
+            padding-left: 6px;
+            display: flex;
+            flex-direction: column;
+            justify-content: center;
+          }
+        }
       }
     }
 
@@ -389,52 +558,91 @@ export default {
       align-items: center;
 
       .card-box {
-        width: 49%;
         height: 100%;
-        border-radius: 5px;
+        border-radius: 10px;
         background: linear-gradient(
-          to right,
-          rgba(55, 135, 254, 0.08),
-          rgba(4, 184, 255, 0.08),
-          rgba(60, 161, 237, 0.08)
+          135deg,
+          rgba(55, 135, 254, 0.12) 0%,
+          rgba(4, 184, 255, 0.08) 100%
         );
-      }
 
-      .card-box:nth-child(1) .box-item {
-        display: flex;
-        flex-direction: column;
-        justify-content: center;
-        align-items: flex-start;
-        width: 100%;
-        height: 100%;
-        padding: 0px 15px;
-        background: url("/static/mzrjd.png") no-repeat right;
-        background-size: 40% 80%;
-      }
+        //时间卡片宽一些,保证日期时间一行显示
+        &:nth-child(1) {
+          width: 40%;
+        }
 
-      .card-box:nth-child(2) .box-item {
-        display: flex;
-        flex-direction: column;
-        justify-content: center;
-        align-items: flex-start;
-        width: 100%;
-        height: 100%;
-        padding: 0px 15px;
-        background: url("/static/time.png") no-repeat right;
-        background-size: 40% 80%;
+        &:nth-child(2) {
+          width: calc(60% - 8px);
+        }
+
+        .box-item {
+          width: 100%;
+          height: 100%;
+          padding: 0px 6px;
+          box-sizing: border-box;
+          display: flex;
+          align-items: center;
+
+          .item-icon {
+            position: relative;
+            flex-shrink: 0;
+            width: 28px;
+            height: 28px;
+            border-radius: 8px;
+            display: flex;
+            align-items: center;
+            justify-content: center;
+            background: linear-gradient(135deg, #4d9dff 0%, #0065f8 100%);
+
+            //图标后面叠一层浅蓝方块
+            &::before {
+              content: "";
+              position: absolute;
+              left: -3px;
+              top: -3px;
+              width: 100%;
+              height: 100%;
+              border-radius: 8px;
+              background: rgba(77, 157, 255, 0.35);
+            }
+
+            .icon-img {
+              position: relative;
+              width: 15px;
+              height: 15px;
+              filter: brightness(0) invert(1);
+            }
+          }
+
+          .item-info {
+            flex: 1;
+            min-width: 0px;
+            padding-left: 6px;
+            display: flex;
+            flex-direction: column;
+            justify-content: center;
+          }
+        }
       }
     }
 
     .box-item .box-val {
-      // height: 28px;
-      // line-height: 28px;
-      color: #0eb4fc;
+      font-size: 13px;
       font-weight: bold;
-      margin-bottom: 5px;
+      line-height: 16px;
+      color: #2b7cff;
+      white-space: nowrap;
+    }
+
+    .box-item .box-val.is-normal {
+      color: #39b54a;
     }
 
     .box-item .box-name {
-      font-size: 12px;
+      margin-top: 2px;
+      font-size: 11px;
+      line-height: 14px;
+      color: #000;
     }
   }
 
@@ -451,6 +659,9 @@ export default {
       display: flex;
       justify-content: space-between;
       align-items: center;
+      font-size: 14px;
+      font-weight: 600;
+      color: #000;
     }
 
     .bot-content {
@@ -460,7 +671,9 @@ export default {
         height: 26px;
         line-height: 26px;
         padding: 0px 20px;
-        font-size: 12px;
+        font-size: 13px;
+        font-weight: 600;
+        color: #000;
         background: url("/static/warndata/title.png") no-repeat;
         background-size: 100% 100%;
       }
@@ -469,68 +682,95 @@ export default {
         padding: 5px 0px;
 
         .content-item {
-          height: 50px;
+          height: 56px;
           display: flex;
           justify-content: space-between;
           align-items: center;
-          background: linear-gradient(
-            to right,
-            rgba(55, 135, 254, 0.08),
-            rgba(4, 184, 255, 0.08),
-            rgba(60, 161, 237, 0.08)
-          );
-          border-radius: 10px;
           margin-bottom: 5px;
 
-          .item-l {
-            width: calc(25% - 2px);
+          .item-l,
+          .item-c,
+          .item-r {
             height: 100%;
+            box-sizing: border-box;
             display: flex;
-            flex-direction: column;
-            justify-content: center;
             align-items: center;
-          }
+            padding: 0px 6px;
+            border-radius: 10px;
+            background: linear-gradient(
+              135deg,
+              rgba(55, 135, 254, 0.12) 0%,
+              rgba(4, 184, 255, 0.08) 100%
+            );
 
-          .item-c {
-            width: calc(50% - 4px);
-            height: 100%;
-            display: flex;
-            flex-direction: column;
-            justify-content: center;
-            align-items: center;
+            .item-icon {
+              position: relative;
+              flex-shrink: 0;
+              width: 28px;
+              height: 28px;
+              border-radius: 8px;
+              display: flex;
+              align-items: center;
+              justify-content: center;
+              background: linear-gradient(135deg, #4d9dff 0%, #0065f8 100%);
+
+              //图标后面叠一层浅蓝方块
+              &::before {
+                content: "";
+                position: absolute;
+                left: -3px;
+                top: -3px;
+                width: 100%;
+                height: 100%;
+                border-radius: 8px;
+                background: rgba(77, 157, 255, 0.35);
+              }
+
+              .icon-img {
+                position: relative;
+                width: 15px;
+                height: 15px;
+                filter: brightness(0) invert(1);
+              }
+            }
+
+            .item-info {
+              flex: 1;
+              min-width: 0px;
+              padding-left: 6px;
+              display: flex;
+              flex-direction: column;
+              justify-content: center;
+            }
           }
 
-          .item-line {
-            width: 4px;
-            height: 70%;
-            border-left: 2px solid;
-            border-image: linear-gradient(
-                to bottom,
-                transparent,
-                rgba(140, 203, 254, 1),
-                transparent
-              )
-              1 1 1;
+          //时间卡片宽一些,保证日期时间一行显示
+          .item-c {
+            width: calc(50% - 5px);
           }
 
+          .item-l,
           .item-r {
-            width: calc(25% - 2px);
-            height: 100%;
-            display: flex;
-            flex-direction: column;
-            justify-content: center;
-            align-items: center;
+            width: calc(25% - 5px);
           }
 
           .item-value {
-            height: 20px;
-            line-height: 20px;
-            color: #0eb4fc;
+            font-size: 11px;
             font-weight: bold;
+            line-height: 16px;
+            color: #2b7cff;
+            word-break: break-all;
+          }
+
+          .item-value.is-nowrap {
+            white-space: nowrap;
           }
 
           .item-label {
-            font-size: 12px;
+            margin-top: 2px;
+            font-size: 11px;
+            line-height: 15px;
+            color: #000;
           }
         }
       }

+ 309 - 274
pages/warndata/components/fire-detail-out.vue

@@ -1,95 +1,60 @@
 <template>
   <!-- 外因火灾 -->
   <view class="fire-detail-out">
-    <!-- <view class="top-area">
+    <view class="top-area">
       <view class="top-card">
         <view class="card-box" v-for="(item, index) in cardList" :key="index">
           <view class="box-item">
-            <view class="box-val">{{ item.value }}</view>
-            <view class="box-name">{{ item.name }}</view>
+            <view class="item-icon">
+              <image class="icon-img" :src="item.icon" mode="aspectFit"></image>
+            </view>
+            <view class="item-info">
+              <view
+                class="box-val"
+                :class="{ 'is-normal': item.value == '正常' }"
+                >{{ item.value }}</view
+              >
+              <view class="box-name">{{ item.name }}</view>
+            </view>
           </view>
         </view>
       </view>
-    </view> -->
-    <!-- <view class="center-area">
+    </view>
+    <view class="center-area">
       <view class="bot-title">
-        <view style="font-weight: bold">光钎测温系统温度实时监测</view>
+        <view style="font-weight: bold">光纤测温系统温度实时监测</view>
       </view>
       <view class="echartBox">
-        <LineChart :chartData="option" :style="{ width: '100%' }"></LineChart>
+        <LineChart
+          type="area"
+          :chartData="option"
+          :chartOpts="chartOpts"
+          :style="{ width: '100%' }"
+        ></LineChart>
       </view>
-    </view> -->
+    </view>
     <view class="bot-area" v-for="(item, index) in botList" :key="index">
-      <view class="bot-title">
-        <view style="font-weight: bold">{{ item.title }}</view>
-      </view>
+      <view class="bot-title">{{ item.title }}</view>
       <view class="bot-content">
         <view class="h-table">
-          <view class="table-head" v-if="item.title == '烟雾传感器监测'">
+          <view class="table-head">
             <view
               class="head-item"
-              v-for="(items, index) in headList"
-              :key="index"
-              >{{ items.title }}</view
+              v-for="(col, cIndex) in item.head"
+              :key="cIndex"
+              :style="{ width: col.width }"
+              >{{ col.title }}</view
             >
           </view>
-          <view class="table-head" v-else-if="item.title == '温度传感器监测'">
-            <view
-              class="head-item1"
-              v-for="(items, index) in headList2"
-              :key="index"
-              >{{ items.title }}
-            </view>
-          </view>
-          <view class="table-head" v-else>
-            <view
-              class="head-item1"
-              v-for="(items, index) in headList1"
-              :key="index"
-              >{{ items.title }}
-            </view>
-          </view>
           <view class="table-content">
-            <view
-              class="content-tr"
-              v-if="item.title == '温度传感器监测'"
-              v-for="(ite, ind) in tableDataWd"
-              :key="ind"
-            >
-              <view class="content-td td1">{{ ite.val }}</view>
-              <view class="content-td td2">{{ ite.warnLevel_str }}</view>
-              <view class="content-td td3">{{ ite.readTime }}</view>
-            </view>
-            <view
-              class="content-tr"
-              v-if="item.title == '烟雾传感器监测'"
-              v-for="(ite, ind) in tableDataYw"
-              :key="ind"
-            >
-              <view class="content-td td">{{ ite.strinstallpos }}</view>
-              <view class="content-td td1">{{ ite.val }}</view>
-              <view class="content-td td2">{{ ite.warnLevel_str }}</view>
-              <view class="content-td td3">{{ ite.readTime }}</view>
-            </view>
-            <view
-              class="content-tr"
-              v-if="item.title == '一氧化碳传感器监测'"
-              v-for="(ite, ind) in tableDataCo"
-              :key="ind"
-            >
-              <view class="content-td td1">{{ ite.strinstallpos }}</view>
-              <view class="content-td td2">{{ ite.warnLevel_str }}</view>
-              <view class="content-td td3">{{ ite.readTime }}</view>
-            </view>
-            <view
-              class="content-tr"
-              v-if="item.title == '自动喷淋灭火装置监测'"
-              v-for="(ite, ind) in tableDataPl"
-              :key="ind"
-            >
-              <view class="content-td td">{{ ite.strinstallpos }}</view>
-              <view class="content-td td1">{{ ite.warnLevel_str }}</view>
-              <view class="content-td td2">{{ ite.readTime }}</view>
+            <view class="content-tr" v-for="(ite, ind) in item.list" :key="ind">
+              <view
+                class="content-td"
+                v-for="(col, cIndex) in item.head"
+                :key="cIndex"
+                :style="{ width: col.width }"
+                >{{ cellText(ite, col.key) }}</view
+              >
             </view>
           </view>
         </view>
@@ -112,30 +77,54 @@ export default {
   },
   data() {
     return {
-      option: "",
+      option: {
+        categories: [],
+        series: [{ name: "当前温度", data: [] }],
+      },
       myChart: null,
       xData: [],
       yData: [],
       cardList: [
-        { name: "最高温度()", value: 0 },
-        { name: "最低温度()", value: 0 },
-        { name: "平均温度()", value: 0 },
-        { name: "状态", value: "正常" },
-      ],
-      botList: [
-        { title: "温度传感器监测" },
-        { title: "烟雾传感器监测" },
-        { title: "一氧化碳传感器监测" },
-        { title: "自动喷淋灭火装置监测" },
+        {
+          name: "最高温度(℃)",
+          value: 0,
+          icon: "/static/warndata/zuigao-wendu.svg",
+        },
+        {
+          name: "最低温度(℃)",
+          value: 0,
+          icon: "/static/warndata/zuidi-wendu.svg",
+        },
+        {
+          name: "平均温度(℃)",
+          value: 0,
+          icon: "/static/warndata/pingjun-wendu.svg",
+        },
+        {
+          name: "状态",
+          value: "正常",
+          icon: "/static/warndata/zhuangtai.svg",
+        },
       ],
+      //表头:设备名称/值/状态/时间
       headList: [
-        { title: "设备名称" },
-        { title: "值" },
-        { title: "状态" },
-        { title: "时间" },
+        { title: "设备名称", key: "strinstallpos", width: "25%" },
+        { title: "值", key: "val", width: "20%" },
+        { title: "状态", key: "warnLevel_str", width: "20%" },
+        { title: "时间", key: "readTime", width: "35%" },
+      ],
+      //表头:设备名称/状态/时间
+      headList1: [
+        { title: "设备名称", key: "strinstallpos", width: "40%" },
+        { title: "状态", key: "warnLevel_str", width: "30%" },
+        { title: "时间", key: "readTime", width: "30%" },
+      ],
+      //表头:值/状态/时间
+      headList2: [
+        { title: "值", key: "val", width: "30%" },
+        { title: "状态", key: "warnLevel_str", width: "30%" },
+        { title: "时间", key: "readTime", width: "40%" },
       ],
-      headList1: [{ title: "设备名称" }, { title: "状态" }, { title: "时间" }],
-      headList2: [{ title: "值" }, { title: "状态" }, { title: "时间" }],
       tableDataYw: [],
       tableDataCo: [],
       tableDataPl: [],
@@ -147,66 +136,71 @@ export default {
       handler(newW, oldW) {
         console.log(newW, "newW--------------");
         let that = this;
+        //接口未就绪或类型不对时不处理,避免报错中断
+        if (!newW || typeof newW != "object" || Array.isArray(newW)) {
+          return;
+        }
         that.xData = [];
         that.yData = [];
         if (JSON.stringify(newW) != "{}") {
-          if (newW.fiber.length != 0) {
-            that.cardList[0].value = newW.fiber[0].readData.fmax;
-            that.cardList[1].value = newW.fiber[0].readData.fmin;
-            that.cardList[2].value = newW.fiber[0].readData.favg;
-            that.cardList[3].value = newW.fiber[0].warnFlag
-              ? "存在风险"
-              : "正常";
-            JSON.parse(newW.fiber[0].readData.fibreTemperature).forEach(
-              (el) => {
-                that.xData.push(el.pos);
-                that.yData.push(el.value);
-                this.initChart();
-              }
-            );
+          //排查用:接口实际返回的字段
+          console.log("外因火灾接口字段:", Object.keys(newW));
+
+          //光纤测温:最高/最低/平均温度 + 温度曲线
+          let fiber = that.getList(newW, "fiber");
+          if (fiber.length != 0) {
+            let readData = fiber[0].readData || {};
+            that.cardList[0].value = that.valueOr(readData.fmax);
+            that.cardList[1].value = that.valueOr(readData.fmin);
+            that.cardList[2].value = that.valueOr(readData.favg);
+            that.cardList[3].value = fiber[0].warnFlag ? "存在风险" : "正常";
+            that.parseJson(readData.fibreTemperature).forEach((el) => {
+              that.xData.push(el.pos);
+              that.yData.push(el.value);
+            });
           } else {
+            console.warn("外因火灾:接口未返回光纤测温数据 fiber");
             that.cardList[0].value = "--";
             that.cardList[1].value = "--";
             that.cardList[2].value = "--";
             that.cardList[3].value = "正常";
           }
-
-          if (newW.smoke.length != 0) {
-            that.tableDataYw = newW.smoke.map((el) => {
-              return {
-                strinstallpos: el.strinstallpos,
-                val: el.readData.smokeval,
-                warnLevel_str:
-                  el.warnLevel_str == "正常" ? "低风险" : el.warnLevel_str,
-                readTime: el.readTime,
-              };
-            });
-          } else {
-            that.tableDataYw = [];
-          }
-          if (newW.temperature.length != 0) {
-            that.tableDataWd = newW.temperature.map((el) => {
-              return {
-                val: el.readData.fireval,
-                warnLevel_str:
-                  el.warnLevel_str == "正常" ? "低风险" : el.warnLevel_str,
-                readTime: el.readTime,
-              };
-            });
-          } else {
-            that.tableDataWd = [];
-          }
-          if (newW.co.length != 0) {
-            that.tableDataCo = newW.co;
-          } else {
-            that.tableDataCo = [];
-          }
-
-          if (newW.spray.length != 0) {
-            that.tableDataPl = newW.spray;
-          } else {
-            that.tableDataPl = [];
-          }
+          that.initChart();
+
+          //烟雾传感器
+          that.tableDataYw = that.getList(newW, "smoke").map((el) => {
+            return {
+              strinstallpos: el.strinstallpos,
+              val: el.readData ? el.readData.smokeval : "",
+              warnLevel_str:
+                el.warnLevel_str == "正常" ? "低风险" : el.warnLevel_str,
+              readTime: el.readTime,
+            };
+          });
+
+          //温度传感器
+          that.tableDataWd = that.getList(newW, "temperature").map((el) => {
+            return {
+              val: el.readData ? el.readData.fireval : "",
+              warnLevel_str:
+                el.warnLevel_str == "正常" ? "低风险" : el.warnLevel_str,
+              readTime: el.readTime,
+            };
+          });
+
+          //一氧化碳传感器
+          that.tableDataCo = that.getList(newW, "co").map((el) => {
+            return {
+              strinstallpos: el.strinstallpos,
+              val: el.readData ? el.readData.coval : "",
+              warnLevel_str:
+                el.warnLevel_str == "正常" ? "低风险" : el.warnLevel_str,
+              readTime: el.readTime,
+            };
+          });
+
+          //自动喷淋灭火装置
+          that.tableDataPl = that.getList(newW, "spray");
         }
       },
       immediate: true,
@@ -227,8 +221,77 @@ export default {
         ],
       };
     },
+    //取出接口里的数组字段,字段不存在时返回空数组
+    getList(data, key) {
+      const list = data ? data[key] : null;
+      return Array.isArray(list) ? list : [];
+    },
+    //解析JSON字符串(光纤测温数据),解析失败返回空数组
+    parseJson(str) {
+      if (!str) {
+        return [];
+      }
+      try {
+        const data = typeof str == "string" ? JSON.parse(str) : str;
+        return Array.isArray(data) ? data : [];
+      } catch (e) {
+        console.warn("光纤测温数据解析失败:", str, e);
+        return [];
+      }
+    },
+    //空值统一显示--
+    valueOr(value) {
+      return value === null || value === undefined || value === ""
+        ? "--"
+        : value;
+    },
+    //表格取值,空值统一显示--
+    cellText(item, key) {
+      return this.valueOr(item ? item[key] : "");
+    },
+  },
+  computed: {
+    //光纤测温曲线:曲线下方渐变填充
+    chartOpts() {
+      return {
+        extra: {
+          area: {
+            type: "curve",
+            opacity: 0.35,
+            addLine: true,
+            width: 2,
+            gradient: true,
+            activeType: "hollow",
+          },
+        },
+      };
+    },
+    //各监测项表格
+    botList() {
+      return [
+        {
+          title: "温度传感器监测",
+          head: this.headList2,
+          list: this.tableDataWd,
+        },
+        {
+          title: "烟雾传感器监测",
+          head: this.headList,
+          list: this.tableDataYw,
+        },
+        {
+          title: "一氧化碳传感器监测",
+          head: this.headList,
+          list: this.tableDataCo,
+        },
+        {
+          title: "自动喷淋灭火装置监测",
+          head: this.headList1,
+          list: this.tableDataPl,
+        },
+      ];
+    },
   },
-  computed: {},
 };
 </script>
 
@@ -249,98 +312,92 @@ export default {
     .top-card {
       width: 100%;
       display: flex;
-      justify-content: flex-start;
+      justify-content: space-between;
       align-items: flex-start;
       flex-wrap: wrap;
 
       .card-box {
         width: calc(50% - 5px);
-        height: 60px;
-        border-radius: 5px;
+        height: 62px;
+        border-radius: 10px;
         background: linear-gradient(
-          to right,
-          rgba(55, 135, 254, 0.08),
-          rgba(4, 184, 255, 0.08),
-          rgba(60, 161, 237, 0.08)
+          135deg,
+          rgba(55, 135, 254, 0.12) 0%,
+          rgba(4, 184, 255, 0.08) 100%
         );
 
-        &:nth-child(1) {
-          margin-bottom: 10px;
-          margin-right: 5px;
-        }
-
+        &:nth-child(1),
         &:nth-child(2) {
           margin-bottom: 10px;
-          margin-left: 5px;
-        }
-
-        &:nth-child(3) {
-          margin-right: 5px;
         }
 
-        &:nth-child(4) {
-          margin-left: 5px;
-        }
-      }
-
-      .card-box:nth-child(1) .box-item {
-        display: flex;
-        flex-direction: column;
-        justify-content: center;
-        align-items: flex-start;
-        width: 100%;
-        height: 100%;
-        padding: 0px 15px;
-        background: url("/static/zgwd.png") no-repeat right;
-        background-size: auto 80%;
-      }
+        .box-item {
+          width: 100%;
+          height: 100%;
+          padding: 0px 10px;
+          box-sizing: border-box;
+          display: flex;
+          align-items: center;
 
-      .card-box:nth-child(2) .box-item {
-        display: flex;
-        flex-direction: column;
-        justify-content: center;
-        align-items: flex-start;
-        width: 100%;
-        height: 100%;
-        padding: 0px 15px;
-        background: url("/static/zdwd.png") no-repeat right;
-        background-size: auto 80%;
-      }
+          .item-icon {
+            position: relative;
+            flex-shrink: 0;
+            width: 34px;
+            height: 34px;
+            border-radius: 8px;
+            display: flex;
+            align-items: center;
+            justify-content: center;
+            background: linear-gradient(135deg, #4d9dff 0%, #0065f8 100%);
+
+            //图标后面叠一层浅蓝方块
+            &::before {
+              content: "";
+              position: absolute;
+              left: -4px;
+              top: -4px;
+              width: 100%;
+              height: 100%;
+              border-radius: 8px;
+              background: rgba(77, 157, 255, 0.35);
+            }
 
-      .card-box:nth-child(3) .box-item {
-        display: flex;
-        flex-direction: column;
-        justify-content: center;
-        align-items: flex-start;
-        width: 100%;
-        height: 100%;
-        padding: 0px 15px;
-        background: url("/static/pjwd.png") no-repeat right;
-        background-size: auto 80%;
-      }
+            .icon-img {
+              position: relative;
+              width: 18px;
+              height: 18px;
+              filter: brightness(0) invert(1);
+            }
+          }
 
-      .card-box:nth-child(4) .box-item {
-        display: flex;
-        flex-direction: column;
-        justify-content: center;
-        align-items: flex-start;
-        width: 100%;
-        height: 100%;
-        padding: 0px 15px;
-        background: url("/static/zt.png") no-repeat right;
-        background-size: auto 80%;
+          .item-info {
+            flex: 1;
+            min-width: 0px;
+            padding-left: 10px;
+            display: flex;
+            flex-direction: column;
+            justify-content: center;
+          }
+        }
       }
     }
 
     .box-item .box-val {
-      height: 28px;
-      line-height: 28px;
-      color: #0eb4fc;
+      font-size: 15px;
       font-weight: bold;
+      line-height: 18px;
+      color: #2b7cff;
+    }
+
+    .box-item .box-val.is-normal {
+      color: #39b54a;
     }
 
     .box-item .box-name {
+      margin-top: 2px;
       font-size: 12px;
+      line-height: 16px;
+      color: #000000;
     }
   }
 
@@ -369,15 +426,19 @@ export default {
     width: 100%;
     padding: 10px;
     background-color: #fff;
-    margin-bottom: 2px;
+    border-radius: 10px;
+    box-shadow: 0 2px 8px rgba(43, 124, 255, 0.08);
+    margin-bottom: 10px;
     box-sizing: border-box;
 
     .bot-title {
       height: 28px;
       margin-bottom: 5px;
       display: flex;
-      justify-content: space-between;
       align-items: center;
+      font-size: 14px;
+      font-weight: 600;
+      color: #333;
     }
 
     .bot-content {
@@ -385,105 +446,79 @@ export default {
       height: 240px;
 
       .h-table {
+        display: flex;
+        flex-direction: column;
         width: 100%;
         height: 100%;
-        border: 1px solid #0eb4fc;
+        box-sizing: border-box;
+        border: 1px solid #bcd7fb;
+        border-radius: 4px;
+        overflow: hidden;
 
         .table-head {
+          flex-shrink: 0;
           display: flex;
-          justify-content: space-between;
           align-items: center;
-          height: 36px;
-          border-bottom: 1px solid #0eb4fc;
+          height: 38px;
+          border-bottom: 1px solid #bcd7fb;
 
           .head-item {
-            font-size: 12px;
-            color: #0eb4fc;
+            height: 100%;
             display: flex;
             justify-content: center;
             align-items: center;
-            font-weight: bold;
-
-            &:nth-child(1) {
-              width: 30%;
-            }
-
-            &:nth-child(2) {
-              width: 20%;
-            }
-
-            &:nth-child(3) {
-              width: 20%;
-            }
-
-            &:nth-child(4) {
-              width: 30%;
-            }
-          }
-
-          .head-item1 {
+            box-sizing: border-box;
             font-size: 12px;
-            color: #0eb4fc;
-            display: flex;
-            justify-content: center;
-            align-items: center;
-            font-weight: bold;
-
-            &:nth-child(1) {
-              width: 30%;
-            }
+            font-weight: 600;
+            color: #1a6dff;
+            text-align: center;
+            border-right: 1px solid #bcd7fb;
 
-            &:nth-child(2) {
-              width: 30%;
-            }
-
-            &:nth-child(3) {
-              width: 40%;
+            &:last-child {
+              border-right: none;
             }
           }
         }
 
         .table-content {
-          height: calc(100% - 36px);
+          flex: 1;
+          min-height: 0;
           overflow-y: auto;
 
           .content-tr {
-            height: 80px;
             display: flex;
-            justify-content: space-between;
-            align-items: center;
+            align-items: stretch;
+            min-height: 44px;
+            box-sizing: border-box;
+            border-bottom: 1px solid #cfe1fa;
+
+            &:last-child {
+              border-bottom: none;
+            }
 
             &:nth-child(odd) {
-              background-color: #f3faff;
+              background-color: #f5f9ff;
             }
 
             &:nth-child(even) {
-              background-color: #e8f5ff;
+              background-color: #e9f3ff;
             }
 
             .content-td {
-              height: 100%;
-              font-size: 12px;
               display: flex;
               justify-content: center;
               align-items: center;
+              box-sizing: border-box;
+              padding: 6px 4px;
+              font-size: 12px;
+              color: #333;
               text-align: center;
-            }
-
-            .td {
-              width: 30%;
-            }
-
-            .td1 {
-              width: 20%;
-            }
-
-            .td2 {
-              width: 20%;
-            }
+              word-break: break-all;
+              border-right: 1px solid #cfe1fa;
 
-            .td3 {
-              width: 30%;
+              &:last-child {
+                border-right: none;
+              }
             }
           }
         }

+ 232 - 171
pages/warndata/components/fire-detail-zb.vue

@@ -1,204 +1,265 @@
 <template>
-    <!-- 外因火灾 -->
-    <view class="fire-detail-zb">
-        <view class="top-area">
-            <view class="echartBox">
-                <warnZb :resetIndex="0" :widthV="widthV" :heightV="heightV" :coordDw="coordDw"
-                    :widthCanvas="widthCanvas" :heightCanvas="heightCanvas"></warnZb>
+  <!-- 外因火灾 -->
+  <view class="fire-detail-zb">
+    <view class="top-area">
+      <view class="echartBox">
+        <warnZb
+          :resetIndex="0"
+          :widthV="widthV"
+          :heightV="heightV"
+          :coordDw="coordDw"
+          :widthCanvas="widthCanvas"
+          :heightCanvas="heightCanvas"
+          :stageList="stageList"
+        ></warnZb>
+      </view>
+    </view>
+    <view class="bot-area">
+      <view
+        class="bot-content"
+        v-for="(item, index) in botContentList"
+        :key="index"
+      >
+        <view class="content-title">序号:{{ seqNo(index) }}</view>
+        <view class="content-item-box">
+          <view
+            class="content-item"
+            v-for="(card, cIndex) in cardList"
+            :key="cIndex"
+          >
+            <view class="item-icon">
+              <image class="icon-img" :src="card.icon" mode="aspectFit"></image>
             </view>
-        </view>
-        <view class="bot-area">
-            <view class="bot-content" v-for="(item, index) in botContentList" :key="index">
-                <view class="content-title">{{ item.title }}</view>
-                <view class="content-item-box">
-                    <view class="content-item">
-                        <view class="item-l">
-                            <view class="item-value">{{ item.level || '--' }}</view>
-                            <view class="item-label">预警等级</view>
-                        </view>
-                        <view class="item-line"></view>
-                        <view class="item-c">
-                            <view class="item-value">{{ item.alarmName || '--' }}</view>
-                            <view class="item-label">煤自燃阶段</view>
-                        </view>
-                        <view class="item-line"></view>
-                        <view class="item-r">
-                            <view class="item-value">{{ item.alarmInfo || '--' }}</view>
-                            <view class="item-label">指标</view>
-                        </view>
-                    </view>
-                    <view class="content-item">
-                        <view class="item-l">
-                            <view class="item-value">{{ item.alarmdes || '--' }}</view>
-                            <view class="item-label">条件</view>
-                        </view>
-                        <view class="item-line"></view>
-                        <view class="item-c">
-                            <view class="item-value">{{ item.temperature || '--' }}</view>
-                            <view class="item-label">温度</view>
-                        </view>
-                        <view class="item-line"></view>
-                        <view class="item-r">
-                            <view class="item-value">{{ item.address || '--' }}</view>
-                            <view class="item-label">参考值</view>
-                        </view>
-                    </view>
-                </view>
+            <view class="item-info">
+              <view class="item-value">{{ cellValue(item, card.key) }}</view>
+              <view class="item-label">{{ card.label }}</view>
             </view>
+          </view>
         </view>
+      </view>
     </view>
+  </view>
 </template>
 
 <script>
 import api from "@/api/api";
-import warnZb from './warn-zb.vue'
+import warnZb from "./warn-zb.vue";
 export default {
-    name: 'fireDetailZb',
-    components: {
-        warnZb
+  name: "fireDetailZb",
+  components: {
+    warnZb,
+  },
+  props: {
+    detailZb: {
+      type: Object,
+      default: () => {
+        return {};
+      },
     },
-    props: {
-        detailZb: {
-            type: Object,
-            default: () => {
-                return {}
-            }
+  },
+
+  data() {
+    return {
+      widthV: "85%",
+      heightV: "85%",
+      coordDw: [16, 42],
+      widthCanvas: "302px",
+      heightCanvas: "194px",
+      botContentList: [],
+      //底部卡片:名称、取值字段、对应图标
+      cardList: [
+        {
+          label: "预警等级",
+          key: "level",
+          icon: "/static/warndata/yujing-dengji.svg",
+        },
+        {
+          label: "煤自燃阶段",
+          key: "alarmName",
+          icon: "/static/warndata/meiziran-jieduan.svg",
+        },
+        {
+          label: "指标",
+          key: "alarmInfo",
+          icon: "/static/warndata/zhibiao.svg",
+        },
+        {
+          label: "条件",
+          key: "alarmdes",
+          icon: "/static/warndata/tiaojian.svg",
+        },
+        {
+          label: "温度",
+          key: "temperature",
+          icon: "/static/warndata/wendu.svg",
+        },
+        {
+          label: "参考值",
+          key: "address",
+          icon: "/static/warndata/cankaozhi.svg",
+        },
+      ],
+    };
+  },
+  watch: {
+    detailZb: {
+      handler(newZ, oldZ) {
+        console.log(newZ, "newZ--------------");
+        let that = this;
+        if (JSON.stringify(newZ) != "{}") {
+          that.botContentList = newZ.info[0].list;
         }
+      },
+      immediate: true,
+      deep: true,
     },
-
-    data() {
-        return {
-            widthV: '85%',
-            heightV: '85%',
-            coordDw: [16, 42],
-            widthCanvas: '302px',
-            heightCanvas: '194px',
-            botContentList: []
-        };
+  },
+  mounted() {},
+  methods: {
+    //序号,补零显示:01、02……
+    seqNo(index) {
+      const num = index + 1;
+      return num < 10 ? "0" + num : "" + num;
     },
-    watch: {
-        detailZb: {
-            handler(newZ, oldZ) {
-                console.log(newZ, 'newZ--------------')
-                let that = this
-                if (JSON.stringify(newZ) != '{}') {
-                    that.botContentList = newZ.info[0].list
-                }
-            },
-            immediate: true,
-            deep: true
+    //卡片取值,空值统一显示--
+    cellValue(item, key) {
+      const value = item ? item[key] : "";
+      return value === null || value === undefined || value === ""
+        ? "--"
+        : value;
+    },
+  },
+  computed: {
+    //当前数据中出现的煤自燃阶段(用于曲线图区间高亮)
+    stageList() {
+      const list = [];
+      this.botContentList.forEach((ite) => {
+        if (ite.alarmName && list.indexOf(ite.alarmName) === -1) {
+          list.push(ite.alarmName);
         }
+      });
+      return list;
     },
-    mounted() { },
-    methods: {},
-    computed: {},
+  },
 };
 </script>
 
 <style lang="scss" scoped>
 .fire-detail-zb {
+  width: 100%;
+  height: 100%;
+
+  // box-sizing: border-box;
+  // overflow-y: auto;
+  .top-area {
     width: 100%;
-    height: 100%;
-
-    // box-sizing: border-box;
-    // overflow-y: auto;
-    .top-area {
-        width: 100%;
-        padding: 10px;
-        background-color: #FFF;
-        margin-bottom: 2px;
-        box-sizing: border-box;
-
-        .echartBox {
-            width: 100%;
-            height: 240px;
-        }
+    padding: 10px;
+    background-color: #fff;
+    border-radius: 10px;
+    box-shadow: 0 2px 8px rgba(43, 124, 255, 0.08);
+    margin-bottom: 10px;
+    box-sizing: border-box;
+
+    .echartBox {
+      width: 100%;
+      height: 250px;
     }
+  }
 
-    .bot-area {
-        width: 100%;
-        padding: 10px;
-        background-color: #FFF;
-        margin-bottom: 2px;
-        box-sizing: border-box;
-
-        .bot-content {
-            margin-bottom: 15px;
-
-            .content-title {
-                height: 26px;
-                line-height: 26px;
-                padding: 0px 20px;
-                font-size: 12px;
-                background: url('/static/warndata/title.png') no-repeat;
-                background-size: 100% 100%;
-            }
+  .bot-area {
+    width: 100%;
+    padding: 10px;
+    background-color: #fff;
+    border-radius: 10px;
+    box-shadow: 0 2px 8px rgba(43, 124, 255, 0.08);
+    box-sizing: border-box;
+
+    .bot-content {
+      margin-bottom: 15px;
+
+      &:last-child {
+        margin-bottom: 0;
+      }
+
+      .content-title {
+        height: 26px;
+        line-height: 26px;
+        padding: 0px 20px;
+        font-size: 13px;
+        font-weight: 600;
+        color: #1f3a68;
+        background: url("/static/warndata/title.png") no-repeat;
+        background-size: 100% 100%;
+      }
+
+      .content-item-box {
+        display: flex;
+        flex-wrap: wrap;
+        padding: 10px 0px 0px;
 
-            .content-item-box {
-                padding: 5px 0px;
-
-                .content-item {
-                    height: 70px;
-                    display: flex;
-                    justify-content: space-between;
-                    align-items: center;
-                    background: linear-gradient(to right, rgba(55, 135, 254, 0.08), rgba(4, 184, 255, 0.08), rgba(60, 161, 237, 0.08));
-                    border-radius: 10px;
-                    margin-bottom: 5px;
-
-                    .item-l {
-                        width: calc(25% - 2px);
-                        height: 100%;
-                        display: flex;
-                        flex-direction: column;
-                        justify-content: center;
-                        align-items: center;
-                        text-align: center;
-                    }
-
-                    .item-c {
-                        width: calc(50% - 4px);
-                        height: 100%;
-                        display: flex;
-                        flex-direction: column;
-                        justify-content: center;
-                        align-items: center;
-                        text-align: center;
-                    }
-
-                    .item-line {
-                        width: 4px;
-                        height: 70%;
-                        border-left: 2px solid;
-                        border-image: linear-gradient(to bottom, transparent, rgba(140, 203, 254, 1), transparent) 1 1 1;
-                    }
-
-                    .item-r {
-                        width: calc(25% - 2px);
-                        height: 100%;
-                        display: flex;
-                        flex-direction: column;
-                        justify-content: center;
-                        align-items: center;
-                        text-align: center;
-                    }
-
-                    .item-value {
-                        color: #0eb4fc;
-                        font-weight: bold;
-                        font-size: 12px;
-                        margin-bottom: 5px;
-                    }
-
-                    .item-label {
-                        font-size: 12px;
-                    }
-                }
+        .content-item {
+          width: calc((100% - 12px) / 3);
+          height: 62px;
+          margin-right: 6px;
+          margin-bottom: 8px;
+          padding: 0px 6px;
+          box-sizing: border-box;
+          display: flex;
+          align-items: center;
+          background: linear-gradient(
+            135deg,
+            rgba(55, 135, 254, 0.1) 0%,
+            rgba(4, 184, 255, 0.1) 100%
+          );
+          border-radius: 10px;
 
+          &:nth-child(3n) {
+            margin-right: 0px;
+          }
 
+          .item-icon {
+            flex-shrink: 0;
+            width: 34px;
+            height: 34px;
+            display: flex;
+            align-items: center;
+            justify-content: center;
+            border-radius: 8px;
+            background: linear-gradient(135deg, #4d9dff 0%, #0065f8 100%);
+
+            .icon-img {
+              width: 18px;
+              height: 18px;
+              filter: brightness(0) invert(1);
             }
+          }
+
+          .item-info {
+            flex: 1;
+            min-width: 0px;
+            padding-left: 6px;
+            display: flex;
+            flex-direction: column;
+            justify-content: center;
 
+            .item-value {
+              font-size: 12px;
+              font-weight: bold;
+              line-height: 16px;
+              color: #2b7cff;
+              word-break: break-all;
+            }
+
+            .item-label {
+              margin-top: 2px;
+              font-size: 11px;
+              line-height: 14px;
+              color: #000;
+            }
+          }
         }
+      }
     }
+  }
 }
 </style>

+ 71 - 29
pages/warndata/components/fire-detail.vue

@@ -9,17 +9,20 @@
     <view class="fire-content-box">
       <view class="search-area" v-if="PageCur != 2">
         <view class="search-l">
-          <view class="search-label">监测点:</view>
+          <view class="search-label">
+            <text class="req">*</text>
+            <text>监测点 </text>
+          </view>
           <view class="search-select" @click="changeSelect">
             <view class="select-val">{{ searchText }}</view>
             <view class="select-icon">
               <u-icon
                 v-if="isShowSelect"
                 name="arrow-down"
-                color="#0eb4fc"
+                color="#2b7cff"
                 size="14"
               ></u-icon>
-              <u-icon v-else name="arrow-up" color="#0eb4fc" size="14"></u-icon>
+              <u-icon v-else name="arrow-up" color="#2b7cff" size="14"></u-icon>
             </view>
           </view>
           <view class="select-item" v-if="!isShowSelect">
@@ -34,7 +37,7 @@
         </view>
         <view class="search-r">
           <!-- <image src="/static/model/alarmTrue.svg" alt="" class="icon-style" /> -->
-          <u-icon name="warning-fill" color="#0eb4fc" size="18"></u-icon>
+          <u-icon name="warning-fill" color="#2b7cff" size="14"></u-icon>
           <text class="icon-text">低风险</text>
         </view>
       </view>
@@ -226,64 +229,103 @@ export default {
 
     .search-area {
       width: 100%;
-      padding: 10px 0px;
+      padding: 10px;
       display: flex;
       justify-content: center;
       align-items: center;
       box-sizing: border-box;
       background-color: #fff;
-      margin-bottom: 2px;
+      border-radius: 10px;
+      box-shadow: 0 2px 8px rgba(43, 124, 255, 0.08);
+      margin-bottom: 10px;
 
       .search-l {
         position: relative;
+        flex: 1;
+        min-width: 0;
         display: flex;
         align-items: center;
-        margin-right: 10px;
 
         .search-label {
-          font-size: 12px;
+          flex-shrink: 0;
+          display: flex;
+          align-items: center;
+          font-size: 13px;
+          color: #333;
+
+          .req {
+            color: #f5222d;
+            font-size: 13px;
+            margin-right: 3px;
+          }
         }
 
         .search-select {
+          flex: 1;
+          min-width: 0;
           display: flex;
           justify-content: space-between;
           align-items: center;
-          width: 150px;
-          height: 26px;
-          border-radius: 5px;
-          border: 1px solid #0eb4fc;
-          padding: 5px;
+          height: 32px;
+          margin-left: 8px;
+          padding: 0px 8px;
           box-sizing: border-box;
+          border-radius: 4px;
+          border: 1px solid #2b7cff;
+
+          .select-val {
+            flex: 1;
+            min-width: 0;
+            font-size: 13px;
+            color: #333;
+            overflow: hidden;
+            white-space: nowrap;
+            text-overflow: ellipsis;
+          }
+
+          .select-icon {
+            flex-shrink: 0;
+            display: flex;
+            align-items: center;
+          }
         }
 
         .select-item {
           position: absolute;
-          bottom: -85px;
-          left: 55px;
-          width: 150px;
-          height: 80px;
-          background-color: #fff;
-          border: 1px solid #eee;
+          top: 40px;
+          left: 58px;
+          width: calc(100% - 58px);
+          max-height: 150px;
+          box-sizing: border-box;
           padding: 5px 10px;
+          background-color: #fff;
+          border: 1px solid #e5e9f2;
           border-radius: 5px;
+          box-shadow: 0 2px 8px rgba(43, 124, 255, 0.12);
           overflow-y: auto;
+          z-index: 10;
 
           .item-box {
-            height: 20px;
-            line-height: 20px;
-            font-size: 14px;
+            height: 26px;
+            line-height: 26px;
+            font-size: 13px;
+            color: #333;
           }
         }
       }
 
       .search-r {
+        flex-shrink: 0;
         display: flex;
-        justify-content: space-between;
         align-items: center;
-        width: 80px;
-        padding: 4px 10px;
-        border-radius: 5px;
-        background: #d4ecff;
+        justify-content: center;
+        height: 32px;
+        margin-left: 8px;
+        padding: 0px 8px;
+        box-sizing: border-box;
+        border-radius: 4px;
+        border: 1px solid #2b7cff;
+        background-color: #fff;
 
         .icon-style {
           width: 14px;
@@ -291,9 +333,9 @@ export default {
         }
 
         .icon-text {
+          margin-left: 3px;
           font-size: 12px;
-          font-weight: bold;
-          color: #0eb4fc;
+          color: #2b7cff;
         }
       }
     }

+ 231 - 50
pages/warndata/components/gas-detail.vue

@@ -10,13 +10,15 @@
       <view class="search-area">
         <view class="search-l">
           <view class="search-item" @click="getChangeJcd">
-            <text class="search-label">监测点:</text>
+            <text class="search-label"><text class="req">*</text>监测点</text>
             <u--input
-              inputAlign="center"
+              class="search-input"
+              border="none"
+              inputAlign="left"
               v-model="searchText"
               placeholder="请选择监测点"
-              suffixIcon="arrow-right"
-              suffixIconStyle="color: #909399"
+              suffixIcon="arrow-down"
+              suffixIconStyle="color: #2b7cff"
             ></u--input>
             <u-action-sheet
               :show="showJcd"
@@ -30,7 +32,7 @@
         </view>
         <view class="search-r">
           <!-- <image src="/static/model/alarmTrue.svg" alt="" class="icon-style" /> -->
-          <u-icon name="warning-fill" color="#0eb4fc" size="18"></u-icon>
+          <u-icon name="warning-fill" color="#2b7cff" size="14"></u-icon>
           <text class="icon-text">低风险</text>
         </view>
       </view>
@@ -121,22 +123,26 @@
           :key="index"
         >
           <view class="content-title">{{ item.strinstallpos || "--" }}</view>
-          <view class="content-item-box">
-            <view class="content-item">
-              <view class="item-l">
-                <view class="item-value">瓦斯</view>
-                <view class="item-label">测点类型</view>
+          <view class="content-item-box gas-card-box">
+            <view
+              class="gas-card"
+              v-for="(card, cIndex) in gasCardList"
+              :key="cIndex"
+            >
+              <view class="item-icon">
+                <image
+                  class="icon-img"
+                  :src="card.icon"
+                  mode="aspectFit"
+                ></image>
               </view>
-              <view class="item-c"></view>
-              <view class="item-r">
-                <view class="item-value">{{ item.readData.gasC || "--" }}</view>
-                <view class="item-label">甲烷</view>
-              </view>
-            </view>
-            <view class="content-item">
-              <view class="item-l">
-                <view class="item-value">{{ item.readTime || "--" }}</view>
-                <view class="item-label">数据时间</view>
+              <view class="item-info">
+                <view
+                  class="item-value"
+                  :class="{ 'is-normal': cardValue(item, card) == '正常' }"
+                  >{{ cardValue(item, card) }}</view
+                >
+                <view class="item-label">{{ card.label }}</view>
               </view>
             </view>
           </view>
@@ -165,6 +171,29 @@ export default {
       selectList: [],
       topContentList: [],
       botContentList: [],
+      //安全监测点卡片:名称、取值字段、对应图标
+      gasCardList: [
+        {
+          label: "测点类型",
+          value: "瓦斯",
+          icon: "/static/warndata/cedian-leixing.svg",
+        },
+        {
+          label: "甲烷",
+          keys: ["readData.gasC"],
+          icon: "/static/warndata/jiawan.svg",
+        },
+        {
+          label: "测点状态",
+          keys: ["warnLevel_str", "syswarnLevel_str", "warnLevel"],
+          icon: "/static/warndata/zhuangtai.svg",
+        },
+        {
+          label: "数据时间",
+          keys: ["readTime"],
+          icon: "/static/warndata/shijian.svg",
+        },
+      ],
     };
   },
   beforeDestroy() {
@@ -175,6 +204,22 @@ export default {
     this.getTabList();
   },
   methods: {
+    //卡片取值:固定值直接返回,否则按字段路径(支持 readData.xxx)依次查找
+    cardValue(item, card) {
+      if (card.value) {
+        return card.value;
+      }
+      const keys = card.keys || [card.key];
+      for (let i = 0; i < keys.length; i++) {
+        const value = keys[i]
+          .split(".")
+          .reduce((obj, k) => (obj ? obj[k] : undefined), item);
+        if (value !== null && value !== undefined && value !== "") {
+          return value;
+        }
+      }
+      return "--";
+    },
     NavChange: function (item) {
       clearTimeout(this.timer);
       this.PageCur = item.index;
@@ -272,39 +317,69 @@ export default {
 
     .search-area {
       width: 100%;
-      padding: 10px 20px;
+      padding: 10px;
       display: flex;
       justify-content: center;
       align-items: center;
       box-sizing: border-box;
       background-color: #fff;
-      margin-bottom: 2px;
+      border-radius: 10px;
+      box-shadow: 0 2px 8px rgba(43, 124, 255, 0.08);
+      margin-bottom: 10px;
 
       .search-l {
-        width: calc(100% - 100px);
+        flex: 1;
+        min-width: 0;
         position: relative;
         display: flex;
         align-items: center;
-        margin-right: 10px;
+        margin-right: 8px;
 
         .search-item {
+          flex: 1;
+          min-width: 0;
           display: flex;
           align-items: center;
+          height: 32px;
+          box-sizing: border-box;
+          ::v-deep .search-input {
+            flex: 1;
+            min-width: 0;
+            height: 32px;
+            border: 1px solid #2b7cff !important;
+            border-radius: 4px;
+            overflow: hidden;
+          }
 
           .search-label {
-            text-align: right;
+            flex-shrink: 0;
+            display: flex;
+            align-items: center;
+            margin-right: 10px;
+            font-size: 13px;
+            color: #000;
+            text-align: left;
+
+            .req {
+              color: #f5222d;
+              font-size: 13px;
+              margin-right: 3px;
+            }
           }
         }
       }
 
       .search-r {
+        flex-shrink: 0;
         display: flex;
-        justify-content: space-between;
         align-items: center;
-        width: 80px;
-        padding: 4px 10px;
-        border-radius: 5px;
-        background: #d4ecff;
+        justify-content: center;
+        height: 32px;
+        padding: 0px 8px;
+        box-sizing: border-box;
+        border-radius: 4px;
+        border: 1px solid #2b7cff;
+        background-color: #fff;
 
         .icon-style {
           width: 14px;
@@ -312,9 +387,9 @@ export default {
         }
 
         .icon-text {
-          font-size: 14px;
-          font-weight: bold;
-          color: #0eb4fc;
+          margin-left: 3px;
+          font-size: 12px;
+          color: #2b7cff;
         }
       }
     }
@@ -341,6 +416,9 @@ export default {
       display: flex;
       justify-content: space-between;
       align-items: center;
+      font-size: 14px;
+      font-weight: 600;
+      color: #000;
     }
 
     .top-content {
@@ -348,7 +426,9 @@ export default {
         height: 26px;
         line-height: 26px;
         padding: 0px 20px;
-        font-size: 12px;
+        font-size: 13px;
+        font-weight: 600;
+        color: #000;
         background: url("/static/warndata/title.png") no-repeat;
         background-size: 100% 100%;
       }
@@ -357,21 +437,24 @@ export default {
         padding: 10px 0px;
 
         .content-item {
-          height: 50px;
+          height: 58px;
           display: flex;
           justify-content: space-between;
           align-items: center;
           background: linear-gradient(
-            to right,
-            rgba(55, 135, 254, 0.08),
-            rgba(4, 184, 255, 0.08),
-            rgba(60, 161, 237, 0.08)
+            to bottom,
+            rgba(55, 135, 254, 0.22) 0%,
+            rgba(4, 184, 255, 0.06) 100%
           );
-          border-radius: 10px;
-          margin-bottom: 5px;
+          border-radius: 8px;
+          margin-bottom: 8px;
+
+          &:last-child {
+            margin-bottom: 0px;
+          }
 
           .item-l {
-            width: calc(50% - 2px);
+            width: calc(50% - 1px);
             height: 100%;
             display: flex;
             flex-direction: column;
@@ -380,9 +463,9 @@ export default {
           }
 
           .item-c {
-            width: 4px;
-            height: 70%;
-            border-left: 2px solid;
+            width: 2px;
+            height: 80%;
+            border-left: 1px solid;
             border-image: linear-gradient(
                 to bottom,
                 transparent,
@@ -393,26 +476,124 @@ export default {
           }
 
           .item-r {
-            width: calc(50% - 2px);
+            width: calc(50% - 1px);
             height: 100%;
             display: flex;
             flex-direction: column;
             justify-content: center;
             align-items: center;
           }
+
+          //泵信息行的数值/名称字号(比通用值大一点)
+          .item-value {
+            font-size: 15px;
+            line-height: 20px;
+            white-space: nowrap;
+          }
+
+          .item-label {
+            margin-top: 4px;
+            font-size: 12px;
+            color: #000;
+          }
+        }
+      }
+
+      //安全监测点卡片(两列,图标 + 值 + 名称)
+      .gas-card-box {
+        display: flex;
+        flex-wrap: wrap;
+        justify-content: space-between;
+        padding: 10px 0px 0px;
+
+        .gas-card {
+          width: calc(50% - 5px);
+          height: 56px;
+          margin-bottom: 10px;
+          padding: 0px 8px;
+          box-sizing: border-box;
+          display: flex;
+          align-items: center;
+          border-radius: 10px;
+          background: linear-gradient(
+            to bottom,
+            rgba(55, 135, 254, 0.22) 0%,
+            rgba(4, 184, 255, 0.06) 100%
+          );
+
+          //两列统一宽度,保证上下左右对齐;右侧宽一些让日期时间完整显示
+          &:nth-child(odd) {
+            width: calc(45% - 5px);
+          }
+
+          &:nth-child(even) {
+            width: calc(55% - 5px);
+          }
+
+          .item-icon {
+            position: relative;
+            flex-shrink: 0;
+            width: 28px;
+            height: 28px;
+            border-radius: 8px;
+            display: flex;
+            align-items: center;
+            justify-content: center;
+            background: linear-gradient(135deg, #4d9dff 0%, #0065f8 100%);
+
+            //图标后面叠一层浅蓝方块
+            &::before {
+              content: "";
+              position: absolute;
+              left: -3px;
+              top: -3px;
+              width: 100%;
+              height: 100%;
+              border-radius: 8px;
+              background: rgba(77, 157, 255, 0.35);
+            }
+
+            .icon-img {
+              position: relative;
+              width: 16px;
+              height: 16px;
+              filter: brightness(0) invert(1);
+            }
+          }
+
+          .item-info {
+            flex: 1;
+            min-width: 0px;
+            padding-left: 8px;
+            display: flex;
+            flex-direction: column;
+            justify-content: center;
+          }
+
+          .item-label {
+            color: #000;
+          }
         }
       }
     }
 
     .item-value {
-      height: 20px;
-      line-height: 20px;
-      color: #0eb4fc;
+      font-size: 13px;
       font-weight: bold;
+      line-height: 16px;
+      color: #2b7cff;
+      white-space: nowrap;
+    }
+
+    .item-value.is-normal {
+      color: #39b54a;
     }
 
     .item-label {
-      font-size: 12px;
+      margin-top: 2px;
+      font-size: 11px;
+      line-height: 15px;
+      color: #000;
     }
 
     .top-dialog-area,

+ 124 - 120
pages/warndata/components/vent-detail.vue

@@ -11,20 +11,17 @@
         <view class="top-title">
           <view style="font-weight: bold">{{ mainTitle || "--" }}</view>
           <view class="title-icon">
-            <image
-              src="/static/model/alarmTrue.svg"
-              alt=""
-              class="icon-style"
-            />
+            <u-icon name="warning-fill" color="#2b7cff" size="14"></u-icon>
             <text class="icon-text">低风险</text>
           </view>
         </view>
         <view class="top-card">
           <view class="card-box" v-for="(item, index) in cardList" :key="index">
-            <view class="box-item">
-              <view class="box-val">{{ item.value }}</view>
-              <view class="box-name">{{ item.name }}</view>
+            <view class="item-icon">
+              <image class="icon-img" :src="item.icon" mode="aspectFit"></image>
             </view>
+            <view class="box-val">{{ item.value }}</view>
+            <view class="box-name">{{ item.name }}</view>
           </view>
         </view>
       </view>
@@ -38,7 +35,9 @@
             :style="{ width: '100%', height: '180px' }"
           ></canvas> -->
           <LineChart
+            type="area"
             :chartData="option"
+            :chartOpts="areaOpts"
             :style="{ width: '100%', height: '180px' }"
           ></LineChart>
         </view>
@@ -89,9 +88,21 @@ export default {
       PageCur: "0",
       tabList: [],
       cardList: [
-        { name: "进风量(m³/min)", value: 0 },
-        { name: "回风量(m³/min)", value: 0 },
-        { name: "需风量(m³/min)", value: 0 },
+        {
+          name: "进风量(m³/min)",
+          value: 0,
+          icon: "/static/warndata/jin.svg",
+        },
+        {
+          name: "回风量(m³/min)",
+          value: 0,
+          icon: "/static/warndata/hui.svg",
+        },
+        {
+          name: "需风量(m³/min)",
+          value: 0,
+          icon: "/static/warndata/xu.svg",
+        },
       ],
       //echarts图表数据
       maxY: 0,
@@ -175,6 +186,15 @@ export default {
         Math.ceil(interger / Math.pow(10, leng - 1)) * Math.pow(10, leng - 1)
       );
     },
+    //横轴时间格式化,避免标签太长叠在一起
+    formatAxisTime(time) {
+      if (typeof time != "string") {
+        return time;
+      }
+      //2024-03-11 17:58:11 -> 03-11 17:58
+      const str = time.replace("T", " ");
+      return str.length > 16 ? str.slice(5, 16) : str;
+    },
     //获取选项详情数据
     getSysWarnList(id, type) {
       return new Promise((resolve, reject) => {
@@ -203,7 +223,7 @@ export default {
                   } else {
                     this.yDataX.push(0);
                   }
-                  this.xData.push(v.time);
+                  this.xData.push(this.formatAxisTime(v.time));
                 });
               }
               // let max1 = this.yDataJ.reduce((acr, cur) => {
@@ -310,7 +330,28 @@ export default {
       }
     },
   },
-  computed: {},
+  computed: {
+    //曲线通用配置:曲线下方渐变填充 + 横轴标签抽稀
+    areaOpts() {
+      return {
+        xAxis: {
+          disableGrid: true,
+          labelCount: 3,
+          fontSize: 10,
+        },
+        extra: {
+          area: {
+            type: "curve",
+            opacity: 0.35,
+            addLine: true,
+            width: 2,
+            gradient: true,
+            activeType: "hollow",
+          },
+        },
+      };
+    },
+  },
 };
 </script>
 
@@ -337,102 +378,80 @@ export default {
 
       .top-card {
         width: 100%;
-        height: 60px;
-        margin-bottom: 10px;
         display: flex;
+        flex-wrap: wrap;
         justify-content: space-between;
         align-items: center;
 
+        //卡片:蓝方块图标 + 数值,名称另起一行
         .card-box {
           width: 32%;
-          height: 100%;
-          border-radius: 5px;
+          height: 58px;
+          padding: 0px 8px;
+          box-sizing: border-box;
+          display: flex;
+          flex-wrap: wrap;
+          align-content: center;
+          align-items: center;
+          border-radius: 10px;
           background: linear-gradient(
-            to right,
-            rgba(55, 135, 254, 0.08),
-            rgba(4, 184, 255, 0.08),
-            rgba(60, 161, 237, 0.08)
+            to bottom,
+            rgba(55, 135, 254, 0.22) 0%,
+            rgba(4, 184, 255, 0.06) 100%
           );
-        }
 
-        .card-box:nth-child(1) .box-item {
-          display: flex;
-          flex-direction: column;
-          justify-content: center;
-          align-items: flex-start;
-          width: 100%;
-          height: 100%;
-          padding: 0px 15px;
-          background: url("/static/jinfeng.png") no-repeat center;
-          background-size: 75% 70%;
-        }
-
-        .card-box:nth-child(2) .box-item {
-          display: flex;
-          flex-direction: column;
-          justify-content: center;
-          align-items: flex-start;
-          width: 100%;
-          height: 100%;
-          padding: 0px 15px;
-          background: url("/static/huifeng.png") no-repeat center;
-          background-size: 75% 70%;
-        }
-
-        .card-box:nth-child(3) .box-item {
-          display: flex;
-          flex-direction: column;
-          justify-content: center;
-          align-items: flex-start;
-          width: 100%;
-          height: 100%;
-          padding: 0px 15px;
-          background: url("/static/xufeng.png") no-repeat center;
-          background-size: 75% 70%;
-        }
-      }
+          .item-icon {
+            position: relative;
+            flex-shrink: 0;
+            width: 24px;
+            height: 24px;
+            border-radius: 7px;
+            display: flex;
+            align-items: center;
+            justify-content: center;
+            background: linear-gradient(135deg, #4d9dff 0%, #0065f8 100%);
 
-      .top-card1 {
-        width: 100%;
-        height: 60px;
-        display: flex;
-        justify-content: space-between;
-        align-items: center;
+            //图标后面叠一层浅蓝方块
+            &::before {
+              content: "";
+              position: absolute;
+              left: -3px;
+              top: -3px;
+              width: 100%;
+              height: 100%;
+              border-radius: 7px;
+              background: rgba(77, 157, 255, 0.35);
+            }
 
-        .card-box {
-          width: 49%;
-          height: 100%;
-          border-radius: 5px;
-          background: linear-gradient(
-            to right,
-            rgba(55, 135, 254, 0.08),
-            rgba(4, 184, 255, 0.08),
-            rgba(60, 161, 237, 0.08)
-          );
-        }
+            .icon-img {
+              position: relative;
+              width: 14px;
+              height: 14px;
+              filter: brightness(0) invert(1);
+            }
+          }
 
-        .card-box:nth-child(1) .box-item {
-          display: flex;
-          flex-direction: column;
-          justify-content: center;
-          align-items: flex-start;
-          width: 100%;
-          height: 100%;
-          padding: 0px 15px;
-          background: url("/static/O₂.png") no-repeat right;
-          background-size: 40% 80%;
-        }
+          .box-val {
+            flex: 1;
+            min-width: 0px;
+            margin-left: 6px;
+            font-size: 13px;
+            font-weight: bold;
+            line-height: 16px;
+            color: #2b7cff;
+            white-space: nowrap;
+            overflow: hidden;
+            text-overflow: ellipsis;
+          }
 
-        .card-box:nth-child(2) .box-item {
-          display: flex;
-          flex-direction: column;
-          justify-content: center;
-          align-items: flex-start;
-          width: 100%;
-          height: 100%;
-          padding: 0px 15px;
-          background: url("/static/CO.png") no-repeat right;
-          background-size: 40% 80%;
+          .box-name {
+            width: 100%;
+            margin-top: 2px;
+            font-size: 11px;
+            line-height: 14px;
+            color: #000;
+            white-space: nowrap;
+          }
         }
       }
     }
@@ -546,37 +565,22 @@ export default {
 
       .title-icon {
         display: flex;
-        justify-content: space-between;
+        justify-content: center;
         align-items: center;
-        width: 90px;
-        height: 28px;
-        padding: 0px 10px;
-        border-radius: 5px;
-        background: #d4ecff;
+        height: 22px;
+        padding: 0px 8px;
+        box-sizing: border-box;
+        border-radius: 4px;
+        border: 1px solid #2b7cff;
+        background-color: #e0eafc;
 
         .icon-text {
+          margin-left: 3px;
           font-size: 12px;
-          font-weight: bold;
-          color: #0eb4fc;
+          color: #2b7cff;
         }
       }
     }
-
-    .box-item .box-val {
-      height: 28px;
-      line-height: 28px;
-      color: #0eb4fc;
-      font-weight: bold;
-    }
-
-    .box-item .box-name {
-      font-size: 12px;
-    }
-
-    .icon-style {
-      width: 14px;
-      height: 14px;
-    }
   }
 }
 </style>

+ 399 - 329
pages/warndata/components/warn-zb.vue

@@ -1,369 +1,439 @@
 <template>
-    <view class="warn-zb">
-        <view ref="coord" class="coords" :style="{ width: widthV, height: heightV }">
-            <view class="triangle-x"></view>
-            <view class="triangle-y"></view>
-            <view class="name-x">时间</view>
-            <view class="name-y">温度(℃)</view>
-            <view class="coord-dw">
-                <view class="dw-item" :style="{ bottom: `${coordDw[0]}px` }">12</view>
-                <view class="dw-item" :style="{ bottom: `${coordDw[1]}px` }">200</view>
-
-            </view>
-            <view class="coord-bj">
-                <view class="bj-qfq" :style="{ width: widthCanvas == '302px' ? '100px' : '401px' }">
-                    <view class="left-jt"></view>
-                    <view class="line"></view>
-                    <view class="right-jt"></view>
-                    <view class="text">缓慢氧化阶段</view>
-                </view>
-                <view class="bj-zrq" :style="{ width: widthCanvas == '302px' ? '50px' : '250px' }">
-                    <view class="left-jt"></view>
-                    <view class="line"></view>
-                    <view class="right-jt"></view>
-                    <view class="text">加速氧化阶段</view>
-                </view>
-                <view class="bj-rsq" :style="{ width: widthCanvas == '302px' ? '100px' : '570px' }">
-                    <view class="left-jt"></view>
-                    <view class="line"></view>
-                    <view class="text">剧烈氧化阶段</view>
-                </view>
-            </view>
-            <view class="coord-area"
-                :style="{ width: 'calc(100% - 10px)', height: 'calc(100% - 10px)', overflow: 'hidden' }">
-                <canvas :id="`myCanvas${resetIndex}`" :style="{ width: widthCanvas, height: heightCanvas }"></canvas>
-            </view>
+  <view class="warn-zb">
+    <view
+      ref="coord"
+      class="coords"
+      :style="{ width: widthV, height: heightV }"
+    >
+      <view class="triangle-x"></view>
+      <view class="triangle-y"></view>
+      <view class="name-x">时间</view>
+      <view class="name-y">温度(℃)</view>
+      <view class="coord-dw">
+        <view class="dw-item" :style="{ bottom: `${coordDw[0]}px` }">12</view>
+        <view class="dw-item" :style="{ bottom: `${coordDw[1]}px` }">200</view>
+      </view>
+      <view class="coord-bj">
+        <view
+          class="bj-qfq"
+          :style="{ width: widthCanvas == '302px' ? '100px' : '401px' }"
+        >
+          <view class="left-jt"></view>
+          <view class="line"></view>
+          <view class="right-jt"></view>
+          <view class="text">缓慢氧化阶段</view>
         </view>
-
+        <view
+          class="bj-zrq"
+          :style="{ width: widthCanvas == '302px' ? '50px' : '250px' }"
+        >
+          <view class="left-jt"></view>
+          <view class="line"></view>
+          <view class="right-jt"></view>
+          <view class="text">加速氧化阶段</view>
+        </view>
+        <view
+          class="bj-rsq"
+          :style="{ width: widthCanvas == '302px' ? '100px' : '570px' }"
+        >
+          <view class="left-jt"></view>
+          <view class="line"></view>
+          <view class="text">剧烈氧化阶段</view>
+        </view>
+      </view>
+      <view
+        class="coord-area"
+        :style="{
+          width: 'calc(100% - 10px)',
+          height: 'calc(100% - 10px)',
+          overflow: 'hidden',
+        }"
+      >
+        <canvas
+          :id="`myCanvas${resetIndex}`"
+          :style="{ width: widthCanvas, height: heightCanvas }"
+        ></canvas>
+      </view>
     </view>
+  </view>
 </template>
 
 <script>
 import api from "@/api/api";
 export default {
-    name: 'warnZb',
-    props: {
-        widthV: {
-            type: String,
-            default: '',
-        },
-        heightV: {
-            type: String,
-            default: '',
-        },
-        coordDw: {
-            type: Array,
-            default: () => {
-                return [];
-            },
-        },
-        widthCanvas: {
-            type: String,
-            default: 0,
-        },
-        heightCanvas: {
-            type: String,
-            default: 0,
-        },
-        warnLevel: {
-            type: String,
-            default: ''
-        },
-        resetIndex:{
-            type:Number,
-            default:0
-        }
-     
+  name: "warnZb",
+  props: {
+    widthV: {
+      type: String,
+      default: "",
     },
-   
-    data() {
-        return {
-            coord: null,
-            lengY: 0,
-            //与x,y轴相交最大值坐标
-            maxY: 0,
-            maxX: 0,
-        };
+    heightV: {
+      type: String,
+      default: "",
     },
-    watch: {
-        resetIndex:{
-            handler(newR,oldR){
-                this.getCanvas(newR)
-            },
-            immediate: true,
-        }
+    coordDw: {
+      type: Array,
+      default: () => {
+        return [];
+      },
     },
-    mounted() {
-        this.getAreas()
-       
+    widthCanvas: {
+      type: String,
+      default: 0,
     },
-    methods: {
-        getAreas() {
-            if (this.coord) {
-                let width = this.coord.offsetWidth;
-                let height = this.coord.offsetHeight;
-                this.lengY = Math.ceil((height - 10) / 10);
-            }
-        },
-        getCanvas(index) {
-            let that = this
-            that.$nextTick(() => {
-                // 获取canvas元素
-                let canvas = document.getElementById(`myCanvas${index}`).childNodes[0];
-                let ctx = canvas.getContext('2d');
-                let x = 0;
-                let step = that.widthCanvas == '302px' ? 0.01 : 0.05; // 设置每次递增的长度
-                let y = that.widthCanvas == '302px' ? 194 : 325; // 初始y坐标
-                // 设置线条样式
-                ctx.strokeStyle = '#3df6ff'; // 红色线条
-                ctx.lineWidth = 1; // 线宽为2
-                // 初始化曲线数据
-                let xValues = [];
-                let yValues = [];
-                for (let i = 0; i < 30000; i++) {
-                    x += step;
-                    if (that.widthCanvas == '302px') {
-                        y -= (step * Math.random() * i) / 12000; // 随机增加长度,使曲线更加平滑
-                    } else {
-                        y -= (step * Math.random() * i) / 30000; // 随机增加长度,使曲线更加平滑
-                    }
-                    xValues[i] = x;
-                    yValues[i] = y;
-                }
-                // 绘制递增曲线
-                ctx.beginPath();
-                ctx.moveTo(xValues[0], yValues[0]);
-                for (var i = 1; i < xValues.length; i++) {
-                    ctx.lineTo(xValues[i], yValues[i]);
-                    if (that.warnLevel == '绿色预警') {
-                        ctx.fillStyle = 'rgba(145, 230, 9)'; // 设置填充颜色
-                        if (that.widthCanvas == '302px' && i <= 10000) {
-                            ctx.fillRect(xValues[i], yValues[i], step, canvas.height - yValues[i]);
-                        } else if (i <= 8000) {
-                            ctx.fillRect(xValues[i], yValues[i], step, canvas.height - yValues[i]);
-                        }
-                    } else if (that.warnLevel == '黄色预警') {
-                        ctx.fillStyle = 'rgba(255, 255, 53)'; // 设置填充颜色
-                        if (that.widthCanvas == '302px' && i <= 15000) {
-                            ctx.fillRect(xValues[i], yValues[i], step, canvas.height - yValues[i]);
-                        } else if (i <= 13000) {
-                            ctx.fillRect(xValues[i], yValues[i], step, canvas.height - yValues[i]);
-                        }
-                    } else if (that.warnLevel == '红色预警') {
-                        ctx.fillStyle = 'rgba(255, 0, 0)'; // 设置填充颜色
-                        if (that.widthCanvas == '302px' && i > 15000) {
-                            ctx.fillRect(xValues[i], yValues[i], step, canvas.height - yValues[i]);
-                        } else if (i > 13000) {
-                            ctx.fillRect(xValues[i], yValues[i], step, canvas.height - yValues[i]);
-                        }
-                    }
-
-                }
-                ctx.stroke();
-                ctx.beginPath();
-                ctx.arc(xValues[that.widthCanvas == '302px' ? 10000 : 8000], yValues[that.widthCanvas == '302px' ? 10000 : 8000], 5, 0, 2 * Math.PI);
-                ctx.fillStyle = '#ff6363';
-                ctx.fill();
-                //标记点2
-                ctx.beginPath();
-                ctx.arc(xValues[that.widthCanvas == '302px' ? 15000 : 13000], yValues[that.widthCanvas == '302px' ? 15000 : 13000], 5, 0, 2 * Math.PI);
-                ctx.fillStyle = '#ff6363';
-                ctx.fill();
-
-
-                // 设置线条样式(颜色、宽度等)
-                ctx.strokeStyle = 'rgba(14, 180, 252,.6)';
-                ctx.lineWidth = 1;
-                ctx.lineCap = 'round';
-                // 定义虚线模式:[线段长度, 间隔长度]
-                ctx.setLineDash([5, 5]);
-                //绘制标记点1线条-x
-                ctx.beginPath();
-                ctx.moveTo(0, yValues[that.widthCanvas == '302px' ? 10000 : 8000]); // 开始绘制的点
-                ctx.lineTo(xValues[that.widthCanvas == '302px' ? 10000 : 8000], yValues[that.widthCanvas == '302px' ? 10000 : 8000]); // 结束绘制的点
-                ctx.stroke(); // 进行绘制
-                //绘制标记点1线条-y
-                ctx.beginPath();
-                ctx.moveTo(xValues[that.widthCanvas == '302px' ? 10000 : 8000], yValues[that.widthCanvas == '302px' ? 10000 : 8000]); // 开始绘制的点
-                ctx.lineTo(xValues[that.widthCanvas == '302px' ? 10000 : 8000], canvas.height); // 结束绘制的点
-                ctx.stroke(); // 进行绘制
-
-                //绘制标记点2线条-x
-                ctx.beginPath();
-                ctx.moveTo(0, yValues[that.widthCanvas == '302px' ? 15000 : 13000]); // 开始绘制的点
-                ctx.lineTo(xValues[that.widthCanvas == '302px' ? 15000 : 13000], yValues[that.widthCanvas == '302px' ? 15000 : 13000]); // 结束绘制的点
-                ctx.stroke(); // 进行绘制
-                //绘制标记点2线条-y
-                ctx.beginPath();
-                ctx.moveTo(xValues[that.widthCanvas == '302px' ? 15000 : 13000], yValues[that.widthCanvas == '302px' ? 15000 : 13000]); // 开始绘制的点
-                ctx.lineTo(xValues[that.widthCanvas == '302px' ? 15000 : 13000], canvas.height); // 结束绘制的点
-                ctx.stroke(); // 进行绘制
-            })
-
-
+    heightCanvas: {
+      type: String,
+      default: 0,
+    },
+    warnLevel: {
+      type: String,
+      default: "",
+    },
+    resetIndex: {
+      type: Number,
+      default: 0,
+    },
+  },
 
+  data() {
+    return {
+      coord: null,
+      lengY: 0,
+      //与x,y轴相交最大值坐标
+      maxY: 0,
+      maxX: 0,
+    };
+  },
+  watch: {
+    resetIndex: {
+      handler(newR, oldR) {
+        this.getCanvas(newR);
+      },
+      immediate: true,
+    },
+  },
+  mounted() {
+    this.getAreas();
+  },
+  methods: {
+    getAreas() {
+      if (this.coord) {
+        let width = this.coord.offsetWidth;
+        let height = this.coord.offsetHeight;
+        this.lengY = Math.ceil((height - 10) / 10);
+      }
+    },
+    getCanvas(index) {
+      let that = this;
+      that.$nextTick(() => {
+        // 获取canvas元素
+        let canvas = document.getElementById(`myCanvas${index}`).childNodes[0];
+        let ctx = canvas.getContext("2d");
+        let x = 0;
+        let step = that.widthCanvas == "302px" ? 0.01 : 0.05; // 设置每次递增的长度
+        let y = that.widthCanvas == "302px" ? 194 : 325; // 初始y坐标
+        // 设置线条样式
+        ctx.strokeStyle = "#3df6ff"; // 红色线条
+        ctx.lineWidth = 1; // 线宽为2
+        // 初始化曲线数据
+        let xValues = [];
+        let yValues = [];
+        for (let i = 0; i < 30000; i++) {
+          x += step;
+          if (that.widthCanvas == "302px") {
+            y -= (step * Math.random() * i) / 12000; // 随机增加长度,使曲线更加平滑
+          } else {
+            y -= (step * Math.random() * i) / 30000; // 随机增加长度,使曲线更加平滑
+          }
+          xValues[i] = x;
+          yValues[i] = y;
+        }
+        // 绘制递增曲线
+        ctx.beginPath();
+        ctx.moveTo(xValues[0], yValues[0]);
+        for (var i = 1; i < xValues.length; i++) {
+          ctx.lineTo(xValues[i], yValues[i]);
+          if (that.warnLevel == "绿色预警") {
+            ctx.fillStyle = "rgba(145, 230, 9)"; // 设置填充颜色
+            if (that.widthCanvas == "302px" && i <= 10000) {
+              ctx.fillRect(
+                xValues[i],
+                yValues[i],
+                step,
+                canvas.height - yValues[i]
+              );
+            } else if (i <= 8000) {
+              ctx.fillRect(
+                xValues[i],
+                yValues[i],
+                step,
+                canvas.height - yValues[i]
+              );
+            }
+          } else if (that.warnLevel == "黄色预警") {
+            ctx.fillStyle = "rgba(255, 255, 53)"; // 设置填充颜色
+            if (that.widthCanvas == "302px" && i <= 15000) {
+              ctx.fillRect(
+                xValues[i],
+                yValues[i],
+                step,
+                canvas.height - yValues[i]
+              );
+            } else if (i <= 13000) {
+              ctx.fillRect(
+                xValues[i],
+                yValues[i],
+                step,
+                canvas.height - yValues[i]
+              );
+            }
+          } else if (that.warnLevel == "红色预警") {
+            ctx.fillStyle = "rgba(255, 0, 0)"; // 设置填充颜色
+            if (that.widthCanvas == "302px" && i > 15000) {
+              ctx.fillRect(
+                xValues[i],
+                yValues[i],
+                step,
+                canvas.height - yValues[i]
+              );
+            } else if (i > 13000) {
+              ctx.fillRect(
+                xValues[i],
+                yValues[i],
+                step,
+                canvas.height - yValues[i]
+              );
+            }
+          }
         }
+        ctx.stroke();
+        ctx.beginPath();
+        ctx.arc(
+          xValues[that.widthCanvas == "302px" ? 10000 : 8000],
+          yValues[that.widthCanvas == "302px" ? 10000 : 8000],
+          5,
+          0,
+          2 * Math.PI
+        );
+        ctx.fillStyle = "#ff6363";
+        ctx.fill();
+        //标记点2
+        ctx.beginPath();
+        ctx.arc(
+          xValues[that.widthCanvas == "302px" ? 15000 : 13000],
+          yValues[that.widthCanvas == "302px" ? 15000 : 13000],
+          5,
+          0,
+          2 * Math.PI
+        );
+        ctx.fillStyle = "#ff6363";
+        ctx.fill();
+
+        // 设置线条样式(颜色、宽度等)
+        ctx.strokeStyle = "rgba(14, 180, 252,.6)";
+        ctx.lineWidth = 1;
+        ctx.lineCap = "round";
+        // 定义虚线模式:[线段长度, 间隔长度]
+        ctx.setLineDash([5, 5]);
+        //绘制标记点1线条-x
+        ctx.beginPath();
+        ctx.moveTo(0, yValues[that.widthCanvas == "302px" ? 10000 : 8000]); // 开始绘制的点
+        ctx.lineTo(
+          xValues[that.widthCanvas == "302px" ? 10000 : 8000],
+          yValues[that.widthCanvas == "302px" ? 10000 : 8000]
+        ); // 结束绘制的点
+        ctx.stroke(); // 进行绘制
+        //绘制标记点1线条-y
+        ctx.beginPath();
+        ctx.moveTo(
+          xValues[that.widthCanvas == "302px" ? 10000 : 8000],
+          yValues[that.widthCanvas == "302px" ? 10000 : 8000]
+        ); // 开始绘制的点
+        ctx.lineTo(
+          xValues[that.widthCanvas == "302px" ? 10000 : 8000],
+          canvas.height
+        ); // 结束绘制的点
+        ctx.stroke(); // 进行绘制
 
+        //绘制标记点2线条-x
+        ctx.beginPath();
+        ctx.moveTo(0, yValues[that.widthCanvas == "302px" ? 15000 : 13000]); // 开始绘制的点
+        ctx.lineTo(
+          xValues[that.widthCanvas == "302px" ? 15000 : 13000],
+          yValues[that.widthCanvas == "302px" ? 15000 : 13000]
+        ); // 结束绘制的点
+        ctx.stroke(); // 进行绘制
+        //绘制标记点2线条-y
+        ctx.beginPath();
+        ctx.moveTo(
+          xValues[that.widthCanvas == "302px" ? 15000 : 13000],
+          yValues[that.widthCanvas == "302px" ? 15000 : 13000]
+        ); // 开始绘制的点
+        ctx.lineTo(
+          xValues[that.widthCanvas == "302px" ? 15000 : 13000],
+          canvas.height
+        ); // 结束绘制的点
+        ctx.stroke(); // 进行绘制
+      });
     },
-    computed: {},
+  },
+  computed: {},
 };
 </script>
 
 <style lang="scss" scoped>
 .warn-zb {
-    position: relative;
-    height: 100%;
+  position: relative;
+  height: 100%;
 
-    .coords {
-        position: absolute;
-        left: 50%;
-        top: 50%;
-        border-left: 1px solid #0eb4fc;
-        border-bottom: 1px solid #0eb4fc;
-        transform: translate(-50%, -55%);
+  .coords {
+    position: absolute;
+    left: 50%;
+    top: 50%;
+    border-left: 1px solid #0eb4fc;
+    border-bottom: 1px solid #0eb4fc;
+    transform: translate(-50%, -55%);
 
-        .triangle-x {
-            position: absolute;
-            left: -4px;
-            top: -10px;
-            width: 0px;
-            height: 0px;
-            border-top: 3px solid transparent;
-            border-left: 4px solid transparent;
-            border-right: 3px solid transparent;
-            border-bottom: 8px solid #0eb4fc;
-        }
-
-        .triangle-y {
-            position: absolute;
-            right: -10px;
-            bottom: -4px;
-            width: 0px;
-            height: 0px;
-            border-top: 4px solid transparent;
-            border-left: 8px solid #0eb4fc;
-            border-right: 3px solid transparent;
-            border-bottom: 3px solid transparent;
-        }
+    .triangle-x {
+      position: absolute;
+      left: -4px;
+      top: -10px;
+      width: 0px;
+      height: 0px;
+      border-top: 3px solid transparent;
+      border-left: 4px solid transparent;
+      border-right: 3px solid transparent;
+      border-bottom: 8px solid #0eb4fc;
+    }
 
-        .name-x {
-            position: absolute;
-            right: 0px;
-            bottom: -20px;
-            color: #b3b8cc;
-            font-size: 12px;
-        }
+    .triangle-y {
+      position: absolute;
+      right: -10px;
+      bottom: -4px;
+      width: 0px;
+      height: 0px;
+      border-top: 4px solid transparent;
+      border-left: 8px solid #0eb4fc;
+      border-right: 3px solid transparent;
+      border-bottom: 3px solid transparent;
+    }
 
-        .name-y {
-            width: 20px;
-            position: absolute;
-            left: -24px;
-            top: 0px;
-            color: #b3b8cc;
-            font-size: 12px;
-            text-align: center;
-        }
+    .name-x {
+      position: absolute;
+      right: 0px;
+      bottom: -20px;
+      color: #b3b8cc;
+      font-size: 12px;
+    }
 
-        .coord-dw {
-            position: absolute;
-            left: -32px;
-            top: 0;
-            width: 30px;
-            height: 100%;
+    .name-y {
+      width: 20px;
+      position: absolute;
+      left: -24px;
+      top: 0px;
+      color: #b3b8cc;
+      font-size: 12px;
+      text-align: center;
+    }
 
-            .dw-item {
-                position: absolute;
-                left: 50%;
-                transform: translate(-50%, 0);
-                color: #b3b8cc;
-                font-size: 12px;
-            }
-        }
+    .coord-dw {
+      position: absolute;
+      left: -32px;
+      top: 0;
+      width: 30px;
+      height: 100%;
 
-        .coord-bj {
-            display: flex;
-            position: absolute;
-            left: -1px;
-            bottom: -31px;
-            width: 100%;
-            height: 30px;
-            border-left: 1px solid #0eb4fc;
+      .dw-item {
+        position: absolute;
+        left: 50%;
+        transform: translate(-50%, 0);
+        color: #b3b8cc;
+        font-size: 12px;
+      }
+    }
 
-            .left-jt {
-                position: absolute;
-                left: -1px;
-                top: 23px;
-                width: 0px;
-                height: 0px;
-                border-top: 3px solid transparent;
-                border-right: 8px solid #0eb4fc;
-                border-left: 3px solid transparent;
-                border-bottom: 3px solid transparent;
-            }
+    .coord-bj {
+      display: flex;
+      position: absolute;
+      left: -1px;
+      bottom: -31px;
+      width: 100%;
+      height: 30px;
+      border-left: 1px solid #0eb4fc;
 
-            .right-jt {
-                position: absolute;
-                right: -1px;
-                top: 23px;
-                width: 0px;
-                height: 0px;
-                border-top: 3px solid transparent;
-                border-left: 8px solid #0eb4fc;
-                border-right: 3px solid transparent;
-                border-bottom: 3px solid transparent;
-            }
+      .left-jt {
+        position: absolute;
+        left: -1px;
+        top: 23px;
+        width: 0px;
+        height: 0px;
+        border-top: 3px solid transparent;
+        border-right: 8px solid #0eb4fc;
+        border-left: 3px solid transparent;
+        border-bottom: 3px solid transparent;
+      }
 
-            .text {
-                width: 100%;
-                position: absolute;
-                left: 50%;
-                top: 50%;
-                transform: translate(-50%, -55%);
-                font-size: 10px;
-                color: #db9753;
-                text-align: center;
-            }
+      .right-jt {
+        position: absolute;
+        right: -1px;
+        top: 23px;
+        width: 0px;
+        height: 0px;
+        border-top: 3px solid transparent;
+        border-left: 8px solid #0eb4fc;
+        border-right: 3px solid transparent;
+        border-bottom: 3px solid transparent;
+      }
 
-            .line {
-                width: calc(100% - 20px);
-                height: 1px;
-                position: absolute;
-                left: 10px;
-                top: 26px;
-                background-color: #0eb4fc;
-            }
+      .text {
+        width: 100%;
+        position: absolute;
+        left: 50%;
+        top: 50%;
+        transform: translate(-50%, -55%);
+        font-size: 10px;
+        color: #db9753;
+        text-align: center;
+      }
 
-            .bj-qfq {
-                flex-shrink: 0;
-                position: relative;
-                // width: 401px;
-                height: 100%;
-                border-right: 1px dashed #0eb4fc;
-            }
+      .line {
+        width: calc(100% - 20px);
+        height: 1px;
+        position: absolute;
+        left: 10px;
+        top: 26px;
+        background-color: #0eb4fc;
+      }
 
-            .bj-zrq {
-                flex-shrink: 0;
-                position: relative;
-                // width: 699px;
-                height: 100%;
-                border-right: 1px dashed #0eb4fc;
-            }
+      .bj-qfq {
+        flex-shrink: 0;
+        position: relative;
+        // width: 401px;
+        height: 100%;
+        border-right: 1px dashed #0eb4fc;
+      }
 
-            .bj-rsq {
-                flex-shrink: 0;
-                position: relative;
-                // width: 415px;
-                height: 100%;
-            }
-        }
+      .bj-zrq {
+        flex-shrink: 0;
+        position: relative;
+        // width: 699px;
+        height: 100%;
+        border-right: 1px dashed #0eb4fc;
+      }
 
-        .coord-area {
-            position: absolute;
-            left: 0;
-            top: 10px;
-        }
+      .bj-rsq {
+        flex-shrink: 0;
+        position: relative;
+        // width: 415px;
+        height: 100%;
+      }
     }
 
-
+    .coord-area {
+      position: absolute;
+      left: 0;
+      top: 10px;
+    }
+  }
 }
 </style>

+ 105 - 0
pnpm-lock.yaml

@@ -0,0 +1,105 @@
+lockfileVersion: '9.0'
+
+settings:
+  autoInstallPeers: true
+  excludeLinksFromLockfile: false
+
+importers:
+
+  .:
+    dependencies:
+      crypto-js:
+        specifier: ^4.2.0
+        version: 4.2.0
+      dayjs:
+        specifier: ^1.11.21
+        version: 1.11.23
+      echarts:
+        specifier: ^5.5.1
+        version: 5.6.0
+      formdata-polyfill:
+        specifier: ^4.0.10
+        version: 4.0.10
+      moment:
+        specifier: ^2.30.1
+        version: 2.30.1
+      zrender:
+        specifier: ^6.1.0
+        version: 6.1.0
+
+packages:
+
+  crypto-js@4.2.0:
+    resolution: {integrity: sha512-KALDyEYgpY+Rlob/iriUtjV6d5Eq+Y191A5g4UqLAi8CyGP9N1+FdVbkc1SxKc2r4YAYqG8JzO2KGL+AizD70Q==}
+    deprecated: Active development of CryptoJS has been discontinued. This library is no longer maintained.
+
+  dayjs@1.11.23:
+    resolution: {integrity: sha512-QDTCU0M0MxR3hQfnlDJfwekQiaanm1ubOD231u73WBckQ/fsamwRLiE2GBz6D3a/xF1NgfiDLJjXBa1hYOYTtQ==}
+
+  echarts@5.6.0:
+    resolution: {integrity: sha512-oTbVTsXfKuEhxftHqL5xprgLoc0k7uScAwtryCgWF6hPYFLRwOUHiFmHGCBKP5NPFNkDVopOieyUqYGH8Fa3kA==}
+
+  fetch-blob@3.2.0:
+    resolution: {integrity: sha512-7yAQpD2UMJzLi1Dqv7qFYnPbaPx7ZfFK6PiIxQ4PfkGPyNyl2Ugx+a/umUonmKqjhM4DnfbMvdX6otXq83soQQ==}
+    engines: {node: ^12.20 || >= 14.13}
+
+  formdata-polyfill@4.0.10:
+    resolution: {integrity: sha512-buewHzMvYL29jdeQTVILecSaZKnt/RJWjoZCF5OW60Z67/GmSLBkOFM7qh1PI3zFNtJbaZL5eQu1vLfazOwj4g==}
+    engines: {node: '>=12.20.0'}
+
+  moment@2.30.1:
+    resolution: {integrity: sha512-uEmtNhbDOrWPFS+hdjFCBfy9f2YoyzRpwcl+DqpC6taX21FzsTLQVbMV/W7PzNSX6x/bhC1zA3c2UQ5NzH6how==}
+
+  node-domexception@1.0.0:
+    resolution: {integrity: sha512-/jKZoMpw0F8GRwl4/eLROPA3cfcXtLApP0QzLmUT/HuPCZWyB7IY9ZrMeKw2O/nFIqPQB3PVM9aYm0F312AXDQ==}
+    engines: {node: '>=10.5.0'}
+    deprecated: Use your platform's native DOMException instead
+
+  tslib@2.3.0:
+    resolution: {integrity: sha512-N82ooyxVNm6h1riLCoyS9e3fuJ3AMG2zIZs2Gd1ATcSFjSA23Q0fzjjZeh0jbJvWVDZ0cJT8yaNNaaXHzueNjg==}
+
+  web-streams-polyfill@3.3.3:
+    resolution: {integrity: sha512-d2JWLCivmZYTSIoge9MsgFCZrt571BikcWGYkjC1khllbTeDlGqZ2D8vD8E/lJa8WGWbb7Plm8/XJYV7IJHZZw==}
+    engines: {node: '>= 8'}
+
+  zrender@5.6.1:
+    resolution: {integrity: sha512-OFXkDJKcrlx5su2XbzJvj/34Q3m6PvyCZkVPHGYpcCJ52ek4U/ymZyfuV1nKE23AyBJ51E/6Yr0mhZ7xGTO4ag==}
+
+  zrender@6.1.0:
+    resolution: {integrity: sha512-oEGMDB6pOP2S6OwRR4PdVv610zrjnA3Bh+JnSG12fYJlBKjtNAoEb5fSUoCOOINlH96I2fU38/A2UpRKs67xYQ==}
+
+snapshots:
+
+  crypto-js@4.2.0: {}
+
+  dayjs@1.11.23: {}
+
+  echarts@5.6.0:
+    dependencies:
+      tslib: 2.3.0
+      zrender: 5.6.1
+
+  fetch-blob@3.2.0:
+    dependencies:
+      node-domexception: 1.0.0
+      web-streams-polyfill: 3.3.3
+
+  formdata-polyfill@4.0.10:
+    dependencies:
+      fetch-blob: 3.2.0
+
+  moment@2.30.1: {}
+
+  node-domexception@1.0.0: {}
+
+  tslib@2.3.0: {}
+
+  web-streams-polyfill@3.3.3: {}
+
+  zrender@5.6.1:
+    dependencies:
+      tslib: 2.3.0
+
+  zrender@6.1.0:
+    dependencies:
+      tslib: 2.3.0

+ 19 - 7
static/warndata/CO.svg

@@ -1,14 +1,26 @@
-<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="29.908" height="23.458" viewBox="0 0 29.908 23.458">
+<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="35.369" height="28.223" viewBox="0 0 35.369 28.223">
   <defs>
     <linearGradient id="linear-gradient" x1="0.5" x2="0.5" y2="1" gradientUnits="objectBoundingBox">
-      <stop offset="0" stop-color="#f9faff"/>
-      <stop offset="1" stop-color="#c4d2fd"/>
+      <stop offset="0" stop-color="#cce0ff"/>
+      <stop offset="1" stop-color="#8fbbff"/>
     </linearGradient>
   </defs>
-  <g id="CO" transform="translate(-771.614 -468.47)">
-    <g id="组_15348" data-name="组 15348" transform="translate(771.614 468.47)" style="isolation: isolate">
-      <path id="路径_56246" data-name="路径 56246" d="M774.5,491.149a5.842,5.842,0,0,1-2.11-2.1,5.542,5.542,0,0,1-.779-2.875V474.221a5.546,5.546,0,0,1,.779-2.876,5.848,5.848,0,0,1,2.11-2.1,5.613,5.613,0,0,1,2.888-.779H779.3a5.616,5.616,0,0,1,2.889.779,5.741,5.741,0,0,1,2.1,2.1,5.619,5.619,0,0,1,.766,2.876v.725h-2.633v-.725A3.119,3.119,0,0,0,779.3,471.1h-1.908a2.992,2.992,0,0,0-2.217.914,3.024,3.024,0,0,0-.9,2.2v11.957a3.022,3.022,0,0,0,.9,2.2,2.988,2.988,0,0,0,2.217.914H779.3a3.12,3.12,0,0,0,3.117-3.118v-.726h2.633v.726a5.615,5.615,0,0,1-.766,2.875,5.736,5.736,0,0,1-2.1,2.1,5.617,5.617,0,0,1-2.889.779h-1.908A5.613,5.613,0,0,1,774.5,491.149Z" transform="translate(-771.614 -468.47)" fill="url(#linear-gradient)"/>
-      <path id="路径_56247" data-name="路径 56247" d="M801.64,491.055a6.479,6.479,0,0,1-2.378-2.365,6.3,6.3,0,0,1-.873-3.238V474.945a6.3,6.3,0,0,1,.873-3.238,6.475,6.475,0,0,1,2.378-2.365,6.369,6.369,0,0,1,3.252-.873h.941a6.3,6.3,0,0,1,3.238.873,6.507,6.507,0,0,1,2.365,2.365,6.3,6.3,0,0,1,.874,3.238v10.507a6.3,6.3,0,0,1-.874,3.238,6.511,6.511,0,0,1-2.365,2.365,6.3,6.3,0,0,1-3.238.873h-.941A6.369,6.369,0,0,1,801.64,491.055Zm-.067-3.7a3.974,3.974,0,0,0,1.4,1.411,3.666,3.666,0,0,0,1.922.524h.941a3.666,3.666,0,0,0,1.921-.524,3.974,3.974,0,0,0,1.4-1.411,3.685,3.685,0,0,0,.524-1.908V474.945a3.689,3.689,0,0,0-.524-1.908,3.978,3.978,0,0,0-1.4-1.41,3.666,3.666,0,0,0-1.921-.524h-.941a3.666,3.666,0,0,0-1.922.524,3.978,3.978,0,0,0-1.4,1.41,3.688,3.688,0,0,0-.524,1.908v10.507A3.685,3.685,0,0,0,801.573,487.36Z" transform="translate(-782.4 -468.47)" fill="url(#linear-gradient)"/>
+  <g id="组_15562" data-name="组 15562" transform="translate(-8.316 -11.889)">
+    <g id="组_14965" data-name="组 14965" transform="translate(10.551 11.889)">
+      <g id="CO" style="isolation: isolate">
+        <g id="组_14966" data-name="组 14966" style="isolation: isolate">
+          <path id="路径_56139" data-name="路径 56139" d="M566.61,336.1a6.471,6.471,0,0,1-2.337-2.322,6.141,6.141,0,0,1-.863-3.185V317.35a6.143,6.143,0,0,1,.863-3.185,6.472,6.472,0,0,1,2.337-2.322,6.218,6.218,0,0,1,3.2-.863h2.114a6.223,6.223,0,0,1,3.2.863,6.354,6.354,0,0,1,2.321,2.322,6.226,6.226,0,0,1,.849,3.185v.8h-2.917v-.8a3.456,3.456,0,0,0-3.453-3.453H569.81a3.311,3.311,0,0,0-2.456,1.012,3.35,3.35,0,0,0-1,2.441V330.6a3.349,3.349,0,0,0,1,2.441,3.308,3.308,0,0,0,2.456,1.012h2.114a3.456,3.456,0,0,0,3.453-3.453v-.8h2.917v.8a6.225,6.225,0,0,1-.849,3.185,6.353,6.353,0,0,1-2.321,2.322,6.222,6.222,0,0,1-3.2.863H569.81A6.217,6.217,0,0,1,566.61,336.1Z" transform="translate(-563.41 -310.979)" fill="#2663ca"/>
+          <path id="路径_56140" data-name="路径 56140" d="M593.786,336a7.178,7.178,0,0,1-2.634-2.62,6.976,6.976,0,0,1-.967-3.588v-11.64a6.976,6.976,0,0,1,.967-3.588,7.178,7.178,0,0,1,2.634-2.62,7.063,7.063,0,0,1,3.6-.967h1.041a6.983,6.983,0,0,1,3.588.967,7.213,7.213,0,0,1,2.62,2.62,6.976,6.976,0,0,1,.968,3.588v11.64a6.976,6.976,0,0,1-.968,3.588,7.214,7.214,0,0,1-2.62,2.62,6.983,6.983,0,0,1-3.588.967h-1.041A7.063,7.063,0,0,1,593.786,336Zm-.074-4.094a4.409,4.409,0,0,0,1.548,1.563,4.06,4.06,0,0,0,2.129.58h1.041a4.06,4.06,0,0,0,2.129-.58,4.408,4.408,0,0,0,1.548-1.563,4.081,4.081,0,0,0,.58-2.114v-11.64a4.085,4.085,0,0,0-.58-2.114,4.406,4.406,0,0,0-1.548-1.563,4.061,4.061,0,0,0-2.129-.581h-1.041a4.061,4.061,0,0,0-2.129.581,4.407,4.407,0,0,0-1.548,1.563,4.086,4.086,0,0,0-.58,2.114v11.64A4.082,4.082,0,0,0,593.712,331.907Z" transform="translate(-572.472 -310.979)" fill="#2663ca"/>
+        </g>
+      </g>
+    </g>
+    <g id="组_14965-2" data-name="组 14965" transform="translate(8.316 14.123)">
+      <g id="CO-2" data-name="CO" style="isolation: isolate">
+        <g id="组_14966-2" data-name="组 14966" style="isolation: isolate">
+          <path id="路径_56139-2" data-name="路径 56139" d="M566.61,336.1a6.471,6.471,0,0,1-2.337-2.322,6.141,6.141,0,0,1-.863-3.185V317.35a6.143,6.143,0,0,1,.863-3.185,6.472,6.472,0,0,1,2.337-2.322,6.218,6.218,0,0,1,3.2-.863h2.114a6.223,6.223,0,0,1,3.2.863,6.354,6.354,0,0,1,2.321,2.322,6.226,6.226,0,0,1,.849,3.185v.8h-2.917v-.8a3.456,3.456,0,0,0-3.453-3.453H569.81a3.311,3.311,0,0,0-2.456,1.012,3.35,3.35,0,0,0-1,2.441V330.6a3.349,3.349,0,0,0,1,2.441,3.308,3.308,0,0,0,2.456,1.012h2.114a3.456,3.456,0,0,0,3.453-3.453v-.8h2.917v.8a6.225,6.225,0,0,1-.849,3.185,6.353,6.353,0,0,1-2.321,2.322,6.222,6.222,0,0,1-3.2.863H569.81A6.217,6.217,0,0,1,566.61,336.1Z" transform="translate(-563.41 -310.979)" fill="url(#linear-gradient)"/>
+          <path id="路径_56140-2" data-name="路径 56140" d="M593.786,336a7.178,7.178,0,0,1-2.634-2.62,6.976,6.976,0,0,1-.967-3.588v-11.64a6.976,6.976,0,0,1,.967-3.588,7.178,7.178,0,0,1,2.634-2.62,7.063,7.063,0,0,1,3.6-.967h1.041a6.983,6.983,0,0,1,3.588.967,7.213,7.213,0,0,1,2.62,2.62,6.976,6.976,0,0,1,.968,3.588v11.64a6.976,6.976,0,0,1-.968,3.588,7.214,7.214,0,0,1-2.62,2.62,6.983,6.983,0,0,1-3.588.967h-1.041A7.063,7.063,0,0,1,593.786,336Zm-.074-4.094a4.409,4.409,0,0,0,1.548,1.563,4.06,4.06,0,0,0,2.129.58h1.041a4.06,4.06,0,0,0,2.129-.58,4.408,4.408,0,0,0,1.548-1.563,4.081,4.081,0,0,0,.58-2.114v-11.64a4.085,4.085,0,0,0-.58-2.114,4.406,4.406,0,0,0-1.548-1.563,4.061,4.061,0,0,0-2.129-.581h-1.041a4.061,4.061,0,0,0-2.129.581,4.407,4.407,0,0,0-1.548,1.563,4.086,4.086,0,0,0-.58,2.114v11.64A4.082,4.082,0,0,0,593.712,331.907Z" transform="translate(-572.472 -310.979)" fill="url(#linear-gradient)"/>
+        </g>
+      </g>
     </g>
   </g>
 </svg>

+ 26 - 0
static/warndata/O₂.svg

@@ -0,0 +1,26 @@
+<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="32.88" height="32.745" viewBox="0 0 32.88 32.745">
+  <defs>
+    <linearGradient id="linear-gradient" x1="0.5" x2="0.5" y2="1" gradientUnits="objectBoundingBox">
+      <stop offset="0" stop-color="#cce0ff"/>
+      <stop offset="1" stop-color="#8fbbff"/>
+    </linearGradient>
+  </defs>
+  <g id="组_15561" data-name="组 15561" transform="translate(-10.56 -8.627)">
+    <g id="O_" data-name="O " transform="translate(-632.625 -407.352)">
+      <g id="组_14967" data-name="组 14967" transform="translate(645.185 415.979)" style="isolation: isolate">
+        <path id="路径_56141" data-name="路径 56141" d="M649.327,444.751a8.256,8.256,0,0,1-3.03-3.012,8.022,8.022,0,0,1-1.112-4.125V424.229A8.021,8.021,0,0,1,646.3,420.1a8.256,8.256,0,0,1,3.03-3.012,8.118,8.118,0,0,1,4.142-1.112h1.2a8.028,8.028,0,0,1,4.125,1.112A8.3,8.3,0,0,1,661.8,420.1a8.028,8.028,0,0,1,1.112,4.125v13.384a8.029,8.029,0,0,1-1.112,4.125,8.3,8.3,0,0,1-3.012,3.012,8.029,8.029,0,0,1-4.125,1.112h-1.2A8.119,8.119,0,0,1,649.327,444.751Zm-.085-4.707a5.067,5.067,0,0,0,1.779,1.8,4.669,4.669,0,0,0,2.448.667h1.2a4.671,4.671,0,0,0,2.448-.667,5.075,5.075,0,0,0,1.78-1.8,4.7,4.7,0,0,0,.667-2.43V424.229a4.7,4.7,0,0,0-.667-2.43,5.073,5.073,0,0,0-1.78-1.8,4.672,4.672,0,0,0-2.448-.668h-1.2a4.67,4.67,0,0,0-2.448.668,5.065,5.065,0,0,0-1.779,1.8,4.7,4.7,0,0,0-.668,2.43v13.384A4.694,4.694,0,0,0,649.242,440.043Z" transform="translate(-645.185 -415.979)" fill="#2663ca"/>
+      </g>
+      <g id="组_14968" data-name="组 14968" transform="translate(665.969 432.182)" style="isolation: isolate">
+        <path id="路径_56142" data-name="路径 56142" d="M682.6,451.821h-10.1v-1.4a4.649,4.649,0,0,1,.452-2.106,6.409,6.409,0,0,1,1.12-1.6,11.37,11.37,0,0,1,1.454-1.27q.786-.576,1.454-1.136a6.818,6.818,0,0,0,1.121-1.171,2.306,2.306,0,0,0,.451-1.412,1.3,1.3,0,0,0-.468-1.078,1.97,1.97,0,0,0-1.27-.376,4.383,4.383,0,0,0-.885.1,6.131,6.131,0,0,0-.961.285,6.892,6.892,0,0,0-.919.434,3.509,3.509,0,0,0-.761.568v-3.243a6.435,6.435,0,0,1,2.039-.894,9.375,9.375,0,0,1,2.139-.243,6.6,6.6,0,0,1,1.939.276,4.431,4.431,0,0,1,1.563.827,4,4,0,0,1,1.044,1.355,4.24,4.24,0,0,1,.384,1.855,3.849,3.849,0,0,1-.426,1.772,7.908,7.908,0,0,1-1.061,1.572,12.178,12.178,0,0,1-1.371,1.354q-.736.618-1.371,1.1c-.424.324-.777.6-1.061.837s-.427.418-.427.551v.067H682.6Z" transform="translate(-672.508 -437.28)" fill="#2663ca"/>
+      </g>
+    </g>
+    <g id="O_2" data-name="O " transform="translate(-634.625 -405.352)">
+      <g id="组_14967-2" data-name="组 14967" transform="translate(645.185 415.979)" style="isolation: isolate">
+        <path id="路径_56141-2" data-name="路径 56141" d="M649.327,444.751a8.256,8.256,0,0,1-3.03-3.012,8.022,8.022,0,0,1-1.112-4.125V424.229A8.021,8.021,0,0,1,646.3,420.1a8.256,8.256,0,0,1,3.03-3.012,8.118,8.118,0,0,1,4.142-1.112h1.2a8.028,8.028,0,0,1,4.125,1.112A8.3,8.3,0,0,1,661.8,420.1a8.028,8.028,0,0,1,1.112,4.125v13.384a8.029,8.029,0,0,1-1.112,4.125,8.3,8.3,0,0,1-3.012,3.012,8.029,8.029,0,0,1-4.125,1.112h-1.2A8.119,8.119,0,0,1,649.327,444.751Zm-.085-4.707a5.067,5.067,0,0,0,1.779,1.8,4.669,4.669,0,0,0,2.448.667h1.2a4.671,4.671,0,0,0,2.448-.667,5.075,5.075,0,0,0,1.78-1.8,4.7,4.7,0,0,0,.667-2.43V424.229a4.7,4.7,0,0,0-.667-2.43,5.073,5.073,0,0,0-1.78-1.8,4.672,4.672,0,0,0-2.448-.668h-1.2a4.67,4.67,0,0,0-2.448.668,5.065,5.065,0,0,0-1.779,1.8,4.7,4.7,0,0,0-.668,2.43v13.384A4.694,4.694,0,0,0,649.242,440.043Z" transform="translate(-645.185 -415.979)" fill="url(#linear-gradient)"/>
+      </g>
+      <g id="组_14968-2" data-name="组 14968" transform="translate(665.969 432.182)" style="isolation: isolate">
+        <path id="路径_56142-2" data-name="路径 56142" d="M682.6,451.821h-10.1v-1.4a4.649,4.649,0,0,1,.452-2.106,6.409,6.409,0,0,1,1.12-1.6,11.37,11.37,0,0,1,1.454-1.27q.786-.576,1.454-1.136a6.818,6.818,0,0,0,1.121-1.171,2.306,2.306,0,0,0,.451-1.412,1.3,1.3,0,0,0-.468-1.078,1.97,1.97,0,0,0-1.27-.376,4.383,4.383,0,0,0-.885.1,6.131,6.131,0,0,0-.961.285,6.892,6.892,0,0,0-.919.434,3.509,3.509,0,0,0-.761.568v-3.243a6.435,6.435,0,0,1,2.039-.894,9.375,9.375,0,0,1,2.139-.243,6.6,6.6,0,0,1,1.939.276,4.431,4.431,0,0,1,1.563.827,4,4,0,0,1,1.044,1.355,4.24,4.24,0,0,1,.384,1.855,3.849,3.849,0,0,1-.426,1.772,7.908,7.908,0,0,1-1.061,1.572,12.178,12.178,0,0,1-1.371,1.354q-.736.618-1.371,1.1c-.424.324-.777.6-1.061.837s-.427.418-.427.551v.067H682.6Z" transform="translate(-672.508 -437.28)" fill="url(#linear-gradient)"/>
+      </g>
+    </g>
+  </g>
+</svg>

+ 12 - 0
static/warndata/cankaozhi.svg

@@ -0,0 +1,12 @@
+<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="26.032" height="28.911" viewBox="0 0 26.032 28.911">
+  <defs>
+    <linearGradient id="linear-gradient" x1="0.5" x2="0.5" y2="1" gradientUnits="objectBoundingBox">
+      <stop offset="0" stop-color="#cce0ff"/>
+      <stop offset="1" stop-color="#8fbbff"/>
+    </linearGradient>
+  </defs>
+  <g id="组_15563" data-name="组 15563" transform="translate(-12.984 -11.545)">
+    <path id="路径_56298" data-name="路径 56298" d="M176.114,143.834l.6-5.758h-6.052V135.2h6.355l.756-7.2h2.895l-.756,7.2h5.742l.756-7.2h2.895l-.756,7.2H193.7v2.879h-5.447l-.6,5.758H193.7v2.879h-6.355l-.756,7.2h-2.895l.756-7.2h-5.742l-.756,7.2h-2.895l.756-7.2h-5.145v-2.879h5.447Zm2.895,0h5.744l.6-5.758h-5.744Z" transform="translate(-155.183 -115.955)" fill="#2663ca" stroke="rgba(0,0,0,0)" stroke-miterlimit="10" stroke-width="1"/>
+    <path id="路径_56299" data-name="路径 56299" d="M176.114,143.834l.6-5.758h-6.052V135.2h6.355l.756-7.2h2.895l-.756,7.2h5.742l.756-7.2h2.895l-.756,7.2H193.7v2.879h-5.447l-.6,5.758H193.7v2.879h-6.355l-.756,7.2h-2.895l.756-7.2h-5.742l-.756,7.2h-2.895l.756-7.2h-5.145v-2.879h5.447Zm2.895,0h5.744l.6-5.758h-5.744Z" transform="translate(-157.183 -113.955)" stroke="rgba(0,0,0,0)" stroke-width="1" fill="url(#linear-gradient)"/>
+  </g>
+</svg>

+ 9 - 0
static/warndata/cedian-leixing.svg

@@ -0,0 +1,9 @@
+<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="28.867" height="28.487" viewBox="0 0 28.867 28.487">
+  <defs>
+    <linearGradient id="linear-gradient" x1="0.5" x2="0.5" y2="1" gradientUnits="objectBoundingBox">
+      <stop offset="0" stop-color="#f9faff"/>
+      <stop offset="1" stop-color="#c4d2fd"/>
+    </linearGradient>
+  </defs>
+  <path id="路径_56300" data-name="路径 56300" d="M55.4,51.8a1.127,1.127,0,0,1,0-1.594l4.427-4.427a1.127,1.127,0,0,1,1.593,0l4.429,4.427a1.127,1.127,0,0,1,0,1.593l-4.427,4.429a1.127,1.127,0,0,1-1.594,0Zm2.389-.8,2.834,2.833L63.461,51l-2.834-2.833L57.794,51Zm5.751,8.936a1.127,1.127,0,0,1,0-1.593l4.427-4.429a1.127,1.127,0,0,1,1.593,0l4.429,4.429a1.127,1.127,0,0,1,0,1.593l-4.427,4.429a1.127,1.127,0,0,1-1.594,0Zm2.389-.8,2.834,2.834L71.6,59.142l-2.834-2.834-2.833,2.834Zm-18.671.8a1.127,1.127,0,0,1,0-1.593l4.429-4.429a1.127,1.127,0,0,1,1.593,0l4.429,4.429a1.127,1.127,0,0,1,0,1.593l-4.427,4.429a1.127,1.127,0,0,1-1.593,0l-4.432-4.429Zm2.391-.8,2.834,2.834,2.833-2.834-2.833-2.834ZM55.4,68.08a1.127,1.127,0,0,1,0-1.593l4.427-4.429a1.127,1.127,0,0,1,1.593,0l4.429,4.427a1.127,1.127,0,0,1,0,1.593l-4.427,4.429a1.127,1.127,0,0,1-1.594,0L55.4,68.08Zm2.389-.8,2.834,2.833,2.834-2.833-2.834-2.834-2.833,2.834Z" transform="translate(-46.053 -44.85)" stroke="rgba(0,0,0,0)" stroke-miterlimit="10" stroke-width="1" fill="url(#linear-gradient)"/>
+</svg>

+ 17 - 0
static/warndata/fenchen-nongdu.svg

@@ -0,0 +1,17 @@
+<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="27.139" height="24" viewBox="0 0 27.139 24">
+  <defs>
+    <linearGradient id="linear-gradient" x1="0.5" x2="0.5" y2="1" gradientUnits="objectBoundingBox">
+      <stop offset="0" stop-color="#f9faff"/>
+      <stop offset="1" stop-color="#c4d2fd"/>
+    </linearGradient>
+  </defs>
+  <g id="组_13084" data-name="组 13084" transform="translate(-15.924 -87.45)">
+    <path id="路径_55299" data-name="路径 55299" d="M395.551,90.809m-3.359,0a3.359,3.359,0,1,0,3.359-3.359A3.359,3.359,0,0,0,392.192,90.809Z" transform="translate(-365.812 0)" fill="url(#linear-gradient)"/>
+    <path id="路径_55300" data-name="路径 55300" d="M637.32,586.938m-3.361,0a3.361,3.361,0,1,0,3.361-3.361A3.361,3.361,0,0,0,633.959,586.938Z" transform="translate(-600.86 -482.34)" fill="url(#linear-gradient)"/>
+    <path id="路径_55301" data-name="路径 55301" d="M19.285,578.9m-3.361,0a3.361,3.361,0,1,0,3.361-3.361A3.361,3.361,0,0,0,15.924,578.9Z" transform="translate(0 -474.526)" fill="url(#linear-gradient)"/>
+    <path id="路径_55302" data-name="路径 55302" d="M394.335,795.384m-2.194,0a2.194,2.194,0,1,0,2.194-2.194A2.194,2.194,0,0,0,392.141,795.384Z" transform="translate(-365.762 -686.128)" fill="url(#linear-gradient)"/>
+    <path id="路径_55303" data-name="路径 55303" d="M836.806,340.113m-2.194,0a2.194,2.194,0,1,0,2.194-2.194A2.194,2.194,0,0,0,834.612,340.113Z" transform="translate(-795.937 -243.509)" fill="url(#linear-gradient)"/>
+    <path id="路径_55304" data-name="路径 55304" d="M290.143,386.4m-2.194,0a2.194,2.194,0,1,0,2.194-2.194A2.194,2.194,0,0,0,287.949,386.4Z" transform="translate(-264.465 -288.508)" fill="url(#linear-gradient)"/>
+    <path id="路径_55305" data-name="路径 55305" d="M30.457,219.486m-2.194,0a2.194,2.194,0,1,0,2.194-2.194A2.194,2.194,0,0,0,28.263,219.486Z" transform="translate(-11.996 -126.234)" fill="url(#linear-gradient)"/>
+  </g>
+</svg>

+ 24 - 0
static/warndata/hui.svg

@@ -0,0 +1,24 @@
+<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="33.542" height="34.969" viewBox="0 0 33.542 34.969">
+  <defs>
+    <linearGradient id="linear-gradient" x1="0.5" x2="0.5" y2="1" gradientUnits="objectBoundingBox">
+      <stop offset="0" stop-color="#cce0ff"/>
+      <stop offset="1" stop-color="#8fbbff"/>
+    </linearGradient>
+  </defs>
+  <g id="组_15560" data-name="组 15560" transform="translate(-9.229 -8.373)">
+    <g id="组_14958" data-name="组 14958" transform="translate(11.332 8.373)">
+      <path id="路径_56132" data-name="路径 56132" d="M6.9,126.964a1.973,1.973,0,0,1,.159-.8,2.073,2.073,0,0,1,1.082-1.081,1.973,1.973,0,0,1,.8-.159,1.933,1.933,0,0,1,.779.159,2.073,2.073,0,0,1,1.082,1.081,2.048,2.048,0,0,1,0,1.582,1.953,1.953,0,0,1-.437.644,2.141,2.141,0,0,1-.644.429,1.933,1.933,0,0,1-.779.159H8.748a.425.425,0,0,1-.159-.032H1v-1.988Zm4.087,6.012a1.984,1.984,0,0,1,1.821,2.743,1.865,1.865,0,0,1-.421.62,2.142,2.142,0,0,1-.628.421,1.95,1.95,0,0,1-1.543,0,2,2,0,0,1-1.042-1.042,1.877,1.877,0,0,1-.159-.771v-.016H0v-1.988H10.958v.032Zm4.421-6.028a2.369,2.369,0,0,1,.962.2,2.481,2.481,0,0,1,.787.541,2.65,2.65,0,0,1,.533.8,2.369,2.369,0,0,1,.2.962,2.408,2.408,0,0,1-.2.978,2.511,2.511,0,0,1-1.32,1.32,2.369,2.369,0,0,1-.962.2H0v-1.988H12.962a2.592,2.592,0,0,1-.048-.509,2.369,2.369,0,0,1,.2-.962,2.65,2.65,0,0,1,.533-.8,2.481,2.481,0,0,1,.787-.541A2.408,2.408,0,0,1,15.412,126.948Z" transform="translate(6.773 -114.491)" fill="#2663ca"/>
+      <g id="组_14959" data-name="组 14959" transform="translate(0 0)">
+        <path id="路径_56134" data-name="路径 56134" d="M362.761,250.37a17.848,17.848,0,0,0-9.513-4.238c-.593-.074-1.192-.119-1.792-.134-.3-.008-.6-.008-.9,0-.151,0-.3.009-.452.016l-.44.026-.011,0-.266-2.046-5.93,4.535,6.893,2.867-.267-2.052.367-.069c.12-.021.244-.041.367-.06.246-.037.492-.069.741-.094a14.989,14.989,0,0,1,1.5-.08,15.249,15.249,0,0,1,3.012.292,15.727,15.727,0,0,1,5.677,2.359,16.151,16.151,0,0,1,4.455,4.47,16.468,16.468,0,0,1,2.449,5.989,16.891,16.891,0,0,0-1.728-6.405A17.394,17.394,0,0,0,362.761,250.37Z" transform="translate(-337.21 -243.989)" fill="#2663ca"/>
+        <path id="路径_56135" data-name="路径 56135" d="M260.878,494.973l-.367.069c-.121.021-.244.041-.367.06-.246.038-.493.069-.741.095-.5.05-1,.077-1.5.078a15.261,15.261,0,0,1-3.012-.29,15.728,15.728,0,0,1-5.677-2.36,16.14,16.14,0,0,1-4.455-4.47,16.476,16.476,0,0,1-2.449-5.99,16.879,16.879,0,0,0,1.727,6.405,17.406,17.406,0,0,0,4.161,5.373,17.8,17.8,0,0,0,6.042,3.451,18.013,18.013,0,0,0,3.471.787c.593.073,1.191.119,1.792.133.3.007.6.008.9,0,.151,0,.3-.009.452-.016l.44-.026.01,0,.267,2.052,5.93-4.535-6.893-2.867Z" transform="translate(-242.31 -467.457)" fill="#2663ca"/>
+      </g>
+    </g>
+    <g id="组_15433" data-name="组 15433" transform="translate(9.229 10.476)">
+      <path id="路径_56132-2" data-name="路径 56132" d="M6.9,126.964a1.973,1.973,0,0,1,.159-.8,2.073,2.073,0,0,1,1.082-1.081,1.973,1.973,0,0,1,.8-.159,1.933,1.933,0,0,1,.779.159,2.073,2.073,0,0,1,1.082,1.081,2.048,2.048,0,0,1,0,1.582,1.953,1.953,0,0,1-.437.644,2.141,2.141,0,0,1-.644.429,1.933,1.933,0,0,1-.779.159H8.748a.425.425,0,0,1-.159-.032H1v-1.988Zm4.087,6.012a1.984,1.984,0,0,1,1.821,2.743,1.865,1.865,0,0,1-.421.62,2.142,2.142,0,0,1-.628.421,1.95,1.95,0,0,1-1.543,0,2,2,0,0,1-1.042-1.042,1.877,1.877,0,0,1-.159-.771v-.016H0v-1.988H10.958v.032Zm4.421-6.028a2.369,2.369,0,0,1,.962.2,2.481,2.481,0,0,1,.787.541,2.65,2.65,0,0,1,.533.8,2.369,2.369,0,0,1,.2.962,2.408,2.408,0,0,1-.2.978,2.511,2.511,0,0,1-1.32,1.32,2.369,2.369,0,0,1-.962.2H0v-1.988H12.962a2.592,2.592,0,0,1-.048-.509,2.369,2.369,0,0,1,.2-.962,2.65,2.65,0,0,1,.533-.8,2.481,2.481,0,0,1,.787-.541A2.408,2.408,0,0,1,15.412,126.948Z" transform="translate(6.773 -114.491)" fill="url(#linear-gradient)"/>
+      <g id="组_14959-2" data-name="组 14959" transform="translate(0 0)">
+        <path id="路径_56134-2" data-name="路径 56134" d="M362.761,250.37a17.848,17.848,0,0,0-9.513-4.238c-.593-.074-1.192-.119-1.792-.134-.3-.008-.6-.008-.9,0-.151,0-.3.009-.452.016l-.44.026-.011,0-.266-2.046-5.93,4.535,6.893,2.867-.267-2.052.367-.069c.12-.021.244-.041.367-.06.246-.037.492-.069.741-.094a14.989,14.989,0,0,1,1.5-.08,15.249,15.249,0,0,1,3.012.292,15.727,15.727,0,0,1,5.677,2.359,16.151,16.151,0,0,1,4.455,4.47,16.468,16.468,0,0,1,2.449,5.989,16.891,16.891,0,0,0-1.728-6.405A17.394,17.394,0,0,0,362.761,250.37Z" transform="translate(-337.21 -243.989)" fill="url(#linear-gradient)"/>
+        <path id="路径_56135-2" data-name="路径 56135" d="M260.878,494.973l-.367.069c-.121.021-.244.041-.367.06-.246.038-.493.069-.741.095-.5.05-1,.077-1.5.078a15.261,15.261,0,0,1-3.012-.29,15.728,15.728,0,0,1-5.677-2.36,16.14,16.14,0,0,1-4.455-4.47,16.476,16.476,0,0,1-2.449-5.99,16.879,16.879,0,0,0,1.727,6.405,17.406,17.406,0,0,0,4.161,5.373,17.8,17.8,0,0,0,6.042,3.451,18.013,18.013,0,0,0,3.471.787c.593.073,1.191.119,1.792.133.3.007.6.008.9,0,.151,0,.3-.009.452-.016l.44-.026.01,0,.267,2.052,5.93-4.535-6.893-2.867Z" transform="translate(-242.31 -467.457)" fill="url(#linear-gradient)"/>
+      </g>
+    </g>
+  </g>
+</svg>

+ 9 - 0
static/warndata/jiawan.svg

@@ -0,0 +1,9 @@
+<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="34.554" height="19.392" viewBox="0 0 34.554 19.392">
+  <defs>
+    <linearGradient id="linear-gradient" x1="0.5" x2="0.5" y2="1" gradientUnits="objectBoundingBox">
+      <stop offset="0" stop-color="#f9faff"/>
+      <stop offset="1" stop-color="#c4d2fd"/>
+    </linearGradient>
+  </defs>
+  <path id="路径_56301" data-name="路径 56301" d="M167.5,323.476a1.726,1.726,0,0,0-1.679-.886,1.679,1.679,0,0,0-1.1.358,2.394,2.394,0,0,0-.684,1.166,9.92,9.92,0,0,0-.342,2.115q-.093,1.306-.093,3.2a31.1,31.1,0,0,0,.14,3.265,7.247,7.247,0,0,0,.42,1.928,1.748,1.748,0,0,0,.715.917,2.056,2.056,0,0,0,1.011.233,2.338,2.338,0,0,0,.886-.155,1.555,1.555,0,0,0,.715-.653,4.23,4.23,0,0,0,.466-1.368,12.534,12.534,0,0,0,.171-2.332H171.7a15.921,15.921,0,0,1-.218,2.737,6.22,6.22,0,0,1-.84,2.27,4.152,4.152,0,0,1-1.71,1.555,6.5,6.5,0,0,1-2.876.544,6.764,6.764,0,0,1-3.2-.653,4.369,4.369,0,0,1-1.835-1.866,8.21,8.21,0,0,1-.824-2.908,37.316,37.316,0,0,1,0-7.448,8.225,8.225,0,0,1,.824-2.923,4.665,4.665,0,0,1,1.835-1.9,6.453,6.453,0,0,1,3.2-.684,6.219,6.219,0,0,1,3.016.622,4.237,4.237,0,0,1,1.648,1.555,5.515,5.515,0,0,1,.684,2.068,17.3,17.3,0,0,1,.14,2.083h-3.576a6.453,6.453,0,0,0-.466-2.845Zm9.811-3.172V327.1h4.183V320.3h3.576v17.757h-3.576v-7.883h-4.183v7.883h-3.576V320.3Zm12.874,6.748H192.5v6.981h1.057v1.741H192.5v2.286H190.45v-2.286h-3.918V333.94Zm.233,2.8-2.146,4.183h2.177v-4.183Z" transform="translate(-159.506 -319.486)" stroke="rgba(0,0,0,0)" stroke-miterlimit="10" stroke-width="1" fill="url(#linear-gradient)"/>
+</svg>

+ 18 - 0
static/warndata/jin.svg

@@ -0,0 +1,18 @@
+<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="32.156" height="30.508" viewBox="0 0 32.156 30.508">
+  <defs>
+    <linearGradient id="linear-gradient" x1="0.5" x2="0.5" y2="1" gradientUnits="objectBoundingBox">
+      <stop offset="0" stop-color="#cce0ff"/>
+      <stop offset="1" stop-color="#8fbbff"/>
+    </linearGradient>
+  </defs>
+  <g id="组_15193" data-name="组 15193" transform="translate(-9.813 -13.171)">
+    <g id="组_14962" data-name="组 14962" transform="translate(-138.363 -19.755)">
+      <path id="路径_56131" data-name="路径 56131" d="M21.932,5.291l3.177,3.559S7.366,9.859,5.851,32.75c0,0,2.053-17.7,20.724-18.707l-1.125,5L36.008,8.849Z" transform="translate(144.324 27.635)" fill="#2663ca"/>
+      <path id="路径_56132" data-name="路径 56132" d="M7.171,127.043a2.049,2.049,0,0,1,.165-.826,2.154,2.154,0,0,1,1.124-1.124,2.049,2.049,0,0,1,.826-.165,2.008,2.008,0,0,1,.81.165,2.154,2.154,0,0,1,1.124,1.124,2.127,2.127,0,0,1,0,1.644,2.029,2.029,0,0,1-.454.669,2.224,2.224,0,0,1-.669.446,2.009,2.009,0,0,1-.81.165h-.2a.442.442,0,0,1-.165-.033H1.041v-2.065Zm4.246,6.246a2.061,2.061,0,0,1,1.892,2.85,1.938,1.938,0,0,1-.438.644,2.226,2.226,0,0,1-.653.438,2.026,2.026,0,0,1-1.6,0,2.078,2.078,0,0,1-1.082-1.082,1.95,1.95,0,0,1-.165-.8v-.017H0v-2.065H11.384v.033Zm4.593-6.262a2.461,2.461,0,0,1,1,.207,2.578,2.578,0,0,1,.818.562,2.753,2.753,0,0,1,.554.826,2.461,2.461,0,0,1,.207,1,2.5,2.5,0,0,1-.207,1.016,2.609,2.609,0,0,1-1.371,1.371,2.461,2.461,0,0,1-1,.207H0v-2.065H13.466a2.693,2.693,0,0,1-.05-.529,2.461,2.461,0,0,1,.207-1,2.753,2.753,0,0,1,.554-.826,2.578,2.578,0,0,1,.818-.562A2.5,2.5,0,0,1,16.011,127.026Z" transform="translate(160.081 -75.952)" fill="#2663ca"/>
+    </g>
+    <g id="组_15432" data-name="组 15432" transform="translate(-140.362 -17.755)">
+      <path id="路径_56131-2" data-name="路径 56131" d="M21.932,5.291l3.177,3.559S7.366,9.859,5.851,32.75c0,0,2.053-17.7,20.724-18.707l-1.125,5L36.008,8.849Z" transform="translate(144.324 27.635)" fill="url(#linear-gradient)"/>
+      <path id="路径_56132-2" data-name="路径 56132" d="M7.171,127.043a2.049,2.049,0,0,1,.165-.826,2.154,2.154,0,0,1,1.124-1.124,2.049,2.049,0,0,1,.826-.165,2.008,2.008,0,0,1,.81.165,2.154,2.154,0,0,1,1.124,1.124,2.127,2.127,0,0,1,0,1.644,2.029,2.029,0,0,1-.454.669,2.224,2.224,0,0,1-.669.446,2.009,2.009,0,0,1-.81.165h-.2a.442.442,0,0,1-.165-.033H1.041v-2.065Zm4.246,6.246a2.061,2.061,0,0,1,1.892,2.85,1.938,1.938,0,0,1-.438.644,2.226,2.226,0,0,1-.653.438,2.026,2.026,0,0,1-1.6,0,2.078,2.078,0,0,1-1.082-1.082,1.95,1.95,0,0,1-.165-.8v-.017H0v-2.065H11.384v.033Zm4.593-6.262a2.461,2.461,0,0,1,1,.207,2.578,2.578,0,0,1,.818.562,2.753,2.753,0,0,1,.554.826,2.461,2.461,0,0,1,.207,1,2.5,2.5,0,0,1-.207,1.016,2.609,2.609,0,0,1-1.371,1.371,2.461,2.461,0,0,1-1,.207H0v-2.065H13.466a2.693,2.693,0,0,1-.05-.529,2.461,2.461,0,0,1,.207-1,2.753,2.753,0,0,1,.554-.826,2.578,2.578,0,0,1,.818-.562A2.5,2.5,0,0,1,16.011,127.026Z" transform="translate(160.081 -75.952)" fill="url(#linear-gradient)"/>
+    </g>
+  </g>
+</svg>

+ 12 - 0
static/warndata/meiziran-jieduan.svg

@@ -0,0 +1,12 @@
+<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="28.55" height="32.699" viewBox="0 0 28.55 32.699">
+  <defs>
+    <linearGradient id="linear-gradient" x1="0.5" x2="0.5" y2="1" gradientUnits="objectBoundingBox">
+      <stop offset="0" stop-color="#cce0ff"/>
+      <stop offset="1" stop-color="#8fbbff"/>
+    </linearGradient>
+  </defs>
+  <g id="组_15193" data-name="组 15193" transform="translate(-11.614 -13.951)">
+    <path id="路径_56292" data-name="路径 56292" d="M118.311,84.394c-1.986-4.18-.941-6.584.627-8.779a14.258,14.258,0,0,0,2.09-4.912,5.576,5.576,0,0,1,.836,4.389,11.535,11.535,0,0,0,2.4-8.361c5.225,3.658,7.525,11.7,4.494,17.557,16.094-9.2,3.971-22.887,1.881-24.351.732,1.568.836,4.18-.627,5.434-2.4-9.2-8.361-10.973-8.361-10.973.732,4.7-2.508,9.824-5.643,13.691a9.928,9.928,0,0,0-1.254-5.016c-.209,3.449-2.822,6.166-3.553,9.615-.941,4.7.732,8.047,7.107,11.7Z" transform="translate(-97.348 -39.743)" fill="#2663ca" stroke="rgba(0,0,0,0)" stroke-miterlimit="10" stroke-width="1"/>
+    <path id="路径_56293" data-name="路径 56293" d="M118.311,84.394c-1.986-4.18-.941-6.584.627-8.779a14.258,14.258,0,0,0,2.09-4.912,5.576,5.576,0,0,1,.836,4.389,11.535,11.535,0,0,0,2.4-8.361c5.225,3.658,7.525,11.7,4.494,17.557,16.094-9.2,3.971-22.887,1.881-24.351.732,1.568.836,4.18-.627,5.434-2.4-9.2-8.361-10.973-8.361-10.973.732,4.7-2.508,9.824-5.643,13.691a9.928,9.928,0,0,0-1.254-5.016c-.209,3.449-2.822,6.166-3.553,9.615-.941,4.7.732,8.047,7.107,11.7Z" transform="translate(-99.348 -37.744)" fill="url(#linear-gradient)"/>
+  </g>
+</svg>

+ 9 - 0
static/warndata/nongdu.svg

@@ -0,0 +1,9 @@
+<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="32.039" height="23.737" viewBox="0 0 32.039 23.737">
+  <defs>
+    <linearGradient id="linear-gradient" x1="0.5" x2="0.5" y2="1" gradientUnits="objectBoundingBox">
+      <stop offset="0" stop-color="#f9faff"/>
+      <stop offset="1" stop-color="#c4d2fd"/>
+    </linearGradient>
+  </defs>
+  <path id="路径_56286" data-name="路径 56286" d="M7.072,165.047a2.723,2.723,0,0,1,2.961,3.026A3.026,3.026,0,0,1,7.072,171.1a3.027,3.027,0,0,1,0-6.052Zm15.643-.987v.007a3.027,3.027,0,1,0-2.958-3.026A2.715,2.715,0,0,0,22.715,164.059Zm-11.058.3v.007a2.677,2.677,0,0,0,2.69-2.477,2.513,2.513,0,0,0-2.69-2.483,2.678,2.678,0,0,0-2.69,2.476A2.508,2.508,0,0,0,11.657,164.358Zm10.72,6.74a2.5,2.5,0,0,0,2.69,2.476,2.678,2.678,0,0,0,2.69-2.476,2.508,2.508,0,0,0-2.69-2.476A2.674,2.674,0,0,0,22.377,171.1Zm-4.808-1.161v0a2.147,2.147,0,0,0,2.153-2.2,2.338,2.338,0,0,0-2.153-2.2,2.147,2.147,0,0,0-2.153,2.2A2.34,2.34,0,0,0,17.569,169.937Zm-13.743-8.9a2.2,2.2,0,0,0,0-4.4,2.2,2.2,0,0,0,0,4.4Zm25.752,3.324a1.441,1.441,0,1,0-1.248-.721A1.44,1.44,0,0,0,29.579,164.365Zm1.852,11.169a.74.74,0,0,0-.583-.3v0a1.062,1.062,0,0,0-.721.147c-5.793,4.135-11.009,1.183-11.153,1.038-10.861-6.8-17.919.293-18.1.437a.771.771,0,0,0-.288.591,1.117,1.117,0,0,0,.288.591c.291.444.865.3,1.3,0,.145-.3,6.081-6.052,15.64-.147a11.173,11.173,0,0,0,5.793,1.477,13.379,13.379,0,0,0,7.675-2.511,1.113,1.113,0,0,0,.144-1.328Z" transform="translate(-0.086 -156.137)" stroke="rgba(0,0,0,0)" stroke-width="1" fill="url(#linear-gradient)"/>
+</svg>

+ 9 - 0
static/warndata/penwu-shuiya.svg

@@ -0,0 +1,9 @@
+<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="25.517" height="25.541" viewBox="0 0 25.517 25.541">
+  <defs>
+    <linearGradient id="linear-gradient" x1="0.5" x2="0.5" y2="1" gradientUnits="objectBoundingBox">
+      <stop offset="0" stop-color="#f9faff"/>
+      <stop offset="1" stop-color="#c4d2fd"/>
+    </linearGradient>
+  </defs>
+  <path id="喷雾" d="M144.151,158.92a1.274,1.274,0,0,1-1.276-1.276V147.416a1.27,1.27,0,0,1,.379-.9l2.587-2.567a1.284,1.284,0,0,1,.9-.371h3.791v-5.1h-5.9l-5.541,4.779v14.394a1.276,1.276,0,1,1-2.551,0v-14.98a1.275,1.275,0,0,1,.442-.965l6.338-5.469a1.276,1.276,0,0,1,.833-.311H151.8a1.274,1.274,0,0,1,1.276,1.276v7.653a1.274,1.274,0,0,1-1.276,1.276h-4.536l-1.838,1.822v9.7a1.274,1.274,0,0,1-1.276,1.276Zm12.759-20.448a1.274,1.274,0,0,1-.7-2.34l3.866-2.543a1.275,1.275,0,1,1,1.4,2.133l-3.866,2.543A1.282,1.282,0,0,1,156.91,138.472Zm3.862,3.874h-3.866a1.276,1.276,0,1,1,0-2.551h3.866a1.276,1.276,0,1,1,0,2.551Zm0,6.346a1.279,1.279,0,0,1-.706-.211l-3.866-2.567a1.277,1.277,0,0,1,1.411-2.129l3.866,2.567a1.276,1.276,0,0,1-.706,2.34Z" transform="translate(-136.534 -133.379)" fill="url(#linear-gradient)"/>
+</svg>

+ 10 - 0
static/warndata/pingjun-wendu.svg

@@ -0,0 +1,10 @@
+<svg id="组_15482" data-name="组 15482" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="21.341" height="31.027" viewBox="0 0 21.341 31.027">
+  <defs>
+    <linearGradient id="linear-gradient" x1="0.5" x2="0.5" y2="1" gradientUnits="objectBoundingBox">
+      <stop offset="0" stop-color="#f9faff"/>
+      <stop offset="1" stop-color="#c4d2fd"/>
+    </linearGradient>
+  </defs>
+  <path id="路径_55369" data-name="路径 55369" d="M222.221,17.369V9.8a.836.836,0,0,0-.835-.835h-.066a.81.81,0,0,0-.81.81v7.593a2.939,2.939,0,0,0-2.157,2.8,3.014,3.014,0,1,0,3.868-2.8Zm4.433-3.353a.762.762,0,0,1-.3-.579V4.879a4.994,4.994,0,0,0-9.985,0v8.315a1.19,1.19,0,0,1-.4.912,7.935,7.935,0,0,0-2.838,6.067,8.24,8.24,0,0,0,16.476,0A7.936,7.936,0,0,0,226.654,14.015Zm-5.29,11.646a5.573,5.573,0,0,1-5.643-5.491,5.439,5.439,0,0,1,2.637-4.64l.4-.245a.443.443,0,0,0,.209-.375V4.879a2.4,2.4,0,0,1,4.8,0V14.911a.443.443,0,0,0,.209.375l.4.245a5.433,5.433,0,0,1,2.634,4.64,5.579,5.579,0,0,1-5.645,5.491Z" transform="translate(-213.129 2.811)" fill="url(#linear-gradient)"/>
+  <path id="路径_55371" data-name="路径 55371" d="M64,120.4v1.521h7.518V120.4Zm0,9.3h7.518v-1.521H64Zm0-3.891h7.518v-1.521H64Z" transform="translate(-50.177 -120.4)" fill="url(#linear-gradient)"/>
+</svg>

+ 9 - 0
static/warndata/shijian.svg

@@ -0,0 +1,9 @@
+<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="28" height="28" viewBox="0 0 28 28">
+  <defs>
+    <linearGradient id="linear-gradient" x1="0.5" x2="0.5" y2="1" gradientUnits="objectBoundingBox">
+      <stop offset="0" stop-color="#f9faff"/>
+      <stop offset="1" stop-color="#c4d2fd"/>
+    </linearGradient>
+  </defs>
+  <path id="路径_56238" data-name="路径 56238" d="M77.5,91A13.5,13.5,0,1,1,91,77.5,13.5,13.5,0,0,1,77.5,91Zm0-3.857A9.643,9.643,0,1,0,67.857,77.5,9.643,9.643,0,0,0,77.5,87.143Zm7.749-11.571v3.857H75.571V69.786h3.857v5.786Z" transform="translate(-63.5 -63.5)" stroke="rgba(0,0,0,0)" stroke-miterlimit="10" stroke-width="1" fill="url(#linear-gradient)"/>
+</svg>

+ 12 - 0
static/warndata/tiaojian.svg

@@ -0,0 +1,12 @@
+<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="29.022" height="28.983" viewBox="0 0 29.022 28.983">
+  <defs>
+    <linearGradient id="linear-gradient" x1="0.5" x2="0.5" y2="1" gradientUnits="objectBoundingBox">
+      <stop offset="0" stop-color="#cce0ff"/>
+      <stop offset="1" stop-color="#8fbbff"/>
+    </linearGradient>
+  </defs>
+  <g id="组_15561" data-name="组 15561" transform="translate(-11.748 -11.259)">
+    <path id="路径_56296" data-name="路径 56296" d="M113.476,129.189a4.822,4.822,0,0,1-.55-.109,1.326,1.326,0,0,1-.554-.995v-9.6L102.66,104.47a1.177,1.177,0,0,1-.109-1.21,1.161,1.161,0,0,1,.991-.554H127.82a1.16,1.16,0,0,1,1,.554,1.03,1.03,0,0,1-.109,1.1L119,118.486v7.394a1.064,1.064,0,0,1-.663.995l-4.413,2.2c-.113.109-.222.109-.444.109" transform="translate(-88.684 -90.947)" fill="#2663ca" stroke="rgba(0,0,0,0)" stroke-miterlimit="10" stroke-width="1"/>
+    <path id="路径_56297" data-name="路径 56297" d="M113.476,129.189a4.822,4.822,0,0,1-.55-.109,1.326,1.326,0,0,1-.554-.995v-9.6L102.66,104.47a1.177,1.177,0,0,1-.109-1.21,1.161,1.161,0,0,1,.991-.554H127.82a1.16,1.16,0,0,1,1,.554,1.03,1.03,0,0,1-.109,1.1L119,118.486v7.394a1.064,1.064,0,0,1-.663.995l-4.413,2.2c-.113.109-.222.109-.444.109" transform="translate(-90.684 -88.947)" fill="url(#linear-gradient)"/>
+  </g>
+</svg>

+ 12 - 0
static/warndata/weizhi.svg

@@ -0,0 +1,12 @@
+<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="26.337" height="31.34" viewBox="0 0 26.337 31.34">
+  <defs>
+    <linearGradient id="linear-gradient" x1="0.5" x2="0.5" y2="1" gradientUnits="objectBoundingBox">
+      <stop offset="0" stop-color="#cce0ff"/>
+      <stop offset="1" stop-color="#8fbbff"/>
+    </linearGradient>
+  </defs>
+  <g id="组_15560" data-name="组 15560" transform="translate(-13.832 -9.33)">
+    <path id="路径_56154" data-name="路径 56154" d="M152.181,64a12.189,12.189,0,0,0-8.671,20.748l8.671,8.592,8.645-8.619A12.17,12.17,0,0,0,152.181,64Zm4.191,10.845a4.186,4.186,0,0,1-8.357-.341,4.186,4.186,0,1,1,8.357.341Z" transform="translate(-124.168 -54.67)" fill="#2663ca"/>
+    <path id="路径_56287" data-name="路径 56287" d="M152.181,64a12.189,12.189,0,0,0-8.671,20.748l8.671,8.592,8.645-8.619A12.17,12.17,0,0,0,152.181,64Zm4.191,10.845a4.186,4.186,0,0,1-8.357-.341,4.186,4.186,0,1,1,8.357.341Z" transform="translate(-126.168 -52.67)" fill="url(#linear-gradient)"/>
+  </g>
+</svg>

+ 11 - 0
static/warndata/wendu.svg

@@ -0,0 +1,11 @@
+<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="16.846" height="28.849" viewBox="0 0 16.846 28.849">
+  <defs>
+    <linearGradient id="linear-gradient" x1="0.5" x2="0.5" y2="1" gradientUnits="objectBoundingBox">
+      <stop offset="0" stop-color="#f9faff"/>
+      <stop offset="1" stop-color="#c4d2fd"/>
+    </linearGradient>
+  </defs>
+  <g id="组_15363" data-name="组 15363" transform="translate(-506.549 -361.739)">
+    <path id="路径_55369" data-name="路径 55369" d="M222.426,17.759V10.02a.855.855,0,0,0-.854-.854H221.5a.828.828,0,0,0-.828.828v7.764a3.005,3.005,0,0,0-2.206,2.865,3.082,3.082,0,1,0,3.955-2.865Zm4.533-3.428a.779.779,0,0,1-.3-.592V4.989a5.106,5.106,0,0,0-10.209,0v8.5a1.216,1.216,0,0,1-.414.932,8.114,8.114,0,0,0-2.9,6.2,8.425,8.425,0,0,0,16.846,0A8.114,8.114,0,0,0,226.958,14.33ZM221.55,26.238a5.7,5.7,0,0,1-5.769-5.614,5.562,5.562,0,0,1,2.7-4.744l.408-.251a.453.453,0,0,0,.214-.383V4.989a2.455,2.455,0,0,1,4.907,0V15.246a.453.453,0,0,0,.214.383l.408.251a5.555,5.555,0,0,1,2.693,4.744,5.7,5.7,0,0,1-5.772,5.614Z" transform="translate(293.42 361.739)" fill="url(#linear-gradient)"/>
+  </g>
+</svg>

+ 16 - 0
static/warndata/xu.svg

@@ -0,0 +1,16 @@
+<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="32.396" height="29.369" viewBox="0 0 32.396 29.369">
+  <defs>
+    <linearGradient id="linear-gradient" x1="0.5" x2="0.5" y2="1" gradientUnits="objectBoundingBox">
+      <stop offset="0" stop-color="#cce0ff"/>
+      <stop offset="1" stop-color="#8fbbff"/>
+    </linearGradient>
+  </defs>
+  <g id="组_15193" data-name="组 15193" transform="translate(-8.837 -12.989)">
+    <g id="组_15195" data-name="组 15195" transform="translate(10.958 12.989)">
+      <path id="路径_55263" data-name="路径 55263" d="M90.632,137.083a.757.757,0,0,1-.757-.757v-1.514a.757.757,0,0,1,.757-.757h20.436a1.514,1.514,0,0,0,0-3.028h-6.8a.757.757,0,0,1-.757-.757v-1.514a.757.757,0,0,1,.757-.757h6.8a4.541,4.541,0,0,1,0,9.083Zm-4.541,6.055a.757.757,0,0,1-.757-.757v-1.514a.757.757,0,0,1,.757-.757h18.165a.757.757,0,0,1,.757.757v1.514a.757.757,0,0,1-.757.757Zm7.569,6.055a.757.757,0,0,1-.757-.757v-1.514a.757.757,0,0,1,.757-.757H98.2a.757.757,0,0,1,.757.757v1.514a.757.757,0,0,1-.757.757Zm7.569-3.028h9.839a4.541,4.541,0,0,1,0,9.083h-6.81a.757.757,0,0,1-.757-.757v-1.514a.757.757,0,0,1,.757-.757h6.81a1.514,1.514,0,0,0,0-3.028h-9.839a.757.757,0,0,1-.757-.757v-1.514a.757.757,0,0,1,.757-.757Z" transform="translate(-85.334 -128)" fill="#2663ca"/>
+    </g>
+    <g id="组_15194" data-name="组 15194" transform="translate(8.837 15.111)">
+      <path id="路径_55263-2" data-name="路径 55263" d="M90.632,137.083a.757.757,0,0,1-.757-.757v-1.514a.757.757,0,0,1,.757-.757h20.436a1.514,1.514,0,0,0,0-3.028h-6.8a.757.757,0,0,1-.757-.757v-1.514a.757.757,0,0,1,.757-.757h6.8a4.541,4.541,0,0,1,0,9.083Zm-4.541,6.055a.757.757,0,0,1-.757-.757v-1.514a.757.757,0,0,1,.757-.757h18.165a.757.757,0,0,1,.757.757v1.514a.757.757,0,0,1-.757.757Zm7.569,6.055a.757.757,0,0,1-.757-.757v-1.514a.757.757,0,0,1,.757-.757H98.2a.757.757,0,0,1,.757.757v1.514a.757.757,0,0,1-.757.757Zm7.569-3.028h9.839a4.541,4.541,0,0,1,0,9.083h-6.81a.757.757,0,0,1-.757-.757v-1.514a.757.757,0,0,1,.757-.757h6.81a1.514,1.514,0,0,0,0-3.028h-9.839a.757.757,0,0,1-.757-.757v-1.514a.757.757,0,0,1,.757-.757Z" transform="translate(-85.334 -128)" fill="url(#linear-gradient)"/>
+    </g>
+  </g>
+</svg>

+ 12 - 0
static/warndata/yujing-dengji.svg

@@ -0,0 +1,12 @@
+<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="28.845" height="28.815" viewBox="0 0 28.845 28.815">
+  <defs>
+    <linearGradient id="linear-gradient" x1="0.5" x2="0.5" y2="1" gradientUnits="objectBoundingBox">
+      <stop offset="0" stop-color="#cce0ff"/>
+      <stop offset="1" stop-color="#8fbbff"/>
+    </linearGradient>
+  </defs>
+  <g id="组_15561" data-name="组 15561" transform="translate(-12.294 -10.842)">
+    <path id="路径_56155" data-name="路径 56155" d="M19.8,24.407H17.891V15.581a9.07,9.07,0,1,1,18.141,0v8.826H19.8Zm7.821-14.241-4.474,7.369h3.578l-.9,5.527L30.3,15.693H26.722l.9-5.527Zm6.862-8.1a.884.884,0,0,1,.322,1.2l-1.608,2.8-1.52-.88L33.28,2.4a.875.875,0,0,1,1.194-.324h.005ZM26.959,0a.92.92,0,0,1,.951.888V4.057h-1.9V.886A.92.92,0,0,1,26.959,0ZM19.443,2.071a.877.877,0,0,1,1.2.322l1.608,2.8-1.52.881-1.61-2.8a.881.881,0,0,1,.322-1.2ZM13.941,7.6a.875.875,0,0,1,1.2-.322l2.786,1.616-.877,1.526L14.261,8.8a.881.881,0,0,1-.322-1.2Zm26.041,0a.884.884,0,0,1-.322,1.2l-2.786,1.614L36,8.889l2.786-1.616a.877.877,0,0,1,1.2.319s0,0,0,.005Zm-25.2,16.809H39.142a.954.954,0,1,1,0,1.909H14.783a.954.954,0,1,1,0-1.909Z" transform="translate(1.039 10.842)" fill="#2663ca"/>
+    <path id="路径_56288" data-name="路径 56288" d="M19.8,24.407H17.891V15.581a9.07,9.07,0,1,1,18.141,0v8.826H19.8Zm7.821-14.241-4.474,7.369h3.578l-.9,5.527L30.3,15.693H26.722l.9-5.527Zm6.862-8.1a.884.884,0,0,1,.322,1.2l-1.608,2.8-1.52-.88L33.28,2.4a.875.875,0,0,1,1.194-.324h.005ZM26.959,0a.92.92,0,0,1,.951.888V4.057h-1.9V.886A.92.92,0,0,1,26.959,0ZM19.443,2.071a.877.877,0,0,1,1.2.322l1.608,2.8-1.52.881-1.61-2.8a.881.881,0,0,1,.322-1.2ZM13.941,7.6a.875.875,0,0,1,1.2-.322l2.786,1.616-.877,1.526L14.261,8.8a.881.881,0,0,1-.322-1.2Zm26.041,0a.884.884,0,0,1-.322,1.2l-2.786,1.614L36,8.889l2.786-1.616a.877.877,0,0,1,1.2.319s0,0,0,.005Zm-25.2,16.809H39.142a.954.954,0,1,1,0,1.909H14.783a.954.954,0,1,1,0-1.909Z" transform="translate(-0.961 12.842)" stroke="rgba(0,0,0,0)" stroke-miterlimit="10" stroke-width="1" fill="url(#linear-gradient)"/>
+  </g>
+</svg>

+ 12 - 0
static/warndata/zhibiao.svg

@@ -0,0 +1,12 @@
+<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="31.818" height="31.818" viewBox="0 0 31.818 31.818">
+  <defs>
+    <linearGradient id="linear-gradient" x1="0.5" x2="0.5" y2="1" gradientUnits="objectBoundingBox">
+      <stop offset="0" stop-color="#cce0ff"/>
+      <stop offset="1" stop-color="#8fbbff"/>
+    </linearGradient>
+  </defs>
+  <g id="组_15560" data-name="组 15560" transform="translate(-10.341 -9.841)">
+    <path id="路径_56294" data-name="路径 56294" d="M130.289,137.384a5.829,5.829,0,1,1-5.829,5.829,5.823,5.823,0,0,1,5.829-5.829m13.843,8.743a3.643,3.643,0,1,1-3.643,3.643,3.643,3.643,0,0,1,3.643-3.643m.729-21.857a8.743,8.743,0,1,1-8.743,8.743A8.743,8.743,0,0,1,144.86,124.27Z" transform="translate(-111.944 -113.929)" fill="#2663ca" stroke="rgba(0,0,0,0)" stroke-miterlimit="10" stroke-width="1"/>
+    <path id="路径_56295" data-name="路径 56295" d="M130.289,137.384a5.829,5.829,0,1,1-5.829,5.829,5.823,5.823,0,0,1,5.829-5.829m13.843,8.743a3.643,3.643,0,1,1-3.643,3.643,3.643,3.643,0,0,1,3.643-3.643m.729-21.857a8.743,8.743,0,1,1-8.743,8.743A8.743,8.743,0,0,1,144.86,124.27Z" transform="translate(-114.119 -111.754)" fill="url(#linear-gradient)"/>
+  </g>
+</svg>

+ 9 - 0
static/warndata/zhuangtai.svg

@@ -0,0 +1,9 @@
+<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="28.842" height="29.355" viewBox="0 0 28.842 29.355">
+  <defs>
+    <linearGradient id="linear-gradient" x1="0.5" x2="0.5" y2="1" gradientUnits="objectBoundingBox">
+      <stop offset="0" stop-color="#f9faff"/>
+      <stop offset="1" stop-color="#c4d2fd"/>
+    </linearGradient>
+  </defs>
+  <path id="路径_56291" data-name="路径 56291" d="M187.336,150.748a14.1,14.1,0,0,0,4.176,7.491,1.289,1.289,0,0,0,2-.293l1.675-2.9a1.29,1.29,0,0,0-.161-1.51,8.428,8.428,0,0,1-1.865-3.387,1.289,1.289,0,0,0-1.242-.945H188.6a1.289,1.289,0,0,0-1.263,1.546Zm17.048,5.965a1.287,1.287,0,0,0-1.391-.616,8.3,8.3,0,0,1-4.19-.166,1.29,1.29,0,0,0-1.492.588l-1.645,2.85a1.288,1.288,0,0,0,.67,1.852,14.233,14.233,0,0,0,8.979.268,1.288,1.288,0,0,0,.744-1.878l-1.674-2.9Zm5.922-19.686a1.287,1.287,0,0,0-.825-.3,1.338,1.338,0,0,0-.226.021,1.288,1.288,0,0,0-.889.625l-1.648,2.853a1.291,1.291,0,0,0,.236,1.587,8.291,8.291,0,0,1,2.336,3.865,1.29,1.29,0,0,0,1.243.948h3.32a1.288,1.288,0,0,0,1.262-1.544A14.159,14.159,0,0,0,210.306,137.026Zm-4.166-1.932a1.29,1.29,0,0,0-.826-.759,14.222,14.222,0,0,0-8.979.267,1.29,1.29,0,0,0-.67,1.854l1.645,2.85a1.29,1.29,0,0,0,1.492.588,8.28,8.28,0,0,1,4.19-.168,1.289,1.289,0,0,0,1.391-.614l1.674-2.9A1.287,1.287,0,0,0,206.141,135.094Zm7.713,14.107h-3.32a1.288,1.288,0,0,0-1.243.947,8.3,8.3,0,0,1-2.336,3.865,1.289,1.289,0,0,0-.236,1.585l1.648,2.854a1.287,1.287,0,0,0,.89.625,1.332,1.332,0,0,0,.226.019,1.286,1.286,0,0,0,.825-.3,14.164,14.164,0,0,0,4.809-8.054,1.288,1.288,0,0,0-1.262-1.544ZM187.6,146.15a1.287,1.287,0,0,0,1,.474h3.32a1.289,1.289,0,0,0,1.242-.945,8.429,8.429,0,0,1,1.865-3.389,1.288,1.288,0,0,0,.161-1.509l-1.675-2.9a1.288,1.288,0,0,0-2-.293,14.1,14.1,0,0,0-4.176,7.491,1.286,1.286,0,0,0,.265,1.073Z" transform="translate(-186.805 -133.234)" stroke="rgba(0,0,0,0)" stroke-miterlimit="10" stroke-width="1" fill="url(#linear-gradient)"/>
+</svg>

+ 10 - 0
static/warndata/zuidi-wendu.svg

@@ -0,0 +1,10 @@
+<svg id="组_15481" data-name="组 15481" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="21.341" height="31.027" viewBox="0 0 21.341 31.027">
+  <defs>
+    <linearGradient id="linear-gradient" x1="0.5" x2="0.5" y2="1" gradientUnits="objectBoundingBox">
+      <stop offset="0" stop-color="#f9faff"/>
+      <stop offset="1" stop-color="#c4d2fd"/>
+    </linearGradient>
+  </defs>
+  <path id="路径_55369" data-name="路径 55369" d="M222.221,17.368V9.8a.836.836,0,0,0-.835-.835h-.066a.81.81,0,0,0-.81.81v7.593a2.939,2.939,0,0,0-2.157,2.8,3.014,3.014,0,1,0,3.868-2.8Zm4.433-3.353a.762.762,0,0,1-.3-.579V4.879a4.994,4.994,0,0,0-9.985,0v8.315a1.19,1.19,0,0,1-.4.912,7.935,7.935,0,0,0-2.838,6.067,8.24,8.24,0,0,0,16.476,0A7.936,7.936,0,0,0,226.654,14.015Zm-5.29,11.646a5.573,5.573,0,0,1-5.643-5.491,5.439,5.439,0,0,1,2.637-4.64l.4-.245a.443.443,0,0,0,.209-.375V4.879a2.4,2.4,0,0,1,4.8,0V14.911a.443.443,0,0,0,.209.375l.4.245a5.433,5.433,0,0,1,2.634,4.64,5.579,5.579,0,0,1-5.645,5.491Z" transform="translate(-213.129 2.811)" fill="url(#linear-gradient)"/>
+  <path id="路径_55370" data-name="路径 55370" d="M280.466,155.536v-6.2h1.253v6.2l1.316-1.316.877.94-2.819,2.819-2.819-2.819.877-.877Zm-3.133,3.2h7.518v1.253h-7.518Z" transform="translate(-263.51 -149.334)" fill="url(#linear-gradient)"/>
+</svg>

+ 10 - 0
static/warndata/zuigao-wendu.svg

@@ -0,0 +1,10 @@
+<svg id="组_15478" data-name="组 15478" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="21.341" height="31.026" viewBox="0 0 21.341 31.026">
+  <defs>
+    <linearGradient id="linear-gradient" x1="0.5" x2="0.5" y2="1" gradientUnits="objectBoundingBox">
+      <stop offset="0" stop-color="#f9faff"/>
+      <stop offset="1" stop-color="#c4d2fd"/>
+    </linearGradient>
+  </defs>
+  <path id="路径_55369" data-name="路径 55369" d="M222.221,17.368V9.8a.836.836,0,0,0-.835-.835h-.066a.81.81,0,0,0-.81.81v7.593a2.939,2.939,0,0,0-2.157,2.8,3.014,3.014,0,1,0,3.868-2.8Zm4.433-3.353a.762.762,0,0,1-.3-.579V4.879a4.994,4.994,0,0,0-9.985,0v8.315a1.19,1.19,0,0,1-.4.912,7.935,7.935,0,0,0-2.838,6.067,8.24,8.24,0,0,0,16.476,0A7.936,7.936,0,0,0,226.654,14.015Zm-5.29,11.646a5.573,5.573,0,0,1-5.643-5.491,5.439,5.439,0,0,1,2.637-4.64l.4-.245a.443.443,0,0,0,.209-.375V4.879a2.4,2.4,0,0,1,4.8,0V14.911a.443.443,0,0,0,.209.375l.4.245a5.433,5.433,0,0,1,2.634,4.64,5.579,5.579,0,0,1-5.645,5.491Z" transform="translate(-213.129 2.811)" fill="url(#linear-gradient)"/>
+  <path id="路径_55370" data-name="路径 55370" d="M280.466,153.782v6.2h1.253v-6.2l1.316,1.316.877-.94-2.819-2.819-2.819,2.819.877.877Zm-3.133-3.2h7.518v-1.253h-7.518Z" transform="translate(-263.51 -149.334)" fill="url(#linear-gradient)"/>
+</svg>