From 76e6916d33a851cb755ddbd4799c773edf981523 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BB=BB=E7=8F=AE=E5=AE=87?= Date: Wed, 31 Jan 2024 11:07:00 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AF=B7=E6=B1=82=E5=9C=B0=E5=9D=80=20url=20?= =?UTF-8?q?=E8=B0=83=E6=95=B4=20Data=20Receive=20status=20Monitoring=20?= =?UTF-8?q?=E4=B8=AD=E5=9B=BE=E8=A1=A8=E6=8F=90=E7=A4=BA=E6=A1=86=E8=B0=83?= =?UTF-8?q?=E6=95=B4=20=E5=AE=9A=E6=97=B6=E4=BB=BB=E5=8A=A1=E8=B0=83?= =?UTF-8?q?=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../stationOperation/components/MapMarker.vue | 2 +- .../stationOperation/components/MapPane.vue | 33 +++++++------------ .../components/RealTimeDataChart.vue | 2 +- src/views/stationOperation/index.vue | 6 ++-- 4 files changed, 17 insertions(+), 26 deletions(-) diff --git a/src/views/stationOperation/components/MapMarker.vue b/src/views/stationOperation/components/MapMarker.vue index 7e6b4b3..609d52b 100644 --- a/src/views/stationOperation/components/MapMarker.vue +++ b/src/views/stationOperation/components/MapMarker.vue @@ -217,7 +217,7 @@ export default { // 获取站点详情 async _getStationInfo(stationInfo) { try { - const { success, result, message } = await getAction('/armd-station-operation/stationOperation/findInfo', { + const { success, result, message } = await getAction('/stationOperation/findInfo', { stationId: stationInfo.stationId, type: stationInfo.stationType, }) diff --git a/src/views/stationOperation/components/MapPane.vue b/src/views/stationOperation/components/MapPane.vue index 0ba6525..584b094 100644 --- a/src/views/stationOperation/components/MapPane.vue +++ b/src/views/stationOperation/components/MapPane.vue @@ -579,7 +579,7 @@ export default { success, result: { GIS: markerList, table }, message, - } = await postAction('/armd-station-operation/stationOperation/getHitEquList', { + } = await postAction('/stationOperation/getHitEquList', { radius: this.radius, stationIds, }) @@ -695,13 +695,10 @@ export default { try { const stationIds = this.dataStatusCheckedKeys.filter((key) => -1 == key.toString().indexOf('root_')) this.isSavingDataRecieveSettings = true - const { success, message } = await postAction( - '/armd-station-operation/sysUserFocusStation/saveUserFocusByUserId', - { - stationIds, - ...this.dataRecieveStatusModel, - } - ) + const { success, message } = await postAction('/sysUserFocusStation/saveUserFocusByUserId', { + stationIds, + ...this.dataRecieveStatusModel, + }) if (success) { this.$message.success('Save Success') await this.getDataRecieveSettings() @@ -738,12 +735,9 @@ export default { // 获取数据接收状态配置 async getDataRecieveSettings() { try { - const { success, result, message } = await getAction( - '/armd-station-operation/sysUserFocusStation/findUserFocusByUserId', - { - userId: this.$store.getters.userInfo.id, - } - ) + const { success, result, message } = await getAction('/sysUserFocusStation/findUserFocusByUserId', { + userId: this.$store.getters.userInfo.id, + }) if (success) { this.initialDataRecieveSettings = result } else { @@ -774,13 +768,10 @@ export default { this.spinLoading = true try { this.isGettingStatusList = true - const { success, result, message } = await getAction( - '/armd-station-operation/stationOperation/getDataReceivingStatus', - { - userId: this.$store.getters.userInfo.id, - oneStationId: (this.stationInfo && this.stationInfo.stationId) || '', - } - ) + const { success, result, message } = await getAction('/stationOperation/getDataReceivingStatus', { + userId: this.$store.getters.userInfo.id, + oneStationId: (this.stationInfo && this.stationInfo.stationId) || '', + }) this.maskVisi = false this.spinLoading = false if (success) { diff --git a/src/views/stationOperation/components/RealTimeDataChart.vue b/src/views/stationOperation/components/RealTimeDataChart.vue index aa3730e..075af92 100644 --- a/src/views/stationOperation/components/RealTimeDataChart.vue +++ b/src/views/stationOperation/components/RealTimeDataChart.vue @@ -74,7 +74,7 @@ const initialOption = { return `
${params.marker}${params.name}
START:${dayjs(new Date(params.value[1])).format('YYYY-MM-DD HH:mm:ss')}
-
END:${dayjs(new Date(params.value[2])).format('YYYY-MM-DD HH:mm:ss')}
+
END:${dayjs(new Date(params.value[2])).format('YYYY-MM-DD HH:mm:ss')}
` }, }, diff --git a/src/views/stationOperation/index.vue b/src/views/stationOperation/index.vue index 350b90c..1767edb 100644 --- a/src/views/stationOperation/index.vue +++ b/src/views/stationOperation/index.vue @@ -253,7 +253,7 @@ export default { async getStationList() { try { this.isGettingDataList = true - const res = await getAction('/armd-station-operation/stationOperation/findList') + const res = await getAction('/stationOperation/findList') res.forEach((item) => { const { stationId, stationName, stationType } = item item._stationId = `${stationId}${stationName}${stationType}` @@ -364,7 +364,7 @@ export default { async getFollowedStationList() { try { this.isGettingFollowedDataList = true - const res = await getAction('/armd-station-operation/sysUserFocusStation/findList') + const res = await getAction('/sysUserFocusStation/findList') this.followedDataList = res const scrollContainer2Ref = this.$refs.scrollContainer2Ref @@ -383,7 +383,7 @@ export default { // 获取站点类型 async getStationTypeList() { try { - const res = await getAction('/armd-station-operation/stationOperation/findStationType') + const res = await getAction('/stationOperation/findStationType') this.stationTypeList = res.filter((item) => item).map((item) => ({ label: item, value: item })) } catch (error) { console.error(error)