Merge branch 'master' of http://192.168.0.105:10010/r/jfpt-Vue
| | |
| | | import request from '@/router/axios'; |
| | | |
| | | export const getList = () => { |
| | | return request({ |
| | | url: '/api/blade-jfpts/alarm/alarm/selectListSe', |
| | | method: 'get', |
| | | params: {} |
| | | }) |
| | | return request({ |
| | | url: '/api/blade-jfpts/alarm/alarm/selectListSe', |
| | | method: 'get', |
| | | params: {} |
| | | }) |
| | | } |
| | | |
| | | export const getEquipmentList = () => { |
| | | return request({ |
| | | url: '/api/blade-jfpts/alarm/alarm/selectEq', |
| | | method: 'get', |
| | | params: {} |
| | | }) |
| | | return request({ |
| | | url: '/api/blade-jfpts/alarm/alarm/selectEq', |
| | | method: 'get', |
| | | params: {} |
| | | }) |
| | | } |
| | | |
| | | export const getDayWarnList = () => { |
| | | return request({ |
| | | url: '/api/blade-jfpts/alarm/alarm/selectAlertScount', |
| | | method: 'get', |
| | | params: {} |
| | | }) |
| | | return request({ |
| | | url: '/api/blade-jfpts/alarm/alarm/selectAlertScount', |
| | | method: 'get', |
| | | params: {} |
| | | }) |
| | | } |
| | | |
| | | export const getEquipments = () => { |
| | | return request({ |
| | | url: '/api/blade-jfpts/equipment/equipment/SeleCs', |
| | | method: 'post', |
| | | params: {} |
| | | }) |
| | | } |
| | | |
| | | export const getEquipment = () => { |
| | | return request({ |
| | | url: '/api/blade-jfpts/equipment/equipment/SeleC', |
| | | method: 'post', |
| | | params: {} |
| | | }) |
| | | return request({ |
| | | url: '/api/blade-jfpts/equipment/equipment/SeleC', |
| | | method: 'post', |
| | | params: {} |
| | | }) |
| | | } |
| | |
| | | cancelButtonText: "取消", |
| | | type: "warning" |
| | | }).then(() => { |
| | | window.open(`/api/blade-jfpts/animalHeat/animalHeat/export-animalHeat?begTime=${this.$route.query.startTime}&endTime=${this.$route.query.endTime}&status=${this.$route.query.status}&timeDesc=${this.$route.query.timeDesc}`); |
| | | let begTime = this.$route.query.startTime==undefined? '':this.$route.query.startTime; |
| | | let endTime = this.$route.query.endTime==undefined? '':this.$route.query.endTime; |
| | | let status = this.$route.query.status==undefined? '':this.$route.query.status; |
| | | let timeDesc = this.$route.query.timeDesc==undefined? '':this.$route.query.timeDesc; |
| | | window.open(`/api/blade-jfpts/animalHeat/animalHeat/export-animalHeat?begTime=${begTime}&endTime=${endTime}&status=${status}&timeDesc=${timeDesc}`); |
| | | }); |
| | | }, |
| | | //数据报表导出 |
| | |
| | | this.form.street = address.substring(address.indexOf("区")+1,address.length); |
| | | } |
| | | //写入新的省市区 |
| | | that.form.province = "11"; |
| | | that.form.city = "1101"; |
| | | that.form.district = "110101"; |
| | | // that.form.province = val.addressComponent.province; |
| | | // if(val.addressComponent.city==""){ |
| | | // that.form.city = val.addressComponent.province; |
| | | // }else{ |
| | | // that.form.city = val.addressComponent.city; |
| | | // } |
| | | // that.form.district = val.addressComponent.district; |
| | | //调用接口获取省市区编号 |
| | | that.form.province = val.addressComponent.province; |
| | | if(val.addressComponent.city==""){ |
| | | that.form.city = val.addressComponent.province; |
| | | }else{ |
| | | that.form.city = val.addressComponent.city; |
| | | } |
| | | that.form.district = val.addressComponent.district; |
| | | } |
| | | }, |
| | | immediate: true, |
| | |
| | | }); |
| | | }, |
| | | rowUpdate(row, index, done, loading) { |
| | | debugger; |
| | | if(Array.isArray(row.deptId)){ |
| | | row.deptId = row.deptId.join(","); |
| | | } |
| | | update(row).then(() => { |
| | | // this.initFlag = false; |
| | | this.onLoad(this.page); |
| | |
| | | } else if (data.records[i].heartbeat == "") { |
| | | data.records[i].dxzt = 0; |
| | | } else { |
| | | data.records[i].dxzt = data.records[i].dtype; |
| | | if(data.records[i].dtype==1){ |
| | | data.records[i].dxzt = data.records[i].dtype; |
| | | } |
| | | if(data.records[i].dtype==2){ |
| | | data.records[i].dxzt = 2; |
| | | } |
| | | if(data.records[i].dtype==3){ |
| | | data.records[i].dxzt = 3; |
| | | } |
| | | if(data.records[i].dtype=="" || data.records[i].dtype==0){ |
| | | data.records[i].dxzt = 1; |
| | | } |
| | | |
| | | } |
| | | } |
| | | |
| | |
| | | getList, |
| | | getEquipmentList, |
| | | getDayWarnList, |
| | | getEquipment, |
| | | getEquipments, |
| | | } from "@/api/supervisory/data"; |
| | | |
| | | export default { |
| | |
| | | that.drawPillar(res.data.data); |
| | | }); |
| | | |
| | | getEquipment().then((res) => { |
| | | getEquipments().then((res) => { |
| | | console.log(res.data.data, 123); |
| | | |
| | | var total = 0; |
| | |
| | | total += res.data.data.zx; |
| | | total += res.data.data.dx; |
| | | total += res.data.data.gz; |
| | | total += res.data.data.yj; |
| | | |
| | | console.log(total, 45); |
| | | |
| | |
| | | sum += item.value; |
| | | }); |
| | | |
| | | sum +=that.yj; |
| | | |
| | | var option = { |
| | | title: [ |
| | | { |