Browse Source

pms 功能优化4

zhangcl 3 months ago
parent
commit
df6349bd6e

+ 5 - 0
src/api/pms/device/index.ts

@@ -48,6 +48,11 @@ export const IotDeviceApi = {
     return await request.get({ url: `/rq/iot-device/responsiblePage`, params })
   },
 
+  // 获得设备动态 分页
+  deviceDynamicsPage: async (params: any) => {
+    return await request.get({ url: `/rq/iot-device/deviceDynamicsPage`, params })
+  },
+
   // 获得设备关联责任人 分页
   simpleDevices: async (params: any) => {
     return await request.get({ url: `/rq/iot-device/simple-list`, params })

+ 1 - 1
src/views/pms/device/DeviceAllot.vue

@@ -232,7 +232,7 @@ const shou = (tree) =>{
 const getList = async () => {
   loading.value = true
   try {
-    const data = await IotDeviceApi.responsiblePage(queryParams)
+    const data = await IotDeviceApi.deviceDynamicsPage(queryParams)
     list.value = data.list
     total.value = data.total
   } finally {

+ 1 - 1
src/views/pms/device/DeviceStatus.vue

@@ -232,7 +232,7 @@ const shou = (tree) =>{
 const getList = async () => {
   loading.value = true
   try {
-    const data = await IotDeviceApi.responsiblePage(queryParams)
+    const data = await IotDeviceApi.deviceDynamicsPage(queryParams)
     list.value = data.list
     total.value = data.total
   } finally {

+ 1 - 1
src/views/pms/iotmaincalendar/index.vue

@@ -18,7 +18,7 @@ import { useRouter } from 'vue-router'
 import FullCalendar from '@fullcalendar/vue3'
 import dayGridPlugin from '@fullcalendar/daygrid'
 import interactionPlugin from '@fullcalendar/interaction'
-import { IotMainWorkOrderApi, IotMainWorkOrderVO } from '@/api/pms/iotmainworkorder'
+import { IotMainWorkOrderApi } from '@/api/pms/iotmainworkorder'
 import '@fullcalendar/core/locales-all'
 import 'bootstrap-icons/font/bootstrap-icons.css'
 const { push } = useRouter() // 路由跳转