This commit is contained in:
2025-08-08 17:44:36 +08:00
parent 7367906a45
commit af93101ff2
23 changed files with 926 additions and 1650 deletions

View File

@@ -7,7 +7,8 @@ export const authlogin = (username, password) => post('auth/login', {
})
// 建图
export const startMapping = (na) => post('teaching/startMapping?mapName=' + na, {})
export const setStation = (sn) => post('teaching/setStation?stationName=' + sn, {})
export const getMappingStatus = () => post('teaching/getMappingStatus', {})
export const setStation = (sn, code) => post('teaching/setStation?stationName=' + sn + '&stationCode=' + code, {})
export const stopMapping = () => post('teaching/stopMapping', {})
export const getLocalMaps = () => post('teaching/getLocalMaps', {})
export const oneClickDeployment = (map) => post('teaching/oneClickDeployment?mapName=' + map, {})

View File

@@ -1,7 +1,8 @@
import axios from 'axios'
import i18n from '../i18n/i18n'
import store from '../vuex/store'
const urlHost = process.env.VUE_APP_API_BASE_URL
const urlHost = store.getters.serverUrl
axios.defaults.timeout = 50000
axios.defaults.headers.post['Content-Type'] = 'application/json;charset=UTF-8'

View File

@@ -103,3 +103,19 @@ export const startMapping = () => {
}
return res
}
export const stopMapping = () => {
let res = {
code: 200,
message: 'ok'
}
return res
}
export const getMappingStatus = () => {
let res = {
code: 200,
message: 'ok',
mapping_return: '2',
mapping_percent: '100'
}
return res
}