From b3015b5553b9c83fe78f6f04a6d1b618ebbcafeb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E6=9C=8B?= Date: Thu, 18 Jan 2024 10:03:42 +0800 Subject: [PATCH 01/18] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=8E=A5=E5=8F=A3?= =?UTF-8?q?=E5=9C=B0=E5=9D=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ruoyi-ui/src/views/JiHeExpressway/utils/axios/auth.js | 3 ++- ruoyi-ui/vue.config.js | 4 +++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/ruoyi-ui/src/views/JiHeExpressway/utils/axios/auth.js b/ruoyi-ui/src/views/JiHeExpressway/utils/axios/auth.js index 556205fe..214d0baa 100644 --- a/ruoyi-ui/src/views/JiHeExpressway/utils/axios/auth.js +++ b/ruoyi-ui/src/views/JiHeExpressway/utils/axios/auth.js @@ -4,7 +4,8 @@ import axios from "axios"; // const RequestURL = `http://10.168.65.211:3000`; // 后台 -const RequestURL = `http://10.168.77.209:1024/dev-api`; +// const RequestURL = `http://10.168.77.209:1024/dev-api`; +const RequestURL = `http://10.166.147.60:9021` const UN = "jhgskj", PD = "jhgskj@2023", diff --git a/ruoyi-ui/vue.config.js b/ruoyi-ui/vue.config.js index 5d25731f..fbbd0861 100644 --- a/ruoyi-ui/vue.config.js +++ b/ruoyi-ui/vue.config.js @@ -42,9 +42,11 @@ module.exports = { // target: `http://10.0.81.201:8080`, // target: `http://10.168.73.36:8080`, // 周乐 //target: `http://10.168.77.209:8080`, // 刘朋 - target:'http://10.168.66.196:8080', + // target:'http://10.168.66.196:8080', // target: `http://10.168.66.196:8080`, //刘文阁 // target: `http://10.168.56.206:8087`, //孟 + // target: `http://10.0.81.209:8087`, + target: `http://10.0.81.202:8087`, changeOrigin: true, pathRewrite: { ["^" + process.env.VUE_APP_BASE_API]: "", From 20bc05b393672f6b681aeee32dd789b134ca743e Mon Sep 17 00:00:00 2001 From: yyl <279235553@qq.com> Date: Thu, 18 Jan 2024 16:31:13 +0800 Subject: [PATCH 02/18] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E8=AE=BE=E5=A4=87?= =?UTF-8?q?=E7=BB=9F=E8=AE=A1=E7=9A=84=E5=AF=BC=E5=87=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ruoyi-ui/src/api/MonthlyEquipment/index.js | 8 ++-- .../statisticalAnalysis/index.vue | 41 +++++++++---------- 2 files changed, 22 insertions(+), 27 deletions(-) diff --git a/ruoyi-ui/src/api/MonthlyEquipment/index.js b/ruoyi-ui/src/api/MonthlyEquipment/index.js index 1286246f..bb6cc820 100644 --- a/ruoyi-ui/src/api/MonthlyEquipment/index.js +++ b/ruoyi-ui/src/api/MonthlyEquipment/index.js @@ -43,9 +43,7 @@ export function getSystemStatusList(query) { //设备状态列表按类型 export function getSystemStatusExport(query) { //system/status/export - return download('/system/status/export',query,"file.xlsx"); - // return request.post('/system/status/export',{ - // ...query - // },{ headers: { 'Content-Type': 'application/x-www-form-urlencoded' }, - // responseType: 'blob'}) + //return download('/system/status/export',query,"file.xlsx"); + return request.post('/system/status/export?startTime='+query.startTime+"&time="+ query.time +"&type="+query.type,{},{ headers: { 'Content-Type': 'application/x-www-form-urlencoded' }, + responseType: 'blob'}) } \ No newline at end of file diff --git a/ruoyi-ui/src/views/JiHeExpressway/pages/maintenanceOperations/statisticalAnalysis/index.vue b/ruoyi-ui/src/views/JiHeExpressway/pages/maintenanceOperations/statisticalAnalysis/index.vue index 9eb67db3..aeae40f4 100644 --- a/ruoyi-ui/src/views/JiHeExpressway/pages/maintenanceOperations/statisticalAnalysis/index.vue +++ b/ruoyi-ui/src/views/JiHeExpressway/pages/maintenanceOperations/statisticalAnalysis/index.vue @@ -455,28 +455,25 @@ import * as echarts from "echarts"; }, //导出 SystemStatusExport(){ - download( - "/fault/list/exportFaultReport", - { faultId: row.id }, - "file.xlsx"); - // getSystemStatusExport({ - // startTime:this.startTime, - // time:this.time, - // type:this.typeQuery, - // }).then((res)=>{ - // console.log(res); - // const url = window.URL.createObjectURL(new Blob([res])) - // let link = document.createElement('a') - // link.style.display = 'none' - // link.href = url - // link.setAttribute('download', '学生信息列表.xlsx') - // document.body.appendChild(link) - // link.click() - // URL.revokeObjectURL(link.href) // 释放URL 对象 - // document.body.removeChild(link) - // link = null - - // }) + + getSystemStatusExport({ + startTime:this.startTime, + time:this.time, + type:this.typeQuery, + }).then((res)=>{ + console.log(res); + const url = window.URL.createObjectURL(new Blob([res])) + let link = document.createElement('a') + link.style.display = 'none' + link.href = url + link.setAttribute('download', '设备统计信息.xlsx') + document.body.appendChild(link) + link.click() + URL.revokeObjectURL(link.href) // 释放URL 对象 + document.body.removeChild(link) + link = null + + }) }, queryChartList(){ From 8a2c69a83ae1c7b7c84a67929636221955d52473 Mon Sep 17 00:00:00 2001 From: Joe <1712833832@qq.com> Date: Thu, 18 Jan 2024 16:41:13 +0800 Subject: [PATCH 03/18] =?UTF-8?q?=E4=BF=AE=E6=94=B9=20=E7=BC=A9=E7=95=A5?= =?UTF-8?q?=E5=9B=BE=E8=B7=9F=20=E5=9C=B0=E5=9B=BE=E7=9B=B8=E6=9C=BA?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../RoadAndEvents/utils/buttonEvent.js | 23 +++++++++++++++++++ .../components/RoadAndEvents/utils/map.js | 2 +- .../pages/Home/components/Thumbnail/index.vue | 2 +- 3 files changed, 25 insertions(+), 2 deletions(-) diff --git a/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/RoadAndEvents/utils/buttonEvent.js b/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/RoadAndEvents/utils/buttonEvent.js index bdc236ca..30bd10fd 100644 --- a/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/RoadAndEvents/utils/buttonEvent.js +++ b/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/RoadAndEvents/utils/buttonEvent.js @@ -34,6 +34,29 @@ export const eventMap = { // }; const data = await getDeviceList(1); + // const data = [ + // { + // longitude: 116.268564, + // latitude: 35.73115, + // }, + // { + // longitude: 116.258178, + // latitude: 35.720996, + // }, + // { + // longitude: 116.255542, + // latitude: 35.717335, + // }, + // { + // longitude: 116.252883, + // latitude: 35.713114, + // }, + // { + // longitude: 116.249416, + // latitude: 35.707627, + // ptzCtrl: 0, + // }, + // ]; if (!data) return; diff --git a/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/RoadAndEvents/utils/map.js b/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/RoadAndEvents/utils/map.js index 4dab5b53..a9f8ef5f 100644 --- a/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/RoadAndEvents/utils/map.js +++ b/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/RoadAndEvents/utils/map.js @@ -97,7 +97,7 @@ export async function setMarkerCluster(map, points, markerFun) { * @param {*} _markerClick marker 点击 * @returns */ -export async function setMarkToMap(item, data, _markerClick) { +export async function setMarkToMap(item, data, _markerClick, content) { const { mapIns } = this.getMap(); if (!mapIns) return Message.error("地图加载失败!"); diff --git a/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Thumbnail/index.vue b/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Thumbnail/index.vue index 00cc794c..e14b42cb 100644 --- a/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Thumbnail/index.vue +++ b/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Thumbnail/index.vue @@ -1,5 +1,5 @@ diff --git a/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/ControlCamera/index.vue b/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/ControlCamera/index.vue index 81f765c2..28739d2c 100644 --- a/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/ControlCamera/index.vue +++ b/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/ControlCamera/index.vue @@ -104,7 +104,7 @@ export default { }, { label: '设备状态', - key: "device_state", + key: "deviceState", enum: "DeviceTypeEnum" }, ], @@ -133,11 +133,11 @@ export default { async created() { const roadInfo = await getRoadInfoByStakeMark(this.dialogData.stakeMarkId); - if (roadInfo) this.dialogData.roadName = roadInfo.dc_road; + if (roadInfo) this.dialogData.roadName = roadInfo.dcRoad; }, methods: { controlClick: throttle(function (type) { - controlCamera(this.dialogData.camId, type) + controlCamera(this.dialogData.iotDeviceId, type) }, 360) } } diff --git a/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/DrivingGuidance/index.vue b/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/DrivingGuidance/index.vue index 77da3e59..86c12236 100644 --- a/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/DrivingGuidance/index.vue +++ b/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/DrivingGuidance/index.vue @@ -50,7 +50,7 @@ export default { deviceStation: "k094+079", roadName: "G35济泽高速", direction: "1", - device_state: "0", + deviceState: "0", deviceVendors: "XXX厂家", }, list: [ @@ -73,7 +73,7 @@ export default { }, { label: '设备状态', - key: "device_state", + key: "deviceState", enum: "DeviceTypeEnum" }, { @@ -87,7 +87,7 @@ export default { this.dialogData.roadName = "G35济泽高速"; request({ - url: `/business/product/${this.dialogData.product_id}`, + url: `/business/product/${this.dialogData.productId}`, method: "get", }) .then(({ code, data }) => { @@ -101,7 +101,7 @@ export default { const roadInfo = await getRoadInfoByStakeMark(this.dialogData.stakeMarkId); - if (roadInfo) this.dialogData.roadName = roadInfo.dc_road; + if (roadInfo) this.dialogData.roadName = roadInfo.dcRoad; }, methods: { handleClickTabs() { } diff --git a/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/RoadAndEvents/utils/httpList.js b/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/RoadAndEvents/utils/httpList.js index f12b7095..add69164 100644 --- a/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/RoadAndEvents/utils/httpList.js +++ b/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/RoadAndEvents/utils/httpList.js @@ -1,5 +1,5 @@ import { Message } from "element-ui"; -import { axiosIns } from "@screen/utils/axios/auth.js"; +// import { axiosIns } from "@screen/utils/axios/auth.js"; import request from "@/utils/request"; @@ -77,19 +77,19 @@ export async function getRoadInfoByStakeMark(stakeMarkId) { // params }); - if (!stakeMarkInfo.data?.section_id) return {}; + if (!stakeMarkInfo.data?.sectionId) return {}; const roadSectionInfo = await request({ - url: `/business/roadSection/${stakeMarkInfo.data.section_id}`, + url: `/business/roadSection/${stakeMarkInfo.data.sectionId}`, method: "get", }); - if (!roadSectionInfo.data?.road_id) return {}; + if (!roadSectionInfo.data?.roadId) return {}; return ( ( await request({ - url: `/business/road/${roadSectionInfo.road_id}`, + url: `/business/road/${roadSectionInfo.roadId}`, method: "get", }) ).data || {} diff --git a/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/RoadAndEvents/utils/map.js b/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/RoadAndEvents/utils/map.js index 59b7a53a..c0bb0a45 100644 --- a/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/RoadAndEvents/utils/map.js +++ b/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/RoadAndEvents/utils/map.js @@ -133,7 +133,7 @@ export async function setMarkToMap(item, data, _markerClick, content) { content || `
+ " src='${item.deviceState !== "0" ? fault : normal}'>
`, }; }), diff --git a/ruoyi-ui/src/views/JiHeExpressway/pages/service/InformationReleaseManagement/Cards/AuditLists/index.vue b/ruoyi-ui/src/views/JiHeExpressway/pages/service/InformationReleaseManagement/Cards/AuditLists/index.vue index d1c2bb9f..ccf1ba2b 100644 --- a/ruoyi-ui/src/views/JiHeExpressway/pages/service/InformationReleaseManagement/Cards/AuditLists/index.vue +++ b/ruoyi-ui/src/views/JiHeExpressway/pages/service/InformationReleaseManagement/Cards/AuditLists/index.vue @@ -15,7 +15,6 @@ import Card2 from "@screen/components/Card2/Card.vue"; import Pagination from '@screen/components/Pagination.vue'; import InputSearch from '@screen/components/InputSearch/index.vue'; import ListItem from "./ListItem.vue"; -import { axiosIns } from "@screen/utils/axios/auth.js"; export default { name: 'Auditlists', From 4868c9b61d6556a3235f72f628fff1ce4043c4de Mon Sep 17 00:00:00 2001 From: Joe <1712833832@qq.com> Date: Thu, 18 Jan 2024 19:29:21 +0800 Subject: [PATCH 17/18] =?UTF-8?q?=E4=BF=AE=E6=94=B9=20=E8=8E=B7=E5=8F=96?= =?UTF-8?q?=E9=81=93=E8=B7=AF=E7=9A=84=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../pages/Home/components/RoadAndEvents/utils/httpList.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/RoadAndEvents/utils/httpList.js b/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/RoadAndEvents/utils/httpList.js index add69164..60c6ea9c 100644 --- a/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/RoadAndEvents/utils/httpList.js +++ b/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/RoadAndEvents/utils/httpList.js @@ -72,9 +72,13 @@ export function controlCamera(camId, cmdType) { */ export async function getRoadInfoByStakeMark(stakeMarkId) { const stakeMarkInfo = await request({ - url: `/business/stakeMark/${stakeMarkId}`, + // url: `/business/stakeMark/${stakeMarkId}`, + url: `/business/stakeMark`, method: "get", - // params + params: { + id: stakeMarkId, + direction: 1, + }, }); if (!stakeMarkInfo.data?.sectionId) return {}; From 43ffca7b7e83b393a329b4e118cbbe7c080a9a48 Mon Sep 17 00:00:00 2001 From: Joe <1712833832@qq.com> Date: Thu, 18 Jan 2024 19:42:06 +0800 Subject: [PATCH 18/18] =?UTF-8?q?=E5=8F=82=E6=95=B0=20=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../pages/Home/components/RoadAndEvents/utils/httpList.js | 1 + 1 file changed, 1 insertion(+) diff --git a/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/RoadAndEvents/utils/httpList.js b/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/RoadAndEvents/utils/httpList.js index 60c6ea9c..47cb9d6a 100644 --- a/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/RoadAndEvents/utils/httpList.js +++ b/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/RoadAndEvents/utils/httpList.js @@ -56,6 +56,7 @@ export function controlCamera(camId, cmdType) { msgType: 3, camId, cmdType, + speed: 1, }, }) .then((result) => {