fix: BUG修改
This commit is contained in:
parent
76fca2dd09
commit
6febe6169d
@ -74,7 +74,7 @@ const getProjectList = async () => {
|
||||
};
|
||||
onMounted(async () => {
|
||||
await getProjectList();
|
||||
await sendIframeMessage({ obj: { path: globalStore.path, moduleId: globalStore.moduleId } }, 2, undefined);
|
||||
await sendIframeMessage({ obj: { path: route.path } }, 2, undefined);
|
||||
});
|
||||
</script>
|
||||
|
||||
|
||||
@ -270,7 +270,7 @@ const setjindua = () => {
|
||||
{
|
||||
// 解决叠加明显的问题
|
||||
name: "",
|
||||
value: 0,
|
||||
value: 0.2,
|
||||
itemStyle: {
|
||||
color: "rgba(0,0,0,0)"
|
||||
}
|
||||
|
||||
@ -20,7 +20,7 @@
|
||||
|
||||
<script setup lang="tsx" name="largeScreenTwo">
|
||||
import { onMounted } from "vue";
|
||||
import { useRouter } from "vue-router";
|
||||
import { useRoute, useRouter } from "vue-router";
|
||||
import LeftcentView from "./components/LeftcentView.vue";
|
||||
import RigthTopView from "./components/RigthTopView.vue";
|
||||
import RigthBottLeftView from "./components/RigthBottLeftView.vue";
|
||||
@ -28,13 +28,15 @@ import RigthBottRigthView from "./components/RigthBottRigthView.vue";
|
||||
import { GlobalStore } from "@/stores";
|
||||
import { sendIframeMessage } from "@/utils/util";
|
||||
const globalStore = GlobalStore();
|
||||
const route = useRoute();
|
||||
const router = useRouter();
|
||||
const changeScreen = async () => {
|
||||
router.push("/goverment/huizhou/largeScreen/largeScreenOne/index");
|
||||
// screenValue.value = screenValue.value == 0 ? 1 : 0;
|
||||
};
|
||||
onMounted(async () => {
|
||||
await sendIframeMessage({ obj: { path: globalStore.path, moduleId: globalStore.moduleId } }, 2, undefined);
|
||||
console.log(route.path, "-------------123123123");
|
||||
await sendIframeMessage({ obj: { path: route.path, moduleId: globalStore.moduleId } }, 2, undefined);
|
||||
});
|
||||
</script>
|
||||
<style scoped lang="scss">
|
||||
|
||||
@ -70,6 +70,7 @@
|
||||
|
||||
<script lang="tsx" setup name="engineerInventory">
|
||||
import { ref, reactive, onMounted, watch } from "vue";
|
||||
import { useRoute } from "vue-router";
|
||||
import { ElMessage } from "element-plus";
|
||||
import { GlobalStore } from "@/stores";
|
||||
import LeftMenu from "@/components/LeftMenu/LeftMenu.vue";
|
||||
@ -78,6 +79,7 @@ import DialogForm from "@/components/DialogForm/index.vue";
|
||||
import { ColumnProps } from "@/components/ProTable/interface";
|
||||
import { payGovermentEngList, payGovermentProList, engineerInfoPage } from "@/api/modules/huizhou";
|
||||
import { sendIframeMessage } from "@/utils/util";
|
||||
const route = useRoute();
|
||||
const otherParams = ref({});
|
||||
const detailsDialog = ref(false);
|
||||
const relativeId = ref("");
|
||||
@ -238,7 +240,7 @@ onMounted(async () => {
|
||||
onSearch(records.value[0]);
|
||||
searchSn.value = records.value[0].projectSn;
|
||||
searchName.value = records.value[0].projectName;
|
||||
await sendIframeMessage({ obj: { path: store.path, moduleId: store.moduleId } }, 2, undefined);
|
||||
await sendIframeMessage({ obj: { path: route.path } }, 2, undefined);
|
||||
});
|
||||
</script>
|
||||
|
||||
|
||||
@ -76,6 +76,7 @@
|
||||
|
||||
<script lang="ts" setup>
|
||||
import { ref, reactive, onMounted, watch } from "vue";
|
||||
import { useRoute } from "vue-router";
|
||||
import {
|
||||
getDustprojectPage,
|
||||
getDustengineeringPage,
|
||||
@ -99,6 +100,7 @@ import { ColumnProps } from "@/components/ProTable/interface";
|
||||
import { getRealTimePage } from "@/api/modules/project";
|
||||
import { payGovermentEngList, payGovermentProList, payGovermentList, payGovermentContactAdd } from "@/api/modules/huizhou";
|
||||
import { sendIframeMessage } from "@/utils/util";
|
||||
const route = useRoute();
|
||||
const detailsDialog = ref(false);
|
||||
const relativeId = ref("");
|
||||
|
||||
@ -447,7 +449,7 @@ onMounted(async () => {
|
||||
onSearch(records.value[0]);
|
||||
searchSn.value = records.value[0].projectSn;
|
||||
searchName.value = records.value[0].projectName;
|
||||
await sendIframeMessage({ obj: { path: store.path, moduleId: store.moduleId } }, 2, undefined);
|
||||
await sendIframeMessage({ obj: { path: route.path } }, 2, undefined);
|
||||
});
|
||||
</script>
|
||||
|
||||
|
||||
@ -117,8 +117,9 @@ import DialogForm from "@/components/DialogForm/index.vue";
|
||||
import { ColumnProps } from "@/components/ProTable/interface";
|
||||
import { getRealTimePage } from "@/api/modules/project";
|
||||
import { parentItemGovermentList, payGovermentAdd } from "@/api/modules/huizhou";
|
||||
import { useRouter } from "vue-router";
|
||||
import { useRoute, useRouter } from "vue-router";
|
||||
import { sendIframeMessage } from "@/utils/util";
|
||||
const route = useRoute();
|
||||
const pages = ref({
|
||||
pageNo: 1,
|
||||
pageSize: 7,
|
||||
@ -445,7 +446,8 @@ onMounted(async () => {
|
||||
onSearch(records.value[0]);
|
||||
searchSn.value = (records.value as ResAiProjectPage[])[0].projectSn;
|
||||
searchName.value = (records.value as ResAiProjectPage[])[0].projectName;
|
||||
await sendIframeMessage({ obj: { path: store.path, moduleId: store.moduleId } }, 2, undefined);
|
||||
console.log(store.path);
|
||||
await sendIframeMessage({ obj: { path: route.path } }, 2, undefined);
|
||||
});
|
||||
</script>
|
||||
|
||||
|
||||
@ -84,6 +84,7 @@
|
||||
|
||||
<script setup lang="tsx" name="ProjectSupervisionRecord">
|
||||
import { ref, reactive, nextTick, onMounted, watch } from "vue";
|
||||
import { useRoute } from "vue-router";
|
||||
import { ElMessage, ElMessageBox, ElTree, FormInstance } from "element-plus";
|
||||
import { ColumnProps } from "@/components/ProTable/interface";
|
||||
import ProTable from "@/components/ProTable/index.vue";
|
||||
@ -95,6 +96,7 @@ import type { ResAiProjectPage, ResAiEngineerPage } from "@/api/types/government
|
||||
import { getDustprojectPage, getDustengineeringPage, getAIQuestionPage } from "@/api/modules/goverment";
|
||||
import { sendIframeMessage } from "@/utils/util";
|
||||
import { GlobalStore } from "@/stores";
|
||||
const route = useRoute();
|
||||
const pages = ref({
|
||||
pageNo: 1,
|
||||
pageSize: 7,
|
||||
@ -335,7 +337,7 @@ onMounted(async () => {
|
||||
onSearch(records.value[0]);
|
||||
searchSn.value = (records.value as ResAiProjectPage[])[0].projectSn;
|
||||
searchName.value = (records.value as ResAiProjectPage[])[0].projectName;
|
||||
await sendIframeMessage({ obj: { path: store.path, moduleId: store.moduleId } }, 2, undefined);
|
||||
await sendIframeMessage({ obj: { path: route.path } }, 2, undefined);
|
||||
});
|
||||
</script>
|
||||
<style scoped lang="scss">
|
||||
|
||||
@ -85,6 +85,7 @@
|
||||
|
||||
<script setup lang="tsx" name="ProjectSupervisionRecord">
|
||||
import { ref, reactive, nextTick, onMounted, watch } from "vue";
|
||||
import { useRoute } from "vue-router";
|
||||
import { ElMessage, ElMessageBox, ElTree, FormInstance } from "element-plus";
|
||||
import { ColumnProps } from "@/components/ProTable/interface";
|
||||
import ProTable from "@/components/ProTable/index.vue";
|
||||
@ -96,6 +97,7 @@ import type { ResAiProjectPage, ResAiEngineerPage } from "@/api/types/government
|
||||
import { getDustprojectPage, getDustengineeringPage, getAIQuestionPage } from "@/api/modules/goverment";
|
||||
import { sendIframeMessage } from "@/utils/util";
|
||||
import { GlobalStore } from "@/stores";
|
||||
const route = useRoute();
|
||||
const pages = ref({
|
||||
pageNo: 1,
|
||||
pageSize: 7,
|
||||
@ -303,7 +305,7 @@ onMounted(async () => {
|
||||
onSearch(records.value[0]);
|
||||
searchSn.value = (records.value as ResAiProjectPage[])[0].projectSn;
|
||||
searchName.value = (records.value as ResAiProjectPage[])[0].projectName;
|
||||
await sendIframeMessage({ obj: { path: store.path, moduleId: store.moduleId } }, 2, undefined);
|
||||
await sendIframeMessage({ obj: { path: route.path } }, 2, undefined);
|
||||
});
|
||||
</script>
|
||||
<style scoped lang="scss">
|
||||
|
||||
@ -48,6 +48,7 @@
|
||||
|
||||
<script lang="ts" setup>
|
||||
import { ref, reactive, onMounted, watch } from "vue";
|
||||
import { useRoute } from "vue-router";
|
||||
import {
|
||||
getDustprojectPage,
|
||||
getDustengineeringPage,
|
||||
@ -69,6 +70,7 @@ import ProTable from "@/components/ProTable/index.vue";
|
||||
import { ColumnProps } from "@/components/ProTable/interface";
|
||||
import { getRealTimePage } from "@/api/modules/project";
|
||||
import { sendIframeMessage } from "@/utils/util";
|
||||
const route = useRoute();
|
||||
const pages = ref({
|
||||
pageNo: 1,
|
||||
pageSize: 7,
|
||||
@ -296,7 +298,7 @@ onMounted(async () => {
|
||||
onSearch(records.value[0]);
|
||||
searchSn.value = (records.value as ResAiProjectPage[])[0].projectSn;
|
||||
searchName.value = (records.value as ResAiProjectPage[])[0].projectName;
|
||||
await sendIframeMessage({ obj: { path: store.path, moduleId: store.moduleId } }, 2, undefined);
|
||||
await sendIframeMessage({ obj: { path: route.path } }, 2, undefined);
|
||||
});
|
||||
</script>
|
||||
|
||||
|
||||
@ -80,6 +80,7 @@
|
||||
|
||||
<script lang="tsx" setup name="historyDataAnalysis">
|
||||
import { ref, reactive, onMounted, watch } from "vue";
|
||||
import { useRoute } from "vue-router";
|
||||
import { getDustprojectPage, getDustengineeringPage, getAIQuestionPage, getDustMonitorDev } from "@/api/modules/goverment";
|
||||
import { GlobalStore } from "@/stores";
|
||||
import LeftMenu from "@/components/LeftMenu/LeftMenu.vue";
|
||||
@ -88,6 +89,7 @@ import { sendIframeMessage } from "@/utils/util";
|
||||
import { getRealTimePage } from "@/api/modules/project";
|
||||
import * as echarts from "echarts";
|
||||
import dayjs from "dayjs";
|
||||
const route = useRoute();
|
||||
const deviceList = ref([]);
|
||||
const optionList = ref([
|
||||
{ label: "温度", value: 0 },
|
||||
@ -473,7 +475,7 @@ onMounted(async () => {
|
||||
onSearch(records.value[0]);
|
||||
searchSn.value = (records.value as ResAiProjectPage[])[0].projectSn;
|
||||
searchName.value = (records.value as ResAiProjectPage[])[0].projectName;
|
||||
await sendIframeMessage({ obj: { path: store.path, moduleId: store.moduleId } }, 2, undefined);
|
||||
await sendIframeMessage({ obj: { path: route.path } }, 2, undefined);
|
||||
});
|
||||
</script>
|
||||
|
||||
|
||||
@ -43,6 +43,7 @@
|
||||
|
||||
<script lang="ts" setup>
|
||||
import { ref, reactive, onMounted, watch } from "vue";
|
||||
import { useRoute } from "vue-router";
|
||||
import { ElMessage, UploadProps } from "element-plus";
|
||||
import { GlobalStore } from "@/stores";
|
||||
import LeftMenu from "@/components/LeftMenu/LeftMenu.vue";
|
||||
@ -63,6 +64,7 @@ import {
|
||||
} from "@/api/modules/jxjview";
|
||||
import { jxj_User } from "@/api/types";
|
||||
import { useHandleData } from "@/hooks/useHandleData";
|
||||
const route = useRoute();
|
||||
const detailsDialog = ref(false);
|
||||
const relativeId = ref("");
|
||||
const store = GlobalStore();
|
||||
@ -206,7 +208,7 @@ const getTableList = (params: any) => {
|
||||
return getDictionaryDetail(newParams);
|
||||
};
|
||||
onMounted(async () => {
|
||||
await sendIframeMessage({ obj: { path: store.path, moduleId: store.moduleId } }, 2, undefined);
|
||||
await sendIframeMessage({ obj: { path: route.path } }, 2, undefined);
|
||||
});
|
||||
</script>
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user