| | |
| | | valueFormat: "yyyy-MM-dd HH:mm:ss", |
| | | width: 130 |
| | | }, { |
| | | label: "最后上传时间", |
| | | label: "心跳时间", |
| | | prop: "heartbeat", |
| | | type: "datetime", |
| | | format: "yyyy-MM-dd", |
| | |
| | | ...this.query |
| | | }; |
| | | } |
| | | |
| | | //在线设备 |
| | | if(this.$route.query.dxtype != undefined){ |
| | | values = { |
| | | ...params, |
| | | dxtype: this.$route.query.dxtype, |
| | | ...this.query, |
| | | }; |
| | | } |
| | | |
| | | this.loading = true; |
| | | getList(page.currentPage, page.pageSize, values, this.treeDeptId).then(res => { |
| | | const data = res.data.data; |
| | |
| | | }); |
| | | }, |
| | | //在线设备分页数据 |
| | | handleStartEquipment(){ |
| | | handleStartEquipment(data){ |
| | | this.$router.push({ |
| | | path: `/clientManagement/index` |
| | | path: `/clientManagement/index`, |
| | | query: data[0] |
| | | }); |
| | | }, |
| | | //客户管理分页数据 |
| | |
| | | showViewer: false, // 显示查看器 |
| | | imgUrl:'', |
| | | loading: true, |
| | | dialogTableVisible: false, |
| | | parcelConversation:false, |
| | | oldParcelSatart:false, |
| | | page: { |
| | | pageSize: 10, |
| | | currentPage: 1, |
| | |
| | | valueFormat: "yyyy-MM-dd HH:mm:ss", |
| | | searchRange: true, |
| | | searchSpan: 8, |
| | | searchValue:[this.getStartTime(),this.getEndTime()], |
| | | hide: true, |
| | | addDisplay: false, |
| | | editDisplay: false, |
| | |
| | | { |
| | | label: "是否违禁", |
| | | search: true, |
| | | searchValue: this.getIsKindParams(), |
| | | searchLabelWidth: 120, |
| | | searchSpan: 4, |
| | | hide: true, |
| | |
| | | refreshChange() { |
| | | this.onLoad(this.page, this.query); |
| | | }, |
| | | getStartTime(){ |
| | | if (this.$route.query.startTime != undefined && this.$route.query.startTime != null && this.$route.query.startTime != "" ) { |
| | | return this.$route.query.startTime |
| | | } |
| | | }, |
| | | getEndTime(){ |
| | | if (this.$route.query.endTime != undefined && this.$route.query.endTime != null && this.$route.query.endTime != "" ) { |
| | | return this.$route.query.endTime |
| | | } |
| | | }, |
| | | getIsKindParams(){ |
| | | if(this.$route.query.decisioDiagramResult && this.$route.query!='' && this.$route.query!=null && this.$route.query!=undefined){ |
| | | //回显 |
| | | return this.$route.query.decisioDiagramResult |
| | | } |
| | | }, |
| | | //给行加颜色 |
| | | rowStyle({row, column, rowIndex}){ |
| | | if(row.mechineMark==1){ |
| | | return { |
| | |
| | | } |
| | | } |
| | | } |
| | | |
| | | |
| | | if (dateTime) { |
| | | values = { |
| | |
| | | format: "yyyy-MM-dd HH:mm:ss", |
| | | valueFormat: "yyyy-MM-dd HH:mm:ss", |
| | | searchRange: true, |
| | | searchValue: [this.getStartTime(),this.getEndTime()], |
| | | searchSpan: 8, |
| | | hide: true, |
| | | addDisplay: false, |
| | |
| | | refreshChange() { |
| | | this.onLoad(this.page, this.query); |
| | | }, |
| | | //获取开始时间返回搜索框 |
| | | getStartTime(){ |
| | | if (this.$route.query.startTime != undefined && this.$route.query.startTime != null && this.$route.query.startTime != "" ) { |
| | | return this.$route.query.startTime |
| | | } |
| | | }, |
| | | //获取结束时间返回搜索框 |
| | | getEndTime(){ |
| | | if (this.$route.query.endTime != undefined && this.$route.query.endTime != null && this.$route.query.endTime != "" ) { |
| | | return this.$route.query.endTime |
| | | } |
| | | }, |
| | | onLoad(page, params = {}) { |
| | | const { dateTime } = this.query; |
| | | let values = { |
| | |
| | | }); |
| | | }, |
| | | // 关闭查看器 |
| | | closeViewer() { |
| | | this.showViewer = false |
| | | } |
| | | closeViewer() { |
| | | this.showViewer = false |
| | | } |
| | | } |
| | | }; |
| | | </script> |