diff --git a/src/api/device/device.js b/src/api/device/device.js index f992a7c..cf99b06 100644 --- a/src/api/device/device.js +++ b/src/api/device/device.js @@ -47,6 +47,13 @@ export function getStatusList(data) { return request({ url: '/device/getStatusList', method: 'GET' }) } +// 获取仓库列表 +export function getWareHouseList() { + return request({ url: '/device/getWareHouseList', method: 'GET' }) +} + + + /******************************************************************************************************************************************** */ diff --git a/src/api/deviceLog/deviceLog.js b/src/api/deviceLog/deviceLog.js index f999a73..8cbc7ca 100644 --- a/src/api/deviceLog/deviceLog.js +++ b/src/api/deviceLog/deviceLog.js @@ -6,3 +6,9 @@ import qs from 'qs' export function getDeviceLogPage(data) { return request({ url: '/deviceLog/getDeviceLogPage', method: 'GET', params: data }) } + +// 获取设备日志列表 +export function getMessageInfoPage(data) { + return request({ url: '/messageInfo/getMessageInfoPage', method: 'GET', params: data }) +} + diff --git a/src/views/shebeirizhi/shebeirizhiList.vue b/src/views/shebeirizhi/shebeirizhiList.vue index 6cdddd1..45f3dd2 100644 --- a/src/views/shebeirizhi/shebeirizhiList.vue +++ b/src/views/shebeirizhi/shebeirizhiList.vue @@ -12,9 +12,8 @@ maxlength="20"> - - - + --> - +
查询 @@ -48,7 +47,7 @@ @@ -61,16 +60,6 @@ {{ scope.row.position }} - - - -
@@ -87,7 +76,7 @@ import Pagination from '@/components/pagination' import pageye from '@/components/pagination/pageye' import ButtonBar from '@/components/ButtonBar' -import { getDeviceLogPage } from '@/api/deviceLog/deviceLog' +import { getDeviceLogPage, getMessageInfoPage } from '@/api/deviceLog/deviceLog' export default { @@ -115,17 +104,7 @@ export default { sids: [], // 查询 ----------- tableKey: 0, - list: [ - { time: '2023-05-23 16:10:20', deviceName: '巡更点1', position: '东岸广场西侧东门', name: '闫永军', code: 'KTIO00065' }, - { time: '2023-05-23 16:10:20', deviceName: '巡更点1', position: '东岸广场西侧东门', name: '闫永军', code: 'KTIO00065' }, - { time: '2023-05-23 16:10:20', deviceName: '巡更点2', position: '东岸广场西侧走廊', name: '冷柠', code: 'KTIO00065' }, - { time: '2023-05-23 16:10:20', deviceName: '巡更点4', position: '东岸广场东侧东门', name: '冷柠', code: 'KTIO00065' }, - { time: '2023-05-23 16:10:20', deviceName: '巡更点3', position: '2F走廊西侧', name: '冷柠', code: 'KTIO00065' }, - { time: '2023-05-23 16:10:20', deviceName: '巡更点5', position: '2F大厅', name: '冷柠', code: 'KTIO00065' }, - { time: '2023-05-23 16:10:20', deviceName: '巡更点2', position: '2F206控制系统门口', name: '冷柠', code: 'KTIO00065' }, - { time: '2023-05-23 16:10:20', deviceName: '巡更点4', position: '2F206控制系统门口', name: '冷柠', code: 'KTIO00065' }, - { time: '2023-05-23 16:10:20', deviceName: '巡更点1', position: '2F走廊西侧', name: '闫阵', code: 'KTIO00065' }, - ], + list: [], listLoading: false, listQuery: { current: 1, @@ -138,7 +117,6 @@ export default { { title: '巡更点3', id: '3' }, { title: '巡更点4', id: '4' }, { title: '巡更点5', id: '5' }, - ], rules: {} } @@ -196,7 +174,7 @@ export default { } }, init() { - getDeviceLogPage(this.listQuery).then((res) => { + getMessageInfoPage(this.listQuery).then((res) => { if (res.code == 200) { this.list = res.data.records this.total = res.total @@ -213,17 +191,14 @@ export default { }, // 查询列表信息 getList() { - // this.listLoading = true - // req.gysPagerList(this.listQuery).then((response) => { - // this.listLoading = false - // if (response.code === '200' && response.data && response.data.total > 0) { - // this.list = response.data.records - // this.listQuery.total = response.data.total - // } else { - // this.list = [] - // this.listQuery.total = 0 - // } - // }) + getMessageInfoPage(this.listQuery).then((res) => { + if (res.code == 200) { + this.list = res.data.records + this.total = res.total + } else { + this.list = [] + } + }) }, // 查询按钮 handleFilter() { diff --git a/src/views/shebeitaizhang/shebeitaizhangAdd.vue b/src/views/shebeitaizhang/shebeitaizhangAdd.vue index 90f83cc..4ccb8e2 100644 --- a/src/views/shebeitaizhang/shebeitaizhangAdd.vue +++ b/src/views/shebeitaizhang/shebeitaizhangAdd.vue @@ -149,7 +149,7 @@