lxh 1 year ago
parent
commit
fecbaf166a
3 changed files with 18 additions and 14 deletions
  1. 3 0
      .babelrc
  2. 2 1
      package.json
  3. 13 13
      src/views/vent/monitorManager/alarmMonitor/DetailModalFire.vue

+ 3 - 0
.babelrc

@@ -0,0 +1,3 @@
+{
+    "presets": ["@babel/preset-env"]
+}

+ 2 - 1
package.json

@@ -89,6 +89,7 @@
     "xss": "^1.0.14"
   },
   "devDependencies": {
+    "@babel/preset-env": "^7.23.3",
     "@commitlint/cli": "^17.7.1",
     "@commitlint/config-conventional": "^17.7.0",
     "@iconify/json": "^2.2.107",
@@ -116,7 +117,7 @@
     "@vitejs/plugin-vue-jsx": "^3.0.2",
     "@vue/compiler-sfc": "^3.3.4",
     "@vue/test-utils": "^2.4.1",
-    "autoprefixer": "^10.4.15",
+    "autoprefixer": "^10.4.16",
     "commitizen": "^4.3.0",
     "conventional-changelog-cli": "^3.0.0",
     "cross-env": "^7.0.3",

+ 13 - 13
src/views/vent/monitorManager/alarmMonitor/DetailModalFire.vue

@@ -95,20 +95,20 @@ function btnClick(ind) {
       break;
     case 1:
       activeIndex1.value = 0;
-      menuList = menuList1.external.map(el => {
-        return {
-          name: el.systemname,
-          warn: '低风险',
-          type: 'out',
-          deviceID: el.id,
-          strtype:el.strtype,
-        }
-      })
-      // menuList.length=0
+      // menuList = menuList1.external.map(el => {
+      //   return {
+      //     name: el.systemname,
+      //     warn: '低风险',
+      //     type: 'out',
+      //     deviceID: el.id,
+      //     strtype:el.strtype,
+      //   }
+      // })
+      menuList.length=0
       clearInterval(timer)
-      // current.value = ''
-      getSysWarnList(menuList[0].deviceID, 'fire');
-      strType.value=menuList[0].strtype
+      current.value = ''
+      // getSysWarnList(menuList[0].deviceID, 'fire');
+      // strType.value=menuList[0].strtype
       break;
   }
 }