请求地址 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) {
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,
})

View File

@ -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) {

View File

@ -74,7 +74,7 @@ const initialOption = {
return `
<div>${params.marker}${params.name}</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() {
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)