Pārlūkot izejas kodu

[Feat 0000]审核样式优化

bobo04052021@163.com 17 stundas atpakaļ
vecāks
revīzija
146d33c615
70 mainītis faili ar 4704 papildinājumiem un 3915 dzēšanām
  1. 11 14
      App.vue
  2. 0 1
      common/service/config.service.js
  3. 2 9
      common/service/service.js
  4. 30 5
      manifest.json
  5. 3 3
      pages/device/devicemenu/treeMenu/typeMenu.vue
  6. 21 3
      pages/device/index.vue
  7. 505 356
      pages/filecenter/filecenter.vue
  8. 2864 2415
      pages/gasreport/components/gasFill.vue
  9. 235 90
      pages/gasreport/components/gasImgIdentify.vue
  10. 206 195
      pages/gasreport/components/gasRecordCard.vue
  11. 12 1
      pages/gasreport/components/taskBoard.vue
  12. 4 3
      pages/history/history.vue
  13. 3 1
      pages/home/detail/autodoor/autodoor copy.vue
  14. 3 3
      pages/home/detail/autodoor/autodoor.vue
  15. 33 14
      pages/home/home.vue
  16. 75 48
      pages/login/login.vue
  17. 22 19
      pages/user/people.vue
  18. 281 300
      pages/user/userdetail.vue
  19. 164 213
      pages/user/useredit.vue
  20. 4 3
      pages/warndata/components/device-detail.vue
  21. 10 16
      pages/warndata/components/dust-detail.vue
  22. 17 38
      pages/warndata/components/fire-detail-ckq.vue
  23. 15 47
      pages/warndata/components/fire-detail-mb.vue
  24. 12 21
      pages/warndata/components/fire-detail-out.vue
  25. 11 11
      pages/warndata/components/fire-detail-zb.vue
  26. 6 4
      pages/warndata/components/fire-detail.vue
  27. 17 21
      pages/warndata/components/gas-detail.vue
  28. 16 23
      pages/warndata/components/vent-detail.vue
  29. 81 38
      pages/warndata/warndata.vue
  30. BIN
      static/bot-area.png
  31. 0 0
      static/desk-img/dhz-logo.png
  32. 3 0
      static/filecenter/close.svg
  33. 6 0
      static/filecenter/delete.svg
  34. 0 0
      static/home/gfmj.svg
  35. 32 0
      static/icon-new/gfmj.svg
  36. 0 0
      static/warndata/aqjk.png
  37. 0 0
      static/warndata/ccgl.png
  38. 0 0
      static/warndata/ccq.png
  39. 0 0
      static/warndata/cfzz.png
  40. BIN
      static/warndata/cgq.png
  41. BIN
      static/warndata/cldw.png
  42. 0 0
      static/warndata/default.png
  43. 0 0
      static/warndata/fc.png
  44. BIN
      static/warndata/fenchen.png
  45. BIN
      static/warndata/fhm.png
  46. 0 0
      static/warndata/fm.png
  47. 0 0
      static/warndata/gjpw.png
  48. BIN
      static/warndata/jcyws.png
  49. 0 0
      static/warndata/js.png
  50. BIN
      static/warndata/ky.png
  51. BIN
      static/warndata/led.png
  52. BIN
      static/warndata/mb.png
  53. 0 0
      static/warndata/pf.png
  54. 0 0
      static/warndata/pl.png
  55. BIN
      static/warndata/qf.png
  56. BIN
      static/warndata/rgws.png
  57. 0 0
      static/warndata/rydw.png
  58. BIN
      static/warndata/sgpsx.png
  59. BIN
      static/warndata/sgrb.png
  60. BIN
      static/warndata/spy.png
  61. BIN
      static/warndata/tx.png
  62. 0 0
      static/warndata/wsb.png
  63. BIN
      static/warndata/wsgd.png
  64. 0 0
      static/warndata/wsjc.png
  65. BIN
      static/warndata/wsxj.png
  66. 0 0
      static/warndata/yf.png
  67. 0 0
      static/warndata/yykb.png
  68. 0 0
      static/warndata/zd.png
  69. 0 0
      static/warndata/zj.png
  70. 0 0
      static/warndata/zs.png

+ 11 - 14
App.vue

@@ -4,19 +4,16 @@
 </style>
 <script>
 import Vue from "vue";
-import appUpdate from "common/util/appUpdate.js";
 import configService from "@/common/service/config.service.js";
 import api from "@/api/api";
 export default {
   data() {
     return {
       socketTask: null,//websocket对象
+      updateChecked: false, //每次启动只检查一次更新
     }
   },
   onLaunch: function () {
-    //app在线版本更新
-    this.checkVersion()
-    // this.getVersionFn()
     //消息推送
     this.getPushClientID()
 
@@ -25,10 +22,6 @@ export default {
     if (configService.apiUrl !== "") {
       uni.getSystemInfo({
         success: function (e) {
-          // #ifdef APP-PLUS
-          // 检测升级
-          appUpdate();
-          // #endif
           // #ifndef MP
           Vue.prototype.StatusBar = e.statusBarHeight;
           if (e.platform == "android") {
@@ -159,10 +152,6 @@ export default {
       } else {
         uni.getSystemInfo({
           success: function (e) {
-            // #ifdef APP-PLUS
-            // 检测升级
-            appUpdate();
-            // #endif
             // #ifndef MP
             Vue.prototype.StatusBar = e.statusBarHeight;
             if (e.platform == "android") {
@@ -290,8 +279,16 @@ export default {
     }
   },
   onShow: function () {
-    console.log("App Show");
-
+    // #ifdef APP-PLUS
+    // 放到首屏渲染之后再检查更新:onLaunch 阶段弹窗会被启动页/首个页面顶掉,
+    // 表现就是「闪一下提示更新然后消失」
+    if (!this.updateChecked) {
+      this.updateChecked = true;
+      setTimeout(() => {
+        this.checkVersion();
+      }, 1000);
+    }
+    // #endif
   },
   onHide: function () {
     console.log("App Hide");

+ 0 - 1
common/service/config.service.js

@@ -4,7 +4,6 @@ if (process.env.NODE_ENV == "development") {
 } else {
   //如果是神东项目  ip地址配置在 login.vue 和 ipConfig.vue中进行配置  此处的BASE_URL设置为空或注释掉
   //如果是其他项目  ip地址在本文件中配置 BASE_URL 例如 BASE_URL = "http://182.92.126.35:9999";
-  // BASE_URL = "http://10.35.116.82:9999";//棋盘井东区
   // BASE_URL = "http://192.168.126.12:9999";//王洼二矿
   // BASE_URL = "http://172.17.3.15:9999"; //黑龙煤矿
   // BASE_URL = "http://172.19.7.101:9999"; //准东二矿

+ 2 - 9
common/service/service.js

@@ -4,8 +4,6 @@ import configService from "./config.service.js";
 import tip from "@/common/util/tip.js";
 import store from "@/store/index.js";
 
-let apiUrl = configService.apiUrl;
-
 const getTokenStorage = () => {
   let token = "";
   try {
@@ -20,7 +18,7 @@ const getTokenStorage = () => {
 const http = new Request();
 http.setConfig((config) => {
   /* 设置全局配置 */
-  config.baseUrl = apiUrl; /* 根域名不同 */
+  config.baseUrl = configService.apiUrl; /* 根域名不同 */
   config.header = {
     ...config.header,
   };
@@ -40,12 +38,7 @@ http.validateStatus = (statusCode) => {
 http.interceptor.request((config, cancel) => {
   /* 请求之前拦截器 */
   console.log(config, "config---");
-  config.baseUrl = "";
-  if (apiUrl) {
-    config.baseUrl = apiUrl; /* 根域名不同 */
-  } else {
-    config.url = uni.getStorageSync("apiUrl") + config.url;
-  }
+  config.baseUrl = configService.apiUrl || uni.getStorageSync("apiUrl") || "";
   config.header = {
     ...config.header,
     "X-Access-Token": getTokenStorage(),

+ 30 - 5
manifest.json

@@ -88,14 +88,39 @@
                 }
             },
             "splashscreen" : {
-                "iosStyle" : "default"
+                "iosStyle" : "default",
+                "androidStyle" : "common"
             },
             "icons" : {
                 "android" : {
-                    "hdpi" : "static/desk-img/72 – 1.png",
-                    "xhdpi" : "static/desk-img/96.png",
-                    "xxhdpi" : "static/desk-img/144.png",
-                    "xxxhdpi" : "static/desk-img/192.png"
+                    "hdpi" : "unpackage/res/icons/72x72.png",
+                    "xhdpi" : "unpackage/res/icons/96x96.png",
+                    "xxhdpi" : "unpackage/res/icons/144x144.png",
+                    "xxxhdpi" : "unpackage/res/icons/192x192.png"
+                },
+                "ios" : {
+                    "appstore" : "",
+                    "ipad" : {
+                        "app" : "",
+                        "app@2x" : "",
+                        "notification" : "",
+                        "notification@2x" : "",
+                        "proapp@2x" : "",
+                        "settings" : "",
+                        "settings@2x" : "",
+                        "spotlight" : "",
+                        "spotlight@2x" : ""
+                    },
+                    "iphone" : {
+                        "app@2x" : "",
+                        "app@3x" : "",
+                        "notification@2x" : "",
+                        "notification@3x" : "",
+                        "settings@2x" : "",
+                        "settings@3x" : "",
+                        "spotlight@2x" : "",
+                        "spotlight@3x" : ""
+                    }
                 }
             }
         },

+ 3 - 3
pages/device/devicemenu/treeMenu/typeMenu.vue

@@ -28,7 +28,7 @@
                 :src="getIcon(item.itemValue)"
                 mode="aspectFit"
               ></image>
-               <text class="item-label">{{ item.itemText }}</text>
+              <text class="item-label">{{ item.itemText }}</text>
             </view>
             <!-- <text class="item-label">{{ item.itemText }}</text> -->
           </view>
@@ -106,7 +106,7 @@ export default {
     },
     goPage(page) {
       // this.$emit("menuClick", page);
-       this.$emit("menuClick", {id:page,menu:this.typeList});
+      this.$emit("menuClick", { id: page, menu: this.typeList });
     },
     getIcon(itemValue) {
       const defaultIconPath = "/static/sidebar/fireS/pulping.svg";
@@ -140,7 +140,7 @@ export default {
   border-radius: 20rpx;
   margin-bottom: 24rpx;
   padding: 0 24rpx 24rpx;
-  box-shadow: 0 4rpx 16rpx rgba(41, 121, 255, 0.04);
+  border: 1rpx solid #fff;
   overflow: hidden;
 }
 

+ 21 - 3
pages/device/index.vue

@@ -50,9 +50,10 @@
         class="devic-box-tab"
         :current="pageCurNew"
         :list="tabListNew"
+        activeStyle="color: #000000; font-weight: 700;"
         @click="NavChange"
       ></u-tabs>
-      <view class="">
+      <view v-if="!menushow" class="devic-box-list">
         <!-- <home cur="home" :showColum="showColum" v-if="pageCurNew == '0' && !menushow" :key="0" :deviceType="deviceType"
           @setMenushow="setMenushow"></home> -->
         <home
@@ -228,12 +229,29 @@ export default {
 .devic-box-content {
   height: calc(100vh - 101px - var(--status-bar-height, 0px));
   margin-top: calc(50px + var(--status-bar-height, 0px));
-  overflow-y: auto;
+  display: flex;
+  flex-direction: column;
+  overflow: hidden;
   // background: #f4f7fd;
 }
 
+/* u-tabs 固定在顶部,只有下方列表区域滚动 */
+.devic-box-tab {
+  flex-shrink: 0;
+  position: relative;
+  z-index: 2;
+}
+
+.devic-box-list {
+  flex: 1;
+  min-height: 0;
+  overflow-y: auto;
+}
+
 .menupage {
-  min-height: 100%;
+  flex: 1;
+  min-height: 0;
+  overflow-y: auto;
   // background: #f4f7fd;
 }
 

Failā izmaiņas netiks attēlotas, jo tās ir par lielu
+ 505 - 356
pages/filecenter/filecenter.vue


+ 2864 - 2415
pages/gasreport/components/gasFill.vue

@@ -1,150 +1,255 @@
 <template>
-    <view class="gas-fill">
-        <!-- 瓦斯上报列表 -->
-        <view v-if="!isShowAdd && !zcShow">
-            <view class="top-gas-list">
-                <view class="search-box" @click="getChangeTimeTb">
-                    <text class="dialog-label">填报时间:</text>
-                    <u--input v-model="tbTime" placeholder="请选择填报时间" inputAlign="center"
-                        suffixIcon="arrow-right"></u--input>
-                    <u-datetime-picker :show="showCalendarTb" v-model="timeRan" mode="date" closeOnClickOverlay
-                        @confirm="confirmTb" @cancel="showCalendarTb = false" @change="changeTb"
-                        @close="showCalendarTb = false"></u-datetime-picker>
-                </view>
-                <u-button v-if="hasPermission('gasReport:add')" type="primary" size="small" style="margin: 2px 0px;"
-                    @click="getAdd">新增</u-button>
-                <u-button type="success" size="small" style="margin: 2px 0px;" @click="openZc">暂存列表</u-button>
+  <view class="gas-fill">
+    <!-- 瓦斯上报列表 -->
+    <view v-if="!isShowAdd && !zcShow">
+      <view class="top-gas-list">
+        <view class="search-box" @click="getChangeTimeTb">
+          <text class="dialog-label">填报时间:</text>
+          <u--input
+            v-model="tbTime"
+            placeholder="请选择填报时间"
+            inputAlign="center"
+            suffixIcon="arrow-right"
+          ></u--input>
+          <u-datetime-picker
+            :show="showCalendarTb"
+            v-model="timeRan"
+            mode="date"
+            closeOnClickOverlay
+            @confirm="confirmTb"
+            @cancel="showCalendarTb = false"
+            @change="changeTb"
+            @close="showCalendarTb = false"
+          ></u-datetime-picker>
+        </view>
+        <u-button
+          v-if="hasPermission('gasReport:add')"
+          type="primary"
+          size="small"
+          style="margin: 2px 0px"
+          @click="getAdd"
+          >新增</u-button
+        >
+        <u-button
+          type="success"
+          size="small"
+          style="margin: 2px 0px"
+          @click="openZc"
+          >暂存列表</u-button
+        >
+      </view>
+      <view class="bot-gas-list">
+        <view class="top-title">
+          <view style="font-weight: bold">瓦斯填报列表</view>
+        </view>
+        <view class="top-content" v-for="(item, index) in gasList" :key="index">
+          <view class="content-title-gas">
+            <text>
+              {{ item.strInstallPos || "--" }}
+            </text>
+          </view>
+          <view class="content-item-box">
+            <view class="content-item">
+              <view class="item-l">
+                <view class="item-value">{{ item.timeNight1 || "--" }}</view>
+                <view class="item-label">夜班监测时间一</view>
+              </view>
+              <view class="item-c"></view>
+              <view class="item-r">
+                <view class="item-value">{{ item.timeNight2 || "--" }}</view>
+                <view class="item-label">夜班监测时间二</view>
+              </view>
             </view>
-            <view class="bot-gas-list">
-                <view class="top-title">
-                    <view style="font-weight: bold;">瓦斯填报列表</view>
-                </view>
-                <view class="top-content" v-for="(item, index) in gasList" :key="index">
-                    <view class="content-title-gas">
-                        <text>
-                            {{ item.strInstallPos || '--' }}
-                        </text>
-                    </view>
-                    <view class="content-item-box">
-                        <view class="content-item">
-                            <view class="item-l">
-                                <view class="item-value">{{ item.timeNight1 || '--' }}</view>
-                                <view class="item-label">夜班监测时间一</view>
-                            </view>
-                            <view class="item-c"></view>
-                            <view class="item-r">
-                                <view class="item-value">{{ item.timeNight2 || '--' }}</view>
-                                <view class="item-label">夜班监测时间二</view>
-                            </view>
-                        </view>
-                        <view class="content-item">
-                            <view class="item-l">
-                                <view class="item-value">{{ item.timeEarly1 || '--' }}</view>
-                                <view class="item-label">早班监测时间一</view>
-                            </view>
-                            <view class="item-c"></view>
-                            <view class="item-r">
-                                <view class="item-value">{{ item.timeEarly2 || '--' }}</view>
-                                <view class="item-label">早班监测时间二</view>
-                            </view>
-                        </view>
-                        <view class="content-item">
-                            <view class="item-l">
-                                <view class="item-value">{{ item.timeNoon1 || '--' }}</view>
-                                <view class="item-label">中班监测时间一</view>
-                            </view>
-                            <view class="item-c"></view>
-                            <view class="item-r">
-                                <view class="item-value">{{ item.timeNoon2 || '--' }}</view>
-                                <view class="item-label">中班监测时间二</view>
-                            </view>
-                        </view>
-
-                    </view>
-
-                </view>
+            <view class="content-item">
+              <view class="item-l">
+                <view class="item-value">{{ item.timeEarly1 || "--" }}</view>
+                <view class="item-label">早班监测时间一</view>
+              </view>
+              <view class="item-c"></view>
+              <view class="item-r">
+                <view class="item-value">{{ item.timeEarly2 || "--" }}</view>
+                <view class="item-label">早班监测时间二</view>
+              </view>
             </view>
-
-        </view>
-
-        <!-- 新增弹窗 -->
-        <view v-else-if="isShowAdd && !zcShow">
-            <view class="top-dialog-area">
-                <view class="dialog-item">
-                    <text class="dialog-label">班次:</text>
-                    <uni-data-select placeholder="请选择班次" style="text-align: center;" :clear="true"
-                        v-model="formState.bc" :localdata="rangeBc" @change="changeBc"></uni-data-select>
-                </view>
-                <view class="dialog-item">
-                    <text class="dialog-label">检测次数:</text>
-                    <uni-data-select placeholder="请选择检测次数" style="text-align: center;" :clear="true"
-                        v-model="formState.count" :localdata="rangeCount" @change="changeCount"></uni-data-select>
-                </view>
-                <view class="dialog-item" v-if="!nfcShow">
-                    <text class="dialog-label">煤层工作面:</text>
-                    <uni-data-select placeholder="请选择煤层工作面" style="text-align: center;" :clear="true"
-                        v-model="formState.mcgzm" :localdata="rangeMcgzm" @change="changeMc"></uni-data-select>
-                </view>
-                <view class="dialog-item">
-                    <text class="dialog-label">检测地点:</text>
-                    <uni-data-select v-if="!nfcShow" placeholder="请选择检测地点" style="text-align: center;" :clear="true"
-                        v-model="formState.jcdd" :localdata="rangeJcdd" @change="changeJc"></uni-data-select>
-                    <u--input v-else v-model="formState.jcdd" disabled inputAlign="center"></u--input>
-                </view>
-                <view class="dialog-item" @click="getChangeTime">
-                    <text class="dialog-label">检测时间:</text>
-                    <u--input v-model="formState.time" placeholder="请选择检测时间" inputAlign="center"
-                        suffixIcon="arrow-right"></u--input>
-                    <u-datetime-picker :show="showCalendar" v-model="timeRan" mode="datetime" closeOnClickOverlay
-                        @confirm="showCalendar = false" @cancel="showCalendar = false" @change="change"
-                        @close="showCalendar = false"></u-datetime-picker>
-                </view>
-                <view class="dialog-item">
-                    <text class="dialog-label">填报日期:</text>
-                    <u--input inputAlign="center" v-model="formState.tbrq" placeholder="请选择填报日期"></u--input>
-                </view>
-                <view class="dialog-item">
-                    <text class="dialog-label">瓦斯检查工:</text>
-                    <u--input inputAlign="center" disabled v-model="formState.jcy" placeholder="请输入"></u--input>
-                </view>
+            <view class="content-item">
+              <view class="item-l">
+                <view class="item-value">{{ item.timeNoon1 || "--" }}</view>
+                <view class="item-label">中班监测时间一</view>
+              </view>
+              <view class="item-c"></view>
+              <view class="item-r">
+                <view class="item-value">{{ item.timeNoon2 || "--" }}</view>
+                <view class="item-label">中班监测时间二</view>
+              </view>
             </view>
-            <view>
-                <view class="center-dialog-area">
-                    <div class="dialog-title">气体检测数据</div>
+          </view>
+        </view>
+      </view>
+    </view>
 
-                    <view class="dialog-item">
-                        <text class="dialog-label">CH₄(%):</text>
-                        <u--input inputAlign="center" :disabled="isDisabled" v-model="formState.ch4"
-                            :placeholder="isRule2 ? '请输入' : '数据有误'" type="number" @blur="getBlurCH4"
-                            @input="changeInput($event, 'ch4')" clearable
-                            :placeholderStyle="isRule2 ? 'color:#c0c4cc' : 'color:#ff0000'"></u--input>
-                    </view>
-                    <view class="dialog-item">
-                        <text class="dialog-label">CO₂(%):</text>
-                        <u--input inputAlign="center" :disabled="isDisabled" v-model="formState.co2"
-                            :placeholder="isRule ? '请输入' : '数据有误'" type="number" @blur="getBlurCO2"
-                            @input="changeInput($event, 'co2')" clearable
-                            :placeholderStyle="isRule ? 'color:#c0c4cc' : 'color:#ff0000'"></u--input>
-                    </view>
-                    <view class="dialog-item">
-                        <text class="dialog-label">CO(ppm):</text>
-                        <u--input inputAlign="center" :disabled="isDisabled" v-model="formState.co"
-                            :placeholder="isRule14 ? '请输入' : '数据有误'" clearable
-                            :placeholderStyle="isRule14 ? 'color:#c0c4cc' : 'color:#ff0000'" type="number"
-                            @blur="getBlurCO" @input="changeInput($event, 'co')"></u--input>
-                    </view>
-                    <view class="dialog-item">
-                        <text class="dialog-label">O₂(%):</text>
-                        <u--input inputAlign="center" :disabled="isDisabled" clearable type="number"
-                            v-model="formState.o2" placeholder="请输入" @input="changeInput($event, 'o2')"></u--input>
-                    </view>
-                    <view class="dialog-item">
-                        <text class="dialog-label">T(℃):</text>
-                        <u--input inputAlign="center" :disabled="isDisabled" clearable type="number"
-                            @input="changeInput($event, 'temp')" v-model="formState.temp" placeholder="请输入"></u--input>
-                    </view>
-                </view>
-                <!-- <view class="bottom-dialog-area">
+    <!-- 新增弹窗 -->
+    <view v-else-if="isShowAdd && !zcShow">
+      <view class="top-dialog-area">
+        <view class="dialog-item">
+          <text class="dialog-label">班次:</text>
+          <uni-data-select
+            placeholder="请选择班次"
+            style="text-align: center"
+            :clear="true"
+            v-model="formState.bc"
+            :localdata="rangeBc"
+            @change="changeBc"
+          ></uni-data-select>
+        </view>
+        <view class="dialog-item">
+          <text class="dialog-label">检测次数:</text>
+          <uni-data-select
+            placeholder="请选择检测次数"
+            style="text-align: center"
+            :clear="true"
+            v-model="formState.count"
+            :localdata="rangeCount"
+            @change="changeCount"
+          ></uni-data-select>
+        </view>
+        <view class="dialog-item" v-if="!nfcShow">
+          <text class="dialog-label">煤层工作面:</text>
+          <uni-data-select
+            placeholder="请选择煤层工作面"
+            style="text-align: center"
+            :clear="true"
+            v-model="formState.mcgzm"
+            :localdata="rangeMcgzm"
+            @change="changeMc"
+          ></uni-data-select>
+        </view>
+        <view class="dialog-item">
+          <text class="dialog-label">检测地点:</text>
+          <uni-data-select
+            v-if="!nfcShow"
+            placeholder="请选择检测地点"
+            style="text-align: center"
+            :clear="true"
+            v-model="formState.jcdd"
+            :localdata="rangeJcdd"
+            @change="changeJc"
+          ></uni-data-select>
+          <u--input
+            v-else
+            v-model="formState.jcdd"
+            disabled
+            inputAlign="center"
+          ></u--input>
+        </view>
+        <view class="dialog-item" @click="getChangeTime">
+          <text class="dialog-label">检测时间:</text>
+          <u--input
+            v-model="formState.time"
+            placeholder="请选择检测时间"
+            inputAlign="center"
+            suffixIcon="arrow-right"
+          ></u--input>
+          <u-datetime-picker
+            :show="showCalendar"
+            v-model="timeRan"
+            mode="datetime"
+            closeOnClickOverlay
+            @confirm="showCalendar = false"
+            @cancel="showCalendar = false"
+            @change="change"
+            @close="showCalendar = false"
+          ></u-datetime-picker>
+        </view>
+        <view class="dialog-item">
+          <text class="dialog-label">填报日期:</text>
+          <u--input
+            inputAlign="center"
+            v-model="formState.tbrq"
+            placeholder="请选择填报日期"
+          ></u--input>
+        </view>
+        <view class="dialog-item">
+          <text class="dialog-label">瓦斯检查工:</text>
+          <u--input
+            inputAlign="center"
+            disabled
+            v-model="formState.jcy"
+            placeholder="请输入"
+          ></u--input>
+        </view>
+      </view>
+      <view>
+        <view class="center-dialog-area">
+          <div class="dialog-title">气体检测数据</div>
+
+          <view class="dialog-item">
+            <text class="dialog-label">CH₄(%):</text>
+            <u--input
+              inputAlign="center"
+              :disabled="isDisabled"
+              v-model="formState.ch4"
+              :placeholder="isRule2 ? '请输入' : '数据有误'"
+              type="number"
+              @blur="getBlurCH4"
+              @input="changeInput($event, 'ch4')"
+              clearable
+              :placeholderStyle="isRule2 ? 'color:#c0c4cc' : 'color:#ff0000'"
+            ></u--input>
+          </view>
+          <view class="dialog-item">
+            <text class="dialog-label">CO₂(%):</text>
+            <u--input
+              inputAlign="center"
+              :disabled="isDisabled"
+              v-model="formState.co2"
+              :placeholder="isRule ? '请输入' : '数据有误'"
+              type="number"
+              @blur="getBlurCO2"
+              @input="changeInput($event, 'co2')"
+              clearable
+              :placeholderStyle="isRule ? 'color:#c0c4cc' : 'color:#ff0000'"
+            ></u--input>
+          </view>
+          <view class="dialog-item">
+            <text class="dialog-label">CO(ppm):</text>
+            <u--input
+              inputAlign="center"
+              :disabled="isDisabled"
+              v-model="formState.co"
+              :placeholder="isRule14 ? '请输入' : '数据有误'"
+              clearable
+              :placeholderStyle="isRule14 ? 'color:#c0c4cc' : 'color:#ff0000'"
+              type="number"
+              @blur="getBlurCO"
+              @input="changeInput($event, 'co')"
+            ></u--input>
+          </view>
+          <view class="dialog-item">
+            <text class="dialog-label">O₂(%):</text>
+            <u--input
+              inputAlign="center"
+              :disabled="isDisabled"
+              clearable
+              type="number"
+              v-model="formState.o2"
+              placeholder="请输入"
+              @input="changeInput($event, 'o2')"
+            ></u--input>
+          </view>
+          <view class="dialog-item">
+            <text class="dialog-label">T(℃):</text>
+            <u--input
+              inputAlign="center"
+              :disabled="isDisabled"
+              clearable
+              type="number"
+              @input="changeInput($event, 'temp')"
+              v-model="formState.temp"
+              placeholder="请输入"
+            ></u--input>
+          </view>
+        </view>
+        <!-- <view class="bottom-dialog-area">
                     <div class="dialog-title">三对照数据</div>
                     <view class="dialog-item">
                         <text class="dialog-label">甲烷传感器:</text>
@@ -167,2390 +272,2734 @@
                     </view>
 
                 </view> -->
-            </view>
-            <u-modal :show="isShowSave" title="提示" width="300px" confirmText="确定" cancelText="取消" showCancelButton
-                buttonReverse zoom @confirm="confrimSave" @cancel="cancelSavve">
-                <slot>
-                    <u-icon name="info-circle" color="orange" size="16"></u-icon>
-                    <text style="margin-left:5px">请确认数据填写无误!</text>
-                </slot>
-            </u-modal>
-            <view class="dialog-btn">
-                <u-button type="warning" size="small" @click="getComfirmZc">暂存</u-button>
-                <u-button type="success" size="small" v-if="!isDisabled" @click="getConfirm">保存</u-button>
-                <u-button type="primary" size="small" @click="getCancel">取消</u-button>
-            </view>
-        </view>
+      </view>
+      <u-modal
+        :show="isShowSave"
+        title="提示"
+        width="300px"
+        confirmText="确定"
+        cancelText="取消"
+        showCancelButton
+        buttonReverse
+        zoom
+        @confirm="confrimSave"
+        @cancel="cancelSavve"
+      >
+        <slot>
+          <u-icon name="info-circle" color="orange" size="16"></u-icon>
+          <text style="margin-left: 5px">请确认数据填写无误!</text>
+        </slot>
+      </u-modal>
+      <view class="dialog-btn">
+        <u-button type="warning" size="small" @click="getComfirmZc"
+          >暂存</u-button
+        >
+        <u-button
+          type="success"
+          size="small"
+          v-if="!isDisabled"
+          @click="getConfirm"
+          >保存</u-button
+        >
+        <u-button type="primary" size="small" @click="getCancel">取消</u-button>
+      </view>
+    </view>
 
-        <!-- 列表 -->
-        <view style="height:100%" v-else>
-            <saveComponent @closeZc="closeZc"></saveComponent>
-        </view>
+    <!-- 列表 -->
+    <view style="height: 100%" v-else>
+      <saveComponent @closeZc="closeZc"></saveComponent>
     </view>
+  </view>
 </template>
 
 <script>
 import api from "@/api/api";
-import moment from 'moment'
-import testNfc from "@/common/util/hexiii-nfc.js"
-import saveComponent from './save-component.vue'
+import moment from "moment";
+import testNfc from "@/common/util/hexiii-nfc.js";
+import saveComponent from "./save-component.vue";
 import { mapGetters } from "vuex";
 export default {
-    name: 'gasFill',
-    components: {
-        saveComponent
+  name: "gasFill",
+  components: {
+    saveComponent,
+  },
+  props: {},
+  data() {
+    return {
+      nfcShow: true, //是否使用NFC
+      isDisabled: false,
+      isStatus: "",
+      deviceId: "",
+      rangeBc: [
+        { value: "夜班", text: "夜班" },
+        { value: "早班", text: "早班" },
+        { value: "中班", text: "中班" },
+      ],
+      rangeMcgzm: [],
+      rangeJcdd: [],
+      rangeCount: [
+        { value: "第一次", text: "第一次" },
+        { value: "第二次", text: "第二次" },
+      ],
+      isRule: true,
+      isRule1: true,
+      isRule14: true,
+      isRule2: true,
+      isRule3: true,
+      //新增参数信息
+      isShowAdd: false, //是否显示新增弹窗
+
+      showCalendar: false, //控制日期选型下拉开启
+      timeRan: Number(new Date()),
+      gasList: [], //瓦斯填报列表数据
+      tbTime: moment(new Date()).format("YYYY-MM-DD"), //查询条件-填报时间
+      showCalendarTb: false, //控制填报时间组件弹出
+      saveShowList: {},
+      formState: {
+        id: "",
+        bc: "",
+        count: "",
+        jcdd: "",
+        jcy: "",
+        time: "",
+        ch4: "",
+        co2: "",
+        co: "",
+        o2: "",
+        jw: "",
+        // gw: '',
+        // bxy: '',
+        tbrq: "",
+        temp: "",
+        mcgzm: "",
+      },
+      zcList: [], //暂存列表
+      zcShow: false, //是否显示暂存列表
+      isShowSave: false, //控制保存提示弹窗显示隐藏
+      zcParamData: {}, //当前所选中暂存数据
+    };
+  },
+  computed: {
+    username: function () {
+      return uni.getStorageSync("login_user_info")["realname"];
     },
-    props: {},
-    data() {
-        return {
-            nfcShow: true,//是否使用NFC
-            isDisabled: false,
-            isStatus: '',
-            deviceId: '',
-            rangeBc: [
-                { value: '夜班', text: "夜班" },
-                { value: '早班', text: "早班" },
-                { value: '中班', text: "中班" },
-            ],
-            rangeMcgzm: [],
-            rangeJcdd: [],
-            rangeCount: [
-                { value: '第一次', text: '第一次' },
-                { value: '第二次', text: '第二次' },
-            ],
-            isRule: true,
-            isRule1: true,
-            isRule14: true,
-            isRule2: true,
-            isRule3: true,
-            //新增参数信息
-            isShowAdd: false,//是否显示新增弹窗
-
-            showCalendar: false,//控制日期选型下拉开启
-            timeRan: Number(new Date()),
-            gasList: [],//瓦斯填报列表数据
-            tbTime: moment(new Date()).format('YYYY-MM-DD'),//查询条件-填报时间
-            showCalendarTb: false,//控制填报时间组件弹出
-            saveShowList: {},
-            formState: {
-                id: '',
-                bc: '',
-                count: '',
-                jcdd: '',
-                jcy: '',
-                time: '',
-                ch4: '',
-                co2: '',
-                co: '',
-                o2: '',
-                jw: '',
-                // gw: '',
-                // bxy: '',
-                tbrq: '',
-                temp: '',
-                mcgzm: '',
-            },
-            zcList: [],//暂存列表
-            zcShow: false,//是否显示暂存列表
-            isShowSave: false,//控制保存提示弹窗显示隐藏
-            zcParamData: {},//当前所选中暂存数据
-        };
+    cardIds: function () {
+      return this.$store.getters.nfcreadtxt;
     },
-    computed: {
-        username: function () {
-            return uni.getStorageSync('login_user_info')['realname']
-        },
-        cardIds: function () {
-            return this.$store.getters.nfcreadtxt
+  },
+  watch: {
+    cardIds: {
+      async handler(newV, oldV) {
+        if (newV) {
+          await this.getCardLists(newV);
+          this.change();
         }
+      },
+      immediate: true,
     },
-    watch: {
-        cardIds: {
-            async handler(newV, oldV) {
-                if (newV) {
-                    await this.getCardLists(newV)
-                    this.change()
-                }
-            },
-            immediate: true
+  },
+  mounted() {
+    this.getGasList();
+    this.getMcList();
+  },
+  methods: {
+    hasPermission(param) {
+      let permission = uni.getStorageSync("btnPermission");
+      return permission.filter((v) => v.action == param).length != 0
+        ? true
+        : false;
+    },
+    //班次下拉选项切换
+    changeBc(e) {
+      let that = this;
+      console.log(e, "班次----------");
+      this.formState.bc = e;
+      if (that.formState.bc == "早班" && that.formState.count == "第一次") {
+        if (
+          that.saveShowList.bxySdzEarly1 ||
+          that.saveShowList.ch4Early1 ||
+          that.saveShowList.co2Early1 ||
+          that.saveShowList.coEarly1 ||
+          that.saveShowList.gwSdzEarly1 ||
+          that.saveShowList.jwSdzEarly1 ||
+          that.saveShowList.o2Early1 ||
+          that.saveShowList.tearly1
+        ) {
+          that.formState = {
+            id: that.saveShowList.id || "",
+            bc: that.formState.bc,
+            count: that.formState.count,
+            jcdd: that.formState.jcdd,
+            jcy: that.formState.jcy,
+            time: that.formState.time,
+            ch4: that.saveShowList.ch4Early1 || "",
+            co2: that.saveShowList.co2Early1 || "",
+            co: that.saveShowList.coEarly1 || "",
+            o2: that.saveShowList.o2Early1 || "",
+            jw: that.saveShowList.jwSdzEarly1 || "",
+            // gw: that.saveShowList.gwSdzEarly1 || '',
+            // bxy: that.saveShowList.bxySdzEarly1 || '',
+            tbrq: that.formState.tbrq,
+            temp: that.saveShowList.tearly1 || "",
+            mcgzm: that.formState.mcgzm,
+          };
+          that.isDisabled = true;
+        } else {
+          that.formState = {
+            id: that.formState.id,
+            bc: that.formState.bc,
+            count: that.formState.count,
+            jcdd: that.formState.jcdd,
+            jcy: that.formState.jcy,
+            time: that.formState.time,
+            ch4: "",
+            co2: "",
+            co: "",
+            o2: "",
+            jw: "",
+            // gw: '',
+            // bxy: '',
+            tbrq: that.formState.tbrq,
+            temp: "",
+            mcgzm: that.formState.mcgzm,
+          };
+          that.isDisabled = false;
+        }
+      } else if (
+        that.formState.bc == "早班" &&
+        that.formState.count == "第二次"
+      ) {
+        if (
+          that.saveShowList.bxySdzEarly2 ||
+          that.saveShowList.ch4Early2 ||
+          that.saveShowList.co2Early2 ||
+          that.saveShowList.coEarly2 ||
+          that.saveShowList.gwSdzEarly2 ||
+          that.saveShowList.jwSdzEarly2 ||
+          that.saveShowList.o2Early2 ||
+          that.saveShowList.tearly2
+        ) {
+          that.formState = {
+            id: that.saveShowList.id || "",
+            bc: that.formState.bc,
+            count: that.formState.count,
+            jcdd: that.formState.jcdd,
+            jcy: that.formState.jcy,
+            time: that.formState.time,
+            ch4: that.saveShowList.ch4Early2 || "",
+            co2: that.saveShowList.co2Early2 || "",
+            co: that.saveShowList.coEarly2 || "",
+            o2: that.saveShowList.o2Early2 || "",
+            jw: that.saveShowList.jwSdzEarly2 || "",
+            // gw: that.saveShowList.gwSdzEarly2 || '',
+            // bxy: that.saveShowList.bxySdzEarly2 || '',
+            tbrq: that.formState.tbrq,
+            temp: that.saveShowList.tearly2 || "",
+            mcgzm: that.formState.mcgzm,
+          };
+          that.isDisabled = true;
+        } else {
+          that.formState = {
+            id: that.formState.id,
+            bc: that.formState.bc,
+            count: that.formState.count,
+            jcdd: that.formState.jcdd,
+            jcy: that.formState.jcy,
+            time: that.formState.time,
+            ch4: "",
+            co2: "",
+            co: "",
+            o2: "",
+            jw: "",
+            // gw: '',
+            // bxy: '',
+            tbrq: that.formState.tbrq,
+            temp: "",
+            mcgzm: that.formState.mcgzm,
+          };
+          that.isDisabled = false;
+        }
+      } else if (
+        that.formState.bc == "中班" &&
+        that.formState.count == "第一次"
+      ) {
+        if (
+          that.saveShowList.bxySdzNoon1 ||
+          that.saveShowList.ch4Noon1 ||
+          that.saveShowList.co2Noon1 ||
+          that.saveShowList.coNoon1 ||
+          that.saveShowList.gwSdzNoon1 ||
+          that.saveShowList.jwSdzNoon1 ||
+          that.saveShowList.o2Noon1 ||
+          that.saveShowList.tnoon1
+        ) {
+          that.formState = {
+            id: that.saveShowList.id || "",
+            bc: that.formState.bc,
+            count: that.formState.count,
+            jcdd: that.formState.jcdd,
+            jcy: that.formState.jcy,
+            time: that.formState.time,
+            ch4: that.saveShowList.ch4Noon1 || "",
+            co2: that.saveShowList.co2Noon1 || "",
+            co: that.saveShowList.coNoon1 || "",
+            o2: that.saveShowList.o2Noon1 || "",
+            jw: that.saveShowList.jwSdzNoon1 || "",
+            // gw: that.saveShowList.gwSdzNoon1 || '',
+            // bxy: that.saveShowList.bxySdzNoon1 || '',
+            tbrq: that.formState.tbrq,
+            temp: that.saveShowList.tnoon1 || "",
+            mcgzm: that.formState.mcgzm,
+          };
+          that.isDisabled = true;
+        } else {
+          that.formState = {
+            id: that.formState.id,
+            bc: that.formState.bc,
+            count: that.formState.count,
+            jcdd: that.formState.jcdd,
+            jcy: that.formState.jcy,
+            time: that.formState.time,
+            ch4: "",
+            co2: "",
+            co: "",
+            o2: "",
+            jw: "",
+            // gw: '',
+            // bxy: '',
+            tbrq: that.formState.tbrq,
+            temp: "",
+            mcgzm: that.formState.mcgzm,
+          };
+          that.isDisabled = false;
+        }
+      } else if (
+        that.formState.bc == "中班" &&
+        that.formState.count == "第二次"
+      ) {
+        if (
+          that.saveShowList.bxySdzNoon2 ||
+          that.saveShowList.ch4Noon2 ||
+          that.saveShowList.co2Noon2 ||
+          that.saveShowList.coNoon2 ||
+          that.saveShowList.gwSdzNoon2 ||
+          that.saveShowList.jwSdzNoon2 ||
+          that.saveShowList.o2Noon2 ||
+          that.saveShowList.tnoon2
+        ) {
+          that.formState = {
+            id: that.saveShowList.id || "",
+            bc: that.formState.bc,
+            count: that.formState.count,
+            jcdd: that.formState.jcdd,
+            jcy: that.formState.jcy,
+            time: that.formState.time,
+            ch4: that.saveShowList.ch4Noon2 || "",
+            co2: that.saveShowList.co2Noon2 || "",
+            co: that.saveShowList.coNoon2 || "",
+            o2: that.saveShowList.o2Noon2 || "",
+            jw: that.saveShowList.jwSdzNoon2 || "",
+            // gw: that.saveShowList.gwSdzNoon2 || '',
+            // bxy: that.saveShowList.bxySdzNoon2 || '',
+            tbrq: that.formState.tbrq,
+            temp: that.saveShowList.tnoon2 || "",
+            mcgzm: that.formState.mcgzm,
+          };
+          that.isDisabled = true;
+        } else {
+          that.formState = {
+            id: that.formState.id,
+            bc: that.formState.bc,
+            count: that.formState.count,
+            jcdd: that.formState.jcdd,
+            jcy: that.formState.jcy,
+            time: that.formState.time,
+            ch4: "",
+            co2: "",
+            co: "",
+            o2: "",
+            jw: "",
+            // gw: '',
+            // bxy: '',
+            tbrq: that.formState.tbrq,
+            temp: "",
+            mcgzm: that.formState.mcgzm,
+          };
+          that.isDisabled = false;
+        }
+      } else if (
+        that.formState.bc == "夜班" &&
+        that.formState.count == "第一次"
+      ) {
+        if (
+          that.saveShowList.bxySdzNight1 ||
+          that.saveShowList.ch4Night1 ||
+          that.saveShowList.co2Night1 ||
+          that.saveShowList.coNight1 ||
+          that.saveShowList.gwSdzNight1 ||
+          that.saveShowList.jwSdzNight1 ||
+          that.saveShowList.o2Night1 ||
+          that.saveShowList.tnight1
+        ) {
+          that.formState = {
+            id: that.saveShowList.id || "",
+            bc: that.formState.bc,
+            count: that.formState.count,
+            jcdd: that.formState.jcdd,
+            jcy: that.formState.jcy,
+            time: that.formState.time,
+            ch4: that.saveShowList.ch4Night1 || "",
+            co2: that.saveShowList.co2Night1 || "",
+            co: that.saveShowList.coNight1 || "",
+            o2: that.saveShowList.o2Night1 || "",
+            jw: that.saveShowList.jwSdzNight1 || "",
+            // gw: that.saveShowList.gwSdzNight1 || '',
+            // bxy: that.saveShowList.bxySdzNight1 || '',
+            tbrq: that.formState.tbrq,
+            temp: that.saveShowList.tnight1 || "",
+            mcgzm: that.formState.mcgzm,
+          };
+          that.isDisabled = true;
+        } else {
+          that.formState = {
+            id: that.formState.id,
+            bc: that.formState.bc,
+            count: that.formState.count,
+            jcdd: that.formState.jcdd,
+            jcy: that.formState.jcy,
+            time: that.formState.time,
+            ch4: "",
+            co2: "",
+            co: "",
+            o2: "",
+            jw: "",
+            // gw: '',
+            // bxy: '',
+            tbrq: that.formState.tbrq,
+            temp: "",
+            mcgzm: that.formState.mcgzm,
+          };
+          that.isDisabled = false;
+        }
+      } else if (
+        that.formState.bc == "夜班" &&
+        that.formState.count == "第二次"
+      ) {
+        if (
+          that.saveShowList.bxySdzNight2 ||
+          that.saveShowList.ch4Night2 ||
+          that.saveShowList.co2Night2 ||
+          that.saveShowList.coNight2 ||
+          that.saveShowList.gwSdzNight2 ||
+          that.saveShowList.jwSdzNight2 ||
+          that.saveShowList.o2Night2 ||
+          that.saveShowList.tnight2
+        ) {
+          that.formState = {
+            id: that.saveShowList.id || "",
+            bc: that.formState.bc,
+            count: that.formState.count,
+            jcdd: that.formState.jcdd,
+            jcy: that.formState.jcy,
+            time: that.formState.time,
+            ch4: that.saveShowList.ch4Night2 || "",
+            co2: that.saveShowList.co2Night2 || "",
+            co: that.saveShowList.coNight2 || "",
+            o2: that.saveShowList.o2Night2 || "",
+            jw: that.saveShowList.jwSdzNight2 || "",
+            // gw: that.saveShowList.gwSdzNight2 || '',
+            // bxy: that.saveShowList.bxySdzNight2 || '',
+            tbrq: that.formState.tbrq,
+            temp: that.saveShowList.tnight2 || "",
+            mcgzm: that.formState.mcgzm,
+          };
+          that.isDisabled = true;
+        } else {
+          that.formState = {
+            id: that.formState.id,
+            bc: that.formState.bc,
+            count: that.formState.count,
+            jcdd: that.formState.jcdd,
+            jcy: that.formState.jcy,
+            time: that.formState.time,
+            ch4: "",
+            co2: "",
+            co: "",
+            o2: "",
+            jw: "",
+            // gw: '',
+            // bxy: '',
+            tbrq: that.formState.tbrq,
+            temp: "",
+            mcgzm: that.formState.mcgzm,
+          };
+          that.isDisabled = false;
         }
+      }
     },
-    mounted() {
-        this.getGasList()
-        this.getMcList()
+    //监测次数选项切换
+    changeCount(e) {
+      let that = this;
+      that.formState.count = e;
+      if (that.formState.bc == "早班" && that.formState.count == "第一次") {
+        if (
+          that.saveShowList.bxySdzEarly1 ||
+          that.saveShowList.ch4Early1 ||
+          that.saveShowList.co2Early1 ||
+          that.saveShowList.coEarly1 ||
+          that.saveShowList.gwSdzEarly1 ||
+          that.saveShowList.jwSdzEarly1 ||
+          that.saveShowList.o2Early1 ||
+          that.saveShowList.tearly1
+        ) {
+          that.formState = {
+            id: that.saveShowList.id || "",
+            bc: that.formState.bc,
+            count: that.formState.count,
+            jcdd: that.formState.jcdd,
+            jcy: that.formState.jcy,
+            time: that.formState.time,
+            ch4: that.saveShowList.ch4Early1 || "",
+            co2: that.saveShowList.co2Early1 || "",
+            co: that.saveShowList.coEarly1 || "",
+            o2: that.saveShowList.o2Early1 || "",
+            jw: that.saveShowList.jwSdzEarly1 || "",
+            // gw: that.saveShowList.gwSdzEarly1 || '',
+            // bxy: that.saveShowList.bxySdzEarly1 || '',
+            tbrq: that.formState.tbrq,
+            temp: that.saveShowList.tearly1 || "",
+            mcgzm: that.formState.mcgzm,
+          };
+          that.isDisabled = true;
+        } else {
+          that.formState = {
+            id: that.formState.id,
+            bc: that.formState.bc,
+            count: that.formState.count,
+            jcdd: that.formState.jcdd,
+            jcy: that.formState.jcy,
+            time: that.formState.time,
+            ch4: "",
+            co2: "",
+            co: "",
+            o2: "",
+            jw: "",
+            // gw: '',
+            // bxy: '',
+            tbrq: that.formState.tbrq,
+            temp: "",
+            mcgzm: that.formState.mcgzm,
+          };
+          that.isDisabled = false;
+        }
+      } else if (
+        that.formState.bc == "早班" &&
+        that.formState.count == "第二次"
+      ) {
+        if (
+          that.saveShowList.bxySdzEarly2 ||
+          that.saveShowList.ch4Early2 ||
+          that.saveShowList.co2Early2 ||
+          that.saveShowList.coEarly2 ||
+          that.saveShowList.gwSdzEarly2 ||
+          that.saveShowList.jwSdzEarly2 ||
+          that.saveShowList.o2Early2 ||
+          that.saveShowList.tearly2
+        ) {
+          that.formState = {
+            id: that.saveShowList.id || "",
+            bc: that.formState.bc,
+            count: that.formState.count,
+            jcdd: that.formState.jcdd,
+            jcy: that.formState.jcy,
+            time: that.formState.time,
+            ch4: that.saveShowList.ch4Early2 || "",
+            co2: that.saveShowList.co2Early2 || "",
+            co: that.saveShowList.coEarly2 || "",
+            o2: that.saveShowList.o2Early2 || "",
+            jw: that.saveShowList.jwSdzEarly2 || "",
+            // gw: that.saveShowList.gwSdzEarly2 || '',
+            // bxy: that.saveShowList.bxySdzEarly2 || '',
+            tbrq: that.formState.tbrq,
+            temp: that.saveShowList.tearly2 || "",
+            mcgzm: that.formState.mcgzm,
+          };
+          that.isDisabled = true;
+        } else {
+          that.formState = {
+            id: that.formState.id,
+            bc: that.formState.bc,
+            count: that.formState.count,
+            jcdd: that.formState.jcdd,
+            jcy: that.formState.jcy,
+            time: that.formState.time,
+            ch4: "",
+            co2: "",
+            co: "",
+            o2: "",
+            jw: "",
+            // gw: '',
+            // bxy: '',
+            tbrq: that.formState.tbrq,
+            temp: "",
+            mcgzm: that.formState.mcgzm,
+          };
+          that.isDisabled = false;
+        }
+      } else if (
+        that.formState.bc == "中班" &&
+        that.formState.count == "第一次"
+      ) {
+        if (
+          that.saveShowList.bxySdzNoon1 ||
+          that.saveShowList.ch4Noon1 ||
+          that.saveShowList.co2Noon1 ||
+          that.saveShowList.coNoon1 ||
+          that.saveShowList.gwSdzNoon1 ||
+          that.saveShowList.jwSdzNoon1 ||
+          that.saveShowList.o2Noon1 ||
+          that.saveShowList.tnoon1
+        ) {
+          that.formState = {
+            id: that.saveShowList.id || "",
+            bc: that.formState.bc,
+            count: that.formState.count,
+            jcdd: that.formState.jcdd,
+            jcy: that.formState.jcy,
+            time: that.formState.time,
+            ch4: that.saveShowList.ch4Noon1 || "",
+            co2: that.saveShowList.co2Noon1 || "",
+            co: that.saveShowList.coNoon1 || "",
+            o2: that.saveShowList.o2Noon1 || "",
+            jw: that.saveShowList.jwSdzNoon1 || "",
+            // gw: that.saveShowList.gwSdzNoon1 || '',
+            // bxy: that.saveShowList.bxySdzNoon1 || '',
+            tbrq: that.formState.tbrq,
+            temp: that.saveShowList.tnoon1 || "",
+            mcgzm: that.formState.mcgzm,
+          };
+          that.isDisabled = true;
+        } else {
+          that.formState = {
+            id: that.formState.id,
+            bc: that.formState.bc,
+            count: that.formState.count,
+            jcdd: that.formState.jcdd,
+            jcy: that.formState.jcy,
+            time: that.formState.time,
+            ch4: "",
+            co2: "",
+            co: "",
+            o2: "",
+            jw: "",
+            // gw: '',
+            // bxy: '',
+            tbrq: that.formState.tbrq,
+            temp: "",
+            mcgzm: that.formState.mcgzm,
+          };
+          that.isDisabled = false;
+        }
+      } else if (
+        that.formState.bc == "中班" &&
+        that.formState.count == "第二次"
+      ) {
+        if (
+          that.saveShowList.bxySdzNoon2 ||
+          that.saveShowList.ch4Noon2 ||
+          that.saveShowList.co2Noon2 ||
+          that.saveShowList.coNoon2 ||
+          that.saveShowList.gwSdzNoon2 ||
+          that.saveShowList.jwSdzNoon2 ||
+          that.saveShowList.o2Noon2 ||
+          that.saveShowList.tnoon2
+        ) {
+          that.formState = {
+            id: that.saveShowList.id || "",
+            bc: that.formState.bc,
+            count: that.formState.count,
+            jcdd: that.formState.jcdd,
+            jcy: that.formState.jcy,
+            time: that.formState.time,
+            ch4: that.saveShowList.ch4Noon2 || "",
+            co2: that.saveShowList.co2Noon2 || "",
+            co: that.saveShowList.coNoon2 || "",
+            o2: that.saveShowList.o2Noon2 || "",
+            jw: that.saveShowList.jwSdzNoon2 || "",
+            // gw: that.saveShowList.gwSdzNoon2 || '',
+            // bxy: that.saveShowList.bxySdzNoon2 || '',
+            tbrq: that.formState.tbrq,
+            temp: that.saveShowList.tnoon2 || "",
+            mcgzm: that.formState.mcgzm,
+          };
+          that.isDisabled = true;
+        } else {
+          that.formState = {
+            id: that.formState.id,
+            bc: that.formState.bc,
+            count: that.formState.count,
+            jcdd: that.formState.jcdd,
+            jcy: that.formState.jcy,
+            time: that.formState.time,
+            ch4: "",
+            co2: "",
+            co: "",
+            o2: "",
+            jw: "",
+            // gw: '',
+            // bxy: '',
+            tbrq: that.formState.tbrq,
+            temp: "",
+            mcgzm: that.formState.mcgzm,
+          };
+          that.isDisabled = false;
+        }
+      } else if (
+        that.formState.bc == "夜班" &&
+        that.formState.count == "第一次"
+      ) {
+        if (
+          that.saveShowList.bxySdzNight1 ||
+          that.saveShowList.ch4Night1 ||
+          that.saveShowList.co2Night1 ||
+          that.saveShowList.coNight1 ||
+          that.saveShowList.gwSdzNight1 ||
+          that.saveShowList.jwSdzNight1 ||
+          that.saveShowList.o2Night1 ||
+          that.saveShowList.tnight1
+        ) {
+          that.formState = {
+            id: that.saveShowList.id || "",
+            bc: that.formState.bc,
+            count: that.formState.count,
+            jcdd: that.formState.jcdd,
+            jcy: that.formState.jcy,
+            time: that.formState.time,
+            ch4: that.saveShowList.ch4Night1 || "",
+            co2: that.saveShowList.co2Night1 || "",
+            co: that.saveShowList.coNight1 || "",
+            o2: that.saveShowList.o2Night1 || "",
+            jw: that.saveShowList.jwSdzNight1 || "",
+            // gw: that.saveShowList.gwSdzNight1 || '',
+            // bxy: that.saveShowList.bxySdzNight1 || '',
+            tbrq: that.formState.tbrq,
+            temp: that.saveShowList.tnight1 || "",
+            mcgzm: that.formState.mcgzm,
+          };
+          that.isDisabled = true;
+        } else {
+          that.formState = {
+            id: that.formState.id,
+            bc: that.formState.bc,
+            count: that.formState.count,
+            jcdd: that.formState.jcdd,
+            jcy: that.formState.jcy,
+            time: that.formState.time,
+            ch4: "",
+            co2: "",
+            co: "",
+            o2: "",
+            jw: "",
+            // gw: '',
+            // bxy: '',
+            tbrq: that.formState.tbrq,
+            temp: "",
+            mcgzm: that.formState.mcgzm,
+          };
+          that.isDisabled = false;
+        }
+      } else if (
+        that.formState.bc == "夜班" &&
+        that.formState.count == "第二次"
+      ) {
+        if (
+          that.saveShowList.bxySdzNight2 ||
+          that.saveShowList.ch4Night2 ||
+          that.saveShowList.co2Night2 ||
+          that.saveShowList.coNight2 ||
+          that.saveShowList.gwSdzNight2 ||
+          that.saveShowList.jwSdzNight2 ||
+          that.saveShowList.o2Night2 ||
+          that.saveShowList.tnight2
+        ) {
+          that.formState = {
+            id: that.saveShowList.id || "",
+            bc: that.formState.bc,
+            count: that.formState.count,
+            jcdd: that.formState.jcdd,
+            jcy: that.formState.jcy,
+            time: that.formState.time,
+            ch4: that.saveShowList.ch4Night2 || "",
+            co2: that.saveShowList.co2Night2 || "",
+            co: that.saveShowList.coNight2 || "",
+            o2: that.saveShowList.o2Night2 || "",
+            jw: that.saveShowList.jwSdzNight2 || "",
+            // gw: that.saveShowList.gwSdzNight2 || '',
+            // bxy: that.saveShowList.bxySdzNight2 || '',
+            tbrq: that.formState.tbrq,
+            temp: that.saveShowList.tnight2 || "",
+            mcgzm: that.formState.mcgzm,
+          };
+          that.isDisabled = true;
+        } else {
+          that.formState = {
+            id: that.formState.id,
+            bc: that.formState.bc,
+            count: that.formState.count,
+            jcdd: that.formState.jcdd,
+            jcy: that.formState.jcy,
+            time: that.formState.time,
+            ch4: "",
+            co2: "",
+            co: "",
+            o2: "",
+            jw: "",
+            // gw: '',
+            // bxy: '',
+            tbrq: that.formState.tbrq,
+            temp: "",
+            mcgzm: that.formState.mcgzm,
+          };
+          that.isDisabled = false;
+        }
+      }
     },
-    methods: {
-        hasPermission(param) {
-            let permission = uni.getStorageSync('btnPermission')
-            return permission.filter(v => v.action == param).length != 0 ? true : false
-        },
-        //班次下拉选项切换
-        changeBc(e) {
-            let that = this
-            console.log(e, '班次----------')
-            this.formState.bc = e
-            if (that.formState.bc == '早班' && that.formState.count == '第一次') {
-                if (that.saveShowList.bxySdzEarly1 || that.saveShowList.ch4Early1 || that.saveShowList.co2Early1 || that.saveShowList.coEarly1 || that.saveShowList.gwSdzEarly1 || that.saveShowList.jwSdzEarly1 || that.saveShowList.o2Early1 || that.saveShowList.tearly1) {
+    //检测地点拉选项切换
+    changeJc(e) {
+      let that = this;
+      that.formState.jcdd = e;
+      that.deviceId = that.rangeJcdd.filter((v) => v.text == e)[0].deviceId;
+      new Promise((resolve, reject) => {
+        api
+          .getGas({ reportTime: that.formState.tbrq, deviceId: that.deviceId })
+          .then((response) => {
+            if (response.data.code == 200) {
+              let data = response.data.result.records;
+              if (data.length != 0) {
+                that.saveShowList = data[0];
+                if (
+                  that.formState.bc == "早班" &&
+                  that.formState.count == "第一次"
+                ) {
+                  if (
+                    that.saveShowList.bxySdzEarly1 ||
+                    that.saveShowList.ch4Early1 ||
+                    that.saveShowList.co2Early1 ||
+                    that.saveShowList.coEarly1 ||
+                    that.saveShowList.gwSdzEarly1 ||
+                    that.saveShowList.jwSdzEarly1 ||
+                    that.saveShowList.o2Early1 ||
+                    that.saveShowList.tearly1
+                  ) {
                     that.formState = {
-                        id: that.saveShowList.id || '',
-                        bc: that.formState.bc,
-                        count: that.formState.count,
-                        jcdd: that.formState.jcdd,
-                        jcy: that.formState.jcy,
-                        time: that.formState.time,
-                        ch4: that.saveShowList.ch4Early1 || '',
-                        co2: that.saveShowList.co2Early1 || '',
-                        co: that.saveShowList.coEarly1 || '',
-                        o2: that.saveShowList.o2Early1 || '',
-                        jw: that.saveShowList.jwSdzEarly1 || '',
-                        // gw: that.saveShowList.gwSdzEarly1 || '',
-                        // bxy: that.saveShowList.bxySdzEarly1 || '',
-                        tbrq: that.formState.tbrq,
-                        temp: that.saveShowList.tearly1 || '',
-                        mcgzm: that.formState.mcgzm,
-                    }
-                    that.isDisabled = true
-                } else {
+                      id: that.saveShowList.id || "",
+                      bc: that.formState.bc,
+                      count: that.formState.count,
+                      jcdd: that.formState.jcdd,
+                      jcy: that.formState.jcy,
+                      time: that.formState.time,
+                      ch4: that.saveShowList.ch4Early1 || "",
+                      co2: that.saveShowList.co2Early1 || "",
+                      co: that.saveShowList.coEarly1 || "",
+                      o2: that.saveShowList.o2Early1 || "",
+                      jw: that.saveShowList.jwSdzEarly1 || "",
+                      // gw: that.saveShowList.gwSdzEarly1 || '',
+                      // bxy: that.saveShowList.bxySdzEarly1 || '',
+                      tbrq: that.formState.tbrq,
+                      temp: that.saveShowList.tearly1 || "",
+                      mcgzm: that.formState.mcgzm,
+                    };
+                    that.isDisabled = true;
+                  } else {
                     that.formState = {
-                        id: that.formState.id,
-                        bc: that.formState.bc,
-                        count: that.formState.count,
-                        jcdd: that.formState.jcdd,
-                        jcy: that.formState.jcy,
-                        time: that.formState.time,
-                        ch4: '',
-                        co2: '',
-                        co: '',
-                        o2: '',
-                        jw: '',
-                        // gw: '',
-                        // bxy: '',
-                        tbrq: that.formState.tbrq,
-                        temp: '',
-                        mcgzm: that.formState.mcgzm,
-                    }
-                    that.isDisabled = false
-                }
-            } else if (that.formState.bc == '早班' && that.formState.count == '第二次') {
-                if (that.saveShowList.bxySdzEarly2 || that.saveShowList.ch4Early2 || that.saveShowList.co2Early2 || that.saveShowList.coEarly2 || that.saveShowList.gwSdzEarly2 || that.saveShowList.jwSdzEarly2 || that.saveShowList.o2Early2 || that.saveShowList.tearly2) {
+                      id: that.formState.id,
+                      bc: that.formState.bc,
+                      count: that.formState.count,
+                      jcdd: that.formState.jcdd,
+                      jcy: that.formState.jcy,
+                      time: that.formState.time,
+                      ch4: "",
+                      co2: "",
+                      co: "",
+                      o2: "",
+                      jw: "",
+                      // gw: '',
+                      // bxy: '',
+                      tbrq: that.formState.tbrq,
+                      temp: "",
+                      mcgzm: that.formState.mcgzm,
+                    };
+                    that.isDisabled = false;
+                  }
+                } else if (
+                  that.formState.bc == "早班" &&
+                  that.formState.count == "第二次"
+                ) {
+                  if (
+                    that.saveShowList.bxySdzEarly2 ||
+                    that.saveShowList.ch4Early2 ||
+                    that.saveShowList.co2Early2 ||
+                    that.saveShowList.coEarly2 ||
+                    that.saveShowList.gwSdzEarly2 ||
+                    that.saveShowList.jwSdzEarly2 ||
+                    that.saveShowList.o2Early2 ||
+                    that.saveShowList.tearly2
+                  ) {
                     that.formState = {
-                        id: that.saveShowList.id || '',
-                        bc: that.formState.bc,
-                        count: that.formState.count,
-                        jcdd: that.formState.jcdd,
-                        jcy: that.formState.jcy,
-                        time: that.formState.time,
-                        ch4: that.saveShowList.ch4Early2 || '',
-                        co2: that.saveShowList.co2Early2 || '',
-                        co: that.saveShowList.coEarly2 || '',
-                        o2: that.saveShowList.o2Early2 || '',
-                        jw: that.saveShowList.jwSdzEarly2 || '',
-                        // gw: that.saveShowList.gwSdzEarly2 || '',
-                        // bxy: that.saveShowList.bxySdzEarly2 || '',
-                        tbrq: that.formState.tbrq,
-                        temp: that.saveShowList.tearly2 || '',
-                        mcgzm: that.formState.mcgzm,
-                    }
-                    that.isDisabled = true
-                } else {
+                      id: that.saveShowList.id || "",
+                      bc: that.formState.bc,
+                      count: that.formState.count,
+                      jcdd: that.formState.jcdd,
+                      jcy: that.formState.jcy,
+                      time: that.formState.time,
+                      ch4: that.saveShowList.ch4Early2 || "",
+                      co2: that.saveShowList.co2Early2 || "",
+                      co: that.saveShowList.coEarly2 || "",
+                      o2: that.saveShowList.o2Early2 || "",
+                      jw: that.saveShowList.jwSdzEarly2 || "",
+                      // gw: that.saveShowList.gwSdzEarly2 || '',
+                      // bxy: that.saveShowList.bxySdzEarly2 || '',
+                      tbrq: that.formState.tbrq,
+                      temp: that.saveShowList.tearly2 || "",
+                      mcgzm: that.formState.mcgzm,
+                    };
+                    that.isDisabled = true;
+                  } else {
                     that.formState = {
-                        id: that.formState.id,
-                        bc: that.formState.bc,
-                        count: that.formState.count,
-                        jcdd: that.formState.jcdd,
-                        jcy: that.formState.jcy,
-                        time: that.formState.time,
-                        ch4: '',
-                        co2: '',
-                        co: '',
-                        o2: '',
-                        jw: '',
-                        // gw: '',
-                        // bxy: '',
-                        tbrq: that.formState.tbrq,
-                        temp: '',
-                        mcgzm: that.formState.mcgzm,
-                    }
-                    that.isDisabled = false
-                }
-            } else if (that.formState.bc == '中班' && that.formState.count == '第一次') {
-                if (that.saveShowList.bxySdzNoon1 || that.saveShowList.ch4Noon1 || that.saveShowList.co2Noon1 || that.saveShowList.coNoon1 || that.saveShowList.gwSdzNoon1 || that.saveShowList.jwSdzNoon1 || that.saveShowList.o2Noon1 || that.saveShowList.tnoon1) {
+                      id: that.formState.id,
+                      bc: that.formState.bc,
+                      count: that.formState.count,
+                      jcdd: that.formState.jcdd,
+                      jcy: that.formState.jcy,
+                      time: that.formState.time,
+                      ch4: "",
+                      co2: "",
+                      co: "",
+                      o2: "",
+                      jw: "",
+                      // gw: '',
+                      // bxy: '',
+                      tbrq: that.formState.tbrq,
+                      temp: "",
+                      mcgzm: that.formState.mcgzm,
+                    };
+                    that.isDisabled = false;
+                  }
+                } else if (
+                  that.formState.bc == "中班" &&
+                  that.formState.count == "第一次"
+                ) {
+                  if (
+                    that.saveShowList.bxySdzNoon1 ||
+                    that.saveShowList.ch4Noon1 ||
+                    that.saveShowList.co2Noon1 ||
+                    that.saveShowList.coNoon1 ||
+                    that.saveShowList.gwSdzNoon1 ||
+                    that.saveShowList.jwSdzNoon1 ||
+                    that.saveShowList.o2Noon1 ||
+                    that.saveShowList.tnoon1
+                  ) {
                     that.formState = {
-                        id: that.saveShowList.id || '',
-                        bc: that.formState.bc,
-                        count: that.formState.count,
-                        jcdd: that.formState.jcdd,
-                        jcy: that.formState.jcy,
-                        time: that.formState.time,
-                        ch4: that.saveShowList.ch4Noon1 || '',
-                        co2: that.saveShowList.co2Noon1 || '',
-                        co: that.saveShowList.coNoon1 || '',
-                        o2: that.saveShowList.o2Noon1 || '',
-                        jw: that.saveShowList.jwSdzNoon1 || '',
-                        // gw: that.saveShowList.gwSdzNoon1 || '',
-                        // bxy: that.saveShowList.bxySdzNoon1 || '',
-                        tbrq: that.formState.tbrq,
-                        temp: that.saveShowList.tnoon1 || '',
-                        mcgzm: that.formState.mcgzm,
-                    }
-                    that.isDisabled = true
-                } else {
+                      id: that.saveShowList.id || "",
+                      bc: that.formState.bc,
+                      count: that.formState.count,
+                      jcdd: that.formState.jcdd,
+                      jcy: that.formState.jcy,
+                      time: that.formState.time,
+                      // ch4: that.saveShowList.bxySdzNoon1 || '',
+                      ch4: that.saveShowList.ch4Noon1 || "",
+                      co2: that.saveShowList.co2Noon1 || "",
+                      co: that.saveShowList.coNoon1 || "",
+                      o2: that.saveShowList.o2Noon1 || "",
+                      jw: that.saveShowList.jwSdzNoon1 || "",
+                      // gw: that.saveShowList.gwSdzNoon1 || '',
+                      // bxy: that.saveShowList.bxySdzNoon1 || '',
+                      tbrq: that.formState.tbrq,
+                      temp: that.saveShowList.tnoon1 || "",
+                      mcgzm: that.formState.mcgzm,
+                    };
+                    that.isDisabled = true;
+                  } else {
                     that.formState = {
-                        id: that.formState.id,
-                        bc: that.formState.bc,
-                        count: that.formState.count,
-                        jcdd: that.formState.jcdd,
-                        jcy: that.formState.jcy,
-                        time: that.formState.time,
-                        ch4: '',
-                        co2: '',
-                        co: '',
-                        o2: '',
-                        jw: '',
-                        // gw: '',
-                        // bxy: '',
-                        tbrq: that.formState.tbrq,
-                        temp: '',
-                        mcgzm: that.formState.mcgzm,
-                    }
-                    that.isDisabled = false
-                }
-            } else if (that.formState.bc == '中班' && that.formState.count == '第二次') {
-                if (that.saveShowList.bxySdzNoon2 || that.saveShowList.ch4Noon2 || that.saveShowList.co2Noon2 || that.saveShowList.coNoon2 || that.saveShowList.gwSdzNoon2 || that.saveShowList.jwSdzNoon2 || that.saveShowList.o2Noon2 || that.saveShowList.tnoon2) {
+                      id: that.formState.id,
+                      bc: that.formState.bc,
+                      count: that.formState.count,
+                      jcdd: that.formState.jcdd,
+                      jcy: that.formState.jcy,
+                      time: that.formState.time,
+                      ch4: "",
+                      co2: "",
+                      co: "",
+                      o2: "",
+                      jw: "",
+                      // gw: '',
+                      // bxy: '',
+                      tbrq: that.formState.tbrq,
+                      temp: "",
+                      mcgzm: that.formState.mcgzm,
+                    };
+                    that.isDisabled = false;
+                  }
+                } else if (
+                  that.formState.bc == "中班" &&
+                  that.formState.count == "第二次"
+                ) {
+                  if (
+                    that.saveShowList.bxySdzNoon2 ||
+                    that.saveShowList.ch4Noon2 ||
+                    that.saveShowList.co2Noon2 ||
+                    that.saveShowList.coNoon2 ||
+                    that.saveShowList.gwSdzNoon2 ||
+                    that.saveShowList.jwSdzNoon2 ||
+                    that.saveShowList.o2Noon2 ||
+                    that.saveShowList.tnoon2
+                  ) {
                     that.formState = {
-                        id: that.saveShowList.id || '',
-                        bc: that.formState.bc,
-                        count: that.formState.count,
-                        jcdd: that.formState.jcdd,
-                        jcy: that.formState.jcy,
-                        time: that.formState.time,
-                        ch4: that.saveShowList.ch4Noon2 || '',
-                        co2: that.saveShowList.co2Noon2 || '',
-                        co: that.saveShowList.coNoon2 || '',
-                        o2: that.saveShowList.o2Noon2 || '',
-                        jw: that.saveShowList.jwSdzNoon2 || '',
-                        // gw: that.saveShowList.gwSdzNoon2 || '',
-                        // bxy: that.saveShowList.bxySdzNoon2 || '',
-                        tbrq: that.formState.tbrq,
-                        temp: that.saveShowList.tnoon2 || '',
-                        mcgzm: that.formState.mcgzm,
-                    }
-                    that.isDisabled = true
-                } else {
+                      id: that.saveShowList.id || "",
+                      bc: that.formState.bc,
+                      count: that.formState.count,
+                      jcdd: that.formState.jcdd,
+                      jcy: that.formState.jcy,
+                      time: that.formState.time,
+                      ch4: that.saveShowList.ch4Noon2 || "",
+                      co2: that.saveShowList.co2Noon2 || "",
+                      co: that.saveShowList.coNoon2 || "",
+                      o2: that.saveShowList.o2Noon2 || "",
+                      jw: that.saveShowList.jwSdzNoon2 || "",
+                      // gw: that.saveShowList.gwSdzNoon2 || '',
+                      // bxy: that.saveShowList.bxySdzNoon2 || '',
+                      tbrq: that.formState.tbrq,
+                      temp: that.saveShowList.tnoon2 || "",
+                      mcgzm: that.formState.mcgzm,
+                    };
+                    that.isDisabled = true;
+                  } else {
                     that.formState = {
-                        id: that.formState.id,
-                        bc: that.formState.bc,
-                        count: that.formState.count,
-                        jcdd: that.formState.jcdd,
-                        jcy: that.formState.jcy,
-                        time: that.formState.time,
-                        ch4: '',
-                        co2: '',
-                        co: '',
-                        o2: '',
-                        jw: '',
-                        // gw: '',
-                        // bxy: '',
-                        tbrq: that.formState.tbrq,
-                        temp: '',
-                        mcgzm: that.formState.mcgzm,
-                    }
-                    that.isDisabled = false
-                }
-            } else if (that.formState.bc == '夜班' && that.formState.count == '第一次') {
-                if (that.saveShowList.bxySdzNight1 || that.saveShowList.ch4Night1 || that.saveShowList.co2Night1 || that.saveShowList.coNight1 || that.saveShowList.gwSdzNight1 || that.saveShowList.jwSdzNight1 || that.saveShowList.o2Night1 || that.saveShowList.tnight1) {
+                      id: that.formState.id,
+                      bc: that.formState.bc,
+                      count: that.formState.count,
+                      jcdd: that.formState.jcdd,
+                      jcy: that.formState.jcy,
+                      time: that.formState.time,
+                      ch4: "",
+                      co2: "",
+                      co: "",
+                      o2: "",
+                      jw: "",
+                      // gw: '',
+                      // bxy: '',
+                      tbrq: that.formState.tbrq,
+                      temp: "",
+                      mcgzm: that.formState.mcgzm,
+                    };
+                    that.isDisabled = false;
+                  }
+                } else if (
+                  that.formState.bc == "夜班" &&
+                  that.formState.count == "第一次"
+                ) {
+                  if (
+                    that.saveShowList.bxySdzNight1 ||
+                    that.saveShowList.ch4Night1 ||
+                    that.saveShowList.co2Night1 ||
+                    that.saveShowList.coNight1 ||
+                    that.saveShowList.gwSdzNight1 ||
+                    that.saveShowList.jwSdzNight1 ||
+                    that.saveShowList.o2Night1 ||
+                    that.saveShowList.tnight1
+                  ) {
                     that.formState = {
-                        id: that.saveShowList.id || '',
-                        bc: that.formState.bc,
-                        count: that.formState.count,
-                        jcdd: that.formState.jcdd,
-                        jcy: that.formState.jcy,
-                        time: that.formState.time,
-                        ch4: that.saveShowList.ch4Night1 || '',
-                        co2: that.saveShowList.co2Night1 || '',
-                        co: that.saveShowList.coNight1 || '',
-                        o2: that.saveShowList.o2Night1 || '',
-                        jw: that.saveShowList.jwSdzNight1 || '',
-                        // gw: that.saveShowList.gwSdzNight1 || '',
-                        // bxy: that.saveShowList.bxySdzNight1 || '',
-                        tbrq: that.formState.tbrq,
-                        temp: that.saveShowList.tnight1 || '',
-                        mcgzm: that.formState.mcgzm,
-                    }
-                    that.isDisabled = true
-                } else {
+                      id: that.saveShowList.id || "",
+                      bc: that.formState.bc,
+                      count: that.formState.count,
+                      jcdd: that.formState.jcdd,
+                      jcy: that.formState.jcy,
+                      time: that.formState.time,
+                      ch4: that.saveShowList.ch4Night1 || "",
+                      co2: that.saveShowList.co2Night1 || "",
+                      co: that.saveShowList.coNight1 || "",
+                      o2: that.saveShowList.o2Night1 || "",
+                      jw: that.saveShowList.jwSdzNight1 || "",
+                      // gw: that.saveShowList.gwSdzNight1 || '',
+                      // bxy: that.saveShowList.bxySdzNight1 || '',
+                      tbrq: that.formState.tbrq,
+                      temp: that.saveShowList.tnight1 || "",
+                      mcgzm: that.formState.mcgzm,
+                    };
+                    that.isDisabled = true;
+                  } else {
                     that.formState = {
-                        id: that.formState.id,
-                        bc: that.formState.bc,
-                        count: that.formState.count,
-                        jcdd: that.formState.jcdd,
-                        jcy: that.formState.jcy,
-                        time: that.formState.time,
-                        ch4: '',
-                        co2: '',
-                        co: '',
-                        o2: '',
-                        jw: '',
-                        // gw: '',
-                        // bxy: '',
-                        tbrq: that.formState.tbrq,
-                        temp: '',
-                        mcgzm: that.formState.mcgzm,
-                    }
-                    that.isDisabled = false
-                }
-            } else if (that.formState.bc == '夜班' && that.formState.count == '第二次') {
-                if (that.saveShowList.bxySdzNight2 || that.saveShowList.ch4Night2 || that.saveShowList.co2Night2 || that.saveShowList.coNight2 || that.saveShowList.gwSdzNight2 || that.saveShowList.jwSdzNight2 || that.saveShowList.o2Night2 || that.saveShowList.tnight2) {
+                      id: that.formState.id,
+                      bc: that.formState.bc,
+                      count: that.formState.count,
+                      jcdd: that.formState.jcdd,
+                      jcy: that.formState.jcy,
+                      time: that.formState.time,
+                      ch4: "",
+                      co2: "",
+                      co: "",
+                      o2: "",
+                      jw: "",
+                      // gw: '',
+                      // bxy: '',
+                      tbrq: that.formState.tbrq,
+                      temp: "",
+                      mcgzm: that.formState.mcgzm,
+                    };
+                    that.isDisabled = false;
+                  }
+                } else if (
+                  that.formState.bc == "夜班" &&
+                  that.formState.count == "第二次"
+                ) {
+                  if (
+                    that.saveShowList.bxySdzNight2 ||
+                    that.saveShowList.ch4Night2 ||
+                    that.saveShowList.co2Night2 ||
+                    that.saveShowList.coNight2 ||
+                    that.saveShowList.gwSdzNight2 ||
+                    that.saveShowList.jwSdzNight2 ||
+                    that.saveShowList.o2Night2 ||
+                    that.saveShowList.tnight2
+                  ) {
                     that.formState = {
-                        id: that.saveShowList.id || '',
-                        bc: that.formState.bc,
-                        count: that.formState.count,
-                        jcdd: that.formState.jcdd,
-                        jcy: that.formState.jcy,
-                        time: that.formState.time,
-                        ch4: that.saveShowList.ch4Night2 || '',
-                        co2: that.saveShowList.co2Night2 || '',
-                        co: that.saveShowList.coNight2 || '',
-                        o2: that.saveShowList.o2Night2 || '',
-                        jw: that.saveShowList.jwSdzNight2 || '',
-                        // gw: that.saveShowList.gwSdzNight2 || '',
-                        // bxy: that.saveShowList.bxySdzNight2 || '',
-                        tbrq: that.formState.tbrq,
-                        temp: that.saveShowList.tnight2 || '',
-                        mcgzm: that.formState.mcgzm,
-                    }
-                    that.isDisabled = true
-                } else {
+                      id: that.saveShowList.id || "",
+                      bc: that.formState.bc,
+                      count: that.formState.count,
+                      jcdd: that.formState.jcdd,
+                      jcy: that.formState.jcy,
+                      time: that.formState.time,
+                      ch4: that.saveShowList.ch4Night2 || "",
+                      co2: that.saveShowList.co2Night2 || "",
+                      co: that.saveShowList.coNight2 || "",
+                      o2: that.saveShowList.o2Night2 || "",
+                      jw: that.saveShowList.jwSdzNight2 || "",
+                      // gw: that.saveShowList.gwSdzNight2 || '',
+                      // bxy: that.saveShowList.bxySdzNight2 || '',
+                      tbrq: that.formState.tbrq,
+                      temp: that.saveShowList.tnight2 || "",
+                      mcgzm: that.formState.mcgzm,
+                    };
+                    that.isDisabled = true;
+                  } else {
                     that.formState = {
-                        id: that.formState.id,
-                        bc: that.formState.bc,
-                        count: that.formState.count,
-                        jcdd: that.formState.jcdd,
-                        jcy: that.formState.jcy,
-                        time: that.formState.time,
-                        ch4: '',
-                        co2: '',
-                        co: '',
-                        o2: '',
-                        jw: '',
-                        // gw: '',
-                        // bxy: '',
-                        tbrq: that.formState.tbrq,
-                        temp: '',
-                        mcgzm: that.formState.mcgzm,
-                    }
-                    that.isDisabled = false
+                      id: that.formState.id,
+                      bc: that.formState.bc,
+                      count: that.formState.count,
+                      jcdd: that.formState.jcdd,
+                      jcy: that.formState.jcy,
+                      time: that.formState.time,
+                      ch4: "",
+                      co2: "",
+                      co: "",
+                      o2: "",
+                      jw: "",
+                      // gw: '',
+                      // bxy: '',
+                      tbrq: that.formState.tbrq,
+                      temp: "",
+                      mcgzm: that.formState.mcgzm,
+                    };
+                    that.isDisabled = false;
+                  }
                 }
+              } else {
+                that.isDisabled = false;
+                that.saveShowList = {};
+                that.formState = {
+                  id: "",
+                  bc: that.formState.bc || "",
+                  count: that.formState.count || "",
+                  jcdd: that.formState.jcdd || "",
+                  mcgzm: that.formState.mcgzm || "",
+                  jcy: that.formState.jcy || "",
+                  time: that.formState.time,
+                  tbrq: that.formState.tbrq,
+                  ch4: "",
+                  co2: "",
+                  co: "",
+                  o2: "",
+                  jw: "",
+                  // gw: '',
+                  // bxy: '',
+                  temp: "",
+                };
+              }
+            } else {
+              reject(response);
             }
-        },
-        //监测次数选项切换
-        changeCount(e) {
-            let that = this
-            that.formState.count = e
-            if (that.formState.bc == '早班' && that.formState.count == '第一次') {
-                if (that.saveShowList.bxySdzEarly1 || that.saveShowList.ch4Early1 || that.saveShowList.co2Early1 || that.saveShowList.coEarly1 || that.saveShowList.gwSdzEarly1 || that.saveShowList.jwSdzEarly1 || that.saveShowList.o2Early1 || that.saveShowList.tearly1) {
+          })
+          .catch((error) => {
+            console.log("catch===>response", response);
+            reject(error);
+          });
+      });
+    },
+    //工作面煤层选项切换
+    changeMc(e) {
+      this.formState.mcgzm = e;
+      this.getSelectList();
+    },
+    //检测时间下拉选项切换
+    change(e) {
+      let that = this;
+      // that.formState.time = moment(e.value).format('YYYY-MM-DD HH:mm:ss')
+      // that.formState.tbrq = moment(e.value).format('YYYY-MM-DD')
+      new Promise((resolve, reject) => {
+        api
+          .getGas({ reportTime: that.formState.tbrq, deviceId: that.deviceId })
+          .then((response) => {
+            if (response.data.code == 200) {
+              let data = response.data.result.records;
+              if (data.length != 0) {
+                that.saveShowList = data[0];
+                if (
+                  that.formState.bc == "早班" &&
+                  that.formState.count == "第一次"
+                ) {
+                  if (
+                    that.saveShowList.bxySdzEarly1 ||
+                    that.saveShowList.ch4Early1 ||
+                    that.saveShowList.co2Early1 ||
+                    that.saveShowList.coEarly1 ||
+                    that.saveShowList.gwSdzEarly1 ||
+                    that.saveShowList.jwSdzEarly1 ||
+                    that.saveShowList.o2Early1 ||
+                    that.saveShowList.tearly1
+                  ) {
                     that.formState = {
-                        id: that.saveShowList.id || '',
-                        bc: that.formState.bc,
-                        count: that.formState.count,
-                        jcdd: that.formState.jcdd,
-                        jcy: that.formState.jcy,
-                        time: that.formState.time,
-                        ch4: that.saveShowList.ch4Early1 || '',
-                        co2: that.saveShowList.co2Early1 || '',
-                        co: that.saveShowList.coEarly1 || '',
-                        o2: that.saveShowList.o2Early1 || '',
-                        jw: that.saveShowList.jwSdzEarly1 || '',
-                        // gw: that.saveShowList.gwSdzEarly1 || '',
-                        // bxy: that.saveShowList.bxySdzEarly1 || '',
-                        tbrq: that.formState.tbrq,
-                        temp: that.saveShowList.tearly1 || '',
-                        mcgzm: that.formState.mcgzm,
-                    }
-                    that.isDisabled = true
-                } else {
+                      id: that.saveShowList.id || "",
+                      bc: that.formState.bc,
+                      count: that.formState.count,
+                      jcdd: that.formState.jcdd,
+                      jcy: that.formState.jcy,
+                      time: that.formState.time,
+                      ch4: that.saveShowList.ch4Early1 || "",
+                      co2: that.saveShowList.co2Early1 || "",
+                      co: that.saveShowList.coEarly1 || "",
+                      o2: that.saveShowList.o2Early1 || "",
+                      jw: that.saveShowList.jwSdzEarly1 || "",
+                      // gw: that.saveShowList.gwSdzEarly1 || '',
+                      // bxy: that.saveShowList.bxySdzEarly1 || '',
+                      tbrq: that.formState.tbrq,
+                      temp: that.saveShowList.tearly1 || "",
+                      mcgzm: that.formState.mcgzm,
+                    };
+                    that.isDisabled = true;
+                  } else {
                     that.formState = {
-                        id: that.formState.id,
-                        bc: that.formState.bc,
-                        count: that.formState.count,
-                        jcdd: that.formState.jcdd,
-                        jcy: that.formState.jcy,
-                        time: that.formState.time,
-                        ch4: '',
-                        co2: '',
-                        co: '',
-                        o2: '',
-                        jw: '',
-                        // gw: '',
-                        // bxy: '',
-                        tbrq: that.formState.tbrq,
-                        temp: '',
-                        mcgzm: that.formState.mcgzm,
-                    }
-                    that.isDisabled = false
-                }
-            } else if (that.formState.bc == '早班' && that.formState.count == '第二次') {
-                if (that.saveShowList.bxySdzEarly2 || that.saveShowList.ch4Early2 || that.saveShowList.co2Early2 || that.saveShowList.coEarly2 || that.saveShowList.gwSdzEarly2 || that.saveShowList.jwSdzEarly2 || that.saveShowList.o2Early2 || that.saveShowList.tearly2) {
+                      id: that.formState.id,
+                      bc: that.formState.bc,
+                      count: that.formState.count,
+                      jcdd: that.formState.jcdd,
+                      jcy: that.formState.jcy,
+                      time: that.formState.time,
+                      ch4: "",
+                      co2: "",
+                      co: "",
+                      o2: "",
+                      jw: "",
+                      // gw: '',
+                      // bxy: '',
+                      tbrq: that.formState.tbrq,
+                      temp: "",
+                      mcgzm: that.formState.mcgzm,
+                    };
+                    that.isDisabled = false;
+                  }
+                } else if (
+                  that.formState.bc == "早班" &&
+                  that.formState.count == "第二次"
+                ) {
+                  if (
+                    that.saveShowList.bxySdzEarly2 ||
+                    that.saveShowList.ch4Early2 ||
+                    that.saveShowList.co2Early2 ||
+                    that.saveShowList.coEarly2 ||
+                    that.saveShowList.gwSdzEarly2 ||
+                    that.saveShowList.jwSdzEarly2 ||
+                    that.saveShowList.o2Early2 ||
+                    that.saveShowList.tearly2
+                  ) {
                     that.formState = {
-                        id: that.saveShowList.id || '',
-                        bc: that.formState.bc,
-                        count: that.formState.count,
-                        jcdd: that.formState.jcdd,
-                        jcy: that.formState.jcy,
-                        time: that.formState.time,
-                        ch4: that.saveShowList.ch4Early2 || '',
-                        co2: that.saveShowList.co2Early2 || '',
-                        co: that.saveShowList.coEarly2 || '',
-                        o2: that.saveShowList.o2Early2 || '',
-                        jw: that.saveShowList.jwSdzEarly2 || '',
-                        // gw: that.saveShowList.gwSdzEarly2 || '',
-                        // bxy: that.saveShowList.bxySdzEarly2 || '',
-                        tbrq: that.formState.tbrq,
-                        temp: that.saveShowList.tearly2 || '',
-                        mcgzm: that.formState.mcgzm,
-                    }
-                    that.isDisabled = true
-                } else {
+                      id: that.saveShowList.id || "",
+                      bc: that.formState.bc,
+                      count: that.formState.count,
+                      jcdd: that.formState.jcdd,
+                      jcy: that.formState.jcy,
+                      time: that.formState.time,
+                      ch4: that.saveShowList.ch4Early2 || "",
+                      co2: that.saveShowList.co2Early2 || "",
+                      co: that.saveShowList.coEarly2 || "",
+                      o2: that.saveShowList.o2Early2 || "",
+                      jw: that.saveShowList.jwSdzEarly2 || "",
+                      // gw: that.saveShowList.gwSdzEarly2 || '',
+                      // bxy: that.saveShowList.bxySdzEarly2 || '',
+                      tbrq: that.formState.tbrq,
+                      temp: that.saveShowList.tearly2 || "",
+                      mcgzm: that.formState.mcgzm,
+                    };
+                    that.isDisabled = true;
+                  } else {
                     that.formState = {
-                        id: that.formState.id,
-                        bc: that.formState.bc,
-                        count: that.formState.count,
-                        jcdd: that.formState.jcdd,
-                        jcy: that.formState.jcy,
-                        time: that.formState.time,
-                        ch4: '',
-                        co2: '',
-                        co: '',
-                        o2: '',
-                        jw: '',
-                        // gw: '',
-                        // bxy: '',
-                        tbrq: that.formState.tbrq,
-                        temp: '',
-                        mcgzm: that.formState.mcgzm,
-                    }
-                    that.isDisabled = false
-                }
-            } else if (that.formState.bc == '中班' && that.formState.count == '第一次') {
-                if (that.saveShowList.bxySdzNoon1 || that.saveShowList.ch4Noon1 || that.saveShowList.co2Noon1 || that.saveShowList.coNoon1 || that.saveShowList.gwSdzNoon1 || that.saveShowList.jwSdzNoon1 || that.saveShowList.o2Noon1 || that.saveShowList.tnoon1) {
+                      id: that.formState.id,
+                      bc: that.formState.bc,
+                      count: that.formState.count,
+                      jcdd: that.formState.jcdd,
+                      jcy: that.formState.jcy,
+                      time: that.formState.time,
+                      ch4: "",
+                      co2: "",
+                      co: "",
+                      o2: "",
+                      jw: "",
+                      // gw: '',
+                      // bxy: '',
+                      tbrq: that.formState.tbrq,
+                      temp: "",
+                      mcgzm: that.formState.mcgzm,
+                    };
+                    that.isDisabled = false;
+                  }
+                } else if (
+                  that.formState.bc == "中班" &&
+                  that.formState.count == "第一次"
+                ) {
+                  if (
+                    that.saveShowList.bxySdzNoon1 ||
+                    that.saveShowList.ch4Noon1 ||
+                    that.saveShowList.co2Noon1 ||
+                    that.saveShowList.coNoon1 ||
+                    that.saveShowList.gwSdzNoon1 ||
+                    that.saveShowList.jwSdzNoon1 ||
+                    that.saveShowList.o2Noon1 ||
+                    that.saveShowList.tnoon1
+                  ) {
                     that.formState = {
-                        id: that.saveShowList.id || '',
-                        bc: that.formState.bc,
-                        count: that.formState.count,
-                        jcdd: that.formState.jcdd,
-                        jcy: that.formState.jcy,
-                        time: that.formState.time,
-                        ch4: that.saveShowList.ch4Noon1 || '',
-                        co2: that.saveShowList.co2Noon1 || '',
-                        co: that.saveShowList.coNoon1 || '',
-                        o2: that.saveShowList.o2Noon1 || '',
-                        jw: that.saveShowList.jwSdzNoon1 || '',
-                        // gw: that.saveShowList.gwSdzNoon1 || '',
-                        // bxy: that.saveShowList.bxySdzNoon1 || '',
-                        tbrq: that.formState.tbrq,
-                        temp: that.saveShowList.tnoon1 || '',
-                        mcgzm: that.formState.mcgzm,
-                    }
-                    that.isDisabled = true
-                } else {
+                      id: that.saveShowList.id || "",
+                      bc: that.formState.bc,
+                      count: that.formState.count,
+                      jcdd: that.formState.jcdd,
+                      jcy: that.formState.jcy,
+                      time: that.formState.time,
+                      ch4: that.saveShowList.ch4Noon1 || "",
+                      co2: that.saveShowList.co2Noon1 || "",
+                      co: that.saveShowList.coNoon1 || "",
+                      o2: that.saveShowList.o2Noon1 || "",
+                      jw: that.saveShowList.jwSdzNoon1 || "",
+                      // gw: that.saveShowList.gwSdzNoon1 || '',
+                      // bxy: that.saveShowList.bxySdzNoon1 || '',
+                      tbrq: that.formState.tbrq,
+                      temp: that.saveShowList.tnoon1 || "",
+                      mcgzm: that.formState.mcgzm,
+                    };
+                    that.isDisabled = true;
+                  } else {
                     that.formState = {
-                        id: that.formState.id,
-                        bc: that.formState.bc,
-                        count: that.formState.count,
-                        jcdd: that.formState.jcdd,
-                        jcy: that.formState.jcy,
-                        time: that.formState.time,
-                        ch4: '',
-                        co2: '',
-                        co: '',
-                        o2: '',
-                        jw: '',
-                        // gw: '',
-                        // bxy: '',
-                        tbrq: that.formState.tbrq,
-                        temp: '',
-                        mcgzm: that.formState.mcgzm,
-                    }
-                    that.isDisabled = false
-                }
-            } else if (that.formState.bc == '中班' && that.formState.count == '第二次') {
-                if (that.saveShowList.bxySdzNoon2 || that.saveShowList.ch4Noon2 || that.saveShowList.co2Noon2 || that.saveShowList.coNoon2 || that.saveShowList.gwSdzNoon2 || that.saveShowList.jwSdzNoon2 || that.saveShowList.o2Noon2 || that.saveShowList.tnoon2) {
+                      id: that.formState.id,
+                      bc: that.formState.bc,
+                      count: that.formState.count,
+                      jcdd: that.formState.jcdd,
+                      jcy: that.formState.jcy,
+                      time: that.formState.time,
+                      ch4: "",
+                      co2: "",
+                      co: "",
+                      o2: "",
+                      jw: "",
+                      // gw: '',
+                      // bxy: '',
+                      tbrq: that.formState.tbrq,
+                      temp: "",
+                      mcgzm: that.formState.mcgzm,
+                    };
+                    that.isDisabled = false;
+                  }
+                } else if (
+                  that.formState.bc == "中班" &&
+                  that.formState.count == "第二次"
+                ) {
+                  if (
+                    that.saveShowList.bxySdzNoon2 ||
+                    that.saveShowList.ch4Noon2 ||
+                    that.saveShowList.co2Noon2 ||
+                    that.saveShowList.coNoon2 ||
+                    that.saveShowList.gwSdzNoon2 ||
+                    that.saveShowList.jwSdzNoon2 ||
+                    that.saveShowList.o2Noon2 ||
+                    that.saveShowList.tnoon2
+                  ) {
                     that.formState = {
-                        id: that.saveShowList.id || '',
-                        bc: that.formState.bc,
-                        count: that.formState.count,
-                        jcdd: that.formState.jcdd,
-                        jcy: that.formState.jcy,
-                        time: that.formState.time,
-                        ch4: that.saveShowList.ch4Noon2 || '',
-                        co2: that.saveShowList.co2Noon2 || '',
-                        co: that.saveShowList.coNoon2 || '',
-                        o2: that.saveShowList.o2Noon2 || '',
-                        jw: that.saveShowList.jwSdzNoon2 || '',
-                        // gw: that.saveShowList.gwSdzNoon2 || '',
-                        // bxy: that.saveShowList.bxySdzNoon2 || '',
-                        tbrq: that.formState.tbrq,
-                        temp: that.saveShowList.tnoon2 || '',
-                        mcgzm: that.formState.mcgzm,
-                    }
-                    that.isDisabled = true
-                } else {
+                      id: that.saveShowList.id || "",
+                      bc: that.formState.bc,
+                      count: that.formState.count,
+                      jcdd: that.formState.jcdd,
+                      jcy: that.formState.jcy,
+                      time: that.formState.time,
+                      ch4: that.saveShowList.ch4Noon2 || "",
+                      co2: that.saveShowList.co2Noon2 || "",
+                      co: that.saveShowList.coNoon2 || "",
+                      o2: that.saveShowList.o2Noon2 || "",
+                      jw: that.saveShowList.jwSdzNoon2 || "",
+                      // gw: that.saveShowList.gwSdzNoon2 || '',
+                      // bxy: that.saveShowList.bxySdzNoon2 || '',
+                      tbrq: that.formState.tbrq,
+                      temp: that.saveShowList.tnoon2 || "",
+                      mcgzm: that.formState.mcgzm,
+                    };
+                    that.isDisabled = true;
+                  } else {
                     that.formState = {
-                        id: that.formState.id,
-                        bc: that.formState.bc,
-                        count: that.formState.count,
-                        jcdd: that.formState.jcdd,
-                        jcy: that.formState.jcy,
-                        time: that.formState.time,
-                        ch4: '',
-                        co2: '',
-                        co: '',
-                        o2: '',
-                        jw: '',
-                        // gw: '',
-                        // bxy: '',
-                        tbrq: that.formState.tbrq,
-                        temp: '',
-                        mcgzm: that.formState.mcgzm,
-                    }
-                    that.isDisabled = false
-                }
-            } else if (that.formState.bc == '夜班' && that.formState.count == '第一次') {
-                if (that.saveShowList.bxySdzNight1 || that.saveShowList.ch4Night1 || that.saveShowList.co2Night1 || that.saveShowList.coNight1 || that.saveShowList.gwSdzNight1 || that.saveShowList.jwSdzNight1 || that.saveShowList.o2Night1 || that.saveShowList.tnight1) {
+                      id: that.formState.id,
+                      bc: that.formState.bc,
+                      count: that.formState.count,
+                      jcdd: that.formState.jcdd,
+                      jcy: that.formState.jcy,
+                      time: that.formState.time,
+                      ch4: "",
+                      co2: "",
+                      co: "",
+                      o2: "",
+                      jw: "",
+                      // gw: '',
+                      // bxy: '',
+                      tbrq: that.formState.tbrq,
+                      temp: "",
+                      mcgzm: that.formState.mcgzm,
+                    };
+                    that.isDisabled = false;
+                  }
+                } else if (
+                  that.formState.bc == "夜班" &&
+                  that.formState.count == "第一次"
+                ) {
+                  if (
+                    that.saveShowList.bxySdzNight1 ||
+                    that.saveShowList.ch4Night1 ||
+                    that.saveShowList.co2Night1 ||
+                    that.saveShowList.coNight1 ||
+                    that.saveShowList.gwSdzNight1 ||
+                    that.saveShowList.jwSdzNight1 ||
+                    that.saveShowList.o2Night1 ||
+                    that.saveShowList.tnight1
+                  ) {
                     that.formState = {
-                        id: that.saveShowList.id || '',
-                        bc: that.formState.bc,
-                        count: that.formState.count,
-                        jcdd: that.formState.jcdd,
-                        jcy: that.formState.jcy,
-                        time: that.formState.time,
-                        ch4: that.saveShowList.ch4Night1 || '',
-                        co2: that.saveShowList.co2Night1 || '',
-                        co: that.saveShowList.coNight1 || '',
-                        o2: that.saveShowList.o2Night1 || '',
-                        jw: that.saveShowList.jwSdzNight1 || '',
-                        // gw: that.saveShowList.gwSdzNight1 || '',
-                        // bxy: that.saveShowList.bxySdzNight1 || '',
-                        tbrq: that.formState.tbrq,
-                        temp: that.saveShowList.tnight1 || '',
-                        mcgzm: that.formState.mcgzm,
-                    }
-                    that.isDisabled = true
-                } else {
+                      id: that.saveShowList.id || "",
+                      bc: that.formState.bc,
+                      count: that.formState.count,
+                      jcdd: that.formState.jcdd,
+                      jcy: that.formState.jcy,
+                      time: that.formState.time,
+                      ch4: that.saveShowList.ch4Night1 || "",
+                      co2: that.saveShowList.co2Night1 || "",
+                      co: that.saveShowList.coNight1 || "",
+                      o2: that.saveShowList.o2Night1 || "",
+                      jw: that.saveShowList.jwSdzNight1 || "",
+                      // gw: that.saveShowList.gwSdzNight1 || '',
+                      // bxy: that.saveShowList.bxySdzNight1 || '',
+                      tbrq: that.formState.tbrq,
+                      temp: that.saveShowList.tnight1 || "",
+                      mcgzm: that.formState.mcgzm,
+                    };
+                    that.isDisabled = true;
+                  } else {
                     that.formState = {
-                        id: that.formState.id,
-                        bc: that.formState.bc,
-                        count: that.formState.count,
-                        jcdd: that.formState.jcdd,
-                        jcy: that.formState.jcy,
-                        time: that.formState.time,
-                        ch4: '',
-                        co2: '',
-                        co: '',
-                        o2: '',
-                        jw: '',
-                        // gw: '',
-                        // bxy: '',
-                        tbrq: that.formState.tbrq,
-                        temp: '',
-                        mcgzm: that.formState.mcgzm,
-                    }
-                    that.isDisabled = false
-                }
-            } else if (that.formState.bc == '夜班' && that.formState.count == '第二次') {
-                if (that.saveShowList.bxySdzNight2 || that.saveShowList.ch4Night2 || that.saveShowList.co2Night2 || that.saveShowList.coNight2 || that.saveShowList.gwSdzNight2 || that.saveShowList.jwSdzNight2 || that.saveShowList.o2Night2 || that.saveShowList.tnight2) {
+                      id: that.formState.id,
+                      bc: that.formState.bc,
+                      count: that.formState.count,
+                      jcdd: that.formState.jcdd,
+                      jcy: that.formState.jcy,
+                      time: that.formState.time,
+                      ch4: "",
+                      co2: "",
+                      co: "",
+                      o2: "",
+                      jw: "",
+                      // gw: '',
+                      // bxy: '',
+                      tbrq: that.formState.tbrq,
+                      temp: "",
+                      mcgzm: that.formState.mcgzm,
+                    };
+                    that.isDisabled = false;
+                  }
+                } else if (
+                  that.formState.bc == "夜班" &&
+                  that.formState.count == "第二次"
+                ) {
+                  if (
+                    that.saveShowList.bxySdzNight2 ||
+                    that.saveShowList.ch4Night2 ||
+                    that.saveShowList.co2Night2 ||
+                    that.saveShowList.coNight2 ||
+                    that.saveShowList.gwSdzNight2 ||
+                    that.saveShowList.jwSdzNight2 ||
+                    that.saveShowList.o2Night2 ||
+                    that.saveShowList.tnight2
+                  ) {
                     that.formState = {
-                        id: that.saveShowList.id || '',
-                        bc: that.formState.bc,
-                        count: that.formState.count,
-                        jcdd: that.formState.jcdd,
-                        jcy: that.formState.jcy,
-                        time: that.formState.time,
-                        ch4: that.saveShowList.ch4Night2 || '',
-                        co2: that.saveShowList.co2Night2 || '',
-                        co: that.saveShowList.coNight2 || '',
-                        o2: that.saveShowList.o2Night2 || '',
-                        jw: that.saveShowList.jwSdzNight2 || '',
-                        // gw: that.saveShowList.gwSdzNight2 || '',
-                        // bxy: that.saveShowList.bxySdzNight2 || '',
-                        tbrq: that.formState.tbrq,
-                        temp: that.saveShowList.tnight2 || '',
-                        mcgzm: that.formState.mcgzm,
-                    }
-                    that.isDisabled = true
-                } else {
+                      id: that.saveShowList.id || "",
+                      bc: that.formState.bc,
+                      count: that.formState.count,
+                      jcdd: that.formState.jcdd,
+                      jcy: that.formState.jcy,
+                      time: that.formState.time,
+                      ch4: that.saveShowList.ch4Night2 || "",
+                      co2: that.saveShowList.co2Night2 || "",
+                      co: that.saveShowList.coNight2 || "",
+                      o2: that.saveShowList.o2Night2 || "",
+                      jw: that.saveShowList.jwSdzNight2 || "",
+                      // gw: that.saveShowList.gwSdzNight2 || '',
+                      // bxy: that.saveShowList.bxySdzNight2 || '',
+                      tbrq: that.formState.tbrq,
+                      temp: that.saveShowList.tnight2 || "",
+                      mcgzm: that.formState.mcgzm,
+                    };
+                    that.isDisabled = true;
+                  } else {
                     that.formState = {
-                        id: that.formState.id,
-                        bc: that.formState.bc,
-                        count: that.formState.count,
-                        jcdd: that.formState.jcdd,
-                        jcy: that.formState.jcy,
-                        time: that.formState.time,
-                        ch4: '',
-                        co2: '',
-                        co: '',
-                        o2: '',
-                        jw: '',
-                        // gw: '',
-                        // bxy: '',
-                        tbrq: that.formState.tbrq,
-                        temp: '',
-                        mcgzm: that.formState.mcgzm,
-                    }
-                    that.isDisabled = false
+                      id: that.formState.id,
+                      bc: that.formState.bc,
+                      count: that.formState.count,
+                      jcdd: that.formState.jcdd,
+                      jcy: that.formState.jcy,
+                      time: that.formState.time,
+                      ch4: "",
+                      co2: "",
+                      co: "",
+                      o2: "",
+                      jw: "",
+                      // gw: '',
+                      // bxy: '',
+                      tbrq: that.formState.tbrq,
+                      temp: "",
+                      mcgzm: that.formState.mcgzm,
+                    };
+                    that.isDisabled = false;
+                  }
                 }
-            }
-        },
-        //检测地点拉选项切换
-        changeJc(e) {
-            let that = this
-            that.formState.jcdd = e
-            that.deviceId = that.rangeJcdd.filter(v => v.text == e)[0].deviceId
-            new Promise((resolve, reject) => {
-                api
-                    .getGas({ reportTime: that.formState.tbrq, deviceId: that.deviceId })
-                    .then((response) => {
-                        if (response.data.code == 200) {
-                            let data = response.data.result.records
-                            if (data.length != 0) {
-                                that.saveShowList = data[0]
-                                if (that.formState.bc == '早班' && that.formState.count == '第一次') {
-                                    if (that.saveShowList.bxySdzEarly1 || that.saveShowList.ch4Early1 || that.saveShowList.co2Early1 || that.saveShowList.coEarly1 || that.saveShowList.gwSdzEarly1 || that.saveShowList.jwSdzEarly1 || that.saveShowList.o2Early1 || that.saveShowList.tearly1) {
-                                        that.formState = {
-                                            id: that.saveShowList.id || '',
-                                            bc: that.formState.bc,
-                                            count: that.formState.count,
-                                            jcdd: that.formState.jcdd,
-                                            jcy: that.formState.jcy,
-                                            time: that.formState.time,
-                                            ch4: that.saveShowList.ch4Early1 || '',
-                                            co2: that.saveShowList.co2Early1 || '',
-                                            co: that.saveShowList.coEarly1 || '',
-                                            o2: that.saveShowList.o2Early1 || '',
-                                            jw: that.saveShowList.jwSdzEarly1 || '',
-                                            // gw: that.saveShowList.gwSdzEarly1 || '',
-                                            // bxy: that.saveShowList.bxySdzEarly1 || '',
-                                            tbrq: that.formState.tbrq,
-                                            temp: that.saveShowList.tearly1 || '',
-                                            mcgzm: that.formState.mcgzm,
-                                        }
-                                        that.isDisabled = true
-                                    } else {
-                                        that.formState = {
-                                            id: that.formState.id,
-                                            bc: that.formState.bc,
-                                            count: that.formState.count,
-                                            jcdd: that.formState.jcdd,
-                                            jcy: that.formState.jcy,
-                                            time: that.formState.time,
-                                            ch4: '',
-                                            co2: '',
-                                            co: '',
-                                            o2: '',
-                                            jw: '',
-                                            // gw: '',
-                                            // bxy: '',
-                                            tbrq: that.formState.tbrq,
-                                            temp: '',
-                                            mcgzm: that.formState.mcgzm,
-                                        }
-                                        that.isDisabled = false
-                                    }
-                                } else if (that.formState.bc == '早班' && that.formState.count == '第二次') {
-                                    if (that.saveShowList.bxySdzEarly2 || that.saveShowList.ch4Early2 || that.saveShowList.co2Early2 || that.saveShowList.coEarly2 || that.saveShowList.gwSdzEarly2 || that.saveShowList.jwSdzEarly2 || that.saveShowList.o2Early2 || that.saveShowList.tearly2) {
-                                        that.formState = {
-                                            id: that.saveShowList.id || '',
-                                            bc: that.formState.bc,
-                                            count: that.formState.count,
-                                            jcdd: that.formState.jcdd,
-                                            jcy: that.formState.jcy,
-                                            time: that.formState.time,
-                                            ch4: that.saveShowList.ch4Early2 || '',
-                                            co2: that.saveShowList.co2Early2 || '',
-                                            co: that.saveShowList.coEarly2 || '',
-                                            o2: that.saveShowList.o2Early2 || '',
-                                            jw: that.saveShowList.jwSdzEarly2 || '',
-                                            // gw: that.saveShowList.gwSdzEarly2 || '',
-                                            // bxy: that.saveShowList.bxySdzEarly2 || '',
-                                            tbrq: that.formState.tbrq,
-                                            temp: that.saveShowList.tearly2 || '',
-                                            mcgzm: that.formState.mcgzm,
-                                        }
-                                        that.isDisabled = true
-                                    } else {
-                                        that.formState = {
-                                            id: that.formState.id,
-                                            bc: that.formState.bc,
-                                            count: that.formState.count,
-                                            jcdd: that.formState.jcdd,
-                                            jcy: that.formState.jcy,
-                                            time: that.formState.time,
-                                            ch4: '',
-                                            co2: '',
-                                            co: '',
-                                            o2: '',
-                                            jw: '',
-                                            // gw: '',
-                                            // bxy: '',
-                                            tbrq: that.formState.tbrq,
-                                            temp: '',
-                                            mcgzm: that.formState.mcgzm,
-                                        }
-                                        that.isDisabled = false
-                                    }
-                                } else if (that.formState.bc == '中班' && that.formState.count == '第一次') {
-                                    if (that.saveShowList.bxySdzNoon1 || that.saveShowList.ch4Noon1 || that.saveShowList.co2Noon1 || that.saveShowList.coNoon1 || that.saveShowList.gwSdzNoon1 || that.saveShowList.jwSdzNoon1 || that.saveShowList.o2Noon1 || that.saveShowList.tnoon1) {
-                                        that.formState = {
-                                            id: that.saveShowList.id || '',
-                                            bc: that.formState.bc,
-                                            count: that.formState.count,
-                                            jcdd: that.formState.jcdd,
-                                            jcy: that.formState.jcy,
-                                            time: that.formState.time,
-                                            // ch4: that.saveShowList.bxySdzNoon1 || '',
-                                            ch4: that.saveShowList.ch4Noon1 || '',
-                                            co2: that.saveShowList.co2Noon1 || '',
-                                            co: that.saveShowList.coNoon1 || '',
-                                            o2: that.saveShowList.o2Noon1 || '',
-                                            jw: that.saveShowList.jwSdzNoon1 || '',
-                                            // gw: that.saveShowList.gwSdzNoon1 || '',
-                                            // bxy: that.saveShowList.bxySdzNoon1 || '',
-                                            tbrq: that.formState.tbrq,
-                                            temp: that.saveShowList.tnoon1 || '',
-                                            mcgzm: that.formState.mcgzm,
-                                        }
-                                        that.isDisabled = true
-                                    } else {
-                                        that.formState = {
-                                            id: that.formState.id,
-                                            bc: that.formState.bc,
-                                            count: that.formState.count,
-                                            jcdd: that.formState.jcdd,
-                                            jcy: that.formState.jcy,
-                                            time: that.formState.time,
-                                            ch4: '',
-                                            co2: '',
-                                            co: '',
-                                            o2: '',
-                                            jw: '',
-                                            // gw: '',
-                                            // bxy: '',
-                                            tbrq: that.formState.tbrq,
-                                            temp: '',
-                                            mcgzm: that.formState.mcgzm,
-                                        }
-                                        that.isDisabled = false
-                                    }
-                                } else if (that.formState.bc == '中班' && that.formState.count == '第二次') {
-                                    if (that.saveShowList.bxySdzNoon2 || that.saveShowList.ch4Noon2 || that.saveShowList.co2Noon2 || that.saveShowList.coNoon2 || that.saveShowList.gwSdzNoon2 || that.saveShowList.jwSdzNoon2 || that.saveShowList.o2Noon2 || that.saveShowList.tnoon2) {
-                                        that.formState = {
-                                            id: that.saveShowList.id || '',
-                                            bc: that.formState.bc,
-                                            count: that.formState.count,
-                                            jcdd: that.formState.jcdd,
-                                            jcy: that.formState.jcy,
-                                            time: that.formState.time,
-                                            ch4: that.saveShowList.ch4Noon2 || '',
-                                            co2: that.saveShowList.co2Noon2 || '',
-                                            co: that.saveShowList.coNoon2 || '',
-                                            o2: that.saveShowList.o2Noon2 || '',
-                                            jw: that.saveShowList.jwSdzNoon2 || '',
-                                            // gw: that.saveShowList.gwSdzNoon2 || '',
-                                            // bxy: that.saveShowList.bxySdzNoon2 || '',
-                                            tbrq: that.formState.tbrq,
-                                            temp: that.saveShowList.tnoon2 || '',
-                                            mcgzm: that.formState.mcgzm,
-                                        }
-                                        that.isDisabled = true
-                                    } else {
-                                        that.formState = {
-                                            id: that.formState.id,
-                                            bc: that.formState.bc,
-                                            count: that.formState.count,
-                                            jcdd: that.formState.jcdd,
-                                            jcy: that.formState.jcy,
-                                            time: that.formState.time,
-                                            ch4: '',
-                                            co2: '',
-                                            co: '',
-                                            o2: '',
-                                            jw: '',
-                                            // gw: '',
-                                            // bxy: '',
-                                            tbrq: that.formState.tbrq,
-                                            temp: '',
-                                            mcgzm: that.formState.mcgzm,
-                                        }
-                                        that.isDisabled = false
-                                    }
-                                } else if (that.formState.bc == '夜班' && that.formState.count == '第一次') {
-                                    if (that.saveShowList.bxySdzNight1 || that.saveShowList.ch4Night1 || that.saveShowList.co2Night1 || that.saveShowList.coNight1 || that.saveShowList.gwSdzNight1 || that.saveShowList.jwSdzNight1 || that.saveShowList.o2Night1 || that.saveShowList.tnight1) {
-                                        that.formState = {
-                                            id: that.saveShowList.id || '',
-                                            bc: that.formState.bc,
-                                            count: that.formState.count,
-                                            jcdd: that.formState.jcdd,
-                                            jcy: that.formState.jcy,
-                                            time: that.formState.time,
-                                            ch4: that.saveShowList.ch4Night1 || '',
-                                            co2: that.saveShowList.co2Night1 || '',
-                                            co: that.saveShowList.coNight1 || '',
-                                            o2: that.saveShowList.o2Night1 || '',
-                                            jw: that.saveShowList.jwSdzNight1 || '',
-                                            // gw: that.saveShowList.gwSdzNight1 || '',
-                                            // bxy: that.saveShowList.bxySdzNight1 || '',
-                                            tbrq: that.formState.tbrq,
-                                            temp: that.saveShowList.tnight1 || '',
-                                            mcgzm: that.formState.mcgzm,
-                                        }
-                                        that.isDisabled = true
-                                    } else {
-                                        that.formState = {
-                                            id: that.formState.id,
-                                            bc: that.formState.bc,
-                                            count: that.formState.count,
-                                            jcdd: that.formState.jcdd,
-                                            jcy: that.formState.jcy,
-                                            time: that.formState.time,
-                                            ch4: '',
-                                            co2: '',
-                                            co: '',
-                                            o2: '',
-                                            jw: '',
-                                            // gw: '',
-                                            // bxy: '',
-                                            tbrq: that.formState.tbrq,
-                                            temp: '',
-                                            mcgzm: that.formState.mcgzm,
-                                        }
-                                        that.isDisabled = false
-                                    }
-                                } else if (that.formState.bc == '夜班' && that.formState.count == '第二次') {
-                                    if (that.saveShowList.bxySdzNight2 || that.saveShowList.ch4Night2 || that.saveShowList.co2Night2 || that.saveShowList.coNight2 || that.saveShowList.gwSdzNight2 || that.saveShowList.jwSdzNight2 || that.saveShowList.o2Night2 || that.saveShowList.tnight2) {
-                                        that.formState = {
-                                            id: that.saveShowList.id || '',
-                                            bc: that.formState.bc,
-                                            count: that.formState.count,
-                                            jcdd: that.formState.jcdd,
-                                            jcy: that.formState.jcy,
-                                            time: that.formState.time,
-                                            ch4: that.saveShowList.ch4Night2 || '',
-                                            co2: that.saveShowList.co2Night2 || '',
-                                            co: that.saveShowList.coNight2 || '',
-                                            o2: that.saveShowList.o2Night2 || '',
-                                            jw: that.saveShowList.jwSdzNight2 || '',
-                                            // gw: that.saveShowList.gwSdzNight2 || '',
-                                            // bxy: that.saveShowList.bxySdzNight2 || '',
-                                            tbrq: that.formState.tbrq,
-                                            temp: that.saveShowList.tnight2 || '',
-                                            mcgzm: that.formState.mcgzm,
-                                        }
-                                        that.isDisabled = true
-                                    } else {
-                                        that.formState = {
-                                            id: that.formState.id,
-                                            bc: that.formState.bc,
-                                            count: that.formState.count,
-                                            jcdd: that.formState.jcdd,
-                                            jcy: that.formState.jcy,
-                                            time: that.formState.time,
-                                            ch4: '',
-                                            co2: '',
-                                            co: '',
-                                            o2: '',
-                                            jw: '',
-                                            // gw: '',
-                                            // bxy: '',
-                                            tbrq: that.formState.tbrq,
-                                            temp: '',
-                                            mcgzm: that.formState.mcgzm,
-                                        }
-                                        that.isDisabled = false
-                                    }
-                                }
-                            } else {
-                                that.isDisabled = false
-                                that.saveShowList = {}
-                                that.formState = {
-                                    id: '',
-                                    bc: that.formState.bc || '',
-                                    count: that.formState.count || '',
-                                    jcdd: that.formState.jcdd || '',
-                                    mcgzm: that.formState.mcgzm || '',
-                                    jcy: that.formState.jcy || '',
-                                    time: that.formState.time,
-                                    tbrq: that.formState.tbrq,
-                                    ch4: '',
-                                    co2: '',
-                                    co: '',
-                                    o2: '',
-                                    jw: '',
-                                    // gw: '',
-                                    // bxy: '',
-                                    temp: '',
-                                }
-                            }
-                        } else {
-                            reject(response);
-                        }
-                    })
-                    .catch((error) => {
-                        console.log("catch===>response", response);
-                        reject(error);
-                    });
-            });
-        },
-        //工作面煤层选项切换
-        changeMc(e) {
-            this.formState.mcgzm = e
-            this.getSelectList()
-        },
-        //检测时间下拉选项切换
-        change(e) {
-            let that = this
-            // that.formState.time = moment(e.value).format('YYYY-MM-DD HH:mm:ss')
-            // that.formState.tbrq = moment(e.value).format('YYYY-MM-DD')
-            new Promise((resolve, reject) => {
-                api
-                    .getGas({ reportTime: that.formState.tbrq, deviceId: that.deviceId })
-                    .then((response) => {
-                        if (response.data.code == 200) {
-                            let data = response.data.result.records
-                            if (data.length != 0) {
-                                that.saveShowList = data[0]
-                                if (that.formState.bc == '早班' && that.formState.count == '第一次') {
-                                    if (that.saveShowList.bxySdzEarly1 || that.saveShowList.ch4Early1 || that.saveShowList.co2Early1 || that.saveShowList.coEarly1 || that.saveShowList.gwSdzEarly1 || that.saveShowList.jwSdzEarly1 || that.saveShowList.o2Early1 || that.saveShowList.tearly1) {
-                                        that.formState = {
-                                            id: that.saveShowList.id || '',
-                                            bc: that.formState.bc,
-                                            count: that.formState.count,
-                                            jcdd: that.formState.jcdd,
-                                            jcy: that.formState.jcy,
-                                            time: that.formState.time,
-                                            ch4: that.saveShowList.ch4Early1 || '',
-                                            co2: that.saveShowList.co2Early1 || '',
-                                            co: that.saveShowList.coEarly1 || '',
-                                            o2: that.saveShowList.o2Early1 || '',
-                                            jw: that.saveShowList.jwSdzEarly1 || '',
-                                            // gw: that.saveShowList.gwSdzEarly1 || '',
-                                            // bxy: that.saveShowList.bxySdzEarly1 || '',
-                                            tbrq: that.formState.tbrq,
-                                            temp: that.saveShowList.tearly1 || '',
-                                            mcgzm: that.formState.mcgzm,
-                                        }
-                                        that.isDisabled = true
-                                    } else {
-                                        that.formState = {
-                                            id: that.formState.id,
-                                            bc: that.formState.bc,
-                                            count: that.formState.count,
-                                            jcdd: that.formState.jcdd,
-                                            jcy: that.formState.jcy,
-                                            time: that.formState.time,
-                                            ch4: '',
-                                            co2: '',
-                                            co: '',
-                                            o2: '',
-                                            jw: '',
-                                            // gw: '',
-                                            // bxy: '',
-                                            tbrq: that.formState.tbrq,
-                                            temp: '',
-                                            mcgzm: that.formState.mcgzm,
-                                        }
-                                        that.isDisabled = false
-                                    }
-                                } else if (that.formState.bc == '早班' && that.formState.count == '第二次') {
-                                    if (that.saveShowList.bxySdzEarly2 || that.saveShowList.ch4Early2 || that.saveShowList.co2Early2 || that.saveShowList.coEarly2 || that.saveShowList.gwSdzEarly2 || that.saveShowList.jwSdzEarly2 || that.saveShowList.o2Early2 || that.saveShowList.tearly2) {
-                                        that.formState = {
-                                            id: that.saveShowList.id || '',
-                                            bc: that.formState.bc,
-                                            count: that.formState.count,
-                                            jcdd: that.formState.jcdd,
-                                            jcy: that.formState.jcy,
-                                            time: that.formState.time,
-                                            ch4: that.saveShowList.ch4Early2 || '',
-                                            co2: that.saveShowList.co2Early2 || '',
-                                            co: that.saveShowList.coEarly2 || '',
-                                            o2: that.saveShowList.o2Early2 || '',
-                                            jw: that.saveShowList.jwSdzEarly2 || '',
-                                            // gw: that.saveShowList.gwSdzEarly2 || '',
-                                            // bxy: that.saveShowList.bxySdzEarly2 || '',
-                                            tbrq: that.formState.tbrq,
-                                            temp: that.saveShowList.tearly2 || '',
-                                            mcgzm: that.formState.mcgzm,
-                                        }
-                                        that.isDisabled = true
-                                    } else {
-                                        that.formState = {
-                                            id: that.formState.id,
-                                            bc: that.formState.bc,
-                                            count: that.formState.count,
-                                            jcdd: that.formState.jcdd,
-                                            jcy: that.formState.jcy,
-                                            time: that.formState.time,
-                                            ch4: '',
-                                            co2: '',
-                                            co: '',
-                                            o2: '',
-                                            jw: '',
-                                            // gw: '',
-                                            // bxy: '',
-                                            tbrq: that.formState.tbrq,
-                                            temp: '',
-                                            mcgzm: that.formState.mcgzm,
-                                        }
-                                        that.isDisabled = false
-                                    }
-                                } else if (that.formState.bc == '中班' && that.formState.count == '第一次') {
-                                    if (that.saveShowList.bxySdzNoon1 || that.saveShowList.ch4Noon1 || that.saveShowList.co2Noon1 || that.saveShowList.coNoon1 || that.saveShowList.gwSdzNoon1 || that.saveShowList.jwSdzNoon1 || that.saveShowList.o2Noon1 || that.saveShowList.tnoon1) {
-                                        that.formState = {
-                                            id: that.saveShowList.id || '',
-                                            bc: that.formState.bc,
-                                            count: that.formState.count,
-                                            jcdd: that.formState.jcdd,
-                                            jcy: that.formState.jcy,
-                                            time: that.formState.time,
-                                            ch4: that.saveShowList.ch4Noon1 || '',
-                                            co2: that.saveShowList.co2Noon1 || '',
-                                            co: that.saveShowList.coNoon1 || '',
-                                            o2: that.saveShowList.o2Noon1 || '',
-                                            jw: that.saveShowList.jwSdzNoon1 || '',
-                                            // gw: that.saveShowList.gwSdzNoon1 || '',
-                                            // bxy: that.saveShowList.bxySdzNoon1 || '',
-                                            tbrq: that.formState.tbrq,
-                                            temp: that.saveShowList.tnoon1 || '',
-                                            mcgzm: that.formState.mcgzm,
-                                        }
-                                        that.isDisabled = true
-                                    } else {
-                                        that.formState = {
-                                            id: that.formState.id,
-                                            bc: that.formState.bc,
-                                            count: that.formState.count,
-                                            jcdd: that.formState.jcdd,
-                                            jcy: that.formState.jcy,
-                                            time: that.formState.time,
-                                            ch4: '',
-                                            co2: '',
-                                            co: '',
-                                            o2: '',
-                                            jw: '',
-                                            // gw: '',
-                                            // bxy: '',
-                                            tbrq: that.formState.tbrq,
-                                            temp: '',
-                                            mcgzm: that.formState.mcgzm,
-                                        }
-                                        that.isDisabled = false
-                                    }
-                                } else if (that.formState.bc == '中班' && that.formState.count == '第二次') {
-                                    if (that.saveShowList.bxySdzNoon2 || that.saveShowList.ch4Noon2 || that.saveShowList.co2Noon2 || that.saveShowList.coNoon2 || that.saveShowList.gwSdzNoon2 || that.saveShowList.jwSdzNoon2 || that.saveShowList.o2Noon2 || that.saveShowList.tnoon2) {
-                                        that.formState = {
-                                            id: that.saveShowList.id || '',
-                                            bc: that.formState.bc,
-                                            count: that.formState.count,
-                                            jcdd: that.formState.jcdd,
-                                            jcy: that.formState.jcy,
-                                            time: that.formState.time,
-                                            ch4: that.saveShowList.ch4Noon2 || '',
-                                            co2: that.saveShowList.co2Noon2 || '',
-                                            co: that.saveShowList.coNoon2 || '',
-                                            o2: that.saveShowList.o2Noon2 || '',
-                                            jw: that.saveShowList.jwSdzNoon2 || '',
-                                            // gw: that.saveShowList.gwSdzNoon2 || '',
-                                            // bxy: that.saveShowList.bxySdzNoon2 || '',
-                                            tbrq: that.formState.tbrq,
-                                            temp: that.saveShowList.tnoon2 || '',
-                                            mcgzm: that.formState.mcgzm,
-                                        }
-                                        that.isDisabled = true
-                                    } else {
-                                        that.formState = {
-                                            id: that.formState.id,
-                                            bc: that.formState.bc,
-                                            count: that.formState.count,
-                                            jcdd: that.formState.jcdd,
-                                            jcy: that.formState.jcy,
-                                            time: that.formState.time,
-                                            ch4: '',
-                                            co2: '',
-                                            co: '',
-                                            o2: '',
-                                            jw: '',
-                                            // gw: '',
-                                            // bxy: '',
-                                            tbrq: that.formState.tbrq,
-                                            temp: '',
-                                            mcgzm: that.formState.mcgzm,
-                                        }
-                                        that.isDisabled = false
-                                    }
-                                } else if (that.formState.bc == '夜班' && that.formState.count == '第一次') {
-                                    if (that.saveShowList.bxySdzNight1 || that.saveShowList.ch4Night1 || that.saveShowList.co2Night1 || that.saveShowList.coNight1 || that.saveShowList.gwSdzNight1 || that.saveShowList.jwSdzNight1 || that.saveShowList.o2Night1 || that.saveShowList.tnight1) {
-                                        that.formState = {
-                                            id: that.saveShowList.id || '',
-                                            bc: that.formState.bc,
-                                            count: that.formState.count,
-                                            jcdd: that.formState.jcdd,
-                                            jcy: that.formState.jcy,
-                                            time: that.formState.time,
-                                            ch4: that.saveShowList.ch4Night1 || '',
-                                            co2: that.saveShowList.co2Night1 || '',
-                                            co: that.saveShowList.coNight1 || '',
-                                            o2: that.saveShowList.o2Night1 || '',
-                                            jw: that.saveShowList.jwSdzNight1 || '',
-                                            // gw: that.saveShowList.gwSdzNight1 || '',
-                                            // bxy: that.saveShowList.bxySdzNight1 || '',
-                                            tbrq: that.formState.tbrq,
-                                            temp: that.saveShowList.tnight1 || '',
-                                            mcgzm: that.formState.mcgzm,
-                                        }
-                                        that.isDisabled = true
-                                    } else {
-                                        that.formState = {
-                                            id: that.formState.id,
-                                            bc: that.formState.bc,
-                                            count: that.formState.count,
-                                            jcdd: that.formState.jcdd,
-                                            jcy: that.formState.jcy,
-                                            time: that.formState.time,
-                                            ch4: '',
-                                            co2: '',
-                                            co: '',
-                                            o2: '',
-                                            jw: '',
-                                            // gw: '',
-                                            // bxy: '',
-                                            tbrq: that.formState.tbrq,
-                                            temp: '',
-                                            mcgzm: that.formState.mcgzm,
-                                        }
-                                        that.isDisabled = false
-                                    }
-                                } else if (that.formState.bc == '夜班' && that.formState.count == '第二次') {
-                                    if (that.saveShowList.bxySdzNight2 || that.saveShowList.ch4Night2 || that.saveShowList.co2Night2 || that.saveShowList.coNight2 || that.saveShowList.gwSdzNight2 || that.saveShowList.jwSdzNight2 || that.saveShowList.o2Night2 || that.saveShowList.tnight2) {
-                                        that.formState = {
-                                            id: that.saveShowList.id || '',
-                                            bc: that.formState.bc,
-                                            count: that.formState.count,
-                                            jcdd: that.formState.jcdd,
-                                            jcy: that.formState.jcy,
-                                            time: that.formState.time,
-                                            ch4: that.saveShowList.ch4Night2 || '',
-                                            co2: that.saveShowList.co2Night2 || '',
-                                            co: that.saveShowList.coNight2 || '',
-                                            o2: that.saveShowList.o2Night2 || '',
-                                            jw: that.saveShowList.jwSdzNight2 || '',
-                                            // gw: that.saveShowList.gwSdzNight2 || '',
-                                            // bxy: that.saveShowList.bxySdzNight2 || '',
-                                            tbrq: that.formState.tbrq,
-                                            temp: that.saveShowList.tnight2 || '',
-                                            mcgzm: that.formState.mcgzm,
-                                        }
-                                        that.isDisabled = true
-                                    } else {
-                                        that.formState = {
-                                            id: that.formState.id,
-                                            bc: that.formState.bc,
-                                            count: that.formState.count,
-                                            jcdd: that.formState.jcdd,
-                                            jcy: that.formState.jcy,
-                                            time: that.formState.time,
-                                            ch4: '',
-                                            co2: '',
-                                            co: '',
-                                            o2: '',
-                                            jw: '',
-                                            // gw: '',
-                                            // bxy: '',
-                                            tbrq: that.formState.tbrq,
-                                            temp: '',
-                                            mcgzm: that.formState.mcgzm,
-                                        }
-                                        that.isDisabled = false
-                                    }
-                                }
-                            } else {
-                                that.isDisabled = false
-                                that.saveShowList = {}
-                                that.formState = {
-                                    id: '',
-                                    bc: that.formState.bc || '',
-                                    count: that.formState.count || '',
-                                    jcdd: that.formState.jcdd || '',
-                                    mcgzm: that.formState.mcgzm || '',
-                                    jcy: that.formState.jcy || '',
-                                    time: that.formState.time,
-                                    tbrq: that.formState.tbrq,
-                                    ch4: '',
-                                    co2: '',
-                                    co: '',
-                                    o2: '',
-                                    jw: '',
-                                    // gw: '',
-                                    // bxy: '',
-                                    temp: '',
-                                }
-                            }
-                        } else {
-                            reject(response);
-                        }
-                    })
-                    .catch((error) => {
-                        console.log("catch===>response", response);
-                        reject(error);
-                    });
-            });
-
-        },
-        changeTb(e) {
-            this.tbTime = moment(e.value).format('YYYY-MM-DD')
-        },
-        //点击弹出日期下拉选项
-        getChangeTime() {
-            this.showCalendar = true
-        },
-        getChangeTimeTb() {
-            this.showCalendarTb = true
-        },
-        confirmTb() {
-            this.showCalendarTb = false
-            this.getGasList()
-        },
-        //输入框内容变换
-        changeInput(val, data) {
-            if (/^00/.test(val)) {
-                this.formState[data] = val.replace(/^00/, '0');
+              } else {
+                that.isDisabled = false;
+                that.saveShowList = {};
+                that.formState = {
+                  id: "",
+                  bc: that.formState.bc || "",
+                  count: that.formState.count || "",
+                  jcdd: that.formState.jcdd || "",
+                  mcgzm: that.formState.mcgzm || "",
+                  jcy: that.formState.jcy || "",
+                  time: that.formState.time,
+                  tbrq: that.formState.tbrq,
+                  ch4: "",
+                  co2: "",
+                  co: "",
+                  o2: "",
+                  jw: "",
+                  // gw: '',
+                  // bxy: '',
+                  temp: "",
+                };
+              }
             } else {
-                this.formState[data] = val
+              reject(response);
             }
-        },
-        //便携仪失去焦点时参数校验
-        // getBlurBxy(val) {
-        //     let str = val.substring(val.indexOf('.') + 1).split('')
-        //     if (/^(\-|\+)?\d+$/.test(val)) {
-        //         this.formState.bxy = val
-        //         this.isRule3 = true
-        //     } else if (/^-?([1-9]\d*\.\d*|0\.\d*[1-9]\d*|0?\.0+|0)$/.test(val) && str.length <= 2) {
-        //         this.formState.bxy = val
-        //         this.isRule3 = true
-        //     } else {
-        //         this.formState.bxy = ''
-        //         this.isRule3 = false
-        //     }
-        // },
-        //新增光瓦失去焦点时参数校验
-        // getBlur(val) {
-        //     let str = val.substring(val.indexOf('.') + 1).split('')
-        //     if (val.slice(-1) == '0' || val.slice(-1) == '2' || val.slice(-1) == '4' || val.slice(-1) == '6' || val.slice(-1) == '8') {
-        //         if (/^-?([1-9]\d*\.\d*|0\.\d*[1-9]\d*|0?\.0+|0)$/.test(val)) {
-        //             if (str.length <= 2) {
-        //                 this.formState.gw = val
-        //                 this.isRule1 = true
-        //             } else {
-        //                 this.formState.gw = ''
-        //                 this.isRule1 = false
-        //             }
-        //         } else {
-        //             this.formState.gw = val
-        //             this.isRule1 = true
-        //         }
-        //     } else {
-        //         this.formState.gw = ''
-        //         this.isRule1 = false
-        //     }
-        // },
-        //新增CO2失去焦点时参数校验
-        getBlurCO2(val) {
-            let str = val.substring(val.indexOf('.') + 1).split('')
-            if (val.slice(-1) == '0' || val.slice(-1) == '2' || val.slice(-1) == '4' || val.slice(-1) == '6' || val.slice(-1) == '8') {
-                if (/^-?([1-9]\d*\.\d*|0\.\d*[1-9]\d*|0?\.0+|0)$/.test(val)) {
-                    if (str.length <= 2) {
-                        this.formState.co2 = val
-                        this.isRule = true
-                    } else {
-                        this.formState.co2 = ''
-                        this.isRule = false
-                    }
-                } else {
-                    this.formState.co2 = val
-                    this.isRule = true
-                }
+          })
+          .catch((error) => {
+            console.log("catch===>response", response);
+            reject(error);
+          });
+      });
+    },
+    changeTb(e) {
+      this.tbTime = moment(e.value).format("YYYY-MM-DD");
+    },
+    //点击弹出日期下拉选项
+    getChangeTime() {
+      this.showCalendar = true;
+    },
+    getChangeTimeTb() {
+      this.showCalendarTb = true;
+    },
+    confirmTb() {
+      this.showCalendarTb = false;
+      this.getGasList();
+    },
+    //输入框内容变换
+    changeInput(val, data) {
+      if (/^00/.test(val)) {
+        this.formState[data] = val.replace(/^00/, "0");
+      } else {
+        this.formState[data] = val;
+      }
+    },
+    //便携仪失去焦点时参数校验
+    // getBlurBxy(val) {
+    //     let str = val.substring(val.indexOf('.') + 1).split('')
+    //     if (/^(\-|\+)?\d+$/.test(val)) {
+    //         this.formState.bxy = val
+    //         this.isRule3 = true
+    //     } else if (/^-?([1-9]\d*\.\d*|0\.\d*[1-9]\d*|0?\.0+|0)$/.test(val) && str.length <= 2) {
+    //         this.formState.bxy = val
+    //         this.isRule3 = true
+    //     } else {
+    //         this.formState.bxy = ''
+    //         this.isRule3 = false
+    //     }
+    // },
+    //新增光瓦失去焦点时参数校验
+    // getBlur(val) {
+    //     let str = val.substring(val.indexOf('.') + 1).split('')
+    //     if (val.slice(-1) == '0' || val.slice(-1) == '2' || val.slice(-1) == '4' || val.slice(-1) == '6' || val.slice(-1) == '8') {
+    //         if (/^-?([1-9]\d*\.\d*|0\.\d*[1-9]\d*|0?\.0+|0)$/.test(val)) {
+    //             if (str.length <= 2) {
+    //                 this.formState.gw = val
+    //                 this.isRule1 = true
+    //             } else {
+    //                 this.formState.gw = ''
+    //                 this.isRule1 = false
+    //             }
+    //         } else {
+    //             this.formState.gw = val
+    //             this.isRule1 = true
+    //         }
+    //     } else {
+    //         this.formState.gw = ''
+    //         this.isRule1 = false
+    //     }
+    // },
+    //新增CO2失去焦点时参数校验
+    getBlurCO2(val) {
+      let str = val.substring(val.indexOf(".") + 1).split("");
+      if (
+        val.slice(-1) == "0" ||
+        val.slice(-1) == "2" ||
+        val.slice(-1) == "4" ||
+        val.slice(-1) == "6" ||
+        val.slice(-1) == "8"
+      ) {
+        if (/^-?([1-9]\d*\.\d*|0\.\d*[1-9]\d*|0?\.0+|0)$/.test(val)) {
+          if (str.length <= 2) {
+            this.formState.co2 = val;
+            this.isRule = true;
+          } else {
+            this.formState.co2 = "";
+            this.isRule = false;
+          }
+        } else {
+          this.formState.co2 = val;
+          this.isRule = true;
+        }
+      } else {
+        this.formState.co2 = "";
+        this.isRule = false;
+      }
+    },
+    //新增CH4失去焦点时参数校验
+    getBlurCH4(val) {
+      let str = val.substring(val.indexOf(".") + 1).split("");
+      if (
+        val.slice(-1) == "0" ||
+        val.slice(-1) == "2" ||
+        val.slice(-1) == "4" ||
+        val.slice(-1) == "6" ||
+        val.slice(-1) == "8"
+      ) {
+        if (/^-?([1-9]\d*\.\d*|0\.\d*[1-9]\d*|0?\.0+|0)$/.test(val)) {
+          if (str.length <= 2) {
+            this.formState.ch4 = val;
+            this.isRule2 = true;
+          } else {
+            this.formState.ch4 = "";
+            this.isRule2 = false;
+          }
+        } else {
+          this.formState.ch4 = val;
+          this.isRule2 = true;
+        }
+      } else {
+        this.formState.ch4 = "";
+        this.isRule2 = false;
+      }
+    },
+    getBlurCO(val) {
+      let str = val.substring(val.indexOf(".") + 1).split("");
+      if (/^(\-|\+)?\d+$/.test(val) && parseFloat(val) <= 24) {
+        this.formState.co = val;
+        this.isRule14 = true;
+      } else if (
+        /^-?([1-9]\d*\.\d*|0\.\d*[1-9]\d*|0?\.0+|0)$/.test(val) &&
+        str.length <= 2 &&
+        parseFloat(val) <= 24
+      ) {
+        this.formState.co = val;
+        this.isRule14 = true;
+      } else {
+        this.formState.co = "";
+        this.isRule14 = false;
+      }
+    },
+    //根据NFC读取数据获取监测地点信息
+    getCardLists(ids) {
+      let that = this;
+      new Promise((resolve, reject) => {
+        api
+          .getCardList({ id: ids })
+          .then((response) => {
+            if (response.data.code == 200) {
+              let data = response.data.result;
+              that.formState.jcdd = data.strInstallPos;
+              that.deviceId = data.deviceId;
             } else {
-                this.formState.co2 = ''
-                this.isRule = false
+              uni.showToast({
+                title: "检测地点识别失败!",
+                icon: "none", // 可选图标,'success', 'loading', 'none'
+              });
             }
-        },
-        //新增CH4失去焦点时参数校验
-        getBlurCH4(val) {
-            let str = val.substring(val.indexOf('.') + 1).split('')
-            if (val.slice(-1) == '0' || val.slice(-1) == '2' || val.slice(-1) == '4' || val.slice(-1) == '6' || val.slice(-1) == '8') {
-                if (/^-?([1-9]\d*\.\d*|0\.\d*[1-9]\d*|0?\.0+|0)$/.test(val)) {
-                    if (str.length <= 2) {
-                        this.formState.ch4 = val
-                        this.isRule2 = true
-                    } else {
-                        this.formState.ch4 = ''
-                        this.isRule2 = false
-                    }
-                } else {
-                    this.formState.ch4 = val
-                    this.isRule2 = true
-                }
+          })
+          .catch((e) => {
+            uni.showToast({
+              title: "检测地点识别失败!",
+              icon: "none", // 可选图标,'success', 'loading', 'none'
+            });
+          });
+      });
+    },
+    //瓦斯新增
+    getAdd() {
+      let that = this;
+      that.isShowAdd = true;
+      that.zcShow = false;
+      that.isStatus = "add";
+      that.formState.jcy = this.username;
+      that.formState.time = moment(new Date()).format("YYYY-MM-DD HH:mm:ss");
+      that.formState.tbrq = moment(new Date()).format("YYYY-MM-DD");
+      if (that.nfcShow) {
+        testNfc.listenNFCStatus();
+        testNfc.readData();
+      }
+    },
+    getAddSave() {
+      let that = this;
+      let param = {};
+      if (that.formState.bc == "早班" && that.formState.count == "第一次") {
+        param = {
+          // id: that.formState.id,
+          deviceId: that.deviceId,
+          // bxySdzEarly1: that.formState.bxy,
+          ch4Early1: that.formState.ch4,
+          checkPersonEarly: that.formState.jcy,
+          co2Early1: that.formState.co2,
+          coEarly1: that.formState.co,
+          // gwSdzEarly1: that.formState.gw,
+          jwSdzEarly1: that.formState.ch4,
+          o2Early1: that.formState.o2,
+          strInstallPos: that.formState.jcdd,
+          timeEarly1: that.formState.time,
+          reportTime: that.formState.tbrq,
+          tearly1: that.formState.temp,
+        };
+      } else if (
+        that.formState.bc == "早班" &&
+        that.formState.count == "第二次"
+      ) {
+        param = {
+          deviceId: that.deviceId,
+          // id: that.formState.id,
+          // bxySdzEarly2: that.formState.bxy,
+          ch4Early2: that.formState.ch4,
+          checkPersonEarly: that.formState.jcy,
+          co2Early2: that.formState.co2,
+          coEarly2: that.formState.co,
+          // gwSdzEarly2: that.formState.gw,
+          jwSdzEarly2: that.formState.ch4,
+          o2Early2: that.formState.o2,
+          strInstallPos: that.formState.jcdd,
+          timeEarly2: that.formState.time,
+          reportTime: that.formState.tbrq,
+          tearly2: that.formState.temp,
+        };
+      } else if (
+        that.formState.bc == "中班" &&
+        that.formState.count == "第一次"
+      ) {
+        param = {
+          deviceId: that.deviceId,
+          // id: that.formState.id,
+          // bxySdzNoon1: that.formState.bxy,
+          ch4Noon1: that.formState.ch4,
+          checkPersonNoon: that.formState.jcy,
+          co2Noon1: that.formState.co2,
+          coNoon1: that.formState.co,
+          // gwSdzNoon1: that.formState.gw,
+          jwSdzNoon1: that.formState.ch4,
+          o2Noon1: that.formState.o2,
+          strInstallPos: that.formState.jcdd,
+          timeNoon1: that.formState.time,
+          reportTime: that.formState.tbrq,
+          tnoon1: that.formState.temp,
+        };
+      } else if (
+        that.formState.bc == "中班" &&
+        that.formState.count == "第二次"
+      ) {
+        param = {
+          deviceId: that.deviceId,
+          // id: that.formState.id,
+          // bxySdzNoon2: that.formState.bxy,
+          ch4Noon2: that.formState.ch4,
+          checkPersonNoon: that.formState.jcy,
+          co2Noon2: that.formState.co2,
+          coNoon2: that.formState.co,
+          // gwSdzNoon2: that.formState.gw,
+          jwSdzNoon2: that.formState.ch4,
+          o2Noon2: that.formState.o2,
+          strInstallPos: that.formState.jcdd,
+          timeNoon2: that.formState.time,
+          reportTime: that.formState.tbrq,
+          tnoon2: that.formState.temp,
+        };
+      } else if (
+        that.formState.bc == "夜班" &&
+        that.formState.count == "第一次"
+      ) {
+        param = {
+          deviceId: that.deviceId,
+          // id: that.formState.id,
+          // bxySdzNight1: that.formState.bxy,
+          ch4Night1: that.formState.ch4,
+          checkPersonNight: that.formState.jcy,
+          co2Night1: that.formState.co2,
+          coNight1: that.formState.co,
+          // gwSdzNight1: that.formState.gw,
+          jwSdzNight1: that.formState.ch4,
+          o2Night1: that.formState.o2,
+          strInstallPos: that.formState.jcdd,
+          timeNight1: that.formState.time,
+          reportTime: that.formState.tbrq,
+          tnight1: that.formState.temp,
+        };
+      } else if (
+        that.formState.bc == "夜班" &&
+        that.formState.count == "第二次"
+      ) {
+        param = {
+          deviceId: that.deviceId,
+          // id: that.formState.id,
+          // bxySdzNight2: that.formState.bxy,
+          ch4Night2: that.formState.ch4,
+          checkPersonNoon: that.formState.jcy,
+          co2Night2: that.formState.co2,
+          coNight2: that.formState.co,
+          // gwSdzNight2: that.formState.gw,
+          jwSdzNight2: that.formState.ch4,
+          o2Night2: that.formState.o2,
+          strInstallPos: that.formState.jcdd,
+          timeNight2: that.formState.time,
+          reportTime: that.formState.tbrq,
+          tnight2: that.formState.temp,
+        };
+      }
+      new Promise((resolve, reject) => {
+        api
+          .getAdd({ ...param })
+          .then((response) => {
+            if (response.data.code == 200) {
+              that.getGasList();
+              that.isShowAdd = false;
+              that.isDisabled = false;
+              that.saveShowList = {};
+              that.zcList =
+                that.zcList.filter(
+                  (v) => v.cardId != that.zcParamData.cardId
+                ) || [];
+              uni.setStorageSync("zcList", that.zcList);
+              that.clearData();
             } else {
-                this.formState.ch4 = ''
-                this.isRule2 = false
+              reject(response);
             }
-        },
-        getBlurCO(val) {
-            let str = val.substring(val.indexOf('.') + 1).split('')
-            if (/^(\-|\+)?\d+$/.test(val) && parseFloat(val) <= 24) {
-                this.formState.co = val
-                this.isRule14 = true
-            } else if (/^-?([1-9]\d*\.\d*|0\.\d*[1-9]\d*|0?\.0+|0)$/.test(val) && str.length <= 2 && parseFloat(val) <= 24) {
-                this.formState.co = val
-                this.isRule14 = true
+          })
+          .catch((error) => {
+            console.log("catch===>response", response);
+            reject(error);
+          });
+      });
+    },
+    getEditSave() {
+      let that = this;
+      let param = {};
+      if (that.formState.bc == "早班" && that.formState.count == "第一次") {
+        param = {
+          id: that.saveShowList.id,
+          // bxySdzEarly1: that.formState.bxy,
+          ch4Early1: that.formState.ch4,
+          checkPersonEarly: that.formState.jcy,
+          co2Early1: that.formState.co2,
+          coEarly1: that.formState.co,
+          // gwSdzEarly1: that.formState.gw,
+          jwSdzEarly1: that.formState.ch4,
+          o2Early1: that.formState.o2,
+          strInstallPos: that.formState.jcdd,
+          timeEarly1: that.formState.time,
+          tearly1: that.formState.temp,
+
+          bxySdzEarly2: that.saveShowList.bxySdzEarly2,
+          ch4Early2: that.saveShowList.ch4Early2,
+          co2Early2: that.saveShowList.co2Early2,
+          coEarly2: that.saveShowList.coEarly2,
+          gwSdzEarly2: that.saveShowList.gwSdzEarly2,
+          jwSdzEarly2: that.saveShowList.jwSdzEarly2,
+          o2Early2: that.saveShowList.o2Early2,
+          timeEarly2: that.saveShowList.timeEarly2,
+          tearly2: that.saveShowList.tearly2,
+
+          bxySdzNoon1: that.saveShowList.bxySdzNoon1,
+          ch4Noon1: that.saveShowList.ch4Noon1,
+          checkPersonNoon: that.formState.jcy,
+          co2Noon1: that.saveShowList.co2Noon1,
+          coNoon1: that.saveShowList.coNoon1,
+          gwSdzNoon1: that.saveShowList.gwSdzNoon1,
+          jwSdzNoon1: that.saveShowList.jwSdzNoon1,
+          o2Noon1: that.saveShowList.o2Noon1,
+          strInstallPos: that.saveShowList.strInstallPos,
+          timeNoon1: that.saveShowList.timeNoon1,
+          tnoon1: that.saveShowList.tnoon1,
+
+          bxySdzNoon2: that.saveShowList.bxySdzNoon2,
+          ch4Noon2: that.saveShowList.ch4Noon2,
+          co2Noon2: that.saveShowList.co2Noon2,
+          coNoon2: that.saveShowList.coNoon2,
+          gwSdzNoon2: that.saveShowList.gwSdzNoon2,
+          jwSdzNoon2: that.saveShowList.jwSdzNoon2,
+          o2Noon2: that.saveShowList.o2Noon2,
+          timeNoon2: that.saveShowList.timeNoon2,
+          tnoon2: that.saveShowList.tnoon2,
+
+          bxySdzNight1: that.saveShowList.bxySdzNight1,
+          ch4Night1: that.saveShowList.ch4Night1,
+          checkPersonNight: that.formState.jcy,
+          co2Night1: that.saveShowList.co2Night1,
+          coNight1: that.saveShowList.coNight1,
+          gwSdzNight1: that.saveShowList.gwSdzNight1,
+          jwSdzNight1: that.saveShowList.jwSdzNight1,
+          o2Night1: that.saveShowList.o2Night1,
+          strInstallPos: that.saveShowList.strInstallPos,
+          timeNight1: that.saveShowList.timeNight1,
+          tnight1: that.saveShowList.tnight1,
+
+          bxySdzNight2: that.saveShowList.bxySdzNight2,
+          ch4Night2: that.saveShowList.ch4Night2,
+          co2Night2: that.saveShowList.co2Night2,
+          coNight2: that.saveShowList.coNight2,
+          gwSdzNight2: that.saveShowList.gwSdzNight2,
+          jwSdzNight2: that.saveShowList.jwSdzNight2,
+          o2Night2: that.saveShowList.o2Night2,
+          timeNight2: that.saveShowList.timeNight2,
+          tnight2: that.saveShowList.tnight2,
+        };
+      } else if (
+        that.formState.bc == "早班" &&
+        that.formState.count == "第二次"
+      ) {
+        param = {
+          id: that.saveShowList.id,
+          bxySdzEarly1: that.saveShowList.bxySdzEarly1,
+          ch4Early1: that.saveShowList.ch4Early1,
+          co2Early1: that.saveShowList.co2Early1,
+          coEarly1: that.saveShowList.coEarly1,
+          gwSdzEarly1: that.saveShowList.gwSdzEarly1,
+          jwSdzEarly1: that.saveShowList.jwSdzEarly1,
+          o2Early1: that.saveShowList.o2Early1,
+          timeEarly1: that.saveShowList.timeEarly1,
+          tearly1: that.saveShowList.tearly1,
+
+          // bxySdzEarly2: that.formState.bxy,
+          ch4Early2: that.formState.ch4,
+          checkPersonEarly: that.formState.jcy,
+          co2Early2: that.formState.co2,
+          coEarly2: that.formState.co,
+          // gwSdzEarly2: that.formState.gw,
+          jwSdzEarly2: that.formState.ch4,
+          o2Early2: that.formState.o2,
+          strInstallPos: that.formState.jcdd,
+          timeEarly2: that.formState.time,
+          tearly2: that.formState.temp,
+
+          bxySdzNoon1: that.saveShowList.bxySdzNoon1,
+          ch4Noon1: that.saveShowList.ch4Noon1,
+          checkPersonNoon: that.formState.jcy,
+          co2Noon1: that.saveShowList.co2Noon1,
+          coNoon1: that.saveShowList.coNoon1,
+          gwSdzNoon1: that.saveShowList.gwSdzNoon1,
+          jwSdzNoon1: that.saveShowList.jwSdzNoon1,
+          o2Noon1: that.saveShowList.o2Noon1,
+          strInstallPos: that.saveShowList.strInstallPos,
+          timeNoon1: that.saveShowList.timeNoon1,
+          tnoon1: that.saveShowList.tnoon1,
+
+          bxySdzNoon2: that.saveShowList.bxySdzNoon2,
+          ch4Noon2: that.saveShowList.ch4Noon2,
+          co2Noon2: that.saveShowList.co2Noon2,
+          coNoon2: that.saveShowList.coNoon2,
+          gwSdzNoon2: that.saveShowList.gwSdzNoon2,
+          jwSdzNoon2: that.saveShowList.jwSdzNoon2,
+          o2Noon2: that.saveShowList.o2Noon2,
+          timeNoon2: that.saveShowList.timeNoon2,
+          tnoon2: that.saveShowList.tnoon2,
+
+          bxySdzNight1: that.saveShowList.bxySdzNight1,
+          ch4Night1: that.saveShowList.ch4Night1,
+          checkPersonNight: that.formState.jcy,
+          co2Night1: that.saveShowList.co2Night1,
+          coNight1: that.saveShowList.coNight1,
+          gwSdzNight1: that.saveShowList.gwSdzNight1,
+          jwSdzNight1: that.saveShowList.jwSdzNight1,
+          o2Night1: that.saveShowList.o2Night1,
+          strInstallPos: that.saveShowList.strInstallPos,
+          timeNight1: that.saveShowList.timeNight1,
+          tnight1: that.saveShowList.tnight1,
+
+          bxySdzNight2: that.saveShowList.bxySdzNight2,
+          ch4Night2: that.saveShowList.ch4Night2,
+          co2Night2: that.saveShowList.co2Night2,
+          coNight2: that.saveShowList.coNight2,
+          gwSdzNight2: that.saveShowList.gwSdzNight2,
+          jwSdzNight2: that.saveShowList.jwSdzNight2,
+          o2Night2: that.saveShowList.o2Night2,
+          timeNight2: that.saveShowList.timeNight2,
+          tnight2: that.saveShowList.tnight2,
+        };
+      } else if (
+        that.formState.bc == "中班" &&
+        that.formState.count == "第一次"
+      ) {
+        param = {
+          id: that.saveShowList.id,
+          bxySdzEarly1: that.saveShowList.bxySdzEarly1,
+          ch4Early1: that.saveShowList.ch4Early1,
+          co2Early1: that.saveShowList.co2Early1,
+          coEarly1: that.saveShowList.coEarly1,
+          gwSdzEarly1: that.saveShowList.gwSdzEarly1,
+          jwSdzEarly1: that.saveShowList.jwSdzEarly1,
+          o2Early1: that.saveShowList.o2Early1,
+          timeEarly1: that.saveShowList.timeEarly1,
+          checkPersonEarly: that.formState.jcy,
+          strInstallPos: that.saveShowList.strInstallPos,
+          tearly1: that.saveShowList.tearly1,
+
+          bxySdzEarly2: that.saveShowList.bxySdzEarly2,
+          ch4Early2: that.saveShowList.ch4Early2,
+          co2Early2: that.saveShowList.co2Early2,
+          coEarly2: that.saveShowList.coEarly2,
+          gwSdzEarly2: that.saveShowList.gwSdzEarly2,
+          jwSdzEarly2: that.saveShowList.jwSdzEarly2,
+          o2Early2: that.saveShowList.o2Early2,
+          timeEarly2: that.saveShowList.timeEarly2,
+          tearly2: that.saveShowList.tearly2,
+
+          // bxySdzNoon1: that.formState.bxy,
+          ch4Noon1: that.formState.ch4,
+          checkPersonNoon: that.formState.jcy,
+          co2Noon1: that.formState.co2,
+          coNoon1: that.formState.co,
+          // gwSdzNoon1: that.formState.gw,
+          jwSdzNoon1: that.formState.ch4,
+          o2Noon1: that.formState.o2,
+          strInstallPos: that.formState.jcdd,
+          timeNoon1: that.formState.time,
+          tnoon1: that.formState.temp,
+
+          bxySdzNoon2: that.saveShowList.bxySdzNoon2,
+          ch4Noon2: that.saveShowList.ch4Noon2,
+          co2Noon2: that.saveShowList.co2Noon2,
+          coNoon2: that.saveShowList.coNoon2,
+          gwSdzNoon2: that.saveShowList.gwSdzNoon2,
+          jwSdzNoon2: that.saveShowList.jwSdzNoon2,
+          o2Noon2: that.saveShowList.o2Noon2,
+          timeNoon2: that.saveShowList.timeNoon2,
+          tnoon2: that.saveShowList.tnoon2,
+
+          bxySdzNight1: that.saveShowList.bxySdzNight1,
+          ch4Night1: that.saveShowList.ch4Night1,
+          checkPersonNight: that.formState.jcy,
+          co2Night1: that.saveShowList.co2Night1,
+          coNight1: that.saveShowList.coNight1,
+          gwSdzNight1: that.saveShowList.gwSdzNight1,
+          jwSdzNight1: that.saveShowList.jwSdzNight1,
+          o2Night1: that.saveShowList.o2Night1,
+          strInstallPos: that.saveShowList.strInstallPos,
+          timeNight1: that.saveShowList.timeNight1,
+          tnight1: that.saveShowList.tnight1,
+
+          bxySdzNight2: that.saveShowList.bxySdzNight2,
+          ch4Night2: that.saveShowList.ch4Night2,
+          co2Night2: that.saveShowList.co2Night2,
+          coNight2: that.saveShowList.coNight2,
+          gwSdzNight2: that.saveShowList.gwSdzNight2,
+          jwSdzNight2: that.saveShowList.jwSdzNight2,
+          o2Night2: that.saveShowList.o2Night2,
+          timeNight2: that.saveShowList.timeNight2,
+          tnight2: that.saveShowList.tnight2,
+        };
+      } else if (
+        that.formState.bc == "中班" &&
+        that.formState.count == "第二次"
+      ) {
+        param = {
+          id: that.saveShowList.id,
+          bxySdzEarly1: that.saveShowList.bxySdzEarly1,
+          ch4Early1: that.saveShowList.ch4Early1,
+          co2Early1: that.saveShowList.co2Early1,
+          coEarly1: that.saveShowList.coEarly1,
+          gwSdzEarly1: that.saveShowList.gwSdzEarly1,
+          jwSdzEarly1: that.saveShowList.jwSdzEarly1,
+          o2Early1: that.saveShowList.o2Early1,
+          timeEarly1: that.saveShowList.timeEarly1,
+          checkPersonEarly: that.formState.jcy,
+          strInstallPos: that.saveShowList.strInstallPos,
+          tearly1: that.saveShowList.tearly1,
+
+          bxySdzEarly2: that.saveShowList.bxySdzEarly2,
+          ch4Early2: that.saveShowList.ch4Early2,
+          co2Early2: that.saveShowList.co2Early2,
+          coEarly2: that.saveShowList.coEarly2,
+          gwSdzEarly2: that.saveShowList.gwSdzEarly2,
+          jwSdzEarly2: that.saveShowList.jwSdzEarly2,
+          o2Early2: that.saveShowList.o2Early2,
+          timeEarly2: that.saveShowList.timeEarly2,
+          tearly2: that.saveShowList.tearly2,
+
+          bxySdzNoon1: that.saveShowList.bxySdzNoon1,
+          ch4Noon1: that.saveShowList.ch4Noon1,
+          co2Noon1: that.saveShowList.co2Noon1,
+          coNoon1: that.saveShowList.coNoon1,
+          gwSdzNoon1: that.saveShowList.gwSdzNoon1,
+          jwSdzNoon1: that.saveShowList.jwSdzNoon1,
+          o2Noon1: that.saveShowList.o2Noon1,
+          timeNoon1: that.saveShowList.timeNoon1,
+          tnoon1: that.saveShowList.tnoon1,
+
+          // bxySdzNoon2: that.formState.bxy,
+          ch4Noon2: that.formState.ch4,
+          checkPersonNoon: that.formState.jcy,
+          co2Noon2: that.formState.co2,
+          coNoon2: that.formState.co,
+          // gwSdzNoon2: that.formState.gw,
+          jwSdzNoon2: that.formState.ch4,
+          o2Noon2: that.formState.o2,
+          strInstallPos: that.formState.jcdd,
+          timeNoon2: that.formState.time,
+          tnoon2: that.formState.temp,
+
+          bxySdzNight1: that.saveShowList.bxySdzNight1,
+          ch4Night1: that.saveShowList.ch4Night1,
+          checkPersonNight: that.formState.jcy,
+          co2Night1: that.saveShowList.co2Night1,
+          coNight1: that.saveShowList.coNight1,
+          gwSdzNight1: that.saveShowList.gwSdzNight1,
+          jwSdzNight1: that.saveShowList.jwSdzNight1,
+          o2Night1: that.saveShowList.o2Night1,
+          strInstallPos: that.saveShowList.strInstallPos,
+          timeNight1: that.saveShowList.timeNight1,
+          tnight1: that.saveShowList.tnight1,
+
+          bxySdzNight2: that.saveShowList.bxySdzNight2,
+          ch4Night2: that.saveShowList.ch4Night2,
+          co2Night2: that.saveShowList.co2Night2,
+          coNight2: that.saveShowList.coNight2,
+          gwSdzNight2: that.saveShowList.gwSdzNight2,
+          jwSdzNight2: that.saveShowList.jwSdzNight2,
+          o2Night2: that.saveShowList.o2Night2,
+          timeNight2: that.saveShowList.timeNight2,
+          tnight2: that.saveShowList.tnight2,
+        };
+      } else if (
+        that.formState.bc == "夜班" &&
+        that.formState.count == "第一次"
+      ) {
+        param = {
+          id: that.saveShowList.id,
+          bxySdzEarly1: that.saveShowList.bxySdzEarly1,
+          ch4Early1: that.saveShowList.ch4Early1,
+          co2Early1: that.saveShowList.co2Early1,
+          coEarly1: that.saveShowList.coEarly1,
+          gwSdzEarly1: that.saveShowList.gwSdzEarly1,
+          jwSdzEarly1: that.saveShowList.jwSdzEarly1,
+          o2Early1: that.saveShowList.o2Early1,
+          timeEarly1: that.saveShowList.timeEarly1,
+          checkPersonEarly: that.formState.jcy,
+          strInstallPos: that.saveShowList.strInstallPos,
+          tearly1: that.saveShowList.tearly1,
+
+          bxySdzEarly2: that.saveShowList.bxySdzEarly2,
+          ch4Early2: that.saveShowList.ch4Early2,
+          co2Early2: that.saveShowList.co2Early2,
+          coEarly2: that.saveShowList.coEarly2,
+          gwSdzEarly2: that.saveShowList.gwSdzEarly2,
+          jwSdzEarly2: that.saveShowList.jwSdzEarly2,
+          o2Early2: that.saveShowList.o2Early2,
+          timeEarly2: that.saveShowList.timeEarly2,
+          tearly2: that.saveShowList.tearly2,
+
+          bxySdzNoon1: that.saveShowList.bxySdzNoon1,
+          ch4Noon1: that.saveShowList.ch4Noon1,
+          co2Noon1: that.saveShowList.co2Noon1,
+          coNoon1: that.saveShowList.coNoon1,
+          gwSdzNoon1: that.saveShowList.gwSdzNoon1,
+          jwSdzNoon1: that.saveShowList.jwSdzNoon1,
+          o2Noon1: that.saveShowList.o2Noon1,
+          timeNoon1: that.saveShowList.timeNoon1,
+          tnoon1: that.saveShowList.tnoon1,
+
+          bxySdzNoon2: that.saveShowList.bxySdzNoon2,
+          ch4Noon2: that.saveShowList.ch4Noon2,
+          checkPersonNoon: that.formState.jcy,
+          co2Noon2: that.saveShowList.co2Noon2,
+          coNoon2: that.saveShowList.coNoon2,
+          gwSdzNoon2: that.saveShowList.gwSdzNoon2,
+          jwSdzNoon2: that.saveShowList.jwSdzNoon2,
+          o2Noon2: that.saveShowList.o2Noon2,
+          strInstallPos: that.saveShowList.strInstallPos,
+          timeNoon2: that.saveShowList.timeNoon2,
+          tnoon2: that.saveShowList.tnoon2,
+
+          // bxySdzNight1: that.formState.bxy,
+          ch4Night1: that.formState.ch4,
+          checkPersonNight: that.formState.jcy,
+          co2Night1: that.formState.co2,
+          coNight1: that.formState.co,
+          // gwSdzNight1: that.formState.gw,
+          jwSdzNight1: that.formState.ch4,
+          o2Night1: that.formState.o2,
+          strInstallPos: that.formState.jcdd,
+          timeNight1: that.formState.time,
+          tnight1: that.formState.temp,
+
+          bxySdzNight2: that.saveShowList.bxySdzNight2,
+          ch4Night2: that.saveShowList.ch4Night2,
+          co2Night2: that.saveShowList.co2Night2,
+          coNight2: that.saveShowList.coNight2,
+          gwSdzNight2: that.saveShowList.gwSdzNight2,
+          jwSdzNight2: that.saveShowList.jwSdzNight2,
+          o2Night2: that.saveShowList.o2Night2,
+          timeNight2: that.saveShowList.timeNight2,
+          tnight2: that.saveShowList.tnight2,
+        };
+      } else if (
+        that.formState.bc == "夜班" &&
+        that.formState.count == "第二次"
+      ) {
+        param = {
+          id: that.saveShowList.id,
+          bxySdzEarly1: that.saveShowList.bxySdzEarly1,
+          ch4Early1: that.saveShowList.ch4Early1,
+          co2Early1: that.saveShowList.co2Early1,
+          coEarly1: that.saveShowList.coEarly1,
+          gwSdzEarly1: that.saveShowList.gwSdzEarly1,
+          jwSdzEarly1: that.saveShowList.jwSdzEarly1,
+          o2Early1: that.saveShowList.o2Early1,
+          timeEarly1: that.saveShowList.timeEarly1,
+          checkPersonEarly: that.formState.jcy,
+          strInstallPos: that.saveShowList.strInstallPos,
+          tearly1: that.saveShowList.tearly1,
+
+          bxySdzEarly2: that.saveShowList.bxySdzEarly2,
+          ch4Early2: that.saveShowList.ch4Early2,
+          co2Early2: that.saveShowList.co2Early2,
+          coEarly2: that.saveShowList.coEarly2,
+          gwSdzEarly2: that.saveShowList.gwSdzEarly2,
+          jwSdzEarly2: that.saveShowList.jwSdzEarly2,
+          o2Early2: that.saveShowList.o2Early2,
+          timeEarly2: that.saveShowList.timeEarly2,
+          tearly2: that.saveShowList.tearly2,
+
+          bxySdzNoon1: that.saveShowList.bxySdzNoon1,
+          ch4Noon1: that.saveShowList.ch4Noon1,
+          co2Noon1: that.saveShowList.co2Noon1,
+          coNoon1: that.saveShowList.coNoon1,
+          gwSdzNoon1: that.saveShowList.gwSdzNoon1,
+          jwSdzNoon1: that.saveShowList.jwSdzNoon1,
+          o2Noon1: that.saveShowList.o2Noon1,
+          timeNoon1: that.saveShowList.timeNoon1,
+          tnoon1: that.saveShowList.tnoon1,
+
+          bxySdzNoon2: that.saveShowList.bxySdzNoon2,
+          ch4Noon2: that.saveShowList.ch4Noon2,
+          checkPersonNoon: that.formState.jcy,
+          co2Noon2: that.saveShowList.co2Noon2,
+          coNoon2: that.saveShowList.coNoon2,
+          gwSdzNoon2: that.saveShowList.gwSdzNoon2,
+          jwSdzNoon2: that.saveShowList.jwSdzNoon2,
+          o2Noon2: that.saveShowList.o2Noon2,
+          strInstallPos: that.saveShowList.strInstallPos,
+          timeNoon2: that.saveShowList.timeNoon2,
+          tnoon2: that.saveShowList.tnoon2,
+
+          bxySdzNight1: that.saveShowList.bxySdzNight1,
+          ch4Night1: that.saveShowList.ch4Night1,
+          co2Night1: that.saveShowList.co2Night1,
+          coNight1: that.saveShowList.coNight1,
+          gwSdzNight1: that.saveShowList.gwSdzNight1,
+          jwSdzNight1: that.saveShowList.jwSdzNight1,
+          o2Night1: that.saveShowList.o2Night1,
+          timeNight1: that.saveShowList.timeNight1,
+          tnight1: that.saveShowList.tnight1,
+
+          // bxySdzNight2: that.formState.bxy,
+          ch4Night2: that.formState.ch4,
+          checkPersonNight: that.formState.jcy,
+          co2Night2: that.formState.co2,
+          coNight2: that.formState.co,
+          // gwSdzNight2: that.formState.gw,
+          jwSdzNight2: that.formState.ch4,
+          o2Night2: that.formState.o2,
+          strInstallPos: that.formState.jcdd,
+          timeNight2: that.formState.time,
+          tnight2: that.formState.temp,
+        };
+      }
+      new Promise((resolve, reject) => {
+        api
+          .getEdit({ ...param })
+          .then((response) => {
+            if (response.data.code == 200) {
+              that.getGasList();
+              that.isShowAdd = false;
+              that.isDisabled = false;
+              that.saveShowList = {};
+              that.zcList =
+                that.zcList.filter(
+                  (v) => v.cardId != that.zcParamData.cardId
+                ) || [];
+              uni.setStorageSync("zcList", that.zcList);
+              that.clearData();
             } else {
-                this.formState.co = ''
-                this.isRule14 = false
+              reject(response);
             }
-        },
-        //根据NFC读取数据获取监测地点信息
-        getCardLists(ids) {
-            let that = this
-            new Promise((resolve, reject) => {
-                api
-                    .getCardList({ id: ids })
-                    .then((response) => {
-
-                        if (response.data.code == 200) {
-                            let data = response.data.result
-                            that.formState.jcdd = data.strInstallPos
-                            that.deviceId = data.deviceId
-                        } else {
-                            uni.showToast({
-                                title: '检测地点识别失败!',
-                                icon: 'none' // 可选图标,'success', 'loading', 'none'
-                            });
-                        }
-                    }).catch((e) => {
-                        uni.showToast({
-                            title: '检测地点识别失败!',
-                            icon: 'none' // 可选图标,'success', 'loading', 'none'
-                        });
-                    })
-            });
-        },
-        //瓦斯新增
-        getAdd() {
-            let that = this
-            that.isShowAdd = true
-            that.zcShow = false
-            that.isStatus = 'add'
-            that.formState.jcy = this.username
-            that.formState.time = moment(new Date()).format('YYYY-MM-DD HH:mm:ss')
-            that.formState.tbrq = moment(new Date()).format('YYYY-MM-DD')
-            if (that.nfcShow) {
-                testNfc.listenNFCStatus()
-                testNfc.readData();
-            }
-
-        },
-        getAddSave() {
-            let that = this
-            let param = {}
-            if (that.formState.bc == '早班' && that.formState.count == '第一次') {
-                param = {
-                    // id: that.formState.id,
-                    deviceId: that.deviceId,
-                    // bxySdzEarly1: that.formState.bxy,
-                    ch4Early1: that.formState.ch4,
-                    checkPersonEarly: that.formState.jcy,
-                    co2Early1: that.formState.co2,
-                    coEarly1: that.formState.co,
-                    // gwSdzEarly1: that.formState.gw,
-                    jwSdzEarly1: that.formState.ch4,
-                    o2Early1: that.formState.o2,
-                    strInstallPos: that.formState.jcdd,
-                    timeEarly1: that.formState.time,
-                    reportTime: that.formState.tbrq,
-                    tearly1: that.formState.temp
-                }
-
-            } else if (that.formState.bc == '早班' && that.formState.count == '第二次') {
-                param = {
-                    deviceId: that.deviceId,
-                    // id: that.formState.id,
-                    // bxySdzEarly2: that.formState.bxy,
-                    ch4Early2: that.formState.ch4,
-                    checkPersonEarly: that.formState.jcy,
-                    co2Early2: that.formState.co2,
-                    coEarly2: that.formState.co,
-                    // gwSdzEarly2: that.formState.gw,
-                    jwSdzEarly2: that.formState.ch4,
-                    o2Early2: that.formState.o2,
-                    strInstallPos: that.formState.jcdd,
-                    timeEarly2: that.formState.time,
-                    reportTime: that.formState.tbrq,
-                    tearly2: that.formState.temp
-                }
-
-            } else if (that.formState.bc == '中班' && that.formState.count == '第一次') {
-                param = {
-                    deviceId: that.deviceId,
-                    // id: that.formState.id,
-                    // bxySdzNoon1: that.formState.bxy,
-                    ch4Noon1: that.formState.ch4,
-                    checkPersonNoon: that.formState.jcy,
-                    co2Noon1: that.formState.co2,
-                    coNoon1: that.formState.co,
-                    // gwSdzNoon1: that.formState.gw,
-                    jwSdzNoon1: that.formState.ch4,
-                    o2Noon1: that.formState.o2,
-                    strInstallPos: that.formState.jcdd,
-                    timeNoon1: that.formState.time,
-                    reportTime: that.formState.tbrq,
-                    tnoon1: that.formState.temp
-                }
-
-            } else if (that.formState.bc == '中班' && that.formState.count == '第二次') {
-                param = {
-                    deviceId: that.deviceId,
-                    // id: that.formState.id,
-                    // bxySdzNoon2: that.formState.bxy,
-                    ch4Noon2: that.formState.ch4,
-                    checkPersonNoon: that.formState.jcy,
-                    co2Noon2: that.formState.co2,
-                    coNoon2: that.formState.co,
-                    // gwSdzNoon2: that.formState.gw,
-                    jwSdzNoon2: that.formState.ch4,
-                    o2Noon2: that.formState.o2,
-                    strInstallPos: that.formState.jcdd,
-                    timeNoon2: that.formState.time,
-                    reportTime: that.formState.tbrq,
-                    tnoon2: that.formState.temp
-                }
-
-            } else if (that.formState.bc == '夜班' && that.formState.count == '第一次') {
-                param = {
-                    deviceId: that.deviceId,
-                    // id: that.formState.id,
-                    // bxySdzNight1: that.formState.bxy,
-                    ch4Night1: that.formState.ch4,
-                    checkPersonNight: that.formState.jcy,
-                    co2Night1: that.formState.co2,
-                    coNight1: that.formState.co,
-                    // gwSdzNight1: that.formState.gw,
-                    jwSdzNight1: that.formState.ch4,
-                    o2Night1: that.formState.o2,
-                    strInstallPos: that.formState.jcdd,
-                    timeNight1: that.formState.time,
-                    reportTime: that.formState.tbrq,
-                    tnight1: that.formState.temp
-                }
-
-            } else if (that.formState.bc == '夜班' && that.formState.count == '第二次') {
-                param = {
-                    deviceId: that.deviceId,
-                    // id: that.formState.id,
-                    // bxySdzNight2: that.formState.bxy,
-                    ch4Night2: that.formState.ch4,
-                    checkPersonNoon: that.formState.jcy,
-                    co2Night2: that.formState.co2,
-                    coNight2: that.formState.co,
-                    // gwSdzNight2: that.formState.gw,
-                    jwSdzNight2: that.formState.ch4,
-                    o2Night2: that.formState.o2,
-                    strInstallPos: that.formState.jcdd,
-                    timeNight2: that.formState.time,
-                    reportTime: that.formState.tbrq,
-                    tnight2: that.formState.temp
-                }
-
-            }
-            new Promise((resolve, reject) => {
-                api
-                    .getAdd({ ...param })
-                    .then((response) => {
-                        if (response.data.code == 200) {
-                            that.getGasList()
-                            that.isShowAdd = false
-                            that.isDisabled = false
-                            that.saveShowList = {}
-                            that.zcList = that.zcList.filter(v => v.cardId != that.zcParamData.cardId) || []
-                            uni.setStorageSync('zcList', that.zcList)
-                            that.clearData()
-                        } else {
-                            reject(response);
-                        }
-                    })
-                    .catch((error) => {
-                        console.log("catch===>response", response);
-                        reject(error);
-                    });
-            });
-
-
-        },
-        getEditSave() {
-            let that = this
-            let param = {}
-            if (that.formState.bc == '早班' && that.formState.count == '第一次') {
-                param = {
-                    id: that.saveShowList.id,
-                    // bxySdzEarly1: that.formState.bxy,
-                    ch4Early1: that.formState.ch4,
-                    checkPersonEarly: that.formState.jcy,
-                    co2Early1: that.formState.co2,
-                    coEarly1: that.formState.co,
-                    // gwSdzEarly1: that.formState.gw,
-                    jwSdzEarly1: that.formState.ch4,
-                    o2Early1: that.formState.o2,
-                    strInstallPos: that.formState.jcdd,
-                    timeEarly1: that.formState.time,
-                    tearly1: that.formState.temp,
-
-                    bxySdzEarly2: that.saveShowList.bxySdzEarly2,
-                    ch4Early2: that.saveShowList.ch4Early2,
-                    co2Early2: that.saveShowList.co2Early2,
-                    coEarly2: that.saveShowList.coEarly2,
-                    gwSdzEarly2: that.saveShowList.gwSdzEarly2,
-                    jwSdzEarly2: that.saveShowList.jwSdzEarly2,
-                    o2Early2: that.saveShowList.o2Early2,
-                    timeEarly2: that.saveShowList.timeEarly2,
-                    tearly2: that.saveShowList.tearly2,
-
-                    bxySdzNoon1: that.saveShowList.bxySdzNoon1,
-                    ch4Noon1: that.saveShowList.ch4Noon1,
-                    checkPersonNoon: that.formState.jcy,
-                    co2Noon1: that.saveShowList.co2Noon1,
-                    coNoon1: that.saveShowList.coNoon1,
-                    gwSdzNoon1: that.saveShowList.gwSdzNoon1,
-                    jwSdzNoon1: that.saveShowList.jwSdzNoon1,
-                    o2Noon1: that.saveShowList.o2Noon1,
-                    strInstallPos: that.saveShowList.strInstallPos,
-                    timeNoon1: that.saveShowList.timeNoon1,
-                    tnoon1: that.saveShowList.tnoon1,
-
-                    bxySdzNoon2: that.saveShowList.bxySdzNoon2,
-                    ch4Noon2: that.saveShowList.ch4Noon2,
-                    co2Noon2: that.saveShowList.co2Noon2,
-                    coNoon2: that.saveShowList.coNoon2,
-                    gwSdzNoon2: that.saveShowList.gwSdzNoon2,
-                    jwSdzNoon2: that.saveShowList.jwSdzNoon2,
-                    o2Noon2: that.saveShowList.o2Noon2,
-                    timeNoon2: that.saveShowList.timeNoon2,
-                    tnoon2: that.saveShowList.tnoon2,
-
-
-                    bxySdzNight1: that.saveShowList.bxySdzNight1,
-                    ch4Night1: that.saveShowList.ch4Night1,
-                    checkPersonNight: that.formState.jcy,
-                    co2Night1: that.saveShowList.co2Night1,
-                    coNight1: that.saveShowList.coNight1,
-                    gwSdzNight1: that.saveShowList.gwSdzNight1,
-                    jwSdzNight1: that.saveShowList.jwSdzNight1,
-                    o2Night1: that.saveShowList.o2Night1,
-                    strInstallPos: that.saveShowList.strInstallPos,
-                    timeNight1: that.saveShowList.timeNight1,
-                    tnight1: that.saveShowList.tnight1,
-
-
-                    bxySdzNight2: that.saveShowList.bxySdzNight2,
-                    ch4Night2: that.saveShowList.ch4Night2,
-                    co2Night2: that.saveShowList.co2Night2,
-                    coNight2: that.saveShowList.coNight2,
-                    gwSdzNight2: that.saveShowList.gwSdzNight2,
-                    jwSdzNight2: that.saveShowList.jwSdzNight2,
-                    o2Night2: that.saveShowList.o2Night2,
-                    timeNight2: that.saveShowList.timeNight2,
-                    tnight2: that.saveShowList.tnight2,
-                }
-
-            } else if (that.formState.bc == '早班' && that.formState.count == '第二次') {
-                param = {
-                    id: that.saveShowList.id,
-                    bxySdzEarly1: that.saveShowList.bxySdzEarly1,
-                    ch4Early1: that.saveShowList.ch4Early1,
-                    co2Early1: that.saveShowList.co2Early1,
-                    coEarly1: that.saveShowList.coEarly1,
-                    gwSdzEarly1: that.saveShowList.gwSdzEarly1,
-                    jwSdzEarly1: that.saveShowList.jwSdzEarly1,
-                    o2Early1: that.saveShowList.o2Early1,
-                    timeEarly1: that.saveShowList.timeEarly1,
-                    tearly1: that.saveShowList.tearly1,
-
-                    // bxySdzEarly2: that.formState.bxy,
-                    ch4Early2: that.formState.ch4,
-                    checkPersonEarly: that.formState.jcy,
-                    co2Early2: that.formState.co2,
-                    coEarly2: that.formState.co,
-                    // gwSdzEarly2: that.formState.gw,
-                    jwSdzEarly2: that.formState.ch4,
-                    o2Early2: that.formState.o2,
-                    strInstallPos: that.formState.jcdd,
-                    timeEarly2: that.formState.time,
-                    tearly2: that.formState.temp,
-
-                    bxySdzNoon1: that.saveShowList.bxySdzNoon1,
-                    ch4Noon1: that.saveShowList.ch4Noon1,
-                    checkPersonNoon: that.formState.jcy,
-                    co2Noon1: that.saveShowList.co2Noon1,
-                    coNoon1: that.saveShowList.coNoon1,
-                    gwSdzNoon1: that.saveShowList.gwSdzNoon1,
-                    jwSdzNoon1: that.saveShowList.jwSdzNoon1,
-                    o2Noon1: that.saveShowList.o2Noon1,
-                    strInstallPos: that.saveShowList.strInstallPos,
-                    timeNoon1: that.saveShowList.timeNoon1,
-                    tnoon1: that.saveShowList.tnoon1,
-
-                    bxySdzNoon2: that.saveShowList.bxySdzNoon2,
-                    ch4Noon2: that.saveShowList.ch4Noon2,
-                    co2Noon2: that.saveShowList.co2Noon2,
-                    coNoon2: that.saveShowList.coNoon2,
-                    gwSdzNoon2: that.saveShowList.gwSdzNoon2,
-                    jwSdzNoon2: that.saveShowList.jwSdzNoon2,
-                    o2Noon2: that.saveShowList.o2Noon2,
-                    timeNoon2: that.saveShowList.timeNoon2,
-                    tnoon2: that.saveShowList.tnoon2,
-
-
-                    bxySdzNight1: that.saveShowList.bxySdzNight1,
-                    ch4Night1: that.saveShowList.ch4Night1,
-                    checkPersonNight: that.formState.jcy,
-                    co2Night1: that.saveShowList.co2Night1,
-                    coNight1: that.saveShowList.coNight1,
-                    gwSdzNight1: that.saveShowList.gwSdzNight1,
-                    jwSdzNight1: that.saveShowList.jwSdzNight1,
-                    o2Night1: that.saveShowList.o2Night1,
-                    strInstallPos: that.saveShowList.strInstallPos,
-                    timeNight1: that.saveShowList.timeNight1,
-                    tnight1: that.saveShowList.tnight1,
-
-
-                    bxySdzNight2: that.saveShowList.bxySdzNight2,
-                    ch4Night2: that.saveShowList.ch4Night2,
-                    co2Night2: that.saveShowList.co2Night2,
-                    coNight2: that.saveShowList.coNight2,
-                    gwSdzNight2: that.saveShowList.gwSdzNight2,
-                    jwSdzNight2: that.saveShowList.jwSdzNight2,
-                    o2Night2: that.saveShowList.o2Night2,
-                    timeNight2: that.saveShowList.timeNight2,
-                    tnight2: that.saveShowList.tnight2,
-                }
-
-            } else if (that.formState.bc == '中班' && that.formState.count == '第一次') {
-                param = {
-                    id: that.saveShowList.id,
-                    bxySdzEarly1: that.saveShowList.bxySdzEarly1,
-                    ch4Early1: that.saveShowList.ch4Early1,
-                    co2Early1: that.saveShowList.co2Early1,
-                    coEarly1: that.saveShowList.coEarly1,
-                    gwSdzEarly1: that.saveShowList.gwSdzEarly1,
-                    jwSdzEarly1: that.saveShowList.jwSdzEarly1,
-                    o2Early1: that.saveShowList.o2Early1,
-                    timeEarly1: that.saveShowList.timeEarly1,
-                    checkPersonEarly: that.formState.jcy,
-                    strInstallPos: that.saveShowList.strInstallPos,
-                    tearly1: that.saveShowList.tearly1,
-
-                    bxySdzEarly2: that.saveShowList.bxySdzEarly2,
-                    ch4Early2: that.saveShowList.ch4Early2,
-                    co2Early2: that.saveShowList.co2Early2,
-                    coEarly2: that.saveShowList.coEarly2,
-                    gwSdzEarly2: that.saveShowList.gwSdzEarly2,
-                    jwSdzEarly2: that.saveShowList.jwSdzEarly2,
-                    o2Early2: that.saveShowList.o2Early2,
-                    timeEarly2: that.saveShowList.timeEarly2,
-                    tearly2: that.saveShowList.tearly2,
-
-                    // bxySdzNoon1: that.formState.bxy,
-                    ch4Noon1: that.formState.ch4,
-                    checkPersonNoon: that.formState.jcy,
-                    co2Noon1: that.formState.co2,
-                    coNoon1: that.formState.co,
-                    // gwSdzNoon1: that.formState.gw,
-                    jwSdzNoon1: that.formState.ch4,
-                    o2Noon1: that.formState.o2,
-                    strInstallPos: that.formState.jcdd,
-                    timeNoon1: that.formState.time,
-                    tnoon1: that.formState.temp,
-
-                    bxySdzNoon2: that.saveShowList.bxySdzNoon2,
-                    ch4Noon2: that.saveShowList.ch4Noon2,
-                    co2Noon2: that.saveShowList.co2Noon2,
-                    coNoon2: that.saveShowList.coNoon2,
-                    gwSdzNoon2: that.saveShowList.gwSdzNoon2,
-                    jwSdzNoon2: that.saveShowList.jwSdzNoon2,
-                    o2Noon2: that.saveShowList.o2Noon2,
-                    timeNoon2: that.saveShowList.timeNoon2,
-                    tnoon2: that.saveShowList.tnoon2,
-
-
-                    bxySdzNight1: that.saveShowList.bxySdzNight1,
-                    ch4Night1: that.saveShowList.ch4Night1,
-                    checkPersonNight: that.formState.jcy,
-                    co2Night1: that.saveShowList.co2Night1,
-                    coNight1: that.saveShowList.coNight1,
-                    gwSdzNight1: that.saveShowList.gwSdzNight1,
-                    jwSdzNight1: that.saveShowList.jwSdzNight1,
-                    o2Night1: that.saveShowList.o2Night1,
-                    strInstallPos: that.saveShowList.strInstallPos,
-                    timeNight1: that.saveShowList.timeNight1,
-                    tnight1: that.saveShowList.tnight1,
-
-
-                    bxySdzNight2: that.saveShowList.bxySdzNight2,
-                    ch4Night2: that.saveShowList.ch4Night2,
-                    co2Night2: that.saveShowList.co2Night2,
-                    coNight2: that.saveShowList.coNight2,
-                    gwSdzNight2: that.saveShowList.gwSdzNight2,
-                    jwSdzNight2: that.saveShowList.jwSdzNight2,
-                    o2Night2: that.saveShowList.o2Night2,
-                    timeNight2: that.saveShowList.timeNight2,
-                    tnight2: that.saveShowList.tnight2,
-                }
+          })
+          .catch((error) => {
+            console.log("catch===>response", response);
+            reject(error);
+          });
+      });
+    },
 
-            } else if (that.formState.bc == '中班' && that.formState.count == '第二次') {
-                param = {
-                    id: that.saveShowList.id,
-                    bxySdzEarly1: that.saveShowList.bxySdzEarly1,
-                    ch4Early1: that.saveShowList.ch4Early1,
-                    co2Early1: that.saveShowList.co2Early1,
-                    coEarly1: that.saveShowList.coEarly1,
-                    gwSdzEarly1: that.saveShowList.gwSdzEarly1,
-                    jwSdzEarly1: that.saveShowList.jwSdzEarly1,
-                    o2Early1: that.saveShowList.o2Early1,
-                    timeEarly1: that.saveShowList.timeEarly1,
-                    checkPersonEarly: that.formState.jcy,
-                    strInstallPos: that.saveShowList.strInstallPos,
-                    tearly1: that.saveShowList.tearly1,
-
-                    bxySdzEarly2: that.saveShowList.bxySdzEarly2,
-                    ch4Early2: that.saveShowList.ch4Early2,
-                    co2Early2: that.saveShowList.co2Early2,
-                    coEarly2: that.saveShowList.coEarly2,
-                    gwSdzEarly2: that.saveShowList.gwSdzEarly2,
-                    jwSdzEarly2: that.saveShowList.jwSdzEarly2,
-                    o2Early2: that.saveShowList.o2Early2,
-                    timeEarly2: that.saveShowList.timeEarly2,
-                    tearly2: that.saveShowList.tearly2,
-
-                    bxySdzNoon1: that.saveShowList.bxySdzNoon1,
-                    ch4Noon1: that.saveShowList.ch4Noon1,
-                    co2Noon1: that.saveShowList.co2Noon1,
-                    coNoon1: that.saveShowList.coNoon1,
-                    gwSdzNoon1: that.saveShowList.gwSdzNoon1,
-                    jwSdzNoon1: that.saveShowList.jwSdzNoon1,
-                    o2Noon1: that.saveShowList.o2Noon1,
-                    timeNoon1: that.saveShowList.timeNoon1,
-                    tnoon1: that.saveShowList.tnoon1,
-
-                    // bxySdzNoon2: that.formState.bxy,
-                    ch4Noon2: that.formState.ch4,
-                    checkPersonNoon: that.formState.jcy,
-                    co2Noon2: that.formState.co2,
-                    coNoon2: that.formState.co,
-                    // gwSdzNoon2: that.formState.gw,
-                    jwSdzNoon2: that.formState.ch4,
-                    o2Noon2: that.formState.o2,
-                    strInstallPos: that.formState.jcdd,
-                    timeNoon2: that.formState.time,
-                    tnoon2: that.formState.temp,
-
-
-                    bxySdzNight1: that.saveShowList.bxySdzNight1,
-                    ch4Night1: that.saveShowList.ch4Night1,
-                    checkPersonNight: that.formState.jcy,
-                    co2Night1: that.saveShowList.co2Night1,
-                    coNight1: that.saveShowList.coNight1,
-                    gwSdzNight1: that.saveShowList.gwSdzNight1,
-                    jwSdzNight1: that.saveShowList.jwSdzNight1,
-                    o2Night1: that.saveShowList.o2Night1,
-                    strInstallPos: that.saveShowList.strInstallPos,
-                    timeNight1: that.saveShowList.timeNight1,
-                    tnight1: that.saveShowList.tnight1,
-
-
-                    bxySdzNight2: that.saveShowList.bxySdzNight2,
-                    ch4Night2: that.saveShowList.ch4Night2,
-                    co2Night2: that.saveShowList.co2Night2,
-                    coNight2: that.saveShowList.coNight2,
-                    gwSdzNight2: that.saveShowList.gwSdzNight2,
-                    jwSdzNight2: that.saveShowList.jwSdzNight2,
-                    o2Night2: that.saveShowList.o2Night2,
-                    timeNight2: that.saveShowList.timeNight2,
-                    tnight2: that.saveShowList.tnight2,
-                }
+    //新增保存
+    getConfirm() {
+      let that = this;
+      that.isShowSave = true;
+    },
+    //保存提示弹窗-确定
+    confrimSave() {
+      let that = this;
+      console.log(that.saveShowList, "saveShowList");
+      that.isStatus =
+        JSON.stringify(that.saveShowList) != "{}" ? "edit" : "add";
+      that.isShowSave = false;
+      if (that.isStatus == "add") {
+        that.getAddSave();
+      } else {
+        that.getEditSave();
+      }
+    },
+    //保存提示弹窗-取消
+    cancelSavve() {
+      let that = this;
+      that.isShowSave = false;
+    },
 
-            } else if (that.formState.bc == '夜班' && that.formState.count == '第一次') {
-                param = {
-                    id: that.saveShowList.id,
-                    bxySdzEarly1: that.saveShowList.bxySdzEarly1,
-                    ch4Early1: that.saveShowList.ch4Early1,
-                    co2Early1: that.saveShowList.co2Early1,
-                    coEarly1: that.saveShowList.coEarly1,
-                    gwSdzEarly1: that.saveShowList.gwSdzEarly1,
-                    jwSdzEarly1: that.saveShowList.jwSdzEarly1,
-                    o2Early1: that.saveShowList.o2Early1,
-                    timeEarly1: that.saveShowList.timeEarly1,
-                    checkPersonEarly: that.formState.jcy,
-                    strInstallPos: that.saveShowList.strInstallPos,
-                    tearly1: that.saveShowList.tearly1,
-
-
-                    bxySdzEarly2: that.saveShowList.bxySdzEarly2,
-                    ch4Early2: that.saveShowList.ch4Early2,
-                    co2Early2: that.saveShowList.co2Early2,
-                    coEarly2: that.saveShowList.coEarly2,
-                    gwSdzEarly2: that.saveShowList.gwSdzEarly2,
-                    jwSdzEarly2: that.saveShowList.jwSdzEarly2,
-                    o2Early2: that.saveShowList.o2Early2,
-                    timeEarly2: that.saveShowList.timeEarly2,
-                    tearly2: that.saveShowList.tearly2,
-
-                    bxySdzNoon1: that.saveShowList.bxySdzNoon1,
-                    ch4Noon1: that.saveShowList.ch4Noon1,
-                    co2Noon1: that.saveShowList.co2Noon1,
-                    coNoon1: that.saveShowList.coNoon1,
-                    gwSdzNoon1: that.saveShowList.gwSdzNoon1,
-                    jwSdzNoon1: that.saveShowList.jwSdzNoon1,
-                    o2Noon1: that.saveShowList.o2Noon1,
-                    timeNoon1: that.saveShowList.timeNoon1,
-                    tnoon1: that.saveShowList.tnoon1,
-
-                    bxySdzNoon2: that.saveShowList.bxySdzNoon2,
-                    ch4Noon2: that.saveShowList.ch4Noon2,
-                    checkPersonNoon: that.formState.jcy,
-                    co2Noon2: that.saveShowList.co2Noon2,
-                    coNoon2: that.saveShowList.coNoon2,
-                    gwSdzNoon2: that.saveShowList.gwSdzNoon2,
-                    jwSdzNoon2: that.saveShowList.jwSdzNoon2,
-                    o2Noon2: that.saveShowList.o2Noon2,
-                    strInstallPos: that.saveShowList.strInstallPos,
-                    timeNoon2: that.saveShowList.timeNoon2,
-                    tnoon2: that.saveShowList.tnoon2,
-
-
-                    // bxySdzNight1: that.formState.bxy,
-                    ch4Night1: that.formState.ch4,
-                    checkPersonNight: that.formState.jcy,
-                    co2Night1: that.formState.co2,
-                    coNight1: that.formState.co,
-                    // gwSdzNight1: that.formState.gw,
-                    jwSdzNight1: that.formState.ch4,
-                    o2Night1: that.formState.o2,
-                    strInstallPos: that.formState.jcdd,
-                    timeNight1: that.formState.time,
-                    tnight1: that.formState.temp,
-
-
-                    bxySdzNight2: that.saveShowList.bxySdzNight2,
-                    ch4Night2: that.saveShowList.ch4Night2,
-                    co2Night2: that.saveShowList.co2Night2,
-                    coNight2: that.saveShowList.coNight2,
-                    gwSdzNight2: that.saveShowList.gwSdzNight2,
-                    jwSdzNight2: that.saveShowList.jwSdzNight2,
-                    o2Night2: that.saveShowList.o2Night2,
-                    timeNight2: that.saveShowList.timeNight2,
-                    tnight2: that.saveShowList.tnight2,
-                }
+    clearData() {
+      this.formState = {
+        id: "",
+        bc: "",
+        count: "",
+        jcdd: "",
+        mcgzm: "",
+        jcy: this.username,
+        time: "",
+        ch4: "",
+        co2: "",
+        co: "",
+        o2: "",
+        jw: "",
+        // gw: '',
+        // bxy: '',
+        tbrq: "",
+        temp: "",
+      };
+      this.isRule = true;
+      this.isRule2 = true;
+      this.isRule1 = true;
+      this.isRule3 = true;
+      this.isRule14 = true;
+    },
 
-            } else if (that.formState.bc == '夜班' && that.formState.count == '第二次') {
-                param = {
-                    id: that.saveShowList.id,
-                    bxySdzEarly1: that.saveShowList.bxySdzEarly1,
-                    ch4Early1: that.saveShowList.ch4Early1,
-                    co2Early1: that.saveShowList.co2Early1,
-                    coEarly1: that.saveShowList.coEarly1,
-                    gwSdzEarly1: that.saveShowList.gwSdzEarly1,
-                    jwSdzEarly1: that.saveShowList.jwSdzEarly1,
-                    o2Early1: that.saveShowList.o2Early1,
-                    timeEarly1: that.saveShowList.timeEarly1,
-                    checkPersonEarly: that.formState.jcy,
-                    strInstallPos: that.saveShowList.strInstallPos,
-                    tearly1: that.saveShowList.tearly1,
-
-                    bxySdzEarly2: that.saveShowList.bxySdzEarly2,
-                    ch4Early2: that.saveShowList.ch4Early2,
-                    co2Early2: that.saveShowList.co2Early2,
-                    coEarly2: that.saveShowList.coEarly2,
-                    gwSdzEarly2: that.saveShowList.gwSdzEarly2,
-                    jwSdzEarly2: that.saveShowList.jwSdzEarly2,
-                    o2Early2: that.saveShowList.o2Early2,
-                    timeEarly2: that.saveShowList.timeEarly2,
-                    tearly2: that.saveShowList.tearly2,
-
-                    bxySdzNoon1: that.saveShowList.bxySdzNoon1,
-                    ch4Noon1: that.saveShowList.ch4Noon1,
-                    co2Noon1: that.saveShowList.co2Noon1,
-                    coNoon1: that.saveShowList.coNoon1,
-                    gwSdzNoon1: that.saveShowList.gwSdzNoon1,
-                    jwSdzNoon1: that.saveShowList.jwSdzNoon1,
-                    o2Noon1: that.saveShowList.o2Noon1,
-                    timeNoon1: that.saveShowList.timeNoon1,
-                    tnoon1: that.saveShowList.tnoon1,
-
-                    bxySdzNoon2: that.saveShowList.bxySdzNoon2,
-                    ch4Noon2: that.saveShowList.ch4Noon2,
-                    checkPersonNoon: that.formState.jcy,
-                    co2Noon2: that.saveShowList.co2Noon2,
-                    coNoon2: that.saveShowList.coNoon2,
-                    gwSdzNoon2: that.saveShowList.gwSdzNoon2,
-                    jwSdzNoon2: that.saveShowList.jwSdzNoon2,
-                    o2Noon2: that.saveShowList.o2Noon2,
-                    strInstallPos: that.saveShowList.strInstallPos,
-                    timeNoon2: that.saveShowList.timeNoon2,
-                    tnoon2: that.saveShowList.tnoon2,
-
-
-                    bxySdzNight1: that.saveShowList.bxySdzNight1,
-                    ch4Night1: that.saveShowList.ch4Night1,
-                    co2Night1: that.saveShowList.co2Night1,
-                    coNight1: that.saveShowList.coNight1,
-                    gwSdzNight1: that.saveShowList.gwSdzNight1,
-                    jwSdzNight1: that.saveShowList.jwSdzNight1,
-                    o2Night1: that.saveShowList.o2Night1,
-                    timeNight1: that.saveShowList.timeNight1,
-                    tnight1: that.saveShowList.tnight1,
-
-
-                    // bxySdzNight2: that.formState.bxy,
-                    ch4Night2: that.formState.ch4,
-                    checkPersonNight: that.formState.jcy,
-                    co2Night2: that.formState.co2,
-                    coNight2: that.formState.co,
-                    // gwSdzNight2: that.formState.gw,
-                    jwSdzNight2: that.formState.ch4,
-                    o2Night2: that.formState.o2,
-                    strInstallPos: that.formState.jcdd,
-                    timeNight2: that.formState.time,
-                    tnight2: that.formState.temp,
-                }
+    //新增取消
+    getCancel() {
+      this.isShowAdd = false;
+      this.isDisabled = false;
+      this.saveShowList = {};
+      this.clearData();
+    },
 
+    //获取瓦斯上报列表数据
+    getGasList() {
+      let that = this;
+      new Promise((resolve, reject) => {
+        api
+          .getGas({ reportTime: that.tbTime })
+          .then((response) => {
+            if (response.data.code == 200) {
+              let data = response.data.result.records;
+              that.gasList = data;
+            } else {
+              reject(response);
             }
-            new Promise((resolve, reject) => {
-                api
-                    .getEdit({ ...param })
-                    .then((response) => {
-                        if (response.data.code == 200) {
-                            that.getGasList()
-                            that.isShowAdd = false
-                            that.isDisabled = false
-                            that.saveShowList = {}
-                            that.zcList = that.zcList.filter(v => v.cardId != that.zcParamData.cardId) || []
-                            uni.setStorageSync('zcList', that.zcList)
-                            that.clearData()
-                        } else {
-                            reject(response);
-                        }
-                    })
-                    .catch((error) => {
-                        console.log("catch===>response", response);
-                        reject(error);
-                    });
+          })
+          .catch((error) => {
+            console.log("catch===>response", response);
+            reject(error);
+          });
+      });
+    },
+    //获取煤层工作面列表数据
+    getMcList() {
+      new Promise((resolve, reject) => {
+        api
+          .getDictItems({ dictCode: "coalseam" })
+          .then((response) => {
+            let data = response.data;
+            this.rangeMcgzm = data.map((el) => {
+              return {
+                text: el.label,
+                value: el.value,
+              };
             });
-        },
-
-        //新增保存
-        getConfirm() {
-            let that = this
-            that.isShowSave = true
-        },
-        //保存提示弹窗-确定
-        confrimSave() {
-            let that = this
-            console.log(that.saveShowList, 'saveShowList')
-            that.isStatus = JSON.stringify(that.saveShowList) != '{}' ? 'edit' : 'add'
-            that.isShowSave = false
-            if (that.isStatus == 'add') {
-                that.getAddSave()
+          })
+          .catch((error) => {
+            console.log("catch===>response", response);
+            reject(error);
+          });
+      });
+    },
+    //获取安装位置下拉选项
+    getSelectList() {
+      let param = this.rangeMcgzm.filter(
+        (v) => this.formState.mcgzm == v.value
+      )[0].value;
+      new Promise((resolve, reject) => {
+        api
+          .getSelect({ coalseam: param, devicekind: "gasDayReport" })
+          .then((response) => {
+            if (response.data.code == 200) {
+              let data = response.data.result;
+              this.rangeJcdd = data.map((v) => {
+                return {
+                  text: v.strinstallpos,
+                  value: v.strinstallpos,
+                  deviceId: v.id,
+                };
+              });
             } else {
-                that.getEditSave()
+              reject(response);
             }
-        },
-        //保存提示弹窗-取消
-        cancelSavve() {
-            let that = this
-            that.isShowSave = false
-        },
-
-        clearData() {
-            this.formState = {
-                id: '',
-                bc: '',
-                count: '',
-                jcdd: '',
-                mcgzm: '',
-                jcy: this.username,
-                time: '',
-                ch4: '',
-                co2: '',
-                co: '',
-                o2: '',
-                jw: '',
-                // gw: '',
-                // bxy: '',
-                tbrq: '',
-                temp: '',
-            }
-            this.isRule = true
-            this.isRule2 = true
-            this.isRule1 = true
-            this.isRule3 = true
-            this.isRule14 = true
-        },
-
-        //新增取消
-        getCancel() {
-            this.isShowAdd = false
-            this.isDisabled = false
-            this.saveShowList = {}
-            this.clearData()
-        },
-
-        //获取瓦斯上报列表数据
-        getGasList() {
-            let that = this
-            new Promise((resolve, reject) => {
-                api
-                    .getGas({ reportTime: that.tbTime, })
-                    .then((response) => {
-                        if (response.data.code == 200) {
-                            let data = response.data.result.records
-                            that.gasList = data
-                        } else {
-                            reject(response);
-                        }
-                    })
-                    .catch((error) => {
-                        console.log("catch===>response", response);
-                        reject(error);
-                    });
-            });
-        },
-        //获取煤层工作面列表数据
-        getMcList() {
-            new Promise((resolve, reject) => {
-                api
-                    .getDictItems({ dictCode: 'coalseam' })
-                    .then((response) => {
-                        let data = response.data
-                        this.rangeMcgzm = data.map(el => {
-                            return {
-                                text: el.label,
-                                value: el.value,
-                            }
-                        })
-                    })
-                    .catch((error) => {
-                        console.log("catch===>response", response);
-                        reject(error);
-                    });
-            });
-        },
-        //获取安装位置下拉选项
-        getSelectList() {
-            let param = this.rangeMcgzm.filter(v => this.formState.mcgzm == v.value)[0].value
-            new Promise((resolve, reject) => {
-                api
-                    .getSelect({ coalseam: param, devicekind: 'gasDayReport' })
-                    .then((response) => {
-                        if (response.data.code == 200) {
-                            let data = response.data.result
-                            this.rangeJcdd = data.map(v => {
-                                return {
-                                    text: v.strinstallpos,
-                                    value: v.strinstallpos,
-                                    deviceId: v.id,
-                                }
-                            })
-                        } else {
-                            reject(response);
-                        }
-                    })
-                    .catch((error) => {
-                        console.log("catch===>response", response);
-                        reject(error);
-                    });
-            });
-        },
-        //本地暂存
-        getComfirmZc() {
-            let that = this
-            that.zcList.push({ cardId: that.cardIds, bc: that.formState.bc, count: that.formState.count, info: that.formState })
-            uni.setStorageSync('zcList', that.zcList)
-            that.isShowAdd = false
-            that.clearData()
-        },
-        //进入暂存列表
-        openZc() {
-            let that = this
-            that.zcShow = true
-            that.isShowAdd = false
-        },
-        //暂存列表跳转到填报界面保存/返回上一级
-        async closeZc(param) {
-            console.log(param, '提交---')
-            let that = this
-            if (param) {
-                that.zcShow = false
-                that.isShowAdd = true
-                that.zcParamData = Object.assign({}, param)
-                await that.getCardLists(param.cardId)
-                await that.isEditOrAdd(param.info)
+          })
+          .catch((error) => {
+            console.log("catch===>response", response);
+            reject(error);
+          });
+      });
+    },
+    //本地暂存
+    getComfirmZc() {
+      let that = this;
+      that.zcList.push({
+        cardId: that.cardIds,
+        bc: that.formState.bc,
+        count: that.formState.count,
+        info: that.formState,
+      });
+      uni.setStorageSync("zcList", that.zcList);
+      that.isShowAdd = false;
+      that.clearData();
+    },
+    //进入暂存列表
+    openZc() {
+      let that = this;
+      that.zcShow = true;
+      that.isShowAdd = false;
+    },
+    //暂存列表跳转到填报界面保存/返回上一级
+    async closeZc(param) {
+      console.log(param, "提交---");
+      let that = this;
+      if (param) {
+        that.zcShow = false;
+        that.isShowAdd = true;
+        that.zcParamData = Object.assign({}, param);
+        await that.getCardLists(param.cardId);
+        await that.isEditOrAdd(param.info);
+      } else {
+        that.zcShow = false;
+      }
+    },
+    isEditOrAdd(param) {
+      let that = this;
+      new Promise((resolve, reject) => {
+        api
+          .getGas({ reportTime: param.tbrq, deviceId: that.deviceId })
+          .then((response) => {
+            if (response.data.code == 200) {
+              let data = response.data.result.records;
+              if (data.length != 0) {
+                that.saveShowList = data[0];
+                that.formState = {
+                  ...param,
+                  id: that.saveShowList.id,
+                  jcdd: that.formState.jcdd,
+                };
+              } else {
+                that.saveShowList = {};
+                that.formState = param;
+              }
             } else {
-                that.zcShow = false
+              reject(response);
             }
-        },
-        isEditOrAdd(param) {
-            let that = this
-            new Promise((resolve, reject) => {
-                api
-                    .getGas({ reportTime: param.tbrq, deviceId: that.deviceId })
-                    .then((response) => {
-                        if (response.data.code == 200) {
-                            let data = response.data.result.records
-                            if (data.length != 0) {
-                                that.saveShowList = data[0]
-                                that.formState = { ...param, id: that.saveShowList.id, jcdd: that.formState.jcdd }
-                            } else {
-                                that.saveShowList = {}
-                                that.formState = param
-                            }
-                        } else {
-                            reject(response);
-                        }
-                    })
-                    .catch((error) => {
-                        console.log("catch===>response", response);
-                        reject(error);
-                    });
-            });
-
-
-        }
+          })
+          .catch((error) => {
+            console.log("catch===>response", response);
+            reject(error);
+          });
+      });
     },
-
+  },
 };
 </script>
 
 <style lang="scss" scoped>
 .gas-fill {
-    position: relative;
-    width: 100%;
-    height: 100%;
+  position: relative;
+  width: 100%;
+  height: 100%;
+
+  .top-title {
+    height: 28px;
+    margin-bottom: 5px;
+    display: flex;
+    justify-content: space-between;
+    align-items: center;
+  }
+
+  .top-content {
+    .content-title {
+      height: 26px;
+      line-height: 26px;
+      padding: 0px 20px;
+      font-size: 12px;
+      background: url("/static/warndata/1-1.png") no-repeat;
+      background-size: 100% 100%;
+    }
 
-    .top-title {
-        height: 28px;
-        margin-bottom: 5px;
+    .content-item-box {
+      padding: 10px 0px;
+
+      .content-item {
+        height: 50px;
         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;
 
-    .top-content {
-        .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%;
+        .item-l {
+          width: calc(50% - 2px);
+          height: 100%;
+          display: flex;
+          flex-direction: column;
+          justify-content: center;
+          align-items: center;
         }
 
-        .content-item-box {
-            padding: 10px 0px;
-
-            .content-item {
-                height: 50px;
-                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% - 2px);
-                    height: 100%;
-                    display: flex;
-                    flex-direction: column;
-                    justify-content: center;
-                    align-items: center;
-                }
-
-                .item-c {
-                    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(50% - 2px);
-                    height: 100%;
-                    display: flex;
-                    flex-direction: column;
-                    justify-content: center;
-                    align-items: center;
-                }
-            }
+        .item-c {
+          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-value {
-        height: 20px;
-        line-height: 20px;
-        color: #0eb4fc;
-        font-weight: bold;
-    }
-
-    .item-label {
-        font-size: 12px;
-    }
-
-    .top-dialog-area,
-    .center-dialog-area,
-    .bottom-dialog-area {
-        width: 100%;
-        padding: 10px;
-        box-sizing: border-box;
-        background-color: #FFF;
-        margin-bottom: 2px;
-    }
-
-    .top-gas-list {
-        display: flex;
-        flex-direction: column;
-        align-items: center;
-        width: 100%;
-        padding: 10px 20px;
-        box-sizing: border-box;
-        background-color: #FFF;
-        margin-bottom: 2px;
-    }
 
-    .bot-gas-list {
-        width: 100%;
-        height: calc(100% - 94px);
-        padding: 10px;
-        box-sizing: border-box;
-        background-color: #FFF;
-        margin-bottom: 2px;
-        overflow-y: auto;
-    }
-
-    .dialog-btn {
-        display: flex;
-        width: 100%;
-        padding: 8px 10px;
-        box-sizing: border-box;
-        background-color: #FFF;
-
-        // margin-bottom: 2px;
-        .u-button {
-            margin: 0px 10px;
+        .item-r {
+          width: calc(50% - 2px);
+          height: 100%;
+          display: flex;
+          flex-direction: column;
+          justify-content: center;
+          align-items: center;
         }
+      }
     }
+  }
 
-    .dialog-title {
-        height: 26px;
-        line-height: 26px;
-        padding: 0px 20px;
-        margin-bottom: 10px;
-        font-size: 12px;
-        background: url('/static/warndata/title.png') no-repeat;
-        background-size: 100% 100%;
-    }
+  .item-value {
+    height: 20px;
+    line-height: 20px;
+    color: #0eb4fc;
+    font-weight: bold;
+  }
 
-    .dialog-item {
-        display: flex;
-        align-items: center;
-        justify-content: center;
-        margin-bottom: 10px;
+  .item-label {
+    font-size: 12px;
+  }
 
-        .dialog-label {
-            width: 120px;
-            text-align: right;
-        }
-    }
+  .top-dialog-area,
+  .center-dialog-area,
+  .bottom-dialog-area {
+    width: 100%;
+    padding: 10px;
+    box-sizing: border-box;
+    background-color: #fff;
+    margin-bottom: 2px;
+  }
+
+  .top-gas-list {
+    display: flex;
+    flex-direction: column;
+    align-items: center;
+    width: 100%;
+    padding: 10px 20px;
+    box-sizing: border-box;
+    background-color: #fff;
+    margin-bottom: 2px;
+  }
 
-    .search-box {
-        display: flex;
-        align-items: center;
-        justify-content: center;
-        margin-bottom: 10px;
+  .bot-gas-list {
+    width: 100%;
+    height: calc(100% - 94px);
+    padding: 10px;
+    box-sizing: border-box;
+    background-color: #fff;
+    margin-bottom: 2px;
+    overflow-y: auto;
+  }
+
+  .dialog-btn {
+    display: flex;
+    width: 100%;
+    padding: 8px 10px;
+    box-sizing: border-box;
+    background-color: #fff;
 
-        .dialog-label {
-            width: 80px;
-            text-align: right;
-        }
+    // margin-bottom: 2px;
+    .u-button {
+      margin: 0px 10px;
     }
-
-    .content-title-gas {
-        position: relative;
-        height: 26px;
-        line-height: 26px;
-        padding-left: 20px;
-        font-size: 12px;
-        background: url('/static/warndata/title.png') no-repeat;
-        background-size: 100% 100%;
+  }
+
+  .dialog-title {
+    height: 26px;
+    line-height: 26px;
+    padding: 0px 20px;
+    margin-bottom: 10px;
+    font-size: 12px;
+    background: url("/static/warndata/1-1.png") no-repeat;
+    background-size: 100% 100%;
+  }
+
+  .dialog-item {
+    display: flex;
+    align-items: center;
+    justify-content: center;
+    margin-bottom: 10px;
+
+    .dialog-label {
+      width: 120px;
+      text-align: right;
     }
+  }
 
-    .icon-gas-edit {
-        position: absolute;
-        right: 35px;
-        top: 0;
-        cursor: pointer;
-    }
+  .search-box {
+    display: flex;
+    align-items: center;
+    justify-content: center;
+    margin-bottom: 10px;
 
-    .icon-gas-del {
-        position: absolute;
-        right: 10px;
-        top: 0;
-        cursor: pointer;
+    .dialog-label {
+      width: 80px;
+      text-align: right;
     }
+  }
 
+  .content-title-gas {
+    position: relative;
+    height: 26px;
+    line-height: 26px;
+    padding-left: 20px;
+    font-size: 12px;
+    background: url("/static/warndata/1-1.png") no-repeat;
+    background-size: 100% 100%;
+  }
+
+  .icon-gas-edit {
+    position: absolute;
+    right: 35px;
+    top: 0;
+    cursor: pointer;
+  }
+
+  .icon-gas-del {
+    position: absolute;
+    right: 10px;
+    top: 0;
+    cursor: pointer;
+  }
 }
 
 ::v-deep .u-input {
-    padding: 2px 6px !important;
+  padding: 2px 6px !important;
 }
 
 ::v-deep .u-popup {
-    flex: 0;
+  flex: 0;
 }
 
 ::v-deep .uni-select {
-    height: 30px;
-    border: 1px solid #dadbde;
+  height: 30px;
+  border: 1px solid #dadbde;
 }
 
 ::v-deep .uni-select__input-box {
-    height: 30px;
+  height: 30px;
 }
 
 ::v-deep .uni-select__input-placeholder {
-    font-size: 14px;
-    text-align: center;
-    color: rgb(192, 196, 204);
+  font-size: 14px;
+  text-align: center;
+  color: rgb(192, 196, 204);
 }
 
 ::v-deep .u-modal__title {
-    font-size: 16px;
-    font-weight: bold;
-    color: #606266;
-    text-align: center;
-    padding-top: 10px;
+  font-size: 16px;
+  font-weight: bold;
+  color: #606266;
+  text-align: center;
+  padding-top: 10px;
 }
 
 ::v-deep .u-modal__content {
-    padding: 12px 25px 20px 25px;
+  padding: 12px 25px 20px 25px;
 }
 
 ::v-deep .u-modal__button-group__wrapper {
-    height: 36px;
+  height: 36px;
 }
 </style>

+ 235 - 90
pages/gasreport/components/gasImgIdentify.vue

@@ -1,29 +1,62 @@
 <template>
   <view class="gas-fill">
-    <u-navbar :bgStatusImage="backPic0" :bgImage="backPic" :title="gasTitle" :safeAreaInsetTop="true"
-      leftIcon="arrow-left" @leftClick="handlerToggle">
+    <u-navbar
+      :bgStatusImage="backPic0"
+      :bgImage="backPic"
+      :title="gasTitle"
+      :safeAreaInsetTop="true"
+      leftIcon="arrow-left"
+      @leftClick="handlerToggle"
+    >
     </u-navbar>
     <!-- 瓦斯上报列表 -->
     <view v-if="statusShow != 'edit'">
       <view class="top-gas-list">
-        <u-button type="primary" icon="camera-fill" size="small" @click="GalleryFile"
-          style="margin: 2px 0px">图片选取</u-button>
+        <u-button
+          type="primary"
+          icon="camera-fill"
+          size="small"
+          @click="GalleryFile"
+          style="margin: 2px 0px"
+          >图片选取</u-button
+        >
         <!-- 图片预览 -->
         <view class="imgView">
-          <image v-if="saveImg || imageSrc" style="width: 100%" :src="imageSrc ? imageSrc : saveImg"
-            @click="getPreview">
+          <image
+            v-if="saveImg || imageSrc"
+            style="width: 100%"
+            :src="imageSrc ? imageSrc : saveImg"
+            @click="getPreview"
+          >
           </image>
         </view>
 
-        <view style="
+        <view
+          style="
             width: 100%;
             display: flex;
             justify-content: space-between;
             margin: 2px 0px;
-          ">
-          <u-button icon="eye" type="primary" size="small" :loading="loading" loadingText="识别中"
-            style="width: 49%; margin: 0" @click="getGasIdentify">识别</u-button>
-          <u-button icon="trash" type="primary" size="small" style="width: 49%; margin: 0" @click="delSb">删除</u-button>
+          "
+        >
+          <u-button
+            icon="eye"
+            type="primary"
+            size="small"
+            :loading="loading"
+            loadingText="识别中"
+            style="width: 49%; margin: 0"
+            @click="getGasIdentify"
+            >识别</u-button
+          >
+          <u-button
+            icon="trash"
+            type="primary"
+            size="small"
+            style="width: 49%; margin: 0"
+            @click="delSb"
+            >删除</u-button
+          >
         </view>
         <helang-compress ref="helangCompress"></helang-compress>
       </view>
@@ -31,56 +64,108 @@
 
     <view v-if="statusShow == 'edit'">
       <view class="top-gas-list">
-        <u-button type="primary" icon="camera-fill" size="small" @click="GalleryFile"
-          style="margin: 2px 0px">图片更新</u-button>
+        <u-button
+          type="primary"
+          icon="camera-fill"
+          size="small"
+          @click="GalleryFile"
+          style="margin: 2px 0px"
+          >图片更新</u-button
+        >
         <!-- 图片预览 -->
         <view class="imgView">
-          <image v-if="imageSrcView" style="width: 100%" :src="imageSrcView" @click="getPreview">
+          <image
+            v-if="imageSrcView"
+            style="width: 100%"
+            :src="imageSrcView"
+            @click="getPreview"
+          >
           </image>
         </view>
       </view>
     </view>
 
     <!-- 新增弹窗 -->
-    <view v-if="isShowAdd" :style="{
-      padding: imageSrcView
-        ? '295px 0px 10px 0px'
-        : imageSrc
+    <view
+      v-if="isShowAdd"
+      :style="{
+        padding: imageSrcView
+          ? '295px 0px 10px 0px'
+          : imageSrc
           ? '330px 0px 10px 0px'
           : saveImg
-            ? '330px 0px 10px 0px'
-            : '54px 0px 10px 0px',
-    }" :class="statusShow == 'edit' ? 'bot-gas-list1' : 'bot-gas-list'">
+          ? '330px 0px 10px 0px'
+          : '54px 0px 10px 0px',
+      }"
+      :class="statusShow == 'edit' ? 'bot-gas-list1' : 'bot-gas-list'"
+    >
       <view class="top-dialog-area">
         <view class="dialog-item">
           <text class="dialog-label">班次:</text>
-          <u--input inputAlign="center" disabled v-model="formState.bc" clearable></u--input>
+          <u--input
+            inputAlign="center"
+            disabled
+            v-model="formState.bc"
+            clearable
+          ></u--input>
         </view>
         <view class="dialog-item">
           <text class="dialog-label">检测次数:</text>
-          <u--input inputAlign="center" disabled v-model="formState.count" clearable></u--input>
+          <u--input
+            inputAlign="center"
+            disabled
+            v-model="formState.count"
+            clearable
+          ></u--input>
         </view>
         <view class="dialog-item">
           <text class="dialog-label">检测地点:</text>
 
-          <u--textarea v-model="formState.jcdd" :height="14" disabled></u--textarea>
+          <u--textarea
+            v-model="formState.jcdd"
+            :height="14"
+            disabled
+          ></u--textarea>
         </view>
         <view class="dialog-item" @click="getChangeTime">
           <text class="dialog-label">检测时间:</text>
-          <u--input readonly v-model="formState.time" placeholder="请选择检测时间" inputAlign="center"
-            :disabled="statusShow == 'edit'" suffixIcon="arrow-right"></u--input>
-          <u-datetime-picker :show="showCalendar" v-model="timeRan" mode="datetime" closeOnClickOverlay
-            @confirm="showCalendar = false" @cancel="showCalendar = false" @change="change"
-            @close="showCalendar = false"></u-datetime-picker>
+          <u--input
+            readonly
+            v-model="formState.time"
+            placeholder="请选择检测时间"
+            inputAlign="center"
+            :disabled="statusShow == 'edit'"
+            suffixIcon="arrow-right"
+          ></u--input>
+          <u-datetime-picker
+            :show="showCalendar"
+            v-model="timeRan"
+            mode="datetime"
+            closeOnClickOverlay
+            @confirm="showCalendar = false"
+            @cancel="showCalendar = false"
+            @change="change"
+            @close="showCalendar = false"
+          ></u-datetime-picker>
         </view>
         <view class="dialog-item">
           <text class="dialog-label">填报日期:</text>
-          <u--input inputAlign="center" readonly v-model="formState.tbrq" placeholder="请选择填报日期"
-            :disabled="statusShow == 'edit'"></u--input>
+          <u--input
+            inputAlign="center"
+            readonly
+            v-model="formState.tbrq"
+            placeholder="请选择填报日期"
+            :disabled="statusShow == 'edit'"
+          ></u--input>
         </view>
         <view class="dialog-item">
           <text class="dialog-label">检查工:</text>
-          <u--input inputAlign="center" disabled v-model="formState.jcy" placeholder="请输入"></u--input>
+          <u--input
+            inputAlign="center"
+            disabled
+            v-model="formState.jcy"
+            placeholder="请输入"
+          ></u--input>
         </view>
       </view>
       <view>
@@ -89,57 +174,113 @@
 
           <view class="dialog-item">
             <text class="dialog-label">CH₄(%):</text>
-            <u--input inputAlign="center" v-model="formState.ch4" :placeholder="isRule2 ? '请输入' : '数据有误'" type="number"
-              @blur="getBlurCH4" @input="changeInput($event, 'ch4')" clearable
-              :placeholderStyle="isRule2 ? 'color:#c0c4cc' : 'color:#ff0000'"></u--input>
+            <u--input
+              inputAlign="center"
+              v-model="formState.ch4"
+              :placeholder="isRule2 ? '请输入' : '数据有误'"
+              type="number"
+              @blur="getBlurCH4"
+              @input="changeInput($event, 'ch4')"
+              clearable
+              :placeholderStyle="isRule2 ? 'color:#c0c4cc' : 'color:#ff0000'"
+            ></u--input>
           </view>
           <view class="dialog-item">
             <text class="dialog-label">CO₂(%):</text>
-            <u--input inputAlign="center" v-model="formState.co2" :placeholder="isRule ? '请输入' : '数据有误'" type="number"
-              @blur="getBlurCO2" @input="changeInput($event, 'co2')" clearable
-              :placeholderStyle="isRule ? 'color:#c0c4cc' : 'color:#ff0000'"></u--input>
+            <u--input
+              inputAlign="center"
+              v-model="formState.co2"
+              :placeholder="isRule ? '请输入' : '数据有误'"
+              type="number"
+              @blur="getBlurCO2"
+              @input="changeInput($event, 'co2')"
+              clearable
+              :placeholderStyle="isRule ? 'color:#c0c4cc' : 'color:#ff0000'"
+            ></u--input>
           </view>
           <view class="dialog-item">
             <text class="dialog-label">CO(ppm):</text>
-            <u--input inputAlign="center" v-model="formState.co" :placeholder="isRule14 ? '请输入' : '数据有误'" clearable
-              :placeholderStyle="isRule14 ? 'color:#c0c4cc' : 'color:#ff0000'" type="number" @blur="getBlurCO"
-              @input="changeInput($event, 'co')"></u--input>
+            <u--input
+              inputAlign="center"
+              v-model="formState.co"
+              :placeholder="isRule14 ? '请输入' : '数据有误'"
+              clearable
+              :placeholderStyle="isRule14 ? 'color:#c0c4cc' : 'color:#ff0000'"
+              type="number"
+              @blur="getBlurCO"
+              @input="changeInput($event, 'co')"
+            ></u--input>
           </view>
           <view class="dialog-item">
             <text class="dialog-label">O₂(%):</text>
-            <u--input inputAlign="center" clearable type="number" v-model="formState.o2" placeholder="请输入"
-              @input="changeInput($event, 'o2')"></u--input>
+            <u--input
+              inputAlign="center"
+              clearable
+              type="number"
+              v-model="formState.o2"
+              placeholder="请输入"
+              @input="changeInput($event, 'o2')"
+            ></u--input>
           </view>
           <view class="dialog-item">
             <text class="dialog-label">T(℃):</text>
-            <u--input inputAlign="center" clearable type="number" @input="changeInput($event, 'temp')"
-              v-model="formState.temp" placeholder="请输入"></u--input>
+            <u--input
+              inputAlign="center"
+              clearable
+              type="number"
+              @input="changeInput($event, 'temp')"
+              v-model="formState.temp"
+              placeholder="请输入"
+            ></u--input>
           </view>
         </view>
         <view class="bottom-dialog-area">
           <div class="dialog-title">三对照数据</div>
           <view class="dialog-item">
             <text class="dialog-label">甲烷传感器:</text>
-            <u--input inputAlign="center" v-model="formState.jw" placeholder="请输入" clearable
-              @input="changeInput($event, 'jw')"></u--input>
+            <u--input
+              inputAlign="center"
+              v-model="formState.jw"
+              placeholder="请输入"
+              clearable
+              @input="changeInput($event, 'jw')"
+            ></u--input>
           </view>
           <view class="dialog-item">
             <text class="dialog-label">光瓦:</text>
 
-            <u--input inputAlign="center" type="number" v-model="formState.ch4" placeholder="请输入" clearable
-              @input="changeInput($event, 'ch4')"></u--input>
+            <u--input
+              inputAlign="center"
+              type="number"
+              v-model="formState.ch4"
+              placeholder="请输入"
+              clearable
+              @input="changeInput($event, 'ch4')"
+            ></u--input>
           </view>
           <view class="dialog-item">
             <text class="dialog-label">便携仪:</text>
-            <u--input inputAlign="center" :placeholderStyle="isRule3 ? 'color:#c0c4cc' : 'color:#ff0000'"
-              :placeholder="isRule3 ? '请输入' : '数据有误'" type="number" v-model="formState.bxy" clearable @blur="getBlurBxy"
-              @input="changeInput($event, 'bxy')"></u--input>
+            <u--input
+              inputAlign="center"
+              :placeholderStyle="isRule3 ? 'color:#c0c4cc' : 'color:#ff0000'"
+              :placeholder="isRule3 ? '请输入' : '数据有误'"
+              type="number"
+              v-model="formState.bxy"
+              clearable
+              @blur="getBlurBxy"
+              @input="changeInput($event, 'bxy')"
+            ></u--input>
           </view>
         </view>
       </view>
       <view class="dialog-btn">
-        <u-button type="success" v-if="statusShow == 'add' || statusShow == 'edit'" size="small"
-          @click="getConfirm">保存</u-button>
+        <u-button
+          type="success"
+          v-if="statusShow == 'add' || statusShow == 'edit'"
+          size="small"
+          @click="getConfirm"
+          >保存</u-button
+        >
         <u-button type="primary" size="small" @click="getCancel">取消</u-button>
       </view>
     </view>
@@ -150,7 +291,7 @@
 import api from "@/api/api";
 import moment from "moment";
 import configService from "@/common/service/config.service.js";
-// import { RHFselcet } from "@/uni_modules/fz-media-selcet";
+import { RHFselcet } from "@/uni_modules/fz-media-selcet";
 import helangCompress from "@/components/helang-compress/helang-compress";
 export default {
   name: "gasFill",
@@ -294,13 +435,12 @@ export default {
           if (that.sbData.length) {
             that.getSbFill();
           }
-
         }
       },
       immediate: true,
     },
   },
-  mounted() { },
+  mounted() {},
   methods: {
     //打开选择器选择
     GalleryFile() {
@@ -377,7 +517,7 @@ export default {
       let that = this;
       that.deviceId = that.deviceID;
       that.imageSrc = that.urlData;
-      let status = that.sbData.length ? that.sbData[0].status : '';
+      let status = that.sbData.length ? that.sbData[0].status : "";
       if (status != "2") {
         if (that.sbData.length != 0) {
           that.indexParam = that.sbData[0];
@@ -388,8 +528,8 @@ export default {
               that.checkNum == "1"
                 ? "第一次"
                 : that.checkNum == "2"
-                  ? "第二次"
-                  : "",
+                ? "第二次"
+                : "",
             jcdd: that.deviceName || "",
             jcy:
               that.indexParam && that.indexParam["检查人"]
@@ -420,9 +560,9 @@ export default {
             tbrq:
               that.indexParam && that.indexParam["检查时间"]
                 ? that.indexParam["检查时间"].substring(
-                  0,
-                  that.indexParam["检查时间"].indexOf(" ")
-                )
+                    0,
+                    that.indexParam["检查时间"].indexOf(" ")
+                  )
                 : "",
             temp:
               that.indexParam && that.indexParam["温度(℃)"]
@@ -763,8 +903,8 @@ export default {
               that.checkNum == "1"
                 ? "第一次"
                 : that.checkNum == "2"
-                  ? "第二次"
-                  : "",
+                ? "第二次"
+                : "",
             jcdd: that.deviceName || "",
             jcy: that.username,
             time: "",
@@ -786,8 +926,8 @@ export default {
             that.checkNum == "1"
               ? "第一次"
               : that.checkNum == "2"
-                ? "第二次"
-                : "",
+              ? "第二次"
+              : "",
           jcdd: that.deviceName || "",
           jcy: that.username,
           time: "",
@@ -855,8 +995,8 @@ export default {
                       that.checkNum == "1"
                         ? "第一次"
                         : that.checkNum == "2"
-                          ? "第二次"
-                          : "",
+                        ? "第二次"
+                        : "",
                     jcdd: that.deviceName || "",
                     jcy:
                       that.indexParam && that.indexParam["检查人"]
@@ -887,9 +1027,9 @@ export default {
                     tbrq:
                       that.indexParam && that.indexParam["检查时间"]
                         ? that.indexParam["检查时间"].substring(
-                          0,
-                          that.indexParam["检查时间"].indexOf(" ")
-                        )
+                            0,
+                            that.indexParam["检查时间"].indexOf(" ")
+                          )
                         : "",
                     temp:
                       that.indexParam && that.indexParam["温度(℃)"]
@@ -1230,8 +1370,8 @@ export default {
                       that.checkNum == "1"
                         ? "第一次"
                         : that.checkNum == "2"
-                          ? "第二次"
-                          : "",
+                        ? "第二次"
+                        : "",
                     jcdd: that.deviceName || "",
                     jcy: that.username,
                     time: "",
@@ -1305,8 +1445,8 @@ export default {
                   that.checkNum == "1"
                     ? "第一次"
                     : that.checkNum == "2"
-                      ? "第二次"
-                      : "",
+                    ? "第二次"
+                    : "",
                 jcdd: that.deviceName || "",
                 jcy:
                   that.indexParam && that.indexParam["检查人"]
@@ -1337,9 +1477,9 @@ export default {
                 tbrq:
                   that.indexParam && that.indexParam["检查时间"]
                     ? that.indexParam["检查时间"].substring(
-                      0,
-                      that.indexParam["检查时间"].indexOf(" ")
-                    )
+                        0,
+                        that.indexParam["检查时间"].indexOf(" ")
+                      )
                     : "",
                 temp:
                   that.indexParam && that.indexParam["温度(℃)"]
@@ -1680,8 +1820,8 @@ export default {
                   that.checkNum == "1"
                     ? "第一次"
                     : that.checkNum == "2"
-                      ? "第二次"
-                      : "",
+                    ? "第二次"
+                    : "",
                 jcdd: that.deviceName || "",
                 jcy: that.username,
                 time: "",
@@ -3214,7 +3354,7 @@ export default {
       line-height: 26px;
       padding: 0px 20px;
       font-size: 12px;
-      background: url("/static/warndata/title.png") no-repeat;
+      background: url("/static/warndata/1-1.png") no-repeat;
       background-size: 100% 100%;
     }
 
@@ -3226,10 +3366,12 @@ export default {
         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));
+        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;
 
@@ -3249,10 +3391,13 @@ export default {
           width: 4px;
           height: 70%;
           border-left: 2px solid;
-          border-image: linear-gradient(to bottom,
+          border-image: linear-gradient(
+              to bottom,
               transparent,
               rgba(140, 203, 254, 1),
-              transparent) 1 1 1;
+              transparent
+            )
+            1 1 1;
         }
 
         .item-r {
@@ -3346,7 +3491,7 @@ export default {
     padding: 0px 20px;
     margin-bottom: 10px;
     font-size: 12px;
-    background: url("/static/warndata/title.png") no-repeat;
+    background: url("/static/warndata/1-1.png") no-repeat;
     background-size: 100% 100%;
   }
 
@@ -3369,7 +3514,7 @@ export default {
     line-height: 26px;
     padding-left: 20px;
     font-size: 12px;
-    background: url("/static/warndata/title.png") no-repeat;
+    background: url("/static/warndata/1-1.png") no-repeat;
     background-size: 100% 100%;
   }
 

+ 206 - 195
pages/gasreport/components/gasRecordCard.vue

@@ -1,230 +1,241 @@
 <template>
-    <view class="gas-record-card">
-        <view class="record-top-area">
-            <view class="record-write-box">
-                <text class="dialog-label">卡ID:</text>
-                <u--input v-model="cardId" placeholder="请输入卡片ID" type="number" size="small" clearable
-                    style="width:220px;padding: 2px 9px;"></u--input>
-            </view>
-            <!-- <u-button type="primary" size="small" style="margin: 2px 0px;" @click="getNfcFormat">格式化tag</u-button> -->
-            <u-button type="primary" size="small" style="margin: 2px 0px;" @click="getNfcWrite">录入</u-button>
-            <u-button type="primary" size="small" style="margin: 2px 0px;" @click="getNfcRead">读取</u-button>
+  <view class="gas-record-card">
+    <view class="record-top-area">
+      <view class="record-write-box">
+        <text class="dialog-label">卡ID:</text>
+        <u--input
+          v-model="cardId"
+          placeholder="请输入卡片ID"
+          type="number"
+          size="small"
+          clearable
+          style="width: 220px; padding: 2px 9px"
+        ></u--input>
+      </view>
+      <!-- <u-button type="primary" size="small" style="margin: 2px 0px;" @click="getNfcFormat">格式化tag</u-button> -->
+      <u-button
+        type="primary"
+        size="small"
+        style="margin: 2px 0px"
+        @click="getNfcWrite"
+        >录入</u-button
+      >
+      <u-button
+        type="primary"
+        size="small"
+        style="margin: 2px 0px"
+        @click="getNfcRead"
+        >读取</u-button
+      >
+    </view>
+    <view class="record-bot-area">
+      <u-toast ref="uToast"></u-toast>
+      <view class="record-container" v-if="cardData.id">
+        <view class="record-title">
+          <span class="record-text">卡片ID读取</span>
         </view>
-        <view class="record-bot-area">
-            <u-toast ref="uToast"></u-toast>
-            <view class="record-container" v-if="cardData.id">
-                <view class="record-title">
-                    <span class="record-text">卡片ID读取</span>
-                </view>
-                <view class="record-card">
-                    <view class="record-card-item">
-                        <text class="card-item-label">当前卡ID为:</text>
-                        <text class="card-item-value">{{ cardData.id }}</text>
-                    </view>
-                    <view class="record-card-item">
-                        <text class="card-item-label">当前巡检点为:</text>
-                        <text class="card-item-value">{{ cardData.address }}</text>
-                    </view>
-
-                </view>
-            </view>
+        <view class="record-card">
+          <view class="record-card-item">
+            <text class="card-item-label">当前卡ID为:</text>
+            <text class="card-item-value">{{ cardData.id }}</text>
+          </view>
+          <view class="record-card-item">
+            <text class="card-item-label">当前巡检点为:</text>
+            <text class="card-item-value">{{ cardData.address }}</text>
+          </view>
         </view>
-
+      </view>
     </view>
+  </view>
 </template>
 
 <script>
 import api from "@/api/api";
-import testNfc from "@/common/util/hexiii-nfc.js"
+import testNfc from "@/common/util/hexiii-nfc.js";
 export default {
-    name: 'gasRecordCard',
-    data() {
-        return {
-            isNfc: true,
-            cardId: '',
-            cardData: { id: '', address: '' },
-        }
+  name: "gasRecordCard",
+  data() {
+    return {
+      isNfc: true,
+      cardId: "",
+      cardData: { id: "", address: "" },
+    };
+  },
+  computed: {
+    cardIds: function () {
+      return this.$store.getters.nfcreadtxt;
     },
-    computed: {
-        cardIds: function () {
-            return this.$store.getters.nfcreadtxt;
-        }
+  },
+  watch: {
+    cardIds: {
+      handler(newV, oldV) {
+        console.log(newV, "newV------------------------");
+        this.getCardLists(newV);
+      },
+      immediate: true,
     },
-    watch: {
-        cardIds: {
-            handler(newV, oldV) {
-                console.log(newV, 'newV------------------------')
-                this.getCardLists(newV)
-            },
-            immediate: true
-        }
-    },
-    mounted() {
-        testNfc.listenNFCStatus()
-        // testNfc.Into()
-    },
-    methods: {
-        //获取NFC卡读取内容
-        getCardLists(ids) {
-            let that = this
-            new Promise((resolve, reject) => {
-                api
-                    .getCardList({ id: ids })
-                    .then((response) => {
-                        if (response.data.code == 200) {
-                            let data = response.data.result
-                            that.cardData.id = data.id
-                            that.cardData.address = data.strInstallPos
-                        } else {
-                            that.$refs.uToast.show({
-                                type: 'default',
-                                icon: false,
-                                message: response.data.message,
-                            })
-                        }
-                    })
-
+  },
+  mounted() {
+    testNfc.listenNFCStatus();
+    // testNfc.Into()
+  },
+  methods: {
+    //获取NFC卡读取内容
+    getCardLists(ids) {
+      let that = this;
+      new Promise((resolve, reject) => {
+        api.getCardList({ id: ids }).then((response) => {
+          if (response.data.code == 200) {
+            let data = response.data.result;
+            that.cardData.id = data.id;
+            that.cardData.address = data.strInstallPos;
+          } else {
+            that.$refs.uToast.show({
+              type: "default",
+              icon: false,
+              message: response.data.message,
             });
-        },
-
-        //格式化tag
-        // getNfcFormat() {
-        //     testNfc.__write()
-        // },
-        //nfc 写入
-        getNfcWrite() {
-            let that = this
-            new Promise((resolve, reject) => {
-                api
-                    .enterCardId({ id: that.cardId, })
-                    .then((response) => {
-                        if (response.data.code == 200) {
-                            if (that.isNfc) {
-                                // 调用 js 文件里面的方法
-                                testNfc.setTxt(that.cardId);
-                                testNfc.writeData();
-                            } else {
-                                that.$refs.uToast.show({
-                                    type: 'default',
-                                    icon: false,
-                                    message: '录入成功!',
-                                })
-                            }
-                        } else {
-                            that.$refs.uToast.show({
-                                type: 'default',
-                                icon: false,
-                                message: response.data.message,
-                            })
-                             // 调用 js 文件里面的方法
-                            //  testNfc.setTxt(that.cardId);
-                            //     testNfc.writeData();
-                        }
-                    })
+          }
+        });
+      });
+    },
 
-            });
-        },
-        //nfc读取
-        getNfcRead() {
-            let that = this
+    //格式化tag
+    // getNfcFormat() {
+    //     testNfc.__write()
+    // },
+    //nfc 写入
+    getNfcWrite() {
+      let that = this;
+      new Promise((resolve, reject) => {
+        api.enterCardId({ id: that.cardId }).then((response) => {
+          if (response.data.code == 200) {
             if (that.isNfc) {
-                // 调用 js 文件里面的方法
-                testNfc.readData();
+              // 调用 js 文件里面的方法
+              testNfc.setTxt(that.cardId);
+              testNfc.writeData();
             } else {
-                that.getCardLists(that.cardId)
+              that.$refs.uToast.show({
+                type: "default",
+                icon: false,
+                message: "录入成功!",
+              });
             }
-        }
-    }
-}
+          } else {
+            that.$refs.uToast.show({
+              type: "default",
+              icon: false,
+              message: response.data.message,
+            });
+            // 调用 js 文件里面的方法
+            //  testNfc.setTxt(that.cardId);
+            //     testNfc.writeData();
+          }
+        });
+      });
+    },
+    //nfc读取
+    getNfcRead() {
+      let that = this;
+      if (that.isNfc) {
+        // 调用 js 文件里面的方法
+        testNfc.readData();
+      } else {
+        that.getCardLists(that.cardId);
+      }
+    },
+  },
+};
 </script>
 
 <style lang="scss" scoped>
 .gas-record-card {
-    position: relative;
+  position: relative;
+  width: 100%;
+  height: 100%;
+
+  .record-top-area {
+    display: flex;
+    flex-direction: column;
+    align-items: center;
     width: 100%;
-    height: 100%;
-
-    .record-top-area {
-        display: flex;
-        flex-direction: column;
-        align-items: center;
-        width: 100%;
-        padding: 10px 20px;
-        box-sizing: border-box;
-        background-color: #FFF;
-        margin-bottom: 2px;
+    padding: 10px 20px;
+    box-sizing: border-box;
+    background-color: #fff;
+    margin-bottom: 2px;
+  }
+
+  .record-write-box {
+    display: flex;
+    align-items: center;
+    justify-content: center;
+    margin-bottom: 10px;
+
+    .dialog-label {
+      width: 60px;
+      text-align: right;
     }
+  }
 
-    .record-write-box {
+  .record-bot-area {
+    width: 100%;
+    height: calc(100% - 138px);
+    padding: 10px;
+    box-sizing: border-box;
+    background-color: #fff;
+    margin-bottom: 2px;
+    overflow-y: auto;
+
+    .record-container {
+      .record-title {
+        position: relative;
+        width: 100%;
+        height: 50rpx;
+        background: url(/static/warndata/1-1.png);
+        background-repeat: no-repeat;
+        background-size: 100% 100%;
         display: flex;
+        /* 将父级元素设置为 Flex 容器 */
         align-items: center;
-        justify-content: center;
-        margin-bottom: 10px;
+        /* 垂直居中子元素 */
+      }
 
-        .dialog-label {
-            width: 60px;
-            text-align: right;
-        }
-    }
+      .record-text {
+        margin: 20px;
+      }
 
-    .record-bot-area {
+      .record-card {
+        display: flex;
+        flex-direction: column;
+        justify-content: center;
+        width: 100%;
+        height: 100px;
+        margin: 10px auto;
+        border-radius: 10px;
+        background: url(/static/warndata/work.png),
+          linear-gradient(
+            to right,
+            rgba(55, 135, 254, 0.08),
+            rgba(4, 184, 255, 0.08),
+            rgba(60, 161, 237, 0.08)
+          );
+      }
+
+      .record-card-item {
         width: 100%;
-        height: calc(100% - 138px);
         padding: 10px;
+        font-size: 14px;
         box-sizing: border-box;
-        background-color: #FFF;
-        margin-bottom: 2px;
-        overflow-y: auto;
-
-        .record-container {
-            .record-title {
-                position: relative;
-                width: 100%;
-                height: 50rpx;
-                background: url(/static/warndata/title.png);
-                background-repeat: no-repeat;
-                background-size: 100% 100%;
-                display: flex;
-                /* 将父级元素设置为 Flex 容器 */
-                align-items: center;
-                /* 垂直居中子元素 */
-            }
-
-            .record-text {
-                margin: 20px;
-            }
 
-            .record-card {
-                display: flex;
-                flex-direction: column;
-                justify-content: center;
-                width: 100%;
-                height: 100px;
-                margin: 10px auto;
-                border-radius: 10px;
-                background: url(/static/warndata/work.png),
-                    linear-gradient(to right,
-                        rgba(55, 135, 254, 0.08),
-                        rgba(4, 184, 255, 0.08),
-                        rgba(60, 161, 237, 0.08));
-            }
-
-            .record-card-item {
-                width: 100%;
-                padding: 10px;
-                font-size: 14px;
-                box-sizing: border-box;
-
-                .card-item-label {
-                    display: inline-block;
-                    width: 53%;
-                    text-align: right;
-                    color: #3787fe;
-                    font-weight: bold;
-                }
-            }
+        .card-item-label {
+          display: inline-block;
+          width: 53%;
+          text-align: right;
+          color: #3787fe;
+          font-weight: bold;
         }
+      }
     }
-
+  }
 }
 </style>

+ 12 - 1
pages/gasreport/components/taskBoard.vue

@@ -64,6 +64,7 @@
           :show="showCalendar"
           :minDate="minDate"
           :maxDate="maxDate"
+          :monthNum="calendarMonthNum"
           v-model="searchTime"
           mode="single"
           closeOnClickOverlay
@@ -116,6 +117,16 @@ export default {
     };
   },
   computed: {
+    calendarMonthNum() {
+      const minDate = moment(this.minDate, "YYYY-MM-DD");
+      const maxDate = moment(this.maxDate, "YYYY-MM-DD");
+      return (
+        (maxDate.year() - minDate.year()) * 12 +
+        maxDate.month() -
+        minDate.month() +
+        1
+      );
+    },
     teamCode: function () {
       return uni.getStorageSync("login_user_info")["districtTeam"];
     },
@@ -206,7 +217,7 @@ export default {
   justify-content: center;
 
   .dialog-label {
-    width: 70px;
+    width: 86px;
     text-align: center;
   }
 }

+ 4 - 3
pages/history/history.vue

@@ -725,9 +725,9 @@ export default {
 }
 /* ===== 二、数据区(与查询条件分为两部分展示) ===== */
 .historycontainer {
-  background-color: #ffffff;
+  background-color: #f9f9fb;
+  border: 1rpx solid #fff;
   border-radius: 16rpx;
-  box-shadow: 0 4rpx 16rpx rgba(41, 121, 255, 0.06);
   overflow: hidden;
 }
 /* 空数据状态 */
@@ -765,7 +765,8 @@ export default {
 }
 .flcard {
   padding: 20rpx;
-  background-color: #ffffff;
+  background-color: #f9f9fb;
+  border: 1rpx solid #fff;
   margin-bottom: 5rpx;
 }
 .itemback {

+ 3 - 1
pages/home/detail/autodoor/autodoor copy.vue

@@ -1025,7 +1025,9 @@ export default {
 }
 .flcard {
   padding: 20rpx;
-  background-color: #fff;
+  background-color: #f9f9fb;
+  border-radius: 10rpx;
+  border: 1rpx solid #fff;
   margin-bottom: 20rpx;
 }
 .deviceback {

+ 3 - 3
pages/home/detail/autodoor/autodoor.vue

@@ -931,10 +931,10 @@ export default {
 /* ===== Cards ===== */
 .flcard {
   padding: 24rpx;
-  background-color: #fff;
+  background-color: #f9f9fb;
   margin-bottom: 20rpx;
-  border-radius: 20rpx;
-  box-shadow: 0 4rpx 16rpx rgba(41, 121, 255, 0.04);
+  border-radius: 10rpx;
+  border: 1rpx solid #fff;
 }
 
 .deviceback {

+ 33 - 14
pages/home/home.vue

@@ -2,9 +2,9 @@
   <view class="container">
     <view v-if="!menushow" class="main">
       <view class="u-page">
-        <u-list :class="{ empty: showList.length === 0 }">
+        <view :class="{ empty: showList.length === 0 }">
           <template v-if="showList.length > 0">
-            <u-list-item v-for="(item, index) in showList" :key="index">
+            <view v-for="(item, index) in showList" :key="index">
               <view class="device-card">
                 <!-- 标题 -->
                 <view class="card-title-row">
@@ -115,7 +115,7 @@
                 <!-- 风机设备:主机 / 备机 -->
                 <view class="fanContent" @tap="openNewPage(item)" v-else>
                   <view class="fan-block">
-                    <view class="fan-label">主机</view>
+                    <view class="fan-label"><text class="">主机</text></view>
                     <view class="data-grid">
                       <view
                         class="datacard"
@@ -142,7 +142,7 @@
                     </view>
                   </view>
                   <view class="fan-block">
-                    <view class="fan-label">备机</view>
+                    <view class="fan-label"><text class="">备机</text></view>
                     <view class="data-grid">
                       <view
                         class="datacard"
@@ -188,12 +188,12 @@
                   </view>
                 </view>
               </view>
-            </u-list-item>
+            </view>
           </template>
           <template v-else>
             <view class="empty-message">数据为空</view>
           </template>
-        </u-list>
+        </view>
       </view>
     </view>
   </view>
@@ -315,11 +315,8 @@ export default {
     },
     getIcon1(monitorcode) {
       const code = (monitorcode || "").toLowerCase();
-      if (code.indexOf("gate") > -1 || code.indexOf("door") > -1) {
-        return "/static/icon-new/door-icon.svg";
-      }
-      if (code.indexOf("press") > -1 || code.indexOf("pressure") > -1) {
-        return "/static/icon-new/qyyl-icon.svg";
+      if (code.indexOf("frontarea") > -1) {
+        return "/static/home/gfmj.svg";
       }
       if (code.indexOf("area") > -1) {
         return "/static/icon-new/dmj.svg";
@@ -331,7 +328,18 @@ export default {
       ) {
         return "/static/icon-new/fl.svg";
       }
-
+      if (code.indexOf("gate") > -1 || code.indexOf("door") > -1) {
+        return "/static/icon-new/door-icon.svg";
+      }
+      if (
+        code.indexOf("press") > -1 ||
+        code.indexOf("pressure") > -1 ||
+        code.indexOf("pa1") > -1 ||
+        code.indexOf("pa2") > -1 ||
+        code.indexOf("dp") > -1
+      ) {
+        return "/static/icon-new/qyyl-icon.svg";
+      }
       return "/static/icon-new/dmj.svg";
     },
     startTimer() {
@@ -550,7 +558,7 @@ export default {
   border-radius: 20rpx;
   padding: 28rpx 24rpx 24rpx;
   margin-bottom: 24rpx;
-  box-shadow: 0 4rpx 16rpx rgba(41, 121, 255, 0.04);
+  border: 1rpx solid #fff;
 }
 
 .card-title-row {
@@ -654,7 +662,7 @@ export default {
   padding: 0 24rpx;
   border-radius: 8rpx;
   border: 1rpx solid #7eb6ff;
-  background: #f0f7ff;
+  background: #e0edfa;
   display: flex;
   align-items: center;
   justify-content: center;
@@ -761,6 +769,17 @@ export default {
 }
 
 .fan-label {
+  display: flex;
+  flex-direction: row;
+  align-items: center;
+  height: 28px;
+  width: 100%;
+  margin-bottom: 20rpx;
+  padding-left: 30rpx;
+  background: url("../../static/warndata/1-1.png") no-repeat center;
+  background-size: 100% 100%;
+}
+.fan-label text {
   font-size: 24rpx;
   font-weight: 600;
   color: #000;

+ 75 - 48
pages/login/login.vue

@@ -2,12 +2,40 @@
   <view class="login-page">
     <!-- 顶部插画区 -->
     <view class="login-header">
-      <image class="header-bg" src="/static/desk-img/1-2.png" mode="aspectFill"></image>
+      <image
+        class="header-bg"
+        src="/static/desk-img/1-2.png"
+        mode="aspectFill"
+      ></image>
       <view class="header-mask"></view>
       <view class="header-content">
         <view class="header-top">
-          <image class="logo" src="/static/desk-img/1-1.png" mode="aspectFit"></image>
-          <u-icon name="setting-fill" color="#2979ff" size="22" @click="setIp"></u-icon>
+          <!-- 国能logo -->
+          <image
+            class="logo"
+            src="/static/desk-img/logo.png"
+            mode="aspectFit"
+          ></image>
+          <!-- 乌兰logo -->
+          <!-- <image src="/static/desk-img/logo-lblt.png" mode='aspectFit' class="zai-logo "></image> -->
+          <!-- 默认logo -->
+          <!-- <image
+            src="/static/desk-img/1-1.png"
+            mode="aspectFit"
+            class="zai-logo"
+          ></image> -->
+          <!-- 大海则logo -->
+          <!-- <image
+            src="/static/desk-img/dhz-logo.png"
+            mode="aspectFit"
+            class="zai-logo"
+          ></image> -->
+          <u-icon
+            name="setting-fill"
+            color="#2979ff"
+            size="22"
+            @click="setIp"
+          ></u-icon>
         </view>
         <view class="welcome-text">您好,欢迎使用</view>
         <view class="platform-name">“一通三防”智能管控平台</view>
@@ -62,7 +90,11 @@
 
     <!-- 登录加载弹窗 -->
     <view class="cu-load load-modal" v-if="loading">
-      <image src="/static/desk-img/144.png" mode="aspectFit" class="round"></image>
+      <image
+        src="/static/desk-img/144.png"
+        mode="aspectFit"
+        class="round"
+      ></image>
       <view class="gray-text">登录中...</view>
     </view>
 
@@ -165,7 +197,9 @@ export default {
   },
   onLoad: function (option) {
     console.log("=======option.ticket======" + JSON.stringify(option.ticket));
-    this.loginCas(option.ticket);
+    if (option.ticket) {
+      this.loginCas(option.ticket);
+    }
     // #ifdef APP-PLUS
     var that = this;
     plus.runtime.getProperty(plus.runtime.appid, function (wgtinfo) {
@@ -254,50 +288,43 @@ export default {
     },
 
     loginCas(value) {
-      var than = this;
-
-      // this.$tip.success(configService.apiUrl);
-      var ser = configService.apiUrl;
-      ser = ser.replace(9999, 8092);
-      // this.$tip.success(ser);
-      new Promise((resolve, reject) => {
-        api
-          .validateCasLogin(
-            "",
-            "?ticket=" + value + "&service=" + encodeURIComponent(ser)
-          )
-          .then((response) => {
-            // than.$tip.success("登录成功1");
-
-            // if (response.data.code == 200) {
-            // 	uni.setStorageSync(ACCESS_TOKEN, response.data.result.token);
-            // } else {
-            // }
-            const result = response.data.result;
-            const userInfo = result.userInfo;
-            uni.setStorageSync(ACCESS_TOKEN, result.token);
-            uni.setStorageSync(USER_INFO, userInfo);
-            console.log("userInfo=" + userInfo);
-            than.$store.commit("SET_TOKEN", result.token);
-            console.log("result.token=" + result.token);
-            than.$store.commit("SET_DICT", result.sysAllDictItems);
-            than.$store.commit("SET_AVATAR", userInfo.avatar);
-            than.$store.commit("SET_NAME", {
-              username: userInfo.username,
-              realname: userInfo.realname,
-            });
-
-            // than.$tip.success("loginCas=");
-            than.getPermissionList();
-          })
-          .catch((error) => {
-            // debugger;
-            console.log("catch===>response", error);
-            // uni.navigateTo({
-            //   url: "/pages/home/home",
-            // });
+      if (!value) {
+        return;
+      }
+      const serviceUrl = configService.apiUrl.replace(9999, 8092);
+      api
+        .validateCasLogin(
+          "",
+          "?ticket=" + value + "&service=" + encodeURIComponent(serviceUrl)
+        )
+        .then((response) => {
+          const result = response.data && response.data.result;
+          if (!result || !result.token || !result.userInfo) {
+            this.$tip.error(
+              (response.data && response.data.message) || "单点登录验证失败"
+            );
+            return;
+          }
+          const userInfo = result.userInfo;
+          uni.setStorageSync(ACCESS_TOKEN, result.token);
+          uni.setStorageSync(USER_INFO, userInfo);
+          this.$store.commit("SET_TOKEN", result.token);
+          this.$store.commit("SET_DICT", result.sysAllDictItems);
+          this.$store.commit("SET_AVATAR", userInfo.avatar);
+          this.$store.commit("SET_NAME", {
+            username: userInfo.username,
+            realname: userInfo.realname,
           });
-      });
+          this.getPermissionList();
+        })
+        .catch((error) => {
+          console.log("CAS login validation failed", error);
+          const message =
+            (error && error.data && error.data.message) ||
+            (error && error.message) ||
+            "单点登录验证失败,请检查服务器地址后重试";
+          this.$tip.error(message);
+        });
     },
 
     //获取权限菜单

+ 22 - 19
pages/user/people.vue

@@ -3,13 +3,9 @@
     <scroll-view scroll-y class="page">
       <!-- 头部logo-->
       <view class="UCenter-bg">
-        <view class="avatar-box">
-          <view class="avatar"></view>
-        </view>
+        <view class="avatar-box"> </view>
       </view>
-      <view
-        class="padding flex text-center text-grey bg-white shadow-warp userinfo-box"
-      >
+      <view class="padding flex text-center bg-white userinfo-box">
         <view class="user1" :style="[{ animationDelay: '0.2s' }]">
           <view class="username1">
             <view class="text-xl" style="color: #fff">{{
@@ -208,8 +204,8 @@ export default {
   margin: 16rpx 15rpx 0;
   box-sizing: border-box;
   border-radius: 12rpx;
-  background-color: #fff;
-  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
+  background-color: #f9f9fb;
+  border: 1px solid #fff;
 }
 
 .user1 {
@@ -219,7 +215,8 @@ export default {
   flex: 1;
   min-width: 0;
   box-sizing: border-box;
-  overflow: hidden;
+  position: relative;
+  overflow: visible;
   background-image: url("/static/user/userbg1.png");
   background-size: 100% 100%;
   background-repeat: no-repeat;
@@ -230,12 +227,14 @@ export default {
 }
 .usericon1 {
   flex: 0 0 auto;
-  width: 136rpx;
-  height: 120rpx;
-  margin: 0;
+  position: relative;
+  z-index: 1;
+  width: 82px;
+  height: 90px;
+  margin: 0 0px -5px 0;
   align-self: flex-end;
   background-image: url("/static/user/user.png");
-  background-size: contain;
+  background-size: cover;
   background-position: right bottom;
   background-repeat: no-repeat;
 }
@@ -255,7 +254,8 @@ export default {
   flex: 1;
   min-width: 0;
   box-sizing: border-box;
-  overflow: hidden;
+  position: relative;
+  overflow: visible;
   background-image: url("/static/user/userbg2.png");
   background-size: 100% 100%;
   background-repeat: no-repeat;
@@ -266,12 +266,14 @@ export default {
 }
 .usericon2 {
   flex: 0 0 auto;
-  width: 136rpx;
-  height: 120rpx;
-  margin: 0;
+  position: relative;
+  z-index: 1;
+  width: 90px;
+  height: 89px;
+  margin: 0 -1px -4px 0;
   align-self: flex-end;
   background-image: url("/static/user/user1.png");
-  background-size: contain;
+  background-size: cover;
   background-position: right bottom;
   background-repeat: no-repeat;
 }
@@ -345,7 +347,8 @@ map,
   min-height: 80rpx;
   margin-bottom: 20rpx;
   border-radius: 12rpx;
-  background-color: #fff;
+  background-color: #f9f9fb;
+  border: 1rpx solid #fff;
 }
 .people-menu > .cu-item:last-child {
   margin-bottom: 0;

+ 281 - 300
pages/user/userdetail.vue

@@ -1,356 +1,337 @@
 <template>
-	<view class="user-page">
-		<u-navbar
-			title="用户详情"
-			:safeAreaInsetTop="true"
-			:fixed="true"
-			:placeholder="true"
-			height="50px"
-			bgColor="transparent"
-			titleStyle="fw600 fs-18"
-			leftIconColor="#303133"
-			@leftClick="goBack"
-		>
-			<view class="u-nav-slot" slot="left">
-				<u-icon name="arrow-left" size="20" color="#303133"></u-icon>
-			</view>
-			<view class="u-nav-slot" slot="right" @tap="rightClick">
-				<view class="nav-edit-btn">
-					<u-icon name="edit-pen" size="14" color="#0065f8"></u-icon>
-					<text class="nav-edit-text">编辑</text>
-				</view>
-			</view>
-		</u-navbar>
+  <view class="user-page">
+    <u-navbar
+      title="用户详情"
+      :safeAreaInsetTop="true"
+      :fixed="true"
+      :placeholder="true"
+      height="50px"
+      bgColor="transparent"
+      titleStyle="fw600 fs-18"
+      leftIconColor="#303133"
+      @leftClick="goBack"
+    >
+      <view class="u-nav-slot" slot="left">
+        <u-icon name="arrow-left" size="20" color="#303133"></u-icon>
+      </view>
+      <view class="u-nav-slot" slot="right" @tap="rightClick">
+        <view class="nav-edit-btn">
+          <u-icon name="edit-pen" size="14" color="#0065f8"></u-icon>
+          <text class="nav-edit-text">编辑</text>
+        </view>
+      </view>
+    </u-navbar>
 
-		<view class="user-page-content">
-			<!-- 个人资料 -->
-			<view class="detail-card">
-				<view class="detail-row">
-					<view class="detail-icon-box">
-						<view class="detail-icon-glass">
-							<u-icon name="photo-fill" size="14" color="#ffffff"></u-icon>
-						</view>
-					</view>
-					<text class="detail-label">头像</text>
-					<view class="detail-value-area">
-						<image
-							class="detail-avatar"
-							:src="personalMsg.avatar"
-							mode="aspectFill"
-						></image>
-					</view>
-				</view>
+    <view class="user-page-content">
+      <!-- 个人资料 -->
+      <view class="detail-card">
+        <view class="detail-row">
+          <view class="detail-icon-box">
+            <u-icon name="photo-fill" size="14" color="#ffffff"></u-icon>
+          </view>
+          <text class="detail-label">头像</text>
+          <view class="detail-value-area">
+            <image
+              class="detail-avatar"
+              :src="personalMsg.avatar"
+              mode="aspectFill"
+            ></image>
+          </view>
+        </view>
 
-				<view class="detail-divider"></view>
+        <view class="detail-divider"></view>
 
-				<view class="detail-row">
-					<view class="detail-icon-box">
-						<view class="detail-icon-glass">
-							<u-icon name="account-fill" size="14" color="#ffffff"></u-icon>
-						</view>
-					</view>
-					<text class="detail-label">姓名</text>
-					<text class="detail-value">{{ personalMsg.realname }}</text>
-				</view>
+        <view class="detail-row">
+          <view class="detail-icon-box">
+            <u-icon name="account-fill" size="14" color="#ffffff"></u-icon>
+          </view>
+          <text class="detail-label">姓名</text>
+          <text class="detail-value">{{ personalMsg.realname }}</text>
+        </view>
 
-				<view class="detail-divider"></view>
+        <view class="detail-divider"></view>
 
-				<view class="detail-row">
-					<view class="detail-icon-box">
-						<view class="detail-icon-glass">
-							<u-icon
-								:name="personalMsg.sex === '女' ? 'woman' : 'man'"
-								size="14"
-								color="#ffffff"
-							></u-icon>
-						</view>
-					</view>
-					<text class="detail-label">性别</text>
-					<text class="detail-value">{{ personalMsg.sex }}</text>
-				</view>
+        <view class="detail-row">
+          <view class="detail-icon-box">
+            <u-icon
+              :name="personalMsg.sex === '女' ? 'woman' : 'man'"
+              size="14"
+              color="#ffffff"
+            ></u-icon>
+          </view>
+          <text class="detail-label">性别</text>
+          <text class="detail-value">{{ personalMsg.sex }}</text>
+        </view>
 
-				<view class="detail-divider"></view>
+        <view class="detail-divider"></view>
 
-				<view class="detail-row">
-					<view class="detail-icon-box">
-						<view class="detail-icon-glass">
-							<u-icon name="calendar-fill" size="14" color="#ffffff"></u-icon>
-						</view>
-					</view>
-					<text class="detail-label">生日</text>
-					<text class="detail-value">{{ personalMsg.birthday }}</text>
-				</view>
-			</view>
+        <view class="detail-row">
+          <view class="detail-icon-box">
+            <u-icon name="calendar-fill" size="14" color="#ffffff"></u-icon>
+          </view>
+          <text class="detail-label">生日</text>
+          <text class="detail-value">{{ personalMsg.birthday }}</text>
+        </view>
+      </view>
 
-			<!-- 对外信息展示 -->
-			<view class="detail-card">
-				<view class="detail-row">
-					<view class="detail-icon-box">
-						<view class="detail-icon-glass">
-							<u-icon name="eye-fill" size="14" color="#ffffff"></u-icon>
-						</view>
-					</view>
-					<text class="detail-label">对外信息展示</text>
-					<text class="detail-value">
-						{{
-							getSubStringText(
-								personalMsg.realname + "@" + personalMsg.orgCode,
-								11
-							)
-						}}
-					</text>
-				</view>
-			</view>
+      <!-- 对外信息展示 -->
+      <view class="detail-card">
+        <view class="detail-row">
+          <view class="detail-icon-box">
+            <u-icon name="eye-fill" size="14" color="#ffffff"></u-icon>
+          </view>
+          <text class="detail-label">对外信息展示</text>
+          <text class="detail-value">
+            {{
+              getSubStringText(
+                personalMsg.realname + "@" + personalMsg.orgCode,
+                11
+              )
+            }}
+          </text>
+        </view>
+      </view>
 
-			<!-- 联系方式 -->
-			<view class="detail-card">
-				<view class="detail-row">
-					<view class="detail-icon-box">
-						<view class="detail-icon-glass">
-							<u-icon name="phone-fill" size="14" color="#ffffff"></u-icon>
-						</view>
-					</view>
-					<text class="detail-label">手机</text>
-					<text class="detail-value">{{ personalMsg.phone }}</text>
-				</view>
+      <!-- 联系方式 -->
+      <view class="detail-card">
+        <view class="detail-row">
+          <view class="detail-icon-box">
+            <u-icon name="phone-fill" size="14" color="#ffffff"></u-icon>
+          </view>
+          <text class="detail-label">手机</text>
+          <text class="detail-value">{{ personalMsg.phone }}</text>
+        </view>
 
-				<view class="detail-divider"></view>
+        <view class="detail-divider"></view>
 
-				<view class="detail-row">
-					<view class="detail-icon-box">
-						<view class="detail-icon-glass">
-							<u-icon name="email-fill" size="14" color="#ffffff"></u-icon>
-						</view>
-					</view>
-					<text class="detail-label">邮箱</text>
-					<text class="detail-value">{{ personalMsg.email }}</text>
-				</view>
-			</view>
-		</view>
-	</view>
+        <view class="detail-row">
+          <view class="detail-icon-box">
+            <u-icon name="email-fill" size="14" color="#ffffff"></u-icon>
+          </view>
+          <text class="detail-label">邮箱</text>
+          <text class="detail-value">{{ personalMsg.email }}</text>
+        </view>
+      </view>
+    </view>
+  </view>
 </template>
 
 <script>
-	import api from '@/api/api.js'
-	export default {
-		data() {
-			return {
-				 personalMsg:{
-					avatar:'',
-					realname:'',
-					username:'',
-					sex:1,
-					birthday:new Date(),
-					orgCode:'',
-					workNo:'',
-					status:1,
-					phone:'',
-					telephone:'',
-					email:'',
-					post:'',
-					departIds:'',
-					identity:'',
-				},
-				userUrl:'/sys/user/queryById',
-				positionUrl:'/sys/position/list',
-				departUrl:'/sys/user/userDepartList'
-			};
-		},
-		onLoad() {
-			this.loadinfo()
-		},
-		methods: {
-			getSubStringText(text,len){
-				if(!text || text.length==0){
-					return ''
-				}
-				if(text.length<len){
-					return text;
-				}
-				return text.substr(0,len)+"..."
-			},
-			//左上角返回键:返回上一页
-			goBack(){
-				uni.navigateBack({
-					delta: 1
-				});
-			},
-			rightClick(){
-				this.$Router.push({name:'useredit', params:this.personalMsg})
-				/* uni.navigateTo({
+import api from "@/api/api.js";
+export default {
+  data() {
+    return {
+      personalMsg: {
+        avatar: "",
+        realname: "",
+        username: "",
+        sex: 1,
+        birthday: new Date(),
+        orgCode: "",
+        workNo: "",
+        status: 1,
+        phone: "",
+        telephone: "",
+        email: "",
+        post: "",
+        departIds: "",
+        identity: "",
+      },
+      userUrl: "/sys/user/queryById",
+      positionUrl: "/sys/position/list",
+      departUrl: "/sys/user/userDepartList",
+    };
+  },
+  onLoad() {
+    this.loadinfo();
+  },
+  methods: {
+    getSubStringText(text, len) {
+      if (!text || text.length == 0) {
+        return "";
+      }
+      if (text.length < len) {
+        return text;
+      }
+      return text.substr(0, len) + "...";
+    },
+    //左上角返回键:返回上一页
+    goBack() {
+      uni.navigateBack({
+        delta: 1,
+      });
+    },
+    rightClick() {
+      this.$Router.push({ name: "useredit", params: this.personalMsg });
+      /* uni.navigateTo({
 				    url: '/pages/user/useredit?item='+item
 				}); */
-			},
-			loadinfo(){
-				this.$http.get(this.userUrl,{params:{id:this.$store.getters.userid}}).then(res=> {
-					console.log("用户",res)
-					if (res.data.success) {
-						let result = res.data.result
-						if(result.avatar&&result.avatar.length >0)
-						this.personalMsg.avatar = api.getFileAccessHttpUrl(result.avatar)
-						this.personalMsg.realname = result.realname
-						this.personalMsg.username= result.username
-						this.personalMsg.post = result.post
-						this.personalMsg.sex = result.sex===1?'男':'女'
-						this.personalMsg.birthday = result.birthday== null?'无':result.birthday
-						this.personalMsg.departIds= result.departIds
-						this.personalMsg.workNo= result.workNo
-						this.personalMsg.phone= result.phone
-						this.personalMsg.telephone= result.telephone== null?'无':result.telephone
-						this.personalMsg.email= result.email
-						this.personalMsg.post= result.post
-						this.personalMsg.identity= result.identity=== 1?'普通成员':'上级'
-						this.personalMsg.status= result.status === 1?'正常':'冻结'
-						this.personalMsg.orgCode= result.orgCode
-					}
-				}).catch(e=>{
-					console.log("请求错误",e)
-				})
-				
-				this.$http.get(this.departUrl,{params:{userId:this.$store.getters.userid}}).then(res=> {
-					if (res.success) {
-						for (let item of res.result){
-							this.personalMsg.orgCode = item.title
-							this.personalMsg.departIds = item.title
-						}
-					}
-				}).catch(e=>{
-					console.log("请求错误",e)
-				})
-				
-				this.$http.get(this.positionUrl).then(res=> {
-					if (res.success) {
-						let postArr = res.result.records
-						for (let item of postArr ){
-							if (this.personalMsg.post == item.code){
-								this.personalMsg.post = item.name
-							}
-						}
-					}
-				}).catch(e=>{
-					console.log("请求错误",e)
-				})
-			},
-		}
-	}
+    },
+    loadinfo() {
+      this.$http
+        .get(this.userUrl, { params: { id: this.$store.getters.userid } })
+        .then((res) => {
+          console.log("用户", res);
+          if (res.data.success) {
+            let result = res.data.result;
+            if (result.avatar && result.avatar.length > 0)
+              this.personalMsg.avatar = api.getFileAccessHttpUrl(result.avatar);
+            this.personalMsg.realname = result.realname;
+            this.personalMsg.username = result.username;
+            this.personalMsg.post = result.post;
+            this.personalMsg.sex = result.sex === 1 ? "男" : "女";
+            this.personalMsg.birthday =
+              result.birthday == null ? "无" : result.birthday;
+            this.personalMsg.departIds = result.departIds;
+            this.personalMsg.workNo = result.workNo;
+            this.personalMsg.phone = result.phone;
+            this.personalMsg.telephone =
+              result.telephone == null ? "无" : result.telephone;
+            this.personalMsg.email = result.email;
+            this.personalMsg.post = result.post;
+            this.personalMsg.identity =
+              result.identity === 1 ? "普通成员" : "上级";
+            this.personalMsg.status = result.status === 1 ? "正常" : "冻结";
+            this.personalMsg.orgCode = result.orgCode;
+          }
+        })
+        .catch((e) => {
+          console.log("请求错误", e);
+        });
+
+      this.$http
+        .get(this.departUrl, { params: { userId: this.$store.getters.userid } })
+        .then((res) => {
+          if (res.success) {
+            for (let item of res.result) {
+              this.personalMsg.orgCode = item.title;
+              this.personalMsg.departIds = item.title;
+            }
+          }
+        })
+        .catch((e) => {
+          console.log("请求错误", e);
+        });
+
+      this.$http
+        .get(this.positionUrl)
+        .then((res) => {
+          if (res.success) {
+            let postArr = res.result.records;
+            for (let item of postArr) {
+              if (this.personalMsg.post == item.code) {
+                this.personalMsg.post = item.name;
+              }
+            }
+          }
+        })
+        .catch((e) => {
+          console.log("请求错误", e);
+        });
+    },
+  },
+};
 </script>
 
 <style lang="scss" scoped>
 .user-page {
-	min-height: 100vh;
-	background: linear-gradient(180deg, #c8d8f8 0%, #eef4fd 320rpx, #f4f7fd 100%);
+  min-height: 100vh;
+  background: linear-gradient(180deg, #c8d8f8 0%, #eef4fd 320rpx, #f4f7fd 100%);
 }
 
 .user-page-content {
-	padding-left: 24rpx;
-	padding-right: 24rpx;
-	padding-bottom: 40rpx;
-	box-sizing: border-box;
+  padding-left: 24rpx;
+  padding-right: 24rpx;
+  padding-bottom: 40rpx;
+  box-sizing: border-box;
 }
 
 .nav-edit-btn {
-	display: flex;
-	flex-direction: row;
-	align-items: center;
-	padding: 0 14rpx;
-	height: 44rpx;
-	border: 1rpx solid #0065f8;
-	border-radius: 8rpx;
-	background: #ffffff;
-	box-sizing: border-box;
+  display: flex;
+  flex-direction: row;
+  align-items: center;
+  padding: 0 14rpx;
+  height: 44rpx;
+  border: 1rpx solid #0065f8;
+  border-radius: 8rpx;
+  background: #ffffff;
+  box-sizing: border-box;
 }
 
 .nav-edit-text {
-	margin-left: 6rpx;
-	font-size: 24rpx;
-	color: #0065f8;
-	line-height: 1;
+  margin-left: 6rpx;
+  font-size: 24rpx;
+  color: #0065f8;
+  line-height: 1;
 }
 
 .detail-card {
-	background: #ffffff;
-	border: 1rpx solid #e8effc;
-	border-radius: 16rpx;
-	padding: 0 24rpx;
-	margin-bottom: 20rpx;
-	box-shadow: 0 4rpx 16rpx rgba(43, 124, 255, 0.08);
+  background: #ffffff;
+  border: 1rpx solid #e8effc;
+  border-radius: 16rpx;
+  padding: 0 24rpx;
+  margin-bottom: 20rpx;
+  box-shadow: 0 4rpx 16rpx rgba(43, 124, 255, 0.08);
 }
 
 .detail-row {
-	display: flex;
-	flex-direction: row;
-	align-items: center;
-	min-height: 112rpx;
-	padding: 20rpx 0;
+  display: flex;
+  flex-direction: row;
+  align-items: center;
+  min-height: 112rpx;
+  padding: 20rpx 0;
 }
 
 .detail-divider {
-	height: 1rpx;
-	background: #eef0f4;
+  height: 1rpx;
+  background: #eef0f4;
 }
 
 .detail-icon-box {
-	position: relative;
-	width: 56rpx;
-	height: 56rpx;
-	border-radius: 12rpx;
-	background: #2b7cff;
-	box-sizing: border-box;
-	box-shadow: 0 4rpx 10rpx rgba(43, 124, 255, 0.22);
-	flex-shrink: 0;
-	margin-right: 20rpx;
-}
-
-.detail-icon-glass {
-	position: absolute;
-	left: -6rpx;
-	bottom: -6rpx;
-	width: 50rpx;
-	height: 50rpx;
-	border-radius: 12rpx;
-	background: transparent;
-	border: none;
-	box-shadow: 0 0 0 0.6px #ffffff inset;
-	box-sizing: border-box;
-	backdrop-filter: blur(4rpx);
-	-webkit-backdrop-filter: blur(4rpx);
-	display: flex;
-	align-items: center;
-	justify-content: center;
+  display: flex;
+  align-items: center;
+  justify-content: center;
+  width: 56rpx;
+  height: 56rpx;
+  border-radius: 12rpx;
+  background: linear-gradient(135deg, #80b4ff, #347df3);
+  box-sizing: border-box;
+  flex-shrink: 0;
+  margin-right: 20rpx;
 }
 
 .detail-label {
-	flex-shrink: 0;
-	width: 170rpx;
-	font-size: 24rpx;
-	color: #000;
-	line-height: 1.4;
+  flex-shrink: 0;
+  width: 170rpx;
+  font-size: 24rpx;
+  color: #000;
+  line-height: 1.4;
 }
 
 .detail-value-area {
-	flex: 1;
-	min-width: 0;
-	display: flex;
-	flex-direction: row;
-	align-items: center;
-	justify-content: flex-end;
+  flex: 1;
+  min-width: 0;
+  display: flex;
+  flex-direction: row;
+  align-items: center;
+  justify-content: flex-end;
 }
 
 .detail-value {
-	flex: 1;
-	min-width: 0;
-	font-size: 24rpx;
-	font-weight: 500;
-	color: #0065f8;
-	line-height: 1.4;
-	text-align: right;
-	word-break: break-all;
+  flex: 1;
+  min-width: 0;
+  font-size: 24rpx;
+  font-weight: 500;
+  color: #0065f8;
+  line-height: 1.4;
+  text-align: right;
+  word-break: break-all;
 }
 
 .detail-avatar {
-	width: 88rpx;
-	height: 88rpx;
-	border-radius: 50%;
-	border: 1rpx solid #e8effc;
+  width: 88rpx;
+  height: 88rpx;
+  border-radius: 50%;
+  border: 1rpx solid #e8effc;
 }
 </style>

+ 164 - 213
pages/user/useredit.vue

@@ -1,196 +1,164 @@
 <template>
-	<view class="user-page">
-		<u-navbar
-			title="编辑资料"
-			:safeAreaInsetTop="true"
-			:fixed="true"
-			:placeholder="true"
-			height="50px"
-			bgColor="transparent"
-			titleStyle="fw600 fs-18"
-			leftIconColor="#303133"
-			@leftClick="goBack"
-		>
-			<view class="u-nav-slot" slot="left">
-				<u-icon name="arrow-left" size="20" color="#303133"></u-icon>
-			</view>
-		</u-navbar>
-
-		<view class="user-page-content">
-			<view class="edit-card">
-				<view class="edit-row">
-					<view class="edit-icon-box">
-						<view class="edit-icon-glass">
-							<u-icon name="account-fill" size="14" color="#ffffff"></u-icon>
-						</view>
-					</view>
-					<text class="edit-label">姓名</text>
-					<input
-						class="edit-input"
-						placeholder="请输入姓名"
-						placeholder-style="color: #b9c6da;"
-						name="input"
-						v-model="myFormData.realname"
-					/>
-				</view>
-
-				<view class="edit-divider"></view>
-
-				<view class="edit-row">
-					<view class="edit-icon-box">
-						<view class="edit-icon-glass">
-							<u-icon name="account" size="14" color="#ffffff"></u-icon>
-						</view>
-					</view>
-					<text class="edit-label">用户名</text>
-					<input
-						class="edit-input edit-input-disabled"
-						placeholder="用户名"
-						placeholder-style="color: #b9c6da;"
-						name="input"
-						v-model="myFormData.username"
-						disabled
-					/>
-				</view>
-
-				<view class="edit-divider"></view>
-
-				<view class="edit-row">
-					<view class="edit-icon-box">
-						<view class="edit-icon-glass">
-							<u-icon name="photo-fill" size="14" color="#ffffff"></u-icon>
-						</view>
-					</view>
-					<text class="edit-label">头像</text>
-					<view class="avatar-area">
-						<view
-							class="avatar-item"
-							v-for="(item, index) in imgList"
-							:key="index"
-							@tap="ViewImage"
-							:data-url="imgList[index]"
-						>
-							<image
-								class="avatar-img"
-								:src="imgList[index]"
-								mode="aspectFill"
-							></image>
-							<view
-								class="avatar-del"
-								@tap.stop="DelImg"
-								:data-index="index"
-							>
-								<u-icon
-									name="close"
-									size="10"
-									color="#ffffff"
-								></u-icon>
-							</view>
-						</view>
-						<view
-							class="avatar-add"
-							@tap="ChooseImage"
-							v-if="imgList.length < 1"
-						>
-							<u-icon
-								name="camera-fill"
-								size="18"
-								color="#0065f8"
-							></u-icon>
-						</view>
-					</view>
-				</view>
-
-				<view class="edit-divider"></view>
-
-				<view class="edit-row">
-					<view class="edit-icon-box">
-						<view class="edit-icon-glass">
-							<u-icon
-								:name="switchC ? 'man' : 'woman'"
-								size="14"
-								color="#ffffff"
-							></u-icon>
-						</view>
-					</view>
-					<text class="edit-label">性别</text>
-					<view class="edit-control">
-						<view
-							class="sex-btn"
-							:class="switchC ? 'action-btn-primary' : 'action-btn-outline'"
-							@click="SwitchC(true)"
-						>
-							<text class="action-btn-text">男</text>
-						</view>
-						<view
-							class="sex-btn"
-							:class="!switchC ? 'action-btn-primary' : 'action-btn-outline'"
-							@click="SwitchC(false)"
-						>
-							<text class="action-btn-text">女</text>
-						</view>
-					</view>
-				</view>
-
-				<view class="edit-divider"></view>
-
-				<view class="edit-row">
-					<view class="edit-icon-box">
-						<view class="edit-icon-glass">
-							<u-icon
-								name="phone-fill"
-								size="14"
-								color="#ffffff"
-							></u-icon>
-						</view>
-					</view>
-					<text class="edit-label">手机号码</text>
-					<input
-						class="edit-input"
-						placeholder="输入手机号码"
-						placeholder-style="color: #b9c6da;"
-						name="input"
-						v-model="myFormData.phone"
-					/>
-					<view class="edit-capsule">
-						<text class="edit-capsule-code">+86</text>
-						<text class="edit-capsule-region">中国大陆</text>
-					</view>
-				</view>
-
-				<view class="edit-divider"></view>
-
-				<view class="edit-row">
-					<view class="edit-icon-box">
-						<view class="edit-icon-glass">
-							<u-icon
-								name="email-fill"
-								size="14"
-								color="#ffffff"
-							></u-icon>
-						</view>
-					</view>
-					<text class="edit-label">邮箱</text>
-					<input
-						class="edit-input"
-						placeholder="输入邮箱"
-						placeholder-style="color: #b9c6da;"
-						name="input"
-						v-model="myFormData.email"
-					/>
-				</view>
-			</view>
-
-			<view class="submit-area">
-				<view
-					class="action-btn action-btn-primary submit-btn"
-					@click="onSubmit"
-				>
-					<text class="action-btn-text">提交</text>
-				</view>
-			</view>
-		</view>
-	</view>
+  <view class="user-page">
+    <u-navbar
+      title="编辑资料"
+      :safeAreaInsetTop="true"
+      :fixed="true"
+      :placeholder="true"
+      height="50px"
+      bgColor="transparent"
+      titleStyle="fw600 fs-18"
+      leftIconColor="#303133"
+      @leftClick="goBack"
+    >
+      <view class="u-nav-slot" slot="left">
+        <u-icon name="arrow-left" size="20" color="#303133"></u-icon>
+      </view>
+    </u-navbar>
+
+    <view class="user-page-content">
+      <view class="edit-card">
+        <view class="edit-row">
+          <view class="edit-icon-box">
+            <u-icon name="account-fill" size="14" color="#ffffff"></u-icon>
+          </view>
+          <text class="edit-label">姓名</text>
+          <input
+            class="edit-input"
+            placeholder="请输入姓名"
+            placeholder-style="color: #b9c6da;"
+            name="input"
+            v-model="myFormData.realname"
+          />
+        </view>
+
+        <view class="edit-divider"></view>
+
+        <view class="edit-row">
+          <view class="edit-icon-box">
+            <u-icon name="account" size="14" color="#ffffff"></u-icon>
+          </view>
+          <text class="edit-label">用户名</text>
+          <input
+            class="edit-input edit-input-disabled"
+            placeholder="用户名"
+            placeholder-style="color: #b9c6da;"
+            name="input"
+            v-model="myFormData.username"
+            disabled
+          />
+        </view>
+
+        <view class="edit-divider"></view>
+
+        <view class="edit-row">
+          <view class="edit-icon-box">
+            <u-icon name="photo-fill" size="14" color="#ffffff"></u-icon>
+          </view>
+          <text class="edit-label">头像</text>
+          <view class="avatar-area">
+            <view
+              class="avatar-item"
+              v-for="(item, index) in imgList"
+              :key="index"
+              @tap="ViewImage"
+              :data-url="imgList[index]"
+            >
+              <image
+                class="avatar-img"
+                :src="imgList[index]"
+                mode="aspectFill"
+              ></image>
+              <view class="avatar-del" @tap.stop="DelImg" :data-index="index">
+                <u-icon name="close" size="10" color="#ffffff"></u-icon>
+              </view>
+            </view>
+            <view
+              class="avatar-add"
+              @tap="ChooseImage"
+              v-if="imgList.length < 1"
+            >
+              <u-icon name="camera-fill" size="18" color="#0065f8"></u-icon>
+            </view>
+          </view>
+        </view>
+
+        <view class="edit-divider"></view>
+
+        <view class="edit-row">
+          <view class="edit-icon-box">
+            <u-icon
+              :name="switchC ? 'man' : 'woman'"
+              size="14"
+              color="#ffffff"
+            ></u-icon>
+          </view>
+          <text class="edit-label">性别</text>
+          <view class="edit-control">
+            <view
+              class="sex-btn"
+              :class="switchC ? 'action-btn-primary' : 'action-btn-outline'"
+              @click="SwitchC(true)"
+            >
+              <text class="action-btn-text">男</text>
+            </view>
+            <view
+              class="sex-btn"
+              :class="!switchC ? 'action-btn-primary' : 'action-btn-outline'"
+              @click="SwitchC(false)"
+            >
+              <text class="action-btn-text">女</text>
+            </view>
+          </view>
+        </view>
+
+        <view class="edit-divider"></view>
+
+        <view class="edit-row">
+          <view class="edit-icon-box">
+            <u-icon name="phone-fill" size="14" color="#ffffff"></u-icon>
+          </view>
+          <text class="edit-label">手机号码</text>
+          <input
+            class="edit-input"
+            placeholder="输入手机号码"
+            placeholder-style="color: #b9c6da;"
+            name="input"
+            v-model="myFormData.phone"
+          />
+          <view class="edit-capsule">
+            <text class="edit-capsule-code">+86</text>
+            <text class="edit-capsule-region">中国大陆</text>
+          </view>
+        </view>
+
+        <view class="edit-divider"></view>
+
+        <view class="edit-row">
+          <view class="edit-icon-box">
+            <u-icon name="email-fill" size="14" color="#ffffff"></u-icon>
+          </view>
+          <text class="edit-label">邮箱</text>
+          <input
+            class="edit-input"
+            placeholder="输入邮箱"
+            placeholder-style="color: #b9c6da;"
+            name="input"
+            v-model="myFormData.email"
+          />
+        </view>
+      </view>
+
+      <view class="submit-area">
+        <view
+          class="action-btn action-btn-primary submit-btn"
+          @click="onSubmit"
+        >
+          <text class="action-btn-text">提交</text>
+        </view>
+      </view>
+    </view>
+  </view>
 </template>
 
 <script>
@@ -388,35 +356,18 @@ export default {
 }
 
 .edit-icon-box {
-  position: relative;
+  display: flex;
+  align-items: center;
+  justify-content: center;
   width: 56rpx;
   height: 56rpx;
   border-radius: 12rpx;
-  background: #2b7cff;
+  background: linear-gradient(135deg, #80b4ff, #347df3);
   box-sizing: border-box;
-  box-shadow: 0 4rpx 10rpx rgba(43, 124, 255, 0.22);
   flex-shrink: 0;
   margin-right: 20rpx;
 }
 
-.edit-icon-glass {
-  position: absolute;
-  left: -6rpx;
-  bottom: -6rpx;
-  width: 50rpx;
-  height: 50rpx;
-  border-radius: 12rpx;
-  background: transparent;
-  border: none;
-  box-shadow: 0 0 0 0.6px #ffffff inset;
-  box-sizing: border-box;
-  backdrop-filter: blur(4rpx);
-  -webkit-backdrop-filter: blur(4rpx);
-  display: flex;
-  align-items: center;
-  justify-content: center;
-}
-
 .edit-label {
   flex-shrink: 0;
   width: 150rpx;

+ 4 - 3
pages/warndata/components/device-detail.vue

@@ -231,8 +231,10 @@ export default {
   box-sizing: border-box;
 
   .device-tab {
-    background-color: #fff;
-    border-bottom: 1px solid #eef2f8;
+    position: sticky;
+    top: 0;
+    z-index: 10;
+    margin-bottom: 20rpx;
   }
 
   .devic-box-tab {
@@ -255,7 +257,6 @@ export default {
       box-sizing: border-box;
       background-color: #fff;
       border-radius: 10px;
-      box-shadow: 0 2px 8px rgba(43, 124, 255, 0.08);
       margin-bottom: 10px;
 
       .filter-row {

+ 10 - 16
pages/warndata/components/dust-detail.vue

@@ -409,7 +409,11 @@ export default {
   box-sizing: border-box;
 
   .devic-box-tab {
+    position: sticky;
+    top: 0;
+    z-index: 10;
     padding: 0px 10px !important;
+    margin-bottom: 10px;
   }
 
   .dust-content {
@@ -425,8 +429,9 @@ export default {
       width: 100%;
       padding: 10px;
       box-sizing: border-box;
-      background-color: #fff;
-      margin-bottom: 2px;
+      background-color: #f9f9fb;
+      border: 1px solid #fff;
+      margin-bottom: 12px;
 
       .top-title {
         height: 28px;
@@ -474,19 +479,7 @@ export default {
               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);
-              }
+              background: linear-gradient(135deg, #80b4ff, #347df3);
 
               .icon-img {
                 position: relative;
@@ -539,7 +532,8 @@ export default {
       width: 100%;
       padding: 10px;
       box-sizing: border-box;
-      background-color: #fff;
+      background-color: #f9f9fb;
+      border: 1px solid #fff;
       margin-bottom: 2px;
 
       .bot-title {

+ 17 - 38
pages/warndata/components/fire-detail-ckq.vue

@@ -464,8 +464,9 @@ export default {
   .top-area {
     width: 100%;
     padding: 10px;
-    background-color: #fff;
-    margin-bottom: 2px;
+    background-color: #f9f9fb;
+    border: 1px solid #fff;
+    margin-bottom: 12px;
     box-sizing: border-box;
 
     .top-card {
@@ -480,9 +481,9 @@ export default {
         height: 62px;
         border-radius: 10px;
         background: linear-gradient(
-          135deg,
-          rgba(55, 135, 254, 0.12) 0%,
-          rgba(4, 184, 255, 0.08) 100%
+          to bottom,
+          rgba(175, 195, 252, 0.6) 0%,
+          rgba(175, 195, 252, 0.1) 100%
         );
 
         &:nth-child(1),
@@ -508,19 +509,7 @@ export default {
             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);
-            }
+            background: linear-gradient(135deg, #80b4ff, #347df3);
 
             .icon-img {
               position: relative;
@@ -564,8 +553,9 @@ export default {
   .center-area {
     width: 100%;
     padding: 10px;
-    background-color: #fff;
-    margin-bottom: 2px;
+    background-color: #f9f9fb;
+    border: 1px solid #fff;
+    margin-bottom: 12px;
     box-sizing: border-box;
 
     .bot-title {
@@ -585,7 +575,8 @@ export default {
   .bot-area {
     width: 100%;
     padding: 0px 10px;
-    background-color: #fff;
+    background-color: #f9f9fb;
+    border: 1px solid #fff;
     margin-bottom: 2px;
     box-sizing: border-box;
 
@@ -607,7 +598,7 @@ export default {
         font-size: 13px;
         font-weight: 600;
         color: #000;
-        background: url("/static/warndata/title.png") no-repeat;
+        background: url("/static/warndata/1-1.png") no-repeat;
         background-size: 100% 100%;
       }
 
@@ -631,9 +622,9 @@ export default {
             padding: 0px 6px;
             border-radius: 10px;
             background: linear-gradient(
-              135deg,
-              rgba(55, 135, 254, 0.12) 0%,
-              rgba(4, 184, 255, 0.08) 100%
+              to bottom,
+              rgba(175, 195, 252, 0.6) 0%,
+              rgba(175, 195, 252, 0.1) 100%
             );
 
             .item-icon {
@@ -645,19 +636,7 @@ export default {
               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);
-              }
+              background: linear-gradient(135deg, #80b4ff, #347df3);
 
               .icon-img {
                 position: relative;

+ 15 - 47
pages/warndata/components/fire-detail-mb.vue

@@ -477,8 +477,9 @@ export default {
   .top-area {
     width: 100%;
     padding: 10px;
-    background-color: #fff;
-    margin-bottom: 2px;
+    background-color: #f9f9fb;
+    border: 1px solid #fff;
+    margin-bottom: 12px;
     box-sizing: border-box;
 
     .top-card {
@@ -494,9 +495,9 @@ export default {
         height: 100%;
         border-radius: 10px;
         background: linear-gradient(
-          135deg,
-          rgba(55, 135, 254, 0.12) 0%,
-          rgba(4, 184, 255, 0.08) 100%
+          to bottom,
+          rgba(175, 195, 252, 0.6) 0%,
+          rgba(175, 195, 252, 0.1) 100%
         );
 
         .box-item {
@@ -516,19 +517,9 @@ export default {
             display: flex;
             align-items: center;
             justify-content: center;
-            background: linear-gradient(135deg, #4d9dff 0%, #0065f8 100%);
+            background: linear-gradient(135deg, #80b4ff, #347df3);
 
             //图标后面叠一层浅蓝方块
-            &::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;
@@ -561,9 +552,9 @@ export default {
         height: 100%;
         border-radius: 10px;
         background: linear-gradient(
-          135deg,
-          rgba(55, 135, 254, 0.12) 0%,
-          rgba(4, 184, 255, 0.08) 100%
+          to bottom,
+          rgba(175, 195, 252, 0.6) 0%,
+          rgba(175, 195, 252, 0.1) 100%
         );
 
         //时间卡片宽一些,保证日期时间一行显示
@@ -592,19 +583,7 @@ export default {
             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);
-            }
+            background: linear-gradient(135deg, #80b4ff, #347df3);
 
             .icon-img {
               position: relative;
@@ -649,7 +628,8 @@ export default {
   .bot-area {
     width: 100%;
     padding: 0px 10px;
-    background-color: #fff;
+    background-color: #f9f9fb;
+    border: 1px solid #fff;
     margin-bottom: 2px;
     box-sizing: border-box;
 
@@ -674,7 +654,7 @@ export default {
         font-size: 13px;
         font-weight: 600;
         color: #000;
-        background: url("/static/warndata/title.png") no-repeat;
+        background: url("/static/warndata/1-1.png") no-repeat;
         background-size: 100% 100%;
       }
 
@@ -712,19 +692,7 @@ export default {
               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);
-              }
+              background: linear-gradient(135deg, #80b4ff, #347df3);
 
               .icon-img {
                 position: relative;

+ 12 - 21
pages/warndata/components/fire-detail-out.vue

@@ -305,8 +305,9 @@ export default {
   .top-area {
     width: 100%;
     padding: 10px;
-    background-color: #fff;
-    margin-bottom: 2px;
+    background-color: #f9f9fb;
+    border: 1px solid #fff;
+    margin-bottom: 12px;
     box-sizing: border-box;
 
     .top-card {
@@ -321,9 +322,9 @@ export default {
         height: 62px;
         border-radius: 10px;
         background: linear-gradient(
-          135deg,
-          rgba(55, 135, 254, 0.12) 0%,
-          rgba(4, 184, 255, 0.08) 100%
+          to bottom,
+          rgba(175, 195, 252, 0.6) 0%,
+          rgba(175, 195, 252, 0.1) 100%
         );
 
         &:nth-child(1),
@@ -348,19 +349,7 @@ export default {
             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);
-            }
+            background: linear-gradient(135deg, #80b4ff, #347df3);
 
             .icon-img {
               position: relative;
@@ -404,8 +393,9 @@ export default {
   .center-area {
     width: 100%;
     padding: 10px;
-    background-color: #fff;
-    margin-bottom: 2px;
+    background-color: #f9f9fb;
+    border: 1px solid #fff;
+    margin-bottom: 12px;
     box-sizing: border-box;
 
     .bot-title {
@@ -425,7 +415,8 @@ export default {
   .bot-area {
     width: 100%;
     padding: 10px;
-    background-color: #fff;
+    background-color: #f9f9fb;
+    border: 1px solid #fff;
     border-radius: 10px;
     box-shadow: 0 2px 8px rgba(43, 124, 255, 0.08);
     margin-bottom: 10px;

+ 11 - 11
pages/warndata/components/fire-detail-zb.vue

@@ -154,9 +154,9 @@ export default {
   .top-area {
     width: 100%;
     padding: 10px;
-    background-color: #fff;
+    background-color: #f9f9fb;
+    border: 1px solid #fff;
     border-radius: 10px;
-    box-shadow: 0 2px 8px rgba(43, 124, 255, 0.08);
     margin-bottom: 10px;
     box-sizing: border-box;
 
@@ -169,9 +169,9 @@ export default {
   .bot-area {
     width: 100%;
     padding: 10px;
-    background-color: #fff;
+    background-color: #f9f9fb;
+    border: 1px solid #fff;
     border-radius: 10px;
-    box-shadow: 0 2px 8px rgba(43, 124, 255, 0.08);
     box-sizing: border-box;
 
     .bot-content {
@@ -188,7 +188,7 @@ export default {
         font-size: 13px;
         font-weight: 600;
         color: #1f3a68;
-        background: url("/static/warndata/title.png") no-repeat;
+        background: url("/static/warndata/1-1.png") no-repeat;
         background-size: 100% 100%;
       }
 
@@ -198,7 +198,7 @@ export default {
         padding: 10px 0px 0px;
 
         .content-item {
-          width: calc((100% - 12px) / 3);
+          width: calc((100% - 12px) / 2);
           height: 62px;
           margin-right: 6px;
           margin-bottom: 8px;
@@ -207,13 +207,13 @@ export default {
           display: flex;
           align-items: center;
           background: linear-gradient(
-            135deg,
-            rgba(55, 135, 254, 0.1) 0%,
-            rgba(4, 184, 255, 0.1) 100%
+            to bottom,
+            rgba(175, 195, 252, 0.6) 0%,
+            rgba(175, 195, 252, 0.1) 100%
           );
           border-radius: 10px;
 
-          &:nth-child(3n) {
+          &:nth-child(2n) {
             margin-right: 0px;
           }
 
@@ -225,7 +225,7 @@ export default {
             align-items: center;
             justify-content: center;
             border-radius: 8px;
-            background: linear-gradient(135deg, #4d9dff 0%, #0065f8 100%);
+            background: linear-gradient(135deg, #80b4ff, #347df3);
 
             .icon-img {
               width: 18px;

+ 6 - 4
pages/warndata/components/fire-detail.vue

@@ -219,7 +219,11 @@ export default {
   box-sizing: border-box;
 
   .devic-box-tab {
+    position: sticky;
+    top: 0;
+    z-index: 10;
     padding: 0px 10px !important;
+    margin-bottom: 10px;
   }
 
   .fire-content-box {
@@ -234,9 +238,8 @@ export default {
       justify-content: center;
       align-items: center;
       box-sizing: border-box;
-      background-color: #fff;
+      background-color: #eaeefc;
       border-radius: 10px;
-      box-shadow: 0 2px 8px rgba(43, 124, 255, 0.08);
       margin-bottom: 10px;
 
       .search-l {
@@ -325,8 +328,7 @@ export default {
         box-sizing: border-box;
         border-radius: 4px;
         border: 1px solid #2b7cff;
-        background-color: #fff;
-
+        background-color: #d2e0fc;
         .icon-style {
           width: 14px;
           height: 14px;

+ 17 - 21
pages/warndata/components/gas-detail.vue

@@ -315,7 +315,11 @@ export default {
   box-sizing: border-box;
 
   .devic-box-tab {
+    position: sticky;
+    top: 0;
+    z-index: 10;
     padding: 0px 10px !important;
+    margin-bottom: 10px;
   }
 
   .gas-content {
@@ -405,15 +409,17 @@ export default {
     .top-area {
       width: 100%;
       padding: 0px 10px;
-      background-color: #fff;
-      margin-bottom: 2px;
+      background-color: #f9f9fb;
+      border: 1px solid #fff;
+      margin-bottom: 12px;
       box-sizing: border-box;
     }
 
     .bot-area {
       width: 100%;
       padding: 0px 10px;
-      background-color: #fff;
+      background-color: #f9f9fb;
+      border: 1px solid #fff;
       margin-bottom: 2px;
       box-sizing: border-box;
     }
@@ -437,7 +443,7 @@ export default {
         font-size: 13px;
         font-weight: 600;
         color: #000;
-        background: url("/static/warndata/title.png") no-repeat;
+        background: url("/static/warndata/1-1.png") no-repeat;
         background-size: 100% 100%;
       }
 
@@ -451,8 +457,8 @@ export default {
           align-items: center;
           background: linear-gradient(
             to bottom,
-            rgba(55, 135, 254, 0.22) 0%,
-            rgba(4, 184, 255, 0.06) 100%
+            rgba(175, 195, 252, 0.6) 0%,
+            rgba(175, 195, 252, 0.1) 100%
           );
           border-radius: 8px;
           margin-bottom: 8px;
@@ -525,8 +531,8 @@ export default {
           border-radius: 10px;
           background: linear-gradient(
             to bottom,
-            rgba(55, 135, 254, 0.22) 0%,
-            rgba(4, 184, 255, 0.06) 100%
+            rgba(175, 195, 252, 0.6) 0%,
+            rgba(175, 195, 252, 0.1) 100%
           );
 
           //两列统一宽度,保证上下左右对齐;右侧宽一些让日期时间完整显示
@@ -547,19 +553,9 @@ export default {
             display: flex;
             align-items: center;
             justify-content: center;
-            background: linear-gradient(135deg, #4d9dff 0%, #0065f8 100%);
+            background: linear-gradient(135deg, #80b4ff, #347df3);
 
             //图标后面叠一层浅蓝方块
-            &::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;
@@ -649,7 +645,7 @@ export default {
       padding: 0px 20px;
       margin-bottom: 10px;
       font-size: 12px;
-      background: url("/static/warndata/title.png") no-repeat;
+      background: url("/static/warndata/1-1.png") no-repeat;
       background-size: 100% 100%;
     }
 
@@ -683,7 +679,7 @@ export default {
       line-height: 26px;
       padding-left: 20px;
       font-size: 12px;
-      background: url("/static/warndata/title.png") no-repeat;
+      background: url("/static/warndata/1-1.png") no-repeat;
       background-size: 100% 100%;
     }
 

+ 16 - 23
pages/warndata/components/vent-detail.vue

@@ -361,7 +361,11 @@ export default {
   box-sizing: border-box;
 
   .devic-box-tab {
+    position: sticky;
+    top: 0;
+    z-index: 10;
     padding: 0px 10px !important;
+    margin-bottom: 10px;
   }
 
   .vent-content {
@@ -373,8 +377,9 @@ export default {
       width: 100%;
       padding: 10px;
       box-sizing: border-box;
-      background-color: #fff;
-      margin-bottom: 2px;
+      background-color: #f9f9fb;
+      border: 1px solid #fff;
+      margin-bottom: 12px;
 
       .top-card {
         width: 100%;
@@ -409,19 +414,7 @@ export default {
             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: 7px;
-              background: rgba(77, 157, 255, 0.35);
-            }
+            background: linear-gradient(135deg, #80b4ff, #347df3);
 
             .icon-img {
               position: relative;
@@ -461,15 +454,17 @@ export default {
       height: 220px;
       padding: 0px 10px;
       box-sizing: border-box;
-      background-color: #fff;
-      margin-bottom: 2px;
+      background-color: #f9f9fb;
+      border: 1px solid #fff;
+      margin-bottom: 12px;
     }
 
     .bot-area {
       width: 100%;
       padding: 0px 10px;
       box-sizing: border-box;
-      background-color: #fff;
+      background-color: #f9f9fb;
+      border: 1px solid #fff;
       margin-bottom: 2px;
       .bot-content {
         overflow-y: auto;
@@ -482,12 +477,10 @@ export default {
           padding: 5px;
           margin-bottom: 5px;
           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(175, 195, 252, 0.6) 0%,
+            rgba(175, 195, 252, 0.1) 100%
           );
-
           .item-l {
             position: relative;
             width: 80px;

+ 81 - 38
pages/warndata/warndata.vue

@@ -593,51 +593,95 @@ export default {
     },
     getDeviceIcon(item) {
       const iconNameMap = {
-        atomizing: "喷淋",
-        dedustefan: "除尘器",
-        drilling: "跟机喷雾",
+        Minepressure: "矿压",
+        bundleReport: "束管日报",
+        door: "防火门",
         dustdev: "喷粉",
-        fanlocal: "局扇",
-        fanmain: "主扇",
-        forcFan: "压风",
-        gasmonitor: "抽采管路",
-        gate: "风门",
-        location: "人员定位",
-        nitrogen: "注氮",
-        pulping: "注浆",
-        pump: "瓦斯泵",
-        rebroadcast: "语音扩播",
-        safetymonitor: "安全监控",
-        spary: "喷淋",
+        modelsensor: "传感器",
+        imgFireDet: "图像型火灾探测器",
+        led: "LED屏",
+        gasDay: "人工瓦斯巡检",
+        footageGas: "进尺与瓦斯涌出",
+        fanmain: "主通风机",
+        vehicle: "车辆定位",
+        dusting: "粉尘",
+        obfurage: "密闭",
+        gaspatrol: "瓦斯巡检",
+        bundleSpyReport: "色谱仪报表",
+        pump: "瓦斯抽采泵",
+        dustsensor: "粉尘传感器",
+        fiber: "光纤测温",
+        bundletube: "束管监测",
+        forcFan: "压风机",
         spray: "喷淋",
+        dustReport: "粉尘报表",
+        nitrogen: "制氮",
+        transferpoint: "转载点",
+        gasvalve: "瓦斯管道阀门",
+        windrect: "测风装置",
+        drilling: "抽采钻孔辅助设计",
+        audVisAlarm: "声光报警器",
+        atomizing: "喷雾设备",
+        ballvalve: "球阀",
+        safetymonitor: "安全监控",
+        dedustefan: "除尘风机",
         unit: "评价单元",
-        window: "风窗",
-        wintest: "测风装置",
+        gasmonitor: "瓦斯监测",
+        fanlocal: "局部通风机",
+        gaspipe: "瓦斯管道",
+        duaSpeCamera: "双光谱摄像机",
+        gate: "自动风门",
+        window: "自动风窗",
+        rebroadcast: "语音扩播",
+        pulping: "制浆",
       };
       // 设备图标文件名已由中文名改为中文首字母缩写
       const iconFileMap = {
-        喷淋: "pl",
-        除尘器: "ccq",
-        跟机喷雾: "gjpw",
+        矿压: "ky",
+        束管日报: "sgrb",
+        防火门: "fhm",
         喷粉: "pf",
-        局扇: "js",
-        主扇: "zs",
-        压风: "yf",
-        抽采管路: "ccgl",
-        风门: "fm",
-        人员定位: "rydw",
-        注氮: "zd",
-        注浆: "zj",
-        瓦斯泵: "wsb",
-        语音扩播: "yykb",
+        传感器: "cgq",
+        图像型火灾探测器: "tx",
+        LED屏: "led",
+        人工瓦斯巡检: "rgws",
+        进尺与瓦斯涌出: "jcyws",
+        主通风机: "zs",
+        车辆定位: "cldw",
+        粉尘: "fenchen",
+        密闭: "mb",
+        瓦斯巡检: "wsxj",
+        色谱仪报表: "spy",
+        瓦斯抽采泵: "wsb",
+        粉尘传感器: "fenchen",
+        光纤测温: "default",
+        束管监测: "default",
+        压风机: "yf",
+        喷淋: "pl",
+        粉尘报表: "sgrb",
+        制氮: "zd",
+        转载点: "default",
+        瓦斯管道阀门: "wsxj",
+        测风装置: "cfzz",
+        抽采钻孔辅助设计: "jcyws",
+        声光报警器: "default",
+        喷雾设备: "pl",
+        球阀: "qf",
         安全监控: "aqjk",
+        除尘风机: "ccq",
         评价单元: "default",
-        风窗: "fc",
-        测风装置: "cfzz",
+        瓦斯监测: "wsjc",
+        局部通风机: "js",
+        瓦斯管道: "wsgd",
+        双光谱摄像机: "sgpsx",
+        自动风门: "fm",
+        自动风窗: "fc",
+        语音扩播: "yykb",
+        制浆: "zj",
       };
       const deviceName = iconNameMap[item.code] || item.name;
       const iconName = iconFileMap[deviceName] || "default";
-      return `/static/warndata/${iconName} – 1.png`;
+      return `/static/warndata/${iconName}.png`;
     },
     getFireIcon(item) {
       const monitor = item.monitorcode || "";
@@ -840,7 +884,6 @@ export default {
   background: #f9f9fb;
   border-radius: 16rpx;
   padding: 28rpx 24rpx;
-  box-shadow: 0 2rpx 12rpx rgba(0, 0, 0, 0.04);
 }
 
 .warn-card-title {
@@ -1007,9 +1050,9 @@ export default {
 }
 
 .device-card {
-  background: #ffffff;
+  background: #f9f9fb;
   border-radius: 16rpx;
-  box-shadow: 0 2rpx 12rpx rgba(0, 0, 0, 0.04);
+  border: 1rpx solid #fff;
   overflow: hidden;
 }
 
@@ -1231,7 +1274,7 @@ export default {
   width: 72rpx;
   height: 72rpx;
   border-radius: 12rpx;
-  background: linear-gradient(135deg, #4d9dff 0%, #0065f8 100%);
+  background: linear-gradient(135deg, #80b4ff, #347df3);
   display: flex;
   align-items: center;
   justify-content: center;
@@ -1525,7 +1568,7 @@ export default {
   width: 56rpx;
   height: 56rpx;
   border-radius: 10rpx;
-  background: linear-gradient(135deg, #4d9dff 0%, #0065f8 100%);
+  background: linear-gradient(135deg, #80b4ff, #347df3);
   display: flex;
   align-items: center;
   justify-content: center;

BIN
static/bot-area.png


+ 0 - 0
static/dhz-logo.png → static/desk-img/dhz-logo.png


+ 3 - 0
static/filecenter/close.svg

@@ -0,0 +1,3 @@
+<svg xmlns="http://www.w3.org/2000/svg" width="16.912" height="16.912" viewBox="0 0 16.912 16.912">
+  <path id="路径_56280" data-name="路径 56280" d="M33.878,27.061l6.887-6.889a.9.9,0,0,0,0-1.268l-.038-.038a.9.9,0,0,0-1.268,0l-6.886,6.9-6.886-6.9a.9.9,0,0,0-1.268,0l-.037.038a.885.885,0,0,0,0,1.268l6.886,6.889-6.886,6.888a.9.9,0,0,0,0,1.268l.037.038a.9.9,0,0,0,1.268,0l6.886-6.888,6.886,6.888a.9.9,0,0,0,1.268,0l.038-.037a.9.9,0,0,0,0-1.268Z" transform="translate(-24.114 -18.604)" fill="#0065f8"/>
+</svg>

+ 6 - 0
static/filecenter/delete.svg

@@ -0,0 +1,6 @@
+<svg xmlns="http://www.w3.org/2000/svg" width="33.652" height="36" viewBox="0 0 33.652 36">
+  <g id="组_15422" data-name="组 15422" transform="translate(-36.102)">
+    <path id="路径_56282" data-name="路径 56282" d="M53.2,0a6.8,6.8,0,0,0-6.791,6.57H37.831a1.728,1.728,0,1,0,0,3.456h1.91V29.394C39.741,33.03,42.21,36,45.254,36H60.782c3.044,0,5.512-2.952,5.512-6.606V10.045h1.729a1.728,1.728,0,1,0,0-3.456H59.972A6.773,6.773,0,0,0,53.2,0ZM49.406,6.261a3.546,3.546,0,0,1,7.043,0H49.406Zm-3.96,26.59c-1.1,0-2.3-1.384-2.3-3.36V10.174H63.493V29.508c0,1.977-1.2,3.36-2.3,3.36H45.446v-.018Z" transform="translate(0 0)" fill="#0068fb"/>
+    <path id="路径_56283" data-name="路径 56283" d="M325.411,433.858a1.649,1.649,0,0,0,1.565-1.726v-9.851a1.573,1.573,0,1,0-3.13,0v9.851a1.637,1.637,0,0,0,1.566,1.726Zm5.478,0a1.65,1.65,0,0,0,1.566-1.726v-9.851a1.573,1.573,0,1,0-3.131,0v9.851a1.65,1.65,0,0,0,1.566,1.726Zm4.7,0a1.65,1.65,0,0,0,1.565-1.726v-9.851a1.573,1.573,0,1,0-3.13,0v9.851A1.637,1.637,0,0,0,335.585,433.858Z" transform="translate(-277.57 -405.685)" fill="#0068fb"/>
+  </g>
+</svg>

+ 0 - 0
static/home/glmj.svg → static/home/gfmj.svg


+ 32 - 0
static/icon-new/gfmj.svg

@@ -0,0 +1,32 @@
+<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="29.176" height="29.17" viewBox="0 0 29.176 29.17">
+  <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="组_15603" data-name="组 15603" transform="translate(3.588 -20.416)">
+    <g id="组_15542" data-name="组 15542" transform="translate(-65.588 -42.984)">
+      <path id="路径_55378" data-name="路径 55378" d="M159.973,139.2h-19.16a1.715,1.715,0,0,0-1.713,1.713V160.07a1.713,1.713,0,0,0,1.713,1.713h19.16a1.715,1.715,0,0,0,1.713-1.713V140.913A1.717,1.717,0,0,0,159.973,139.2Zm-.343,11.842-8.689,8.689h-1.68l10.368-10.368Zm-13.273,8.689h-2.246l15.519-15.519v2.246Zm-5.2-10.878,7.594-7.613-.185.015h1.852l-9.262,9.256Zm0,4.563,12.163-12.163H155.1L141.155,155.2Zm4.678-12.163-4.678,4.693v-4.693Zm-4.678,16.85,16.85-16.847h1.628v.164l-.055-.055-17.951,17.947.421.421h-.894Zm12.691,1.628,5.784-5.784v5.784Z" transform="translate(-72.823 -73.502)" fill="#2663ca"/>
+      <path id="路径_55379" data-name="路径 55379" d="M101.468,101.553H98.585a.684.684,0,0,1-.685-.685V97.985a.684.684,0,0,1,.685-.685h2.883a.684.684,0,0,1,.685.685v2.883a.684.684,0,0,1-.685.685" transform="translate(-32.872 -32.872)" fill="#2663ca"/>
+      <path id="路径_55380" data-name="路径 55380" d="M68.6,69.709H65.713A1.713,1.713,0,0,1,64,68V65.113A1.713,1.713,0,0,1,65.713,63.4H68.6a1.715,1.715,0,0,1,1.713,1.713V68A1.713,1.713,0,0,1,68.6,69.709Zm-2.541-2.052h2.2v-2.2h-2.2Z" fill="#2663ca"/>
+      <path id="路径_55381" data-name="路径 55381" d="M789.668,101.553h-2.883a.684.684,0,0,1-.685-.685V97.985a.684.684,0,0,1,.685-.685h2.883a.684.684,0,0,1,.685.685v2.883a.683.683,0,0,1-.685.685" transform="translate(-700.208 -32.872)" fill="#2663ca"/>
+      <path id="路径_55382" data-name="路径 55382" d="M756.9,69.709h-2.883A1.713,1.713,0,0,1,752.3,68V65.113a1.715,1.715,0,0,1,1.713-1.713H756.9a1.715,1.715,0,0,1,1.713,1.713V68A1.717,1.717,0,0,1,756.9,69.709Zm-2.544-2.052h2.2v-2.2h-2.2Z" transform="translate(-667.433)" fill="#2663ca"/>
+      <path id="路径_55383" data-name="路径 55383" d="M101.468,789.653H98.585a.684.684,0,0,1-.685-.685v-2.883a.684.684,0,0,1,.685-.685h2.883a.684.684,0,0,1,.685.685v2.883a.684.684,0,0,1-.685.685" transform="translate(-32.872 -700.111)" fill="#2663ca"/>
+      <path id="路径_55384" data-name="路径 55384" d="M68.6,757.809H65.713A1.713,1.713,0,0,1,64,756.1v-2.883a1.713,1.713,0,0,1,1.713-1.713H68.6a1.715,1.715,0,0,1,1.713,1.713V756.1A1.715,1.715,0,0,1,68.6,757.809Zm-2.541-2.055h2.2v-2.2h-2.2Z" transform="translate(0 -667.239)" fill="#2663ca"/>
+      <path id="路径_55385" data-name="路径 55385" d="M789.668,789.653h-2.883a.684.684,0,0,1-.685-.685v-2.883a.684.684,0,0,1,.685-.685h2.883a.684.684,0,0,1,.685.685v2.883a.682.682,0,0,1-.685.685" transform="translate(-700.208 -700.111)" fill="#2663ca"/>
+      <path id="路径_55386" data-name="路径 55386" d="M756.9,757.809h-2.883A1.713,1.713,0,0,1,752.3,756.1v-2.883a1.715,1.715,0,0,1,1.713-1.713H756.9a1.715,1.715,0,0,1,1.713,1.713V756.1A1.719,1.719,0,0,1,756.9,757.809Zm-2.544-2.055h2.2v-2.2h-2.2Z" transform="translate(-667.433 -667.239)" fill="#2663ca"/>
+    </g>
+    <g id="组_15599" data-name="组 15599" transform="translate(-67.588 -40.984)">
+      <path id="路径_55378-2" data-name="路径 55378" d="M159.973,139.2h-19.16a1.715,1.715,0,0,0-1.713,1.713V160.07a1.713,1.713,0,0,0,1.713,1.713h19.16a1.715,1.715,0,0,0,1.713-1.713V140.913A1.717,1.717,0,0,0,159.973,139.2Zm-.343,11.842-8.689,8.689h-1.68l10.368-10.368Zm-13.273,8.689h-2.246l15.519-15.519v2.246Zm-5.2-10.878,7.594-7.613-.185.015h1.852l-9.262,9.256Zm0,4.563,12.163-12.163H155.1L141.155,155.2Zm4.678-12.163-4.678,4.693v-4.693Zm-4.678,16.85,16.85-16.847h1.628v.164l-.055-.055-17.951,17.947.421.421h-.894Zm12.691,1.628,5.784-5.784v5.784Z" transform="translate(-72.823 -73.502)" fill="url(#linear-gradient)"/>
+      <path id="路径_55379-2" data-name="路径 55379" d="M101.468,101.553H98.585a.684.684,0,0,1-.685-.685V97.985a.684.684,0,0,1,.685-.685h2.883a.684.684,0,0,1,.685.685v2.883a.684.684,0,0,1-.685.685" transform="translate(-32.872 -32.872)" fill="url(#linear-gradient)"/>
+      <path id="路径_55380-2" data-name="路径 55380" d="M68.6,69.709H65.713A1.713,1.713,0,0,1,64,68V65.113A1.713,1.713,0,0,1,65.713,63.4H68.6a1.715,1.715,0,0,1,1.713,1.713V68A1.713,1.713,0,0,1,68.6,69.709Zm-2.541-2.052h2.2v-2.2h-2.2Z" fill="url(#linear-gradient)"/>
+      <path id="路径_55381-2" data-name="路径 55381" d="M789.668,101.553h-2.883a.684.684,0,0,1-.685-.685V97.985a.684.684,0,0,1,.685-.685h2.883a.684.684,0,0,1,.685.685v2.883a.683.683,0,0,1-.685.685" transform="translate(-700.208 -32.872)" fill="url(#linear-gradient)"/>
+      <path id="路径_55382-2" data-name="路径 55382" d="M756.9,69.709h-2.883A1.713,1.713,0,0,1,752.3,68V65.113a1.715,1.715,0,0,1,1.713-1.713H756.9a1.715,1.715,0,0,1,1.713,1.713V68A1.717,1.717,0,0,1,756.9,69.709Zm-2.544-2.052h2.2v-2.2h-2.2Z" transform="translate(-667.433)" fill="url(#linear-gradient)"/>
+      <path id="路径_55383-2" data-name="路径 55383" d="M101.468,789.653H98.585a.684.684,0,0,1-.685-.685v-2.883a.684.684,0,0,1,.685-.685h2.883a.684.684,0,0,1,.685.685v2.883a.684.684,0,0,1-.685.685" transform="translate(-32.872 -700.111)" fill="url(#linear-gradient)"/>
+      <path id="路径_55384-2" data-name="路径 55384" d="M68.6,757.809H65.713A1.713,1.713,0,0,1,64,756.1v-2.883a1.713,1.713,0,0,1,1.713-1.713H68.6a1.715,1.715,0,0,1,1.713,1.713V756.1A1.715,1.715,0,0,1,68.6,757.809Zm-2.541-2.055h2.2v-2.2h-2.2Z" transform="translate(0 -667.239)" fill="url(#linear-gradient)"/>
+      <path id="路径_55385-2" data-name="路径 55385" d="M789.668,789.653h-2.883a.684.684,0,0,1-.685-.685v-2.883a.684.684,0,0,1,.685-.685h2.883a.684.684,0,0,1,.685.685v2.883a.682.682,0,0,1-.685.685" transform="translate(-700.208 -700.111)" fill="url(#linear-gradient)"/>
+      <path id="路径_55386-2" data-name="路径 55386" d="M756.9,757.809h-2.883A1.713,1.713,0,0,1,752.3,756.1v-2.883a1.715,1.715,0,0,1,1.713-1.713H756.9a1.715,1.715,0,0,1,1.713,1.713V756.1A1.719,1.719,0,0,1,756.9,757.809Zm-2.544-2.055h2.2v-2.2h-2.2Z" transform="translate(-667.433 -667.239)" fill="url(#linear-gradient)"/>
+    </g>
+  </g>
+</svg>

+ 0 - 0
static/warndata/aqjk – 1.png → static/warndata/aqjk.png


+ 0 - 0
static/warndata/ccgl – 1.png → static/warndata/ccgl.png


+ 0 - 0
static/warndata/ccq – 1.png → static/warndata/ccq.png


+ 0 - 0
static/warndata/cfzz – 1.png → static/warndata/cfzz.png


BIN
static/warndata/cgq.png


BIN
static/warndata/cldw.png


+ 0 - 0
static/warndata/default – 1.png → static/warndata/default.png


+ 0 - 0
static/warndata/fc – 1.png → static/warndata/fc.png


BIN
static/warndata/fenchen.png


BIN
static/warndata/fhm.png


+ 0 - 0
static/warndata/fm – 1.png → static/warndata/fm.png


+ 0 - 0
static/warndata/gjpw – 1.png → static/warndata/gjpw.png


BIN
static/warndata/jcyws.png


+ 0 - 0
static/warndata/js – 1.png → static/warndata/js.png


BIN
static/warndata/ky.png


BIN
static/warndata/led.png


BIN
static/warndata/mb.png


+ 0 - 0
static/warndata/pf – 1.png → static/warndata/pf.png


+ 0 - 0
static/warndata/pl – 1.png → static/warndata/pl.png


BIN
static/warndata/qf.png


BIN
static/warndata/rgws.png


+ 0 - 0
static/warndata/rydw – 1.png → static/warndata/rydw.png


BIN
static/warndata/sgpsx.png


BIN
static/warndata/sgrb.png


BIN
static/warndata/spy.png


BIN
static/warndata/tx.png


+ 0 - 0
static/warndata/wsb – 1.png → static/warndata/wsb.png


BIN
static/warndata/wsgd.png


+ 0 - 0
static/warndata/wsjc – 1.png → static/warndata/wsjc.png


BIN
static/warndata/wsxj.png


+ 0 - 0
static/warndata/yf – 1.png → static/warndata/yf.png


+ 0 - 0
static/warndata/yykb – 1.png → static/warndata/yykb.png


+ 0 - 0
static/warndata/zd – 1.png → static/warndata/zd.png


+ 0 - 0
static/warndata/zj – 1.png → static/warndata/zj.png


+ 0 - 0
static/warndata/zs – 1.png → static/warndata/zs.png


Daži faili netika attēloti, jo izmaiņu fails ir pārāk liels