Browse Source

功能:设备生产列表

chrislee 3 weeks ago
parent
commit
a83ba3bcdd
2 changed files with 10 additions and 1 deletions
  1. 9 0
      src/api/device.js
  2. 1 1
      src/views/modules/device/device-list.vue

+ 9 - 0
src/api/device.js

@@ -16,6 +16,15 @@ export function getDeviceList (params) {
   })
   })
 }
 }
 
 
+// 获取设备列表
+export function getAllDeviceList (params) {
+  return request({
+    url: request.adornUrl('/biz-service/equipment/list'),
+    method: 'get',
+    params: request.adornParams(params)
+  })
+}
+
 // 根据点检id获取设备点检信息
 // 根据点检id获取设备点检信息
 export function getInspectionDetail (id) {
 export function getInspectionDetail (id) {
   return request({
   return request({

+ 1 - 1
src/views/modules/device/device-list.vue

@@ -354,7 +354,7 @@ export default {
           'size': this.pageSize,
           'size': this.pageSize,
           'name': this.dataForm.name ? this.dataForm.name : null,
           'name': this.dataForm.name ? this.dataForm.name : null,
           'state': this.dataForm.state ? this.dataForm.state : null,
           'state': this.dataForm.state ? this.dataForm.state : null,
-          'onlineState': this.dataForm.onlineState != undefined ? this.dataForm.onlineState : null
+          'onlineState': this.dataForm.onlineState !== undefined ? this.dataForm.onlineState : null
         })
         })
       }).then(({data}) => {
       }).then(({data}) => {
         if (data && data.code === '200') {
         if (data && data.code === '200') {