diff --git a/public/antd_color.less b/public/antd_color.less index 0fe3b1b..b746b9c 100644 --- a/public/antd_color.less +++ b/public/antd_color.less @@ -1395,7 +1395,7 @@ tr.ant-table-expanded-row:hover {background: #fbfbfb;} .ant-tag-green-inverse {color: #fff;background: #52c41a;border-color: #52c41a;} .ant-tag-blue {color: #1890ff;background: #e6f7ff;border-color: #91d5ff;} .ant-tag-blue-inverse {color: #fff;background: #1890ff;border-color: #1890ff;} -.ant-tag-geekblue {color: #2f54eb;background: color(~`colorPalette("@{heading-color}", 4)`);border-color: #adc6ff;} +.ant-tag-geekblue {color: #2f54eb;background: #f0f5ff;border-color: #adc6ff;} .ant-tag-geekblue-inverse {color: #fff;background: #2f54eb;border-color: #2f54eb;} .ant-tag-purple {color: #722ed1;background: #f9f0ff;border-color: #d3adf7;} .ant-tag-purple-inverse {color: #fff;background: #722ed1;border-color: #722ed1;} diff --git a/src/views/historyMonitoring/index.vue b/src/views/historyMonitoring/index.vue index b112fd2..3e429bd 100644 --- a/src/views/historyMonitoring/index.vue +++ b/src/views/historyMonitoring/index.vue @@ -3,12 +3,41 @@
- + + + + + + 全部 + + + {{i.name}} + + + + + - + + + + + + + + + 全部 + 缺烟 + 正常 + - + - + 搜索 重置 @@ -47,7 +76,7 @@ - @@ -96,9 +125,14 @@ export default { data() { return { queryParam: { - orderNum: '' + orderNum: '', + status: '', + streetId: '', + startTime: '', + endTime: '' }, time:[], + listData:[], pageNum: 1, pageSize: 10, data: [], @@ -156,6 +190,7 @@ export default { } }, mounted() { + this.getStreetList() this.handleGetHistoryList() console.log(this.imgUrl) if (this.$route.params.orderNum) { @@ -165,6 +200,30 @@ export default { }, methods: { moment, + //获取巷道列表 + getStreetList() { + this.$api.httpApi.getAllStreet({ + }).then(res => { + this.listData = res.data; + }).catch(err => { + console.error(err); + }); + }, + + handleChangeStreet(value) { + console.log(value); + if(value === 0){ + this.select = "全部"; + this.queryParam.streetId = value + } else { + for (let item of this.listData) { + if (item.id == value){ + this.select = item.name + this.queryParam.streetId = value + } + } + } + }, range(start, end) { const result = []; for (let i = start; i < end; i++) {