调整页面温度显示字段
This commit is contained in:
parent
e2c1f7e4cc
commit
919cfcc867
|
|
@ -6,10 +6,10 @@ VITE_PUBLIC_PATH = /
|
|||
|
||||
|
||||
# 跨域代理,您可以配置多个 ,请注意,没有换行符
|
||||
VITE_PROXY = [["/jeecgboot","http://localhost:8050/jeecg-boot"],["/upload","http://localhost:3300/upload"]]
|
||||
VITE_PROXY = [["/jeecgboot","http://localhost:8060/jeecg-boot"],["/upload","http://localhost:3300/upload"]]
|
||||
|
||||
#后台接口全路径地址(必填)
|
||||
VITE_GLOB_DOMAIN_URL=http://localhost:8050/jeecg-boot
|
||||
VITE_GLOB_DOMAIN_URL=http://localhost:8060/jeecg-boot
|
||||
|
||||
#后台接口父地址(必填)
|
||||
VITE_GLOB_API_URL=/jeecgboot
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@ VITE_BUILD_COMPRESS_DELETE_ORIGIN_FILE = false
|
|||
VITE_GLOB_API_URL=/api
|
||||
|
||||
#后台接口全路径地址(必填)
|
||||
VITE_GLOB_DOMAIN_URL=http://127.0.0.1:8050/jeecg-boot
|
||||
VITE_GLOB_DOMAIN_URL=http://127.0.0.1:8060/jeecg-boot
|
||||
|
||||
# 接口父路径前缀
|
||||
VITE_GLOB_API_URL_PREFIX=
|
||||
|
|
|
|||
|
|
@ -70,7 +70,7 @@
|
|||
</a-col>
|
||||
</a-row>
|
||||
</a-col>
|
||||
|
||||
|
||||
</a-row>
|
||||
<a-modal title="切换锅炉房" :visible="visible" @ok="handleOk"
|
||||
:okButtonProps="{ class: { 'jee-hidden': disableSubmit } }" @cancel="handleCancel" cancelText="关闭">
|
||||
|
|
@ -92,7 +92,7 @@
|
|||
import { ref, onMounted, nextTick, onUnmounted,onBeforeUnmount } from 'vue';
|
||||
import * as echarts from 'echarts';
|
||||
import { heatsourcelist } from "@/views/base/simconfig/Simconfig.api";
|
||||
|
||||
|
||||
import { useUserStore } from '/@/store/modules/user';
|
||||
import { defHttp } from '/@/utils/http/axios';
|
||||
import dayjs from 'dayjs';
|
||||
|
|
@ -249,8 +249,8 @@ function getStaticTwo(){
|
|||
var dataSource2 = [];
|
||||
for(var i=0;i<dataList.value.length;i++){
|
||||
names.push(dataList.value[i].datatime);
|
||||
dataSource.push({value:dataList.value[i].view005});
|
||||
dataSource2.push({value:dataList.value[i].view006});
|
||||
dataSource.push({value:dataList.value[i].view035});
|
||||
dataSource2.push({value:dataList.value[i].view036});
|
||||
}
|
||||
const staticParam = document.querySelector('.staticTwo') as HTMLElement;
|
||||
chartTwo = echarts.init(staticParam);
|
||||
|
|
@ -549,7 +549,7 @@ function getStaticThree(){
|
|||
]
|
||||
}, true)
|
||||
|
||||
|
||||
|
||||
// -------- 自动轮播 tooltip(每 5 秒) --------
|
||||
// 清理旧定时器(避免重复)
|
||||
if (chartThree.__autoTooltipTimer) {
|
||||
|
|
@ -697,7 +697,7 @@ function getStaticFour(){
|
|||
}]
|
||||
}, true)
|
||||
|
||||
|
||||
|
||||
// -------- 自动轮播 tooltip(每 5 秒) --------
|
||||
// 清理旧定时器(避免重复)
|
||||
if (chartFour.__autoTooltipTimer) {
|
||||
|
|
@ -739,7 +739,7 @@ function getStaticFour(){
|
|||
}
|
||||
|
||||
function getStaticFive(){
|
||||
|
||||
|
||||
var names = [];
|
||||
var dataSource = [];
|
||||
for(var i=0;i<dataList.value.length;i++){
|
||||
|
|
@ -845,7 +845,7 @@ function getStaticFive(){
|
|||
}
|
||||
}]
|
||||
}, true)
|
||||
|
||||
|
||||
// -------- 自动轮播 tooltip(每 5 秒) --------
|
||||
// 清理旧定时器(避免重复)
|
||||
if (chartFive.__autoTooltipTimer) {
|
||||
|
|
@ -887,7 +887,7 @@ function getStaticFive(){
|
|||
}
|
||||
|
||||
function getStaticSix(){
|
||||
|
||||
|
||||
var names = [];
|
||||
var dataSource = [];
|
||||
for(var i=0;i<dataList.value.length;i++){
|
||||
|
|
@ -1007,7 +1007,7 @@ console.log("🚀 ~ handleCheckGlf ~ item:", item)
|
|||
}
|
||||
loadData();
|
||||
}
|
||||
function handleOk(){
|
||||
function handleOk(){
|
||||
var list = heatsource.value
|
||||
companyName.value = list.filter(item => item.sourceId == sourceId.value)[0].companyName
|
||||
visible.value = false;
|
||||
|
|
@ -1036,7 +1036,7 @@ async function loadData() {
|
|||
getStaticFour();
|
||||
getStaticFive();
|
||||
getStaticSix();
|
||||
|
||||
|
||||
}
|
||||
async function getHeatsource(){
|
||||
heatsource.value = await heatsourcelist({sourceId: userInfo.sourceId});
|
||||
|
|
@ -1050,7 +1050,7 @@ onMounted(async () => {
|
|||
companyName.value = list[0].companyName
|
||||
}
|
||||
loadData();
|
||||
|
||||
|
||||
setInterval(() => {
|
||||
var list = heatsource.value
|
||||
if(list.length>0){
|
||||
|
|
@ -1130,7 +1130,7 @@ onBeforeUnmount(() => {
|
|||
justify-content: center; /* 水平居中 */
|
||||
align-items: center; /* 垂直居中 */
|
||||
height: 20vh; /* 需要设置容器高度 */
|
||||
|
||||
|
||||
background: url(../../../assets/dp/icon1.png) no-repeat;
|
||||
background-position: center center;
|
||||
background-size: 95% 80%;
|
||||
|
|
@ -1143,7 +1143,7 @@ onBeforeUnmount(() => {
|
|||
justify-content: center; /* 水平居中 */
|
||||
align-items: center; /* 垂直居中 */
|
||||
height: 20vh; /* 需要设置容器高度 */
|
||||
|
||||
|
||||
background: url(../../../assets/dp/icon2.png) no-repeat;
|
||||
background-position: center center;
|
||||
background-size: 95% 80%;
|
||||
|
|
|
|||
|
|
@ -70,7 +70,7 @@
|
|||
</a-col>
|
||||
</a-row>
|
||||
</a-col>
|
||||
|
||||
|
||||
</a-row>
|
||||
<a-modal title="切换锅炉房" :visible="visible" @ok="handleOk"
|
||||
:okButtonProps="{ class: { 'jee-hidden': disableSubmit } }" @cancel="handleCancel" cancelText="关闭">
|
||||
|
|
@ -92,7 +92,7 @@
|
|||
import { ref, onMounted, nextTick, onUnmounted,onBeforeUnmount } from 'vue';
|
||||
import * as echarts from 'echarts';
|
||||
import { heatsourcelist } from "@/views/base/simconfig/Simconfig.api";
|
||||
|
||||
|
||||
import { useUserStore } from '/@/store/modules/user';
|
||||
import { defHttp } from '/@/utils/http/axios';
|
||||
import dayjs from 'dayjs';
|
||||
|
|
@ -249,8 +249,8 @@ function getStaticTwo(){
|
|||
var dataSource2 = [];
|
||||
for(var i=0;i<dataList.value.length;i++){
|
||||
names.push(dataList.value[i].datatime);
|
||||
dataSource.push({value:dataList.value[i].view005});
|
||||
dataSource2.push({value:dataList.value[i].view006});
|
||||
dataSource.push({value:dataList.value[i].view035});
|
||||
dataSource2.push({value:dataList.value[i].view036});
|
||||
}
|
||||
const staticParam = document.querySelector('.staticTwo') as HTMLElement;
|
||||
chartTwo = echarts.init(staticParam);
|
||||
|
|
@ -549,7 +549,7 @@ function getStaticThree(){
|
|||
]
|
||||
}, true)
|
||||
|
||||
|
||||
|
||||
// -------- 自动轮播 tooltip(每 5 秒) --------
|
||||
// 清理旧定时器(避免重复)
|
||||
if (chartThree.__autoTooltipTimer) {
|
||||
|
|
@ -697,7 +697,7 @@ function getStaticFour(){
|
|||
}]
|
||||
}, true)
|
||||
|
||||
|
||||
|
||||
// -------- 自动轮播 tooltip(每 5 秒) --------
|
||||
// 清理旧定时器(避免重复)
|
||||
if (chartFour.__autoTooltipTimer) {
|
||||
|
|
@ -739,7 +739,7 @@ function getStaticFour(){
|
|||
}
|
||||
|
||||
function getStaticFive(){
|
||||
|
||||
|
||||
var names = [];
|
||||
var dataSource = [];
|
||||
for(var i=0;i<dataList.value.length;i++){
|
||||
|
|
@ -845,7 +845,7 @@ function getStaticFive(){
|
|||
}
|
||||
}]
|
||||
}, true)
|
||||
|
||||
|
||||
// -------- 自动轮播 tooltip(每 5 秒) --------
|
||||
// 清理旧定时器(避免重复)
|
||||
if (chartFive.__autoTooltipTimer) {
|
||||
|
|
@ -887,7 +887,7 @@ function getStaticFive(){
|
|||
}
|
||||
|
||||
function getStaticSix(){
|
||||
|
||||
|
||||
var names = [];
|
||||
var dataSource = [];
|
||||
for(var i=0;i<dataList.value.length;i++){
|
||||
|
|
@ -1014,7 +1014,7 @@ console.log("🚀 ~ handleCheckGlf ~ item:", item)
|
|||
}
|
||||
loadData();
|
||||
}
|
||||
function handleOk(){
|
||||
function handleOk(){
|
||||
var list = heatsource.value
|
||||
companyName.value = list.filter(item => item.sourceId == sourceId.value)[0].companyName
|
||||
visible.value = false;
|
||||
|
|
@ -1043,7 +1043,7 @@ async function loadData() {
|
|||
getStaticFour();
|
||||
getStaticFive();
|
||||
getStaticSix();
|
||||
|
||||
|
||||
}
|
||||
async function getHeatsource(){
|
||||
heatsource.value = await heatsourcelist({sourceId: userInfo.sourceId});
|
||||
|
|
@ -1068,7 +1068,7 @@ onMounted(async () => {
|
|||
companyName.value = list[0].companyName
|
||||
}
|
||||
loadData();
|
||||
|
||||
|
||||
setInterval(() => {
|
||||
var list = heatsource.value
|
||||
if(list.length>0){
|
||||
|
|
@ -1085,7 +1085,7 @@ onMounted(async () => {
|
|||
}
|
||||
loadData();
|
||||
}, 60 * 1000);
|
||||
|
||||
|
||||
window.addEventListener("resize", resizeChart);
|
||||
});
|
||||
|
||||
|
|
@ -1097,7 +1097,7 @@ onBeforeUnmount(() => {
|
|||
if (chartFour) { chartFour.dispose(); chartFour = null; }
|
||||
if (chartFive) { chartFive.dispose(); chartFive = null; }
|
||||
if (chartSix) { chartSix.dispose(); chartSix = null; }
|
||||
|
||||
|
||||
});
|
||||
</script>
|
||||
|
||||
|
|
@ -1157,7 +1157,7 @@ onBeforeUnmount(() => {
|
|||
justify-content: center; /* 水平居中 */
|
||||
align-items: center; /* 垂直居中 */
|
||||
height: 20vh; /* 需要设置容器高度 */
|
||||
|
||||
|
||||
background: url(../../../assets/dp/icon1.png) no-repeat;
|
||||
background-position: center center;
|
||||
background-size: 95% 80%;
|
||||
|
|
@ -1170,7 +1170,7 @@ onBeforeUnmount(() => {
|
|||
justify-content: center; /* 水平居中 */
|
||||
align-items: center; /* 垂直居中 */
|
||||
height: 20vh; /* 需要设置容器高度 */
|
||||
|
||||
|
||||
background: url(../../../assets/dp/icon2.png) no-repeat;
|
||||
background-position: center center;
|
||||
background-size: 95% 80%;
|
||||
|
|
|
|||
|
|
@ -74,8 +74,8 @@ function prepareOptions(records: any[]) {
|
|||
const { city } = splitByRegion(records);
|
||||
|
||||
const cityX = buildXAxis(city, 'datatime');
|
||||
const citySW = city.map((r: any) => safeNum(r.view005));
|
||||
const cityHW = city.map((r: any) => safeNum(r.view006));
|
||||
const citySW = city.map((r: any) => safeNum(r.view035));
|
||||
const cityHW = city.map((r: any) => safeNum(r.view036));
|
||||
cityOption = {
|
||||
title: { text: '供/回水温度监测', left: 'center', top: 10 },
|
||||
tooltip: { trigger: 'axis' },
|
||||
|
|
|
|||
|
|
@ -34,7 +34,7 @@ const { userInfo } = useUserStore();
|
|||
const disabledDate = (current) => {
|
||||
const minDate = dayjs('2025-09-01', 'YYYY-MM-DD'); // 最小允许日期
|
||||
const currentMonth = dayjs().startOf('month'); // 当前月份(如 2025-09-01)
|
||||
|
||||
|
||||
// 如果日期早于 2025-08 或晚于当前月份,则禁用
|
||||
return (
|
||||
current.isBefore(minDate, 'month') || // 早于 2025-08
|
||||
|
|
@ -85,8 +85,8 @@ function prepareOptions(records: any[]) {
|
|||
const { city } = splitByRegion(records);
|
||||
|
||||
const cityX = buildXAxis(city, 'datatime');
|
||||
const citySW = city.map((r: any) => safeNum(r.view005));
|
||||
const cityHW = city.map((r: any) => safeNum(r.view006));
|
||||
const citySW = city.map((r: any) => safeNum(r.view035));
|
||||
const cityHW = city.map((r: any) => safeNum(r.view036));
|
||||
cityOption = {
|
||||
title: { text: '历史供/回水温度监测', left: 'center', top: 10 },
|
||||
tooltip: { trigger: 'axis' },
|
||||
|
|
|
|||
Loading…
Reference in New Issue