`;
+ for (const item of params) {
+ const { seriesName, data } = item;
+ str += `
${
+ item.marker
+ }${seriesName}: ${data} ${
+ utilService.getTargetItemByKey(energyMap, seriesName, 'name')?.unit || ''
+ }
`;
+ }
+ return str + '
';
+ }
+ return '';
+ },
+ },
+ legend: {
+ right: 15,
+ textStyle: {
+ color: '#fff',
+ },
+ },
+ xAxis: {
+ name: '(时)',
+ type: 'category',
+ data: xAxisData,
+ axisLine: { lineStyle: { color: '#fff' } },
+ axisLabel: { fontSize: 10 },
+ },
+ yAxis: {
+ type: 'value',
+ axisLine: { lineStyle: { color: '#fff' }, show: true },
+ splitLine: { lineStyle: { type: 'dashed', color: 'rgba(255,255,255,0.3)' } },
+ },
+ series: seriesData,
+ };
+};
diff --git a/src/views/dashboard/common/style.ts b/src/views/dashboard/common/style.ts
index 4414327..1efeef6 100644
--- a/src/views/dashboard/common/style.ts
+++ b/src/views/dashboard/common/style.ts
@@ -285,5 +285,5 @@ export const init = (state: IObject, target: HTMLElement): void => {
initLine();
initCloseToolTip();
- state.dragStretch = new dragStretchService(target);
+ state.dragStretch = new dragStretchService(target, state.opt);
};
diff --git a/src/views/dashboard/comp/block.vue b/src/views/dashboard/comp/block.vue
index 65c908c..8907b27 100644
--- a/src/views/dashboard/comp/block.vue
+++ b/src/views/dashboard/comp/block.vue
@@ -1,5 +1,5 @@