+
查询
@@ -48,7 +47,7 @@
- {{ scope.row.time }}
+ {{ scope.row.createTime }}
@@ -61,16 +60,6 @@
{{ scope.row.position }}
-
-
-
- {{ scope.row.code }}
-
-
@@ -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 @@