调整页面温度显示字段
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
|
VITE_GLOB_API_URL=/jeecgboot
|
||||||
|
|
|
||||||
|
|
@ -16,7 +16,7 @@ VITE_BUILD_COMPRESS_DELETE_ORIGIN_FILE = false
|
||||||
VITE_GLOB_API_URL=/api
|
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=
|
VITE_GLOB_API_URL_PREFIX=
|
||||||
|
|
|
||||||
|
|
@ -249,8 +249,8 @@ function getStaticTwo(){
|
||||||
var dataSource2 = [];
|
var dataSource2 = [];
|
||||||
for(var i=0;i<dataList.value.length;i++){
|
for(var i=0;i<dataList.value.length;i++){
|
||||||
names.push(dataList.value[i].datatime);
|
names.push(dataList.value[i].datatime);
|
||||||
dataSource.push({value:dataList.value[i].view005});
|
dataSource.push({value:dataList.value[i].view035});
|
||||||
dataSource2.push({value:dataList.value[i].view006});
|
dataSource2.push({value:dataList.value[i].view036});
|
||||||
}
|
}
|
||||||
const staticParam = document.querySelector('.staticTwo') as HTMLElement;
|
const staticParam = document.querySelector('.staticTwo') as HTMLElement;
|
||||||
chartTwo = echarts.init(staticParam);
|
chartTwo = echarts.init(staticParam);
|
||||||
|
|
|
||||||
|
|
@ -249,8 +249,8 @@ function getStaticTwo(){
|
||||||
var dataSource2 = [];
|
var dataSource2 = [];
|
||||||
for(var i=0;i<dataList.value.length;i++){
|
for(var i=0;i<dataList.value.length;i++){
|
||||||
names.push(dataList.value[i].datatime);
|
names.push(dataList.value[i].datatime);
|
||||||
dataSource.push({value:dataList.value[i].view005});
|
dataSource.push({value:dataList.value[i].view035});
|
||||||
dataSource2.push({value:dataList.value[i].view006});
|
dataSource2.push({value:dataList.value[i].view036});
|
||||||
}
|
}
|
||||||
const staticParam = document.querySelector('.staticTwo') as HTMLElement;
|
const staticParam = document.querySelector('.staticTwo') as HTMLElement;
|
||||||
chartTwo = echarts.init(staticParam);
|
chartTwo = echarts.init(staticParam);
|
||||||
|
|
|
||||||
|
|
@ -74,8 +74,8 @@ function prepareOptions(records: any[]) {
|
||||||
const { city } = splitByRegion(records);
|
const { city } = splitByRegion(records);
|
||||||
|
|
||||||
const cityX = buildXAxis(city, 'datatime');
|
const cityX = buildXAxis(city, 'datatime');
|
||||||
const citySW = city.map((r: any) => safeNum(r.view005));
|
const citySW = city.map((r: any) => safeNum(r.view035));
|
||||||
const cityHW = city.map((r: any) => safeNum(r.view006));
|
const cityHW = city.map((r: any) => safeNum(r.view036));
|
||||||
cityOption = {
|
cityOption = {
|
||||||
title: { text: '供/回水温度监测', left: 'center', top: 10 },
|
title: { text: '供/回水温度监测', left: 'center', top: 10 },
|
||||||
tooltip: { trigger: 'axis' },
|
tooltip: { trigger: 'axis' },
|
||||||
|
|
|
||||||
|
|
@ -85,8 +85,8 @@ function prepareOptions(records: any[]) {
|
||||||
const { city } = splitByRegion(records);
|
const { city } = splitByRegion(records);
|
||||||
|
|
||||||
const cityX = buildXAxis(city, 'datatime');
|
const cityX = buildXAxis(city, 'datatime');
|
||||||
const citySW = city.map((r: any) => safeNum(r.view005));
|
const citySW = city.map((r: any) => safeNum(r.view035));
|
||||||
const cityHW = city.map((r: any) => safeNum(r.view006));
|
const cityHW = city.map((r: any) => safeNum(r.view036));
|
||||||
cityOption = {
|
cityOption = {
|
||||||
title: { text: '历史供/回水温度监测', left: 'center', top: 10 },
|
title: { text: '历史供/回水温度监测', left: 'center', top: 10 },
|
||||||
tooltip: { trigger: 'axis' },
|
tooltip: { trigger: 'axis' },
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue