From f23b3de8744d37e5c26728b43fb66f1a2d1ed926 Mon Sep 17 00:00:00 2001 From: Joe <1712833832@qq.com> Date: Thu, 18 Jan 2024 19:17:41 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AD=97=E6=AE=B5=E4=BF=AE=E6=94=B9=E6=8F=90?= =?UTF-8?q?=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ruoyi-ui/build/build.sh | 13 +++++++++++++ .../Home/components/Dialogs/Camera/Descriptions.vue | 2 +- .../Home/components/Dialogs/ControlCamera/index.vue | 6 +++--- .../components/Dialogs/DrivingGuidance/index.vue | 8 ++++---- .../Home/components/RoadAndEvents/utils/httpList.js | 10 +++++----- .../Home/components/RoadAndEvents/utils/map.js | 4 ++-- .../Cards/AuditLists/index.vue | 1 - 7 files changed, 28 insertions(+), 16 deletions(-) create mode 100755 ruoyi-ui/build/build.sh diff --git a/ruoyi-ui/build/build.sh b/ruoyi-ui/build/build.sh new file mode 100755 index 00000000..02d70467 --- /dev/null +++ b/ruoyi-ui/build/build.sh @@ -0,0 +1,13 @@ +#!/bin/bash + +branchVersion=`cat package.json | sed 's/,/\n/g' | grep \"version\" | sed 's/:/\n/g' | sed '1d' | sed 's/}//g' | grep -Eo '[0-9]*'`; + +git checkout -b v$branchVersion && + +npm run build && + +git push -u origin $branchVersion && + +git checkout develop && + +npm version patch diff --git a/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/Camera/Descriptions.vue b/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/Camera/Descriptions.vue index df572c87..50f7b74d 100644 --- a/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/Camera/Descriptions.vue +++ b/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/Camera/Descriptions.vue @@ -81,7 +81,7 @@ export default { const roadInfo = await getRoadInfoByStakeMark(this.dialogData.stakeMarkId); - if (roadInfo) this.data.roadName = roadInfo.dc_road; + if (roadInfo) this.data.roadName = roadInfo.dcRoad; }, } 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',