Sfoglia il codice sorgente

1、楼栋设备管理
2、楼栋监控设备

chenwj 5 anni fa
parent
commit
1dfce9549f

+ 9 - 0
src/api/device/iotdevice.js

@@ -79,3 +79,12 @@ export const getDetailByDeviceId = (imei) => {
   })
 }
 
+export const getIotDeviceStaticVo = (params) => {
+  return request({
+    url: '/api/cyzh-smart-device/iotdevice/getIotDeviceStaticVo',
+    method: 'get',
+    params: {
+      ...params,
+    }
+  })
+}

+ 17 - 9
src/views/smartapplication/buildingvideo.vue

@@ -32,7 +32,8 @@
 </template>
 
 <script>
-  import {getList, getDetail, add, update, remove,pageByBuilding} from "../../api/device/iotdevice.js";
+  import {getDetail, add, update, remove} from "../../api/device/iotdevice.js";
+  import {getList} from "@/api/device/videoclouddevice";
   import {mapGetters} from "vuex";
 
   export default {
@@ -146,7 +147,7 @@
               dataType: "number",
               type: "select",
               search: true,
-              dicUrl: "/api/blade-system/dict-biz/dictionary?code=online_or_offline",
+              dicUrl: "/api/blade-system/dict-biz/dictionary?code=yt_online_status",
               props: {
                 label: 'dictValue',
                 value: 'dictKey'
@@ -180,13 +181,20 @@
             {
               label: "是否支持云台",
               prop: "isSupportPtz",
-              dataType: "number",
+              // dataType: "number",
+              dicData: [{
+                label: "支持",
+                value: 1,
+              },{
+                label: "不支持",
+                value: 0,
+              }],
               type: "select",
-              dicUrl: "/api/blade-system/dict-biz/dictionary?code=is_support",
-              props: {
-                label: 'dictValue',
-                value: 'dictKey'
-              },
+              // dicUrl: "/api/blade-system/dict-biz/dictionary?code=is_support",
+              // props: {
+              //   label: 'dictValue',
+              //   value: 'dictKey'
+              // },
               rules: [{
                 required: true,
                 message: "请输入是否支持云台(0:不支持,1:支持)",
@@ -563,7 +571,7 @@
       onLoad(page, params = {}) {
         this.loading = true;
         params.buildingId = this.buildingId;
-        pageByBuilding(page.currentPage, page.pageSize, Object.assign(params, this.query)).then(res => {
+        getList(page.currentPage, page.pageSize, Object.assign(params, this.query)).then(res => {
           const data = res.data.data;
           this.page.total = data.total;
           this.data = data.records;

+ 2 - 2
src/views/smartapplication/devicebuilding.vue

@@ -143,7 +143,7 @@
     add,
     update,
     remove,
-    getSmartDeviceStaticVo
+    getIotDeviceStaticVo
   } from "@/api/device/iotdevice";
   import {
     mapGetters
@@ -959,7 +959,7 @@
       onLoad(page, params = {}) {
         this.loading = true;
         params.buildingId = this.buildingId;
-        getSmartDeviceStaticVo(params).then(res =>{
+        getIotDeviceStaticVo(params).then(res =>{
           this.deviceStaticVo = res.data.data
         })
         getList(page.currentPage, page.pageSize, Object.assign(params, this.query)).then(res => {