监测数据改造导出及查询方案

This commit is contained in:
wgx 2026-05-23 10:26:13 +08:00
parent a2274a0c00
commit 685ee8b281
3 changed files with 20 additions and 7 deletions

View File

@ -6,7 +6,7 @@ VITE_PUBLIC_PATH = /
# 跨域代理,您可以配置多个 ,请注意,没有换行符 # 跨域代理,您可以配置多个 ,请注意,没有换行符
VITE_PROXY = [["/jeecgboot","http://192.168.2.110:9999"],["/upload","http://192.168.2.110:3300/upload"]] VITE_PROXY = [["/jeecgboot","http://192.168.2.110:9999"],["/upload","http://192.168.2.110:3300/upload"]]
#VITE_PROXY = [["/jeecgboot","https://fxnsp.sxcooh.com/lh-api/"],["/upload","http://192.168.2.111:3300/upload"]] VITE_PROXY = [["/jeecgboot","https://fxnsp.sxcooh.com/lh-api/"],["/upload","http://192.168.2.111:3300/upload"]]
# 控制台不输出 # 控制台不输出
VITE_DROP_CONSOLE = false VITE_DROP_CONSOLE = false
@ -16,7 +16,7 @@ VITE_GLOB_API_URL=/jeecgboot
#后台接口全路径地址(必填) #后台接口全路径地址(必填)
VITE_GLOB_DOMAIN_URL=http://192.168.2.110:9999 VITE_GLOB_DOMAIN_URL=http://192.168.2.110:9999
#VITE_GLOB_DOMAIN_URL=https://fxnsp.sxcooh.com VITE_GLOB_DOMAIN_URL=https://fxnsp.sxcooh.com
# 接口前缀 # 接口前缀
VITE_GLOB_API_URL_PREFIX= VITE_GLOB_API_URL_PREFIX=

View File

@ -50,11 +50,13 @@
<el-amap-marker v-for="(marker, index) in markers" :position="marker" <el-amap-marker v-for="(marker, index) in markers" :position="marker"
:key="index"></el-amap-marker> :key="index"></el-amap-marker>
</el-amap> </el-amap>
<div class="hiddenGaode"></div> <!-- <div class="hiddenGaode"></div>-->
</div> </div>
<div class="footer"> <div class="footer">
<p>当前地址为{{ address }}</p> <p>当前地址为{{ address }}</p>
<p>经纬度({{ lng }},{{ lat }})</p> <!-- <p>经纬度({{ lng }},{{ lat }})</p>-->
<p>经纬度<a-input v-model:value="lng" @blur="lngInputBlur" style="text-align: center; width: 100px"></a-input>,
<a-input v-model:value="lat" @blur="lngInputBlur" style="text-align: center; width: 100px"></a-input></p>
</div> </div>
<!-- </a-modal>--> <!-- </a-modal>-->
</BasicModal> </BasicModal>
@ -286,6 +288,16 @@ export default defineComponent( {
markers.value.push([lng2, lat2]); markers.value.push([lng2, lat2]);
getAddress(lng2, lat2).then(res => {address.value = res.formattedAddress;}); getAddress(lng2, lat2).then(res => {address.value = res.formattedAddress;});
} }
//
function lngInputBlur() {
if(lng.value && lat.value && lng.value != 0 && lat.value != 0){
resultShow.value = false;
markers.value = [];
center.value = [lng.value, lat.value];
markers.value.push([lng.value, lat.value]);
getAddress(lng.value, lat.value).then(res => {address.value = res.formattedAddress;});
}
}
// //
function save() { function save() {
change({ change({
@ -345,7 +357,8 @@ export default defineComponent( {
doSearch, doSearch,
inputBlur, inputBlur,
inputFocus, inputFocus,
registerModal registerModal,
lngInputBlur
} }
} }
}); });
@ -366,7 +379,7 @@ export default defineComponent( {
} }
.footer { .footer {
position: absolute; position: absolute;
bottom: 5px; bottom: -8px;
width: 100%; width: 100%;
>p{ >p{
width: 70%; width: 70%;

View File

@ -71,7 +71,7 @@
}); });
let loginInfo = getAuthCache(LOGIN_INFO_KEY); let loginInfo = getAuthCache(LOGIN_INFO_KEY);
if (loginInfo) { if (loginInfo) {
text = loginInfo.systemName; text.value = loginInfo.systemName;
} }
} else { } else {
notification.error({ notification.error({