请求地址 url 调整

Data Receive status Monitoring 中图表提示框调整
定时任务调整
This commit is contained in:
任珮宇 2024-01-31 11:07:00 +08:00
parent 4c0e48dd43
commit 76e6916d33
4 changed files with 17 additions and 26 deletions

View File

@ -217,7 +217,7 @@ export default {
// //
async _getStationInfo(stationInfo) { async _getStationInfo(stationInfo) {
try { try {
const { success, result, message } = await getAction('/armd-station-operation/stationOperation/findInfo', { const { success, result, message } = await getAction('/stationOperation/findInfo', {
stationId: stationInfo.stationId, stationId: stationInfo.stationId,
type: stationInfo.stationType, type: stationInfo.stationType,
}) })

View File

@ -579,7 +579,7 @@ export default {
success, success,
result: { GIS: markerList, table }, result: { GIS: markerList, table },
message, message,
} = await postAction('/armd-station-operation/stationOperation/getHitEquList', { } = await postAction('/stationOperation/getHitEquList', {
radius: this.radius, radius: this.radius,
stationIds, stationIds,
}) })
@ -695,13 +695,10 @@ export default {
try { try {
const stationIds = this.dataStatusCheckedKeys.filter((key) => -1 == key.toString().indexOf('root_')) const stationIds = this.dataStatusCheckedKeys.filter((key) => -1 == key.toString().indexOf('root_'))
this.isSavingDataRecieveSettings = true this.isSavingDataRecieveSettings = true
const { success, message } = await postAction( const { success, message } = await postAction('/sysUserFocusStation/saveUserFocusByUserId', {
'/armd-station-operation/sysUserFocusStation/saveUserFocusByUserId', stationIds,
{ ...this.dataRecieveStatusModel,
stationIds, })
...this.dataRecieveStatusModel,
}
)
if (success) { if (success) {
this.$message.success('Save Success') this.$message.success('Save Success')
await this.getDataRecieveSettings() await this.getDataRecieveSettings()
@ -738,12 +735,9 @@ export default {
// //
async getDataRecieveSettings() { async getDataRecieveSettings() {
try { try {
const { success, result, message } = await getAction( const { success, result, message } = await getAction('/sysUserFocusStation/findUserFocusByUserId', {
'/armd-station-operation/sysUserFocusStation/findUserFocusByUserId', userId: this.$store.getters.userInfo.id,
{ })
userId: this.$store.getters.userInfo.id,
}
)
if (success) { if (success) {
this.initialDataRecieveSettings = result this.initialDataRecieveSettings = result
} else { } else {
@ -774,13 +768,10 @@ export default {
this.spinLoading = true this.spinLoading = true
try { try {
this.isGettingStatusList = true this.isGettingStatusList = true
const { success, result, message } = await getAction( const { success, result, message } = await getAction('/stationOperation/getDataReceivingStatus', {
'/armd-station-operation/stationOperation/getDataReceivingStatus', userId: this.$store.getters.userInfo.id,
{ oneStationId: (this.stationInfo && this.stationInfo.stationId) || '',
userId: this.$store.getters.userInfo.id, })
oneStationId: (this.stationInfo && this.stationInfo.stationId) || '',
}
)
this.maskVisi = false this.maskVisi = false
this.spinLoading = false this.spinLoading = false
if (success) { if (success) {

View File

@ -74,7 +74,7 @@ const initialOption = {
return ` return `
<div>${params.marker}${params.name}</div> <div>${params.marker}${params.name}</div>
<div>START${dayjs(new Date(params.value[1])).format('YYYY-MM-DD HH:mm:ss')}</div> <div>START${dayjs(new Date(params.value[1])).format('YYYY-MM-DD HH:mm:ss')}</div>
<div>END${dayjs(new Date(params.value[2])).format('YYYY-MM-DD HH:mm:ss')}</div> <div style="white-space: pre"> END${dayjs(new Date(params.value[2])).format('YYYY-MM-DD HH:mm:ss')}</div>
` `
}, },
}, },

View File

@ -253,7 +253,7 @@ export default {
async getStationList() { async getStationList() {
try { try {
this.isGettingDataList = true this.isGettingDataList = true
const res = await getAction('/armd-station-operation/stationOperation/findList') const res = await getAction('/stationOperation/findList')
res.forEach((item) => { res.forEach((item) => {
const { stationId, stationName, stationType } = item const { stationId, stationName, stationType } = item
item._stationId = `${stationId}${stationName}${stationType}` item._stationId = `${stationId}${stationName}${stationType}`
@ -364,7 +364,7 @@ export default {
async getFollowedStationList() { async getFollowedStationList() {
try { try {
this.isGettingFollowedDataList = true this.isGettingFollowedDataList = true
const res = await getAction('/armd-station-operation/sysUserFocusStation/findList') const res = await getAction('/sysUserFocusStation/findList')
this.followedDataList = res this.followedDataList = res
const scrollContainer2Ref = this.$refs.scrollContainer2Ref const scrollContainer2Ref = this.$refs.scrollContainer2Ref
@ -383,7 +383,7 @@ export default {
// //
async getStationTypeList() { async getStationTypeList() {
try { 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 })) this.stationTypeList = res.filter((item) => item).map((item) => ({ label: item, value: item }))
} catch (error) { } catch (error) {
console.error(error) console.error(error)