flx:修改zsbf问题

This commit is contained in:
Rain_ 2025-07-30 17:13:40 +08:00
parent 4d71b4d969
commit 42d3dcbe14
8 changed files with 75 additions and 15 deletions

View File

@ -77,6 +77,11 @@ export const staticRouter: RouteRecordRaw[] = [
// name: "基站监测", // name: "基站监测",
// component: () => import("@/views/sevenLargeScreen/ztsyjitem/trench.vue") // component: () => import("@/views/sevenLargeScreen/ztsyjitem/trench.vue")
// }, // },
{
path: "/iframe",
name: "动态内嵌",
component: () => import("@/views/sevenLargeScreen/dynamicAllocation/iframe.vue")
},
{ {
path: "/towerCraneMonitoring", path: "/towerCraneMonitoring",
name: "塔吊监测", name: "塔吊监测",

View File

@ -312,6 +312,6 @@ export function filterEnum(
} }
// 获取assets静态资源 // 获取assets静态资源
export const getAssetsFile = (url) => { export const getAssetsFile = (url: string) => {
return new URL(`../assets/images/${url}`, import.meta.url).href return new URL(`../assets/images/${url}`, import.meta.url).href
} }

View File

@ -0,0 +1,25 @@
<template>
<div class="iframe">
<iframe :src="url" width="100%" height="100%" frameborder="0"></iframe>
</div>
</template>
<script setup>
import { useRoute } from 'vue-router';
import { onMounted, ref } from 'vue';
const route = useRoute();
const url = ref("");
onMounted(() => {
console.log(route.query); //
url.value = route.query.url; // url
});
</script>
<style scoped>
.iframe {
border: none; /* 去掉默认的边框 */
width: 100%;
height: 100%;
/* background: skyblue; */
}
</style>

View File

@ -39,6 +39,7 @@ import { getCurrentDayAirQualityApi } from "@/api/modules/headNoise";
import { ref, onMounted, reactive } from "vue"; import { ref, onMounted, reactive } from "vue";
import * as echarts from "echarts"; import * as echarts from "echarts";
import Card from "@/components/card.vue"; import Card from "@/components/card.vue";
import { title } from "process";
const store = GlobalStore(); const store = GlobalStore();
const analysisType = ref("" as any); const analysisType = ref("" as any);
const analysisData = ref(0 as any); const analysisData = ref(0 as any);
@ -133,8 +134,14 @@ function drawChart() {
distance: -40 distance: -40
}, },
pointer: { pointer: {
show: 0 show: 0,
} },
title: {
show: false,
},
detail: {
show: false
},
}, },
{ {
// //

View File

@ -174,7 +174,6 @@ import {
QYGMenu QYGMenu
} from "@/config/staticMenu"; } from "@/config/staticMenu";
import { COMPANY } from "@/config/config"; import { COMPANY } from "@/config/config";
import { useRouter } from "vue-router"; import { useRouter } from "vue-router";
import { GlobalStore } from "@/stores"; import { GlobalStore } from "@/stores";
const store = GlobalStore(); const store = GlobalStore();
@ -587,6 +586,24 @@ const navigateTo = (path, type) => {
}); });
} else { } else {
activeTab2.value = path.companyPath; activeTab2.value = path.companyPath;
let index = path.companyPath.indexOf("?");
console.log("获取到的参数----", index);
if (index > -1) {
let result = path.companyPath.substring(index);
const uIndex = result.indexOf("url=");
if (uIndex > -1) {
const url = result.substring(uIndex + 4);
console.log("获取到的参数----", url);
router.push({
path: path.companyPath,
query: {
url,
}
});
return;
}
}
// console.log("---", activeTab2.value);
router.push({ router.push({
path: path.companyPath path: path.companyPath
}); });

View File

@ -14,19 +14,19 @@
<div class="right-box"> <div class="right-box">
<div class="yesterday-use"> <div class="yesterday-use">
<div class="text">日产量()</div> <div class="text">日产量()</div>
<div class="num">{{ realTimeTotal.dailyOutput || 0 }}</div> <div class="num">{{ Math.round(realTimeTotal.dailyOutput).toFixed(2) || 0 }}</div>
</div> </div>
<div class="yesterday-chain"> <div class="yesterday-chain">
<div class="text">总产量()</div> <div class="text">总产量()</div>
<div class="num">{{ realTimeTotal.totalOutput || 0 }}</div> <div class="num">{{ Math.round(realTimeTotal.totalOutput).toFixed(2) || 0 }}</div>
</div> </div>
<div class="month-use"> <div class="month-use">
<div class="text">日盘数</div> <div class="text">日盘数</div>
<div class="num">{{ realTimeTotal.dayNumber || 0 }}</div> <div class="num">{{ Math.round(realTimeTotal.dayNumber).toFixed(2) || 0 }}</div>
</div> </div>
<div class="month-chain"> <div class="month-chain">
<div class="text">总盘数</div> <div class="text">总盘数</div>
<div class="num">{{ realTimeTotal.totalNumber || 0 }}</div> <div class="num">{{ Math.round(realTimeTotal.totalNumber).toFixed(2) || 0 }}</div>
</div> </div>
</div> </div>
</div> </div>

View File

@ -105,7 +105,7 @@ function drawEchart() {
trigger: "item" trigger: "item"
}, },
title: { title: {
text: max, text: Math.round(max).toFixed(2),
subtext: "材料总数", subtext: "材料总数",
x: "27%", x: "27%",
y: "42%", y: "42%",
@ -140,7 +140,7 @@ function drawEchart() {
color: "#000", color: "#000",
rich: { rich: {
name: { name: {
width: 100, width: 70,
verticalAlign: "left", verticalAlign: "left",
fontSize: 14, fontSize: 14,
color: "#FFFFFF" color: "#FFFFFF"
@ -162,7 +162,7 @@ function drawEchart() {
for (let i = 0; i < dataList.value.length; i++) { for (let i = 0; i < dataList.value.length; i++) {
if (data === dataList.value[i].name) { if (data === dataList.value[i].name) {
let value = dataList.value[i].value; let value = dataList.value[i].value;
return "{name| " + data + "}" + "{value| " + value + "}" + " "; return "{name| " + data + "}" + "{value| " + value + 'kg' + "}" + " ";
} }
} }
} }
@ -334,7 +334,7 @@ const getMemberCareList = async () => {
let picArr = []; let picArr = [];
for (let i = 0; i < dataArr.length; i++) { for (let i = 0; i < dataArr.length; i++) {
let currentPic = { let currentPic = {
value: dataArr[i].count, value: Math.round(Number(dataArr[i].count)).toFixed(2),
show: true, show: true,
name: dataArr[i].name, name: dataArr[i].name,
itemStyle: { itemStyle: {

View File

@ -134,7 +134,13 @@ function drawChart() {
}, },
pointer: { pointer: {
show: 0 show: 0
} },
title: {
show: false,
},
detail: {
show: false
},
}, },
{ {
// //