diff --git a/src/jmapNew/theme/aus_00/planConvert.js b/src/jmapNew/theme/aus_00/planConvert.js index e77b4e1ad..518365cb6 100644 --- a/src/jmapNew/theme/aus_00/planConvert.js +++ b/src/jmapNew/theme/aus_00/planConvert.js @@ -233,5 +233,28 @@ export default { } } return null; + }, + + /** 检查公里表是否超出范围*/ + limitAreaKmRange(stations, model) { + const closerKmRange = model.closerKmRange||0; + const fartherKmRange = model.fartherKmRange||0; + const length = stations.length; + const last = stations[length-1]||{}; + const minRange = this.EdgeHeight/2; + const maxRange = last.kmRange; + + if (closerKmRange < minRange) { + const offset = closerKmRange - minRange + model.closerKmRange = minRange; + model.fartherKmRange -= offset; + return Math.abs(offset) > 2; + } else if (fartherKmRange > maxRange) { + const offset = fartherKmRange - maxRange; + model.fartherKmRange = maxRange; + model.closerKmRange -= offset; + return Math.abs(offset) > 2; + } + return false; } }; diff --git a/src/utils/baseUrl.js b/src/utils/baseUrl.js index b84a0c2ce..8ba0bf0ce 100644 --- a/src/utils/baseUrl.js +++ b/src/utils/baseUrl.js @@ -2,8 +2,8 @@ export function getBaseUrl() { let BASE_API; if (process.env.NODE_ENV === 'development') { // BASE_API = 'https://joylink.club/jlcloud'; - BASE_API = 'https://test.joylink.club/jlcloud'; - // BASE_API = 'http://192.168.3.5:9000'; // 袁琪 + // BASE_API = 'https://test.joylink.club/jlcloud'; + BASE_API = 'http://192.168.3.5:9000'; // 袁琪 // BASE_API = 'http://192.168.3.169:9000'; // 旭强 // BASE_API = 'http://192.168.3.175:9000'; // 张赛 // BASE_API = 'http://192.168.3.82:9008'; // 杜康 diff --git a/src/views/planMonitor/editToolAUS/index.vue b/src/views/planMonitor/editToolAUS/index.vue index 86ebc2301..dc0a22177 100644 --- a/src/views/planMonitor/editToolAUS/index.vue +++ b/src/views/planMonitor/editToolAUS/index.vue @@ -12,6 +12,7 @@ @clear="onClear" @create="onCreate" @translate="onTranslate" + @refresh="refresh" >