fix: BUG修改
This commit is contained in:
parent
2edd5bea33
commit
be7087a42f
@ -6,7 +6,8 @@ NODE_ENV = 'development'
|
||||
# VITE_API_URL = 'http://183.63.230.59:6090'
|
||||
# VITE_API_URL = 'http://2xliv7gs.shenzhuo.vip:55296'
|
||||
VITE_WPAPI_URL = "http://jxjzw.zhgdyun.com:8081"
|
||||
VITE_API_URL = "http://jxjzw.zhgdyun.com:9013"
|
||||
# VITE_API_URL = "http://jxjzw.zhgdyun.com:9013"
|
||||
VITE_API_URL = 'https://xmglcs.hyjgxt.cn:6090'
|
||||
|
||||
# 上传
|
||||
# VITE_ULD_API_URL = 'http://192.168.34.155:8012/onlinePreview?url='
|
||||
|
||||
@ -65,9 +65,11 @@ export const initDynamicRouter = async (params?: any, defaultUrl?: any) => {
|
||||
router.push(item.path);
|
||||
++toNum;
|
||||
}
|
||||
if (item.path != "/" && toNum < 1 && defaultUrl && item.path == defaultUrl) {
|
||||
router.push(defaultUrl);
|
||||
++toNum;
|
||||
if (toNum < 1 && defaultUrl && defaultUrl.indexOf(item.path) != -1) {
|
||||
setTimeout(function () {
|
||||
router.push(defaultUrl);
|
||||
++toNum;
|
||||
}, 500);
|
||||
}
|
||||
}
|
||||
// globalStore.setPath(null);
|
||||
|
||||
@ -1,5 +1,6 @@
|
||||
<template>
|
||||
<div class="mapBox" id="mapBox" ref="AMapRef"></div>
|
||||
<!-- @click="toEngineeringScreen" -->
|
||||
<div class="infowindows" ref="infoWindowPage" v-show="infoShow">
|
||||
<div class="title flx-justify-between">
|
||||
<span :title="infoName">{{ infoName }}</span>
|
||||
@ -18,6 +19,9 @@ import initAMap from "@/components/AMap/AMap";
|
||||
import zhongkai from "../point.js";
|
||||
import { mapstyle } from "../mapStyle.js";
|
||||
import { BAR_MAP } from "element-plus";
|
||||
import { useRoute, useRouter } from "vue-router";
|
||||
const route = useRoute();
|
||||
const router = useRouter();
|
||||
const infoWindowPage = ref();
|
||||
// 点击弹窗的时候将项目名字存下来
|
||||
const infoName = ref("");
|
||||
@ -40,7 +44,10 @@ const setProjectData = async () => {
|
||||
}
|
||||
};
|
||||
watch(() => props.projectData, setProjectData, { deep: true });
|
||||
|
||||
// 去项目看板大屏
|
||||
const toEngineeringScreen = () => {
|
||||
router.push("/goverment/huizhou/projectList/index?engineeringSn=" + infoWindowData.value.engineeringSn);
|
||||
};
|
||||
//关闭信息窗体
|
||||
const onClose = () => {
|
||||
// BDMaps.value?.clearInfoWindow();
|
||||
|
||||
@ -1,5 +1,6 @@
|
||||
<template>
|
||||
<div class="mapBox" id="mapBox" ref="AMapRef"></div>
|
||||
<!-- @click="toEngineeringScreen" -->
|
||||
<div class="infowindows" ref="infoWindowPage" v-show="infoShow">
|
||||
<div class="title flx-justify-between">
|
||||
<span :title="infoName">{{ infoName }}</span>
|
||||
@ -18,6 +19,9 @@ import initAMap from "@/components/AMap/AMap";
|
||||
import zhongkai from "../point.js";
|
||||
import { BAR_MAP } from "element-plus";
|
||||
import { mapstyle } from "../mapStyle.js";
|
||||
import { useRoute, useRouter } from "vue-router";
|
||||
const route = useRoute();
|
||||
const router = useRouter();
|
||||
const infoWindowPage = ref();
|
||||
// 点击弹窗的时候将项目名字存下来
|
||||
const infoName = ref("");
|
||||
@ -40,6 +44,10 @@ const setProjectData = async () => {
|
||||
}
|
||||
};
|
||||
watch(() => props.projectData, setProjectData, { deep: true });
|
||||
// 去项目看板大屏
|
||||
const toEngineeringScreen = () => {
|
||||
router.push("/goverment/huizhou/projectList/index?engineeringSn=" + infoWindowData.value.engineeringSn);
|
||||
};
|
||||
//关闭信息窗体
|
||||
const onClose = () => {
|
||||
// BDMaps.value?.clearInfoWindow();
|
||||
|
||||
@ -249,6 +249,10 @@ onMounted(async () => {
|
||||
getDicStatusList();
|
||||
getDicNatureList();
|
||||
await sendIframeMessage({ obj: { path: route.path } }, 2, undefined);
|
||||
if (route.query.engineeringSn) {
|
||||
engineeringSn.value = route.query.engineeringSn;
|
||||
showScreen.value = true;
|
||||
}
|
||||
});
|
||||
</script>
|
||||
<style scoped lang="scss">
|
||||
|
||||
@ -54,6 +54,7 @@ const tokenIdentify = async () => {
|
||||
} else if (route.query.routeUrl) {
|
||||
defalutRouteUrl = route.query.routeUrl;
|
||||
}
|
||||
console.log(defalutRouteUrl, 888999);
|
||||
await initDynamicRouter({ moduleId: data["惠州项目"][0].moduleId }, defalutRouteUrl);
|
||||
globalStore.moduleId = data["惠州项目"][0].moduleId;
|
||||
// if (responseData.accountType === 2) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user