浏览代码

设备管理-设备查看合并

fanghuisheng 1 年之前
父节点
当前提交
01496458a4

+ 0 - 0
src/api/business/fireIot/deviceSelect/index.js → src/api/business/fireIot/deviceManage.js


+ 4 - 4
src/pages.json

@@ -467,21 +467,21 @@
       "root": "pages/business/fireIot",
       "pages": [
         {
-          "path": "deviceSelect/index",
+          "path": "deviceManage/index",
           "style": {
-            "navigationBarTitleText": "设备查询",
+            "navigationBarTitleText": "设备管理",
             "enablePullDownRefresh": false
           }
         },
         {
-          "path": "deviceSelect/components/deviceDetailsList",
+          "path": "deviceManage/components/deviceDetailsList",
           "style": {
             "navigationBarTitleText": "",
             "enablePullDownRefresh": false
           }
         },
         {
-          "path": "deviceSelect/components/deviceDetails",
+          "path": "deviceManage/components/deviceDetails",
           "style": {
             "navigationBarTitleText": "设备详情",
             "enablePullDownRefresh": false

+ 1 - 1
src/pages/business/fireIot/alarmManage/index.vue

@@ -14,7 +14,7 @@
     :data-theme="'theme-' + proxy.$settingStore.themeColor.type"
   >
     <template #default>
-      <view class="deviceSelect">
+      <view class="alarmManage">
         <u-grid :border="true">
           <u-grid-item v-for="(base, index) in dataList" :key="index" @click="handleToDetails(base.productCode, base.productName)">
             <u-badge type="primary" max="9999" :value="base.total" :showZero="true" :absolute="true" :offset="[10, 10, 0, 0]"></u-badge>

+ 0 - 0
src/pages/business/fireIot/deviceSelect/components/chart.vue → src/pages/business/fireIot/deviceManage/components/chart.vue


+ 1 - 1
src/pages/business/fireIot/deviceSelect/components/deviceDetails.vue → src/pages/business/fireIot/deviceManage/components/deviceDetails.vue

@@ -99,7 +99,7 @@ import { publicStores, useStores } from "@/store/modules/index";
 
 import chart from "./chart.vue";
 
-import { dmpProductAttribute, historyMetrics, last } from "@/api/business/fireIot/deviceSelect/index";
+import { dmpProductAttribute, historyMetrics, last } from "@/api/business/fireIot/deviceManage.js";
 
 const { proxy } = getCurrentInstance();
 const publicStore = publicStores();

+ 2 - 2
src/pages/business/fireIot/deviceSelect/components/deviceDetailsList.vue → src/pages/business/fireIot/deviceManage/components/deviceDetailsList.vue

@@ -63,7 +63,7 @@ import { onLoad, onShow, onReady, onHide, onLaunch, onNavigationBarButtonTap, on
 import { ref, reactive, computed, getCurrentInstance, toRefs, inject } from "vue";
 import { publicStores, useStores } from "@/store/modules/index";
 
-import { dmpDeviceInfo } from "@/api/business/fireIot/deviceSelect/index";
+import { dmpDeviceInfo } from "@/api/business/fireIot/deviceManage.js";
 
 const { proxy } = getCurrentInstance();
 const publicStore = publicStores();
@@ -126,7 +126,7 @@ function dmpDeviceInfoApi() {
  * @设备详情跳转点击事件
  */
 function handleToDevice(array) {
-  proxy.$tab.navigateTo("/pages/business/fireIot/deviceSelect/components/deviceDetails");
+  proxy.$tab.navigateTo("/pages/business/fireIot/deviceManage/components/deviceDetails");
 
   publicStore.$state.deviceDetailsArray = array;
   publicStore.$state.deviceDetailsArray.productName = productName.value;

+ 3 - 3
src/pages/business/fireIot/deviceSelect/index.vue → src/pages/business/fireIot/deviceManage/index.vue

@@ -14,7 +14,7 @@
     :data-theme="'theme-' + proxy.$settingStore.themeColor.type"
   >
     <template #default>
-      <view class="deviceSelect">
+      <view class="deviceManage">
         <u-grid :border="true">
           <u-grid-item v-for="(base, index) in dataList" :key="index" @click="handleToDevice(base.id, base.productName)">
             <u-badge type="primary" max="9999" :value="base.deviceCount" :showZero="true" :absolute="true" :offset="[10, 10, 0, 0]"></u-badge>
@@ -32,7 +32,7 @@ import { onReady, onLoad, onShow, onNavigationBarButtonTap, onPullDownRefresh, o
 import { ref, onMounted, inject, shallowRef, reactive, getCurrentInstance } from "vue";
 import { useStores, publicStores } from "@/store/modules/index";
 
-import { dmpProductInfo } from "@/api/business/fireIot/deviceSelect/index";
+import { dmpProductInfo } from "@/api/business/fireIot/deviceManage.js";
 
 const { proxy } = getCurrentInstance();
 
@@ -64,7 +64,7 @@ function init() {
 }
 
 function handleToDevice(id, productName) {
-  proxy.$tab.navigateTo(`/pages/business/fireIot/deviceSelect/components/deviceDetailsList?id=${id}&productName=${productName}`);
+  proxy.$tab.navigateTo(`/pages/business/fireIot/deviceManage/components/deviceDetailsList?id=${id}&productName=${productName}`);
 }
 
 /**