diff --git a/.env.development b/.env.development
index eb84861..c000d60 100644
--- a/.env.development
+++ b/.env.development
@@ -7,9 +7,9 @@ ENV = 'development'
# 开发环境
# VUE_APP_BASE_API = '/dev-api'
# 后台
-# VUE_APP_BASE_API = 'http://192.168.1.222:8080'
+VUE_APP_BASE_API = 'http://192.168.1.222:8080'
# 海湾酒店-云端
-VUE_APP_BASE_API = 'http://106.55.173.225:8090'
+# VUE_APP_BASE_API = 'http://106.55.173.225:8090'
# 路由懒加载
VUE_CLI_BABEL_TRANSPILE_MODULES = true
diff --git a/src/api/comprehensiveEnergy/hotPumpLog.js b/src/api/comprehensiveEnergy/hotPumpLog.js
new file mode 100644
index 0000000..631f7c7
--- /dev/null
+++ b/src/api/comprehensiveEnergy/hotPumpLog.js
@@ -0,0 +1,27 @@
+import request from "@/utils/request";
+
+export const hotWaterList = (data) => {
+ return request({
+ url: "/reportHotWater/list",
+ method: "post",
+ data: data,
+ });
+};
+
+// 导出
+export const hotWaterExport = (data) => {
+ return request({
+ url: "/reportHotWater/export",
+ method: "post",
+ data,
+ responseType: "blob",
+ });
+};
+// 修改
+export const hotWaterEdit = (data) => {
+ return request({
+ url: "/reportHotWater/edit",
+ method: "put",
+ data: data,
+ });
+};
diff --git a/src/api/comprehensiveEnergy/meterRecord.js b/src/api/comprehensiveEnergy/meterRecord.js
new file mode 100644
index 0000000..a33c714
--- /dev/null
+++ b/src/api/comprehensiveEnergy/meterRecord.js
@@ -0,0 +1,19 @@
+import request from "@/utils/request";
+
+export const meterReadingsList = (data) => {
+ return request({
+ url: "/reportMeterReadings/list",
+ method: "post",
+ data: data,
+ });
+};
+
+// 导出
+export const meterReadingsExport = (data) => {
+ return request({
+ url: "/reportMeterReadings/export",
+ method: "post",
+ data,
+ responseType: "blob",
+ });
+};
diff --git a/src/api/comprehensiveEnergy/systemEnergy.js b/src/api/comprehensiveEnergy/systemEnergy.js
new file mode 100644
index 0000000..30fd012
--- /dev/null
+++ b/src/api/comprehensiveEnergy/systemEnergy.js
@@ -0,0 +1,9 @@
+import request from "@/utils/request";
+
+export const compreReport = (data) => {
+ return request({
+ url: "/compre/report",
+ method: "post",
+ data,
+ });
+};
diff --git a/src/api/device/gather.js b/src/api/device/gather.js
index 9834a82..8d856b5 100644
--- a/src/api/device/gather.js
+++ b/src/api/device/gather.js
@@ -8,6 +8,12 @@ export function cpmList(query) {
params: query,
});
}
+export function cpmList2(cpmIds) {
+ return request({
+ url: "/device/cpm/list/" + cpmIds,
+ method: "get",
+ });
+}
// 根据id查询设备采集参数信息
export function getCPM(cpmId) {
diff --git a/src/api/region.js b/src/api/region.js
index db51c9b..3797eba 100644
--- a/src/api/region.js
+++ b/src/api/region.js
@@ -7,6 +7,13 @@ export function spaceTree() {
method: "get",
});
}
+export function floorTree() {
+ return request({
+ url: "/space/floorTree",
+ method: "get",
+ });
+}
+
// 获取区域信息
export function getAreaList(query) {
diff --git a/src/assets/flowimg/circulate-move - 副本.gif b/src/assets/flowimg/circulate-move - 副本.gif
new file mode 100644
index 0000000..24276f6
Binary files /dev/null and b/src/assets/flowimg/circulate-move - 副本.gif differ
diff --git a/src/assets/flowimg/circulate-move.gif b/src/assets/flowimg/circulate-move.gif
index 24276f6..c157849 100644
Binary files a/src/assets/flowimg/circulate-move.gif and b/src/assets/flowimg/circulate-move.gif differ
diff --git a/src/assets/flowimg/circulate-nomove - 副本.png b/src/assets/flowimg/circulate-nomove - 副本.png
new file mode 100644
index 0000000..1d14fb1
Binary files /dev/null and b/src/assets/flowimg/circulate-nomove - 副本.png differ
diff --git a/src/assets/flowimg/circulate-nomove.png b/src/assets/flowimg/circulate-nomove.png
index 1d14fb1..f9ce69a 100644
Binary files a/src/assets/flowimg/circulate-nomove.png and b/src/assets/flowimg/circulate-nomove.png differ
diff --git a/src/assets/flowimg/coolWaterBox.png b/src/assets/flowimg/coolWaterBox.png
new file mode 100644
index 0000000..cc256b6
Binary files /dev/null and b/src/assets/flowimg/coolWaterBox.png differ
diff --git a/src/assets/flowimg/supply-move.gif b/src/assets/flowimg/supply-move.gif
index 92fae8e..a007bd4 100644
Binary files a/src/assets/flowimg/supply-move.gif and b/src/assets/flowimg/supply-move.gif differ
diff --git a/src/assets/flowimg/supply-move3.gif b/src/assets/flowimg/supply-move3.gif
new file mode 100644
index 0000000..f1db1d6
Binary files /dev/null and b/src/assets/flowimg/supply-move3.gif differ
diff --git a/src/assets/flowimg/supply-move3.png b/src/assets/flowimg/supply-move3.png
new file mode 100644
index 0000000..36c5dd0
Binary files /dev/null and b/src/assets/flowimg/supply-move3.png differ
diff --git a/src/assets/flowimg/supply-nomove.png b/src/assets/flowimg/supply-nomove.png
index 54f0426..9a40e49 100644
Binary files a/src/assets/flowimg/supply-nomove.png and b/src/assets/flowimg/supply-nomove.png differ
diff --git a/src/assets/flowimg/waterBox.png b/src/assets/flowimg/waterBox.png
index 8f70533..419a8d0 100644
Binary files a/src/assets/flowimg/waterBox.png and b/src/assets/flowimg/waterBox.png differ
diff --git a/src/store/modules/permission.js b/src/store/modules/permission.js
index 882a08b..e757071 100644
--- a/src/store/modules/permission.js
+++ b/src/store/modules/permission.js
@@ -40,6 +40,7 @@ const permission = {
const rewriteRoutes = filterAsyncRouter(rdata, false, true);
const asyncRoutes = filterDynamicRoutes(dynamicRoutes);
rewriteRoutes.push({ path: "*", redirect: "/404", hidden: true });
+ // 有中央空调
// 如果动态的路由有中央空调-系统监控-系统监测页面,那就添加一个hidden为true非Layout的大屏页面
const result = checkRouteArray(
sidebarRoutes,
@@ -90,6 +91,141 @@ const permission = {
// console.log("不满足条件");
}
+ // // 风柜
+ // const result2 = sidebarRoutes.find(
+ // (item) => item.name === "AircAndWindc"
+ // );
+ // if (result2) {
+ // // 定义要添加的多个路由对象数组
+ // const additionalRoutes2 = [
+ // {
+ // path: "/asSysMonitorDetails",
+ // name: "asSysMonitorDetails",
+ // hidden: true,
+ // component: () =>
+ // import(
+ // "@/views/aircAndWindc/awSysMonitor/asSysMonitorDetails"
+ // ),
+ // meta: { title: "系统监控", icon: "screen" },
+ // },
+ // // 可以继续添加更多路由对象
+ // ];
+ // // 循环添加额外的路由对象到各路由数组
+ // additionalRoutes2.forEach((route) => {
+ // sidebarRoutes.push(route);
+ // rewriteRoutes.push(route);
+ // asyncRoutes.push(route);
+ // });
+ // } else {
+ // // console.log("不满足条件");
+ // }
+
+ // // 锅炉
+ // const result3 = sidebarRoutes.find(
+ // (item) => item.name === "BoilerSys"
+ // );
+ // if (result3) {
+ // // 定义要添加的多个路由对象数组
+ // const additionalRoutes3 = [
+ // {
+ // path: "/boilerMonitorDetails",
+ // name: "boilerMonitorDetails",
+ // hidden: true,
+ // component: () =>
+ // import(
+ // "@/views/boilerSys/boilerMonitor/boilerMonitorDetails"
+ // ),
+ // meta: { title: "锅炉监控", icon: "screen" },
+ // },
+ // {
+ // path: "/hotWaterBoilerDetails",
+ // name: "hotWaterBoilerDetails",
+ // hidden: true,
+ // component: () =>
+ // import(
+ // "@/views/boilerSys/hotWaterBoiler/hotWaterBoilerDetails"
+ // ),
+ // meta: { title: "热水锅炉监控", icon: "screen" },
+ // },
+ // {
+ // path: "/heatingPumpDetails",
+ // name: "heatingPumpDetails",
+ // hidden: true,
+ // component: () =>
+ // import("@/views/boilerSys/heatingPump/heatingPumpDetails"),
+ // meta: { title: "采暖泵监控", icon: "screen" },
+ // },
+ // {
+ // path: "/steamHeatingDetails",
+ // name: "steamHeatingDetails",
+ // hidden: true,
+ // component: () =>
+ // import("@/views/boilerSys/steamHeating/steamHeatingDetails"),
+ // meta: { title: "蒸汽采暖运行监控", icon: "screen" },
+ // },
+ // // 可以继续添加更多路由对象
+ // ];
+ // // 循环添加额外的路由对象到各路由数组
+ // additionalRoutes3.forEach((route) => {
+ // sidebarRoutes.push(route);
+ // rewriteRoutes.push(route);
+ // asyncRoutes.push(route);
+ // });
+ // } else {
+ // // console.log("不满足条件");
+ // }
+
+ // 热水
+ const result4 = sidebarRoutes.find(
+ (item) => item.name === "HotWater"
+ );
+ if (result4) {
+ // 定义要添加的多个路由对象数组
+ const additionalRoutes4 = [
+ {
+ path: "/waterMonitorDetails",
+ name: "waterMonitorDetails",
+ hidden: true,
+ component: () =>
+ import("@/views/hotWater/waterMonitor/waterMonitorDetails"),
+ meta: { title: "热水监控", icon: "screen" },
+ },
+ // 可以继续添加更多路由对象
+ ];
+ // 循环添加额外的路由对象到各路由数组
+ additionalRoutes4.forEach((route) => {
+ sidebarRoutes.push(route);
+ rewriteRoutes.push(route);
+ asyncRoutes.push(route);
+ });
+ } else {
+ // console.log("不满足条件");
+ }
+
+ // // 温度监测
+ // const result5 = sidebarRoutes.find((item) => item.name === "TemSys");
+ // if (result5) {
+ // // 定义要添加的多个路由对象数组
+ // const additionalRoutes5 = [
+ // {
+ // path: "/temMonitorDeatils",
+ // name: "temMonitorDeatils",
+ // hidden: true,
+ // component: () =>
+ // import("@/views/temSys/temMonitor/temMonitorDeatils"),
+ // meta: { title: "温度监测", icon: "screen" },
+ // },
+ // ];
+ // // 循环添加额外的路由对象到各路由数组
+ // additionalRoutes5.forEach((route) => {
+ // sidebarRoutes.push(route);
+ // rewriteRoutes.push(route);
+ // asyncRoutes.push(route);
+ // });
+ // } else {
+ // // console.log("不满足条件");
+ // }
+
commit("SET_ROUTES", rewriteRoutes);
commit("SET_SIDEBAR_ROUTERS", constantRoutes.concat(sidebarRoutes));
commit("SET_DEFAULT_ROUTES", sidebarRoutes);
diff --git a/src/views/hotWater/dataAnalysis/components/analyzeMonth.vue b/src/views/hotWater/dataAnalysis/components/analyzeMonth.vue
index 3b463c2..ab90e2a 100644
--- a/src/views/hotWater/dataAnalysis/components/analyzeMonth.vue
+++ b/src/views/hotWater/dataAnalysis/components/analyzeMonth.vue
@@ -153,8 +153,10 @@ export default {
},
methods: {
tableRowStyle({ row, column, rowIndex, columnIndex }) {
+ // console.log("row",row)
+ // console.log("column",column)
// 如果第1列,修改颜色
- if (columnIndex === 0) {
+ if (columnIndex === 0 || column.label === '合计') {
return "background-color:rgb(11 ,100, 201) !important;";
}
},
@@ -293,6 +295,15 @@ export default {
// console.log("Min2", Min2);
// console.log("Max1", Max1);
// console.log("Max2", Max2);
+ // 处理y轴文字+单位
+ var yAxisUnit = "";
+ if (this.chType === 1) {
+ yAxisUnit = "吨";
+ } else if (this.chType === 2) {
+ yAxisUnit = "度";
+ } else if (this.chType === 3) {
+ yAxisUnit = "度/吨";
+ }
this.chartInstance1 = echarts.init(this.$refs.findwater_ref);
const adapterOption = {
legend: {
@@ -308,12 +319,24 @@ export default {
max: Max1,
splitNumber: 10,
interval: (Max1 - Min1) / 10,
+ name: yAxisUnit,
+ // 设置 name 的样式
+ nameTextStyle: {
+ color: "rgba(255, 255, 255, 1)",
+ fontSize: 12,
+ },
},
{
min: Min2,
max: Max2,
splitNumber: 10,
interval: (Max2 - Min2) / 10,
+ name: "%",
+ // 设置 name 的样式
+ nameTextStyle: {
+ color: "rgba(255, 255, 255, 1)",
+ fontSize: 12,
+ },
},
],
series: [
@@ -522,6 +545,62 @@ export default {
width: "1",
},
},
+ // 自定义 tooltip 内容
+ formatter: function (params) {
+ var res = params[0].name + "
";
+ for (var i = 0, l = params.length; i < l; i++) {
+ var seriesName = params[i].seriesName;
+ var value = params[i].value;
+ // console.log("打印颜色", params[i].color.colorStops[0].color)
+ var marker =
+ '';
+ // 根据不同的seriesName 返回不同的单位
+ if (seriesName.includes("用水量")) {
+ res +=
+ marker +
+ seriesName +
+ ":" +
+ '' +
+ value +
+ " " +
+ "吨" +
+ "
";
+ } else if (seriesName.includes("用电量")) {
+ res +=
+ marker +
+ seriesName +
+ ":" +
+ '' +
+ value +
+ " " +
+ "度" +
+ "
";
+ } else if (seriesName.includes("单耗")) {
+ res +=
+ marker +
+ seriesName +
+ ":" +
+ '' +
+ value +
+ " " +
+ "度/吨" +
+ "
";
+ } else {
+ res +=
+ marker +
+ seriesName +
+ ":" +
+ '' +
+ value +
+ " " +
+ "%" +
+ "
";
+ }
+ }
+ return res;
+ },
},
legend: {
// 折柱混合的图表,不显示icon,图例就可以根据不同的类型不同
@@ -531,7 +610,7 @@ export default {
color: "#ffff",
fontSize: 12, //这里改字体大小
},
- left: "56%",
+ left: "center",
top: "5%",
//图例距离饼图的距离
itemGap: 5,
@@ -638,10 +717,27 @@ export default {
// },
//折线颜色
itemStyle: {
- color: "#db9215",
- lineStyle: {
- color: "#db9215", //折线的颜色
+ color: "#0b75d3",
+ // 使用颜色渐变
+ color: {
+ type: "linear",
+ x: 0,
+ y: 0,
+ x2: 0,
+ y2: 1,
+ colorStops: [
+ {
+ offset: 0,
+ color: "rgba(1, 102, 251, 1)", // 起始颜色
+ },
+ {
+ offset: 1,
+ color: "rgba(1, 102, 251, 0)", // 结束颜色
+ },
+ ],
+ global: false, // 缺省为 false
},
+ borderRadius: [5, 5, 0, 0], // 分别对应左上、右上、右下、左下的圆角半径
},
},
{
@@ -654,10 +750,27 @@ export default {
barWidth: 10, // 柱子宽度
//折线颜色
itemStyle: {
- color: "#1ab395",
- lineStyle: {
- color: "#1ab395", //折线的颜色
+ color: "#0b75d3",
+ // 使用颜色渐变
+ color: {
+ type: "linear",
+ x: 0,
+ y: 0,
+ x2: 0,
+ y2: 1,
+ colorStops: [
+ {
+ offset: 0,
+ color: "rgba(0, 224, 225, 1)", // 起始颜色
+ },
+ {
+ offset: 1,
+ color: "rgba(0, 224, 225, 0)", // 结束颜色
+ },
+ ],
+ global: false, // 缺省为 false
},
+ borderRadius: [5, 5, 0, 0],
},
},
{
@@ -677,10 +790,27 @@ export default {
// data: this.data3,
//折线颜色
itemStyle: {
- color: "#e23131",
- lineStyle: {
- color: "#e23131", //折线的颜色
+ color: "#db9215",
+ // 使用颜色渐变
+ color: {
+ type: "linear",
+ x: 0,
+ y: 0,
+ x2: 0,
+ y2: 1,
+ colorStops: [
+ {
+ offset: 0,
+ color: "#db9215", // 起始颜色
+ },
+ {
+ offset: 1,
+ color: "#db9215", // 结束颜色
+ },
+ ],
+ global: false, // 缺省为 false
},
+ borderRadius: [5, 5, 0, 0], // 分别对应左上、右上、右下、左下的圆角半径
},
},
{
@@ -701,9 +831,27 @@ export default {
// data: this.data4,
//折线颜色
itemStyle: {
- color: "#4a98ff",
+ color: "#EE5217", //折线点的颜色
+ color: {
+ type: "linear",
+ x: 0,
+ y: 0,
+ x2: 0,
+ y2: 1,
+ colorStops: [
+ {
+ offset: 0,
+ color: "#EE5217", // 起始颜色
+ },
+ {
+ offset: 1,
+ color: "#EE5217", // 结束颜色
+ },
+ ],
+ global: false, // 缺省为 false
+ },
lineStyle: {
- color: "#4a98ff", //折线的颜色
+ color: "#EE5217", //折线的颜色
},
},
},
diff --git a/src/views/hotWater/dataAnalysis/components/analyzeYear.vue b/src/views/hotWater/dataAnalysis/components/analyzeYear.vue
index b39a866..eaca2a1 100644
--- a/src/views/hotWater/dataAnalysis/components/analyzeYear.vue
+++ b/src/views/hotWater/dataAnalysis/components/analyzeYear.vue
@@ -120,7 +120,7 @@ export default {
methods: {
tableRowStyle({ row, column, rowIndex, columnIndex }) {
// 如果第1列,修改颜色
- if (columnIndex === 0) {
+ if (columnIndex === 0 || column.label === "合计") {
return "background-color:rgb(11 ,100, 201) !important;";
}
},
@@ -240,6 +240,15 @@ export default {
// console.log("Min2", Min2);
// console.log("Max1", Max1);
// console.log("Max2", Max2);
+ // 处理y轴文字+单位
+ var yAxisUnit = "";
+ if (this.chType === 1) {
+ yAxisUnit = "吨";
+ } else if (this.chType === 2) {
+ yAxisUnit = "度";
+ } else if (this.chType === 3) {
+ yAxisUnit = "度/吨";
+ }
this.chartInstance1 = echarts.init(this.$refs.findwater_ref);
const adapterOption = {
legend: {
@@ -255,12 +264,24 @@ export default {
max: Max1,
splitNumber: 10,
interval: (Max1 - Min1) / 10,
+ name: yAxisUnit,
+ // 设置 name 的样式
+ nameTextStyle: {
+ color: "rgba(255, 255, 255, 1)",
+ fontSize: 12,
+ },
},
{
min: Min2,
max: Max2,
splitNumber: 10,
interval: (Max2 - Min2) / 10,
+ name: "%",
+ // 设置 name 的样式
+ nameTextStyle: {
+ color: "rgba(255, 255, 255, 1)",
+ fontSize: 12,
+ },
},
],
series: [
@@ -431,6 +452,62 @@ export default {
width: "1",
},
},
+ // 自定义 tooltip 内容
+ formatter: function (params) {
+ var res = params[0].name + "
";
+ for (var i = 0, l = params.length; i < l; i++) {
+ var seriesName = params[i].seriesName;
+ var value = params[i].value;
+ // console.log("打印颜色", params[i].color.colorStops[0].color)
+ var marker =
+ '';
+ // 根据不同的seriesName 返回不同的单位
+ if (seriesName.includes("用水量")) {
+ res +=
+ marker +
+ seriesName +
+ ":" +
+ '' +
+ value +
+ " " +
+ "吨" +
+ "
";
+ } else if (seriesName.includes("用电量")) {
+ res +=
+ marker +
+ seriesName +
+ ":" +
+ '' +
+ value +
+ " " +
+ "度" +
+ "
";
+ } else if (seriesName.includes("单耗")) {
+ res +=
+ marker +
+ seriesName +
+ ":" +
+ '' +
+ value +
+ " " +
+ "度/吨" +
+ "
";
+ } else {
+ res +=
+ marker +
+ seriesName +
+ ":" +
+ '' +
+ value +
+ " " +
+ "%" +
+ "
";
+ }
+ }
+ return res;
+ },
},
legend: {
// 折柱混合的图表,不显示icon,图例就可以根据不同的类型不同
@@ -440,7 +517,7 @@ export default {
color: "#ffff",
fontSize: 12, //这里改字体大小
},
- left: "56%",
+ left: "center",
top: "5%",
//图例距离饼图的距离
itemGap: 5,
@@ -542,67 +619,55 @@ export default {
barWidth: 10, // 柱子宽度
//折线颜色
itemStyle: {
- color: "#db9215",
- lineStyle: {
- color: "#db9215", //折线的颜色
+ color: "#0b75d3",
+ // 使用颜色渐变
+ color: {
+ type: "linear",
+ x: 0,
+ y: 0,
+ x2: 0,
+ y2: 1,
+ colorStops: [
+ {
+ offset: 0,
+ color: "rgba(1, 102, 251, 1)", // 起始颜色
+ },
+ {
+ offset: 1,
+ color: "rgba(1, 102, 251, 0)", // 结束颜色
+ },
+ ],
+ global: false, // 缺省为 false
},
+ borderRadius: [5, 5, 0, 0], // 分别对应左上、右上、右下、左下的圆角半径
},
},
{
type: "bar",
- // tooltip: {
- // valueFormatter: function (value) {
- // return value + "吨";
- // },
- // },
- tooltip: {
- trigger: "axis",
- formatter: function (params) {
- //数据单位格式化
- var relVal = params[0].name; //x轴名称
- if (params[0].seriesName == "2022年用水量") {
- relVal =
- params[0].name +
- "
" +
- params[0].seriesName +
- " : " +
- params[0].value +
- " 吨";
- } else if (params[0].seriesName == "用电量") {
- relVal =
- params[0].name +
- "
" +
- params[0].seriesName +
- " : " +
- params[0].value +
- " 度";
- } else if (params[0].seriesName == "耗能") {
- relVal =
- params[0].name +
- "
" +
- params[0].seriesName +
- " : " +
- params[0].value +
- " 度/吨";
- } else {
- relVal =
- params[0].name +
- "
" +
- params[0].seriesName +
- " : " +
- params[0].value +
- " 次";
- }
- return relVal;
- },
- },
barWidth: 10, // 柱子宽度
//折线颜色
itemStyle: {
- color: "#1ab395",
- lineStyle: {
- color: "#1ab395", //折线的颜色
+ color: "#0b75d3",
+ // 使用颜色渐变
+ color: {
+ type: "linear",
+ x: 0,
+ y: 0,
+ x2: 0,
+ y2: 1,
+ colorStops: [
+ {
+ offset: 0,
+ color: "rgba(0, 224, 225, 1)", // 起始颜色
+ },
+ {
+ offset: 1,
+ color: "rgba(0, 224, 225, 0)", // 结束颜色
+ },
+ ],
+ global: false, // 缺省为 false
},
+ borderRadius: [5, 5, 0, 0],
},
},
{
@@ -622,10 +687,27 @@ export default {
// data: this.data3,
//折线颜色
itemStyle: {
- color: "#e23131",
- lineStyle: {
- color: "#e23131", //折线的颜色
+ color: "#db9215",
+ // 使用颜色渐变
+ color: {
+ type: "linear",
+ x: 0,
+ y: 0,
+ x2: 0,
+ y2: 1,
+ colorStops: [
+ {
+ offset: 0,
+ color: "#db9215", // 起始颜色
+ },
+ {
+ offset: 1,
+ color: "#db9215", // 结束颜色
+ },
+ ],
+ global: false, // 缺省为 false
},
+ borderRadius: [5, 5, 0, 0], // 分别对应左上、右上、右下、左下的圆角半径
},
},
{
@@ -646,9 +728,27 @@ export default {
// data: this.data4,
//折线颜色
itemStyle: {
- color: "#4a98ff",
+ color: "#EE5217", //折线点的颜色
+ color: {
+ type: "linear",
+ x: 0,
+ y: 0,
+ x2: 0,
+ y2: 1,
+ colorStops: [
+ {
+ offset: 0,
+ color: "#EE5217", // 起始颜色
+ },
+ {
+ offset: 1,
+ color: "#EE5217", // 结束颜色
+ },
+ ],
+ global: false, // 缺省为 false
+ },
lineStyle: {
- color: "#4a98ff", //折线的颜色
+ color: "#EE5217", //折线的颜色
},
},
},
diff --git a/src/views/hotWater/energyAnalysis/components/energyReport.vue b/src/views/hotWater/energyAnalysis/components/energyReport.vue
index 7d628d8..32d6880 100644
--- a/src/views/hotWater/energyAnalysis/components/energyReport.vue
+++ b/src/views/hotWater/energyAnalysis/components/energyReport.vue
@@ -11,13 +11,13 @@
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+