修改
This commit is contained in:
@@ -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, {})
|
||||
|
||||
@@ -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'
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user