|
@@ -39,8 +39,9 @@
|
|
:column="tableColumn"
|
|
:column="tableColumn"
|
|
:theme="theme"
|
|
:theme="theme"
|
|
:height="tableHeight"
|
|
:height="tableHeight"
|
|
- tableId="1"
|
|
|
|
- tableName="对风偏差分析"
|
|
|
|
|
|
+ :tableId="tableShowId"
|
|
|
|
+ :tableName="tableName"
|
|
|
|
+ :tableFilePath="tableFilePath"
|
|
></table-cop>
|
|
></table-cop>
|
|
</div>
|
|
</div>
|
|
<el-row v-if="activeTab === '1'" :style="{ height: tableHeight }">
|
|
<el-row v-if="activeTab === '1'" :style="{ height: tableHeight }">
|
|
@@ -223,7 +224,7 @@
|
|
<div v-loading="exportLoading">
|
|
<div v-loading="exportLoading">
|
|
<el-row
|
|
<el-row
|
|
ref="diaPanelRef"
|
|
ref="diaPanelRef"
|
|
- style="height: 650px; overflow-y: auto; overflow-x: hidden"
|
|
|
|
|
|
+ style="height: 650px; overflow-y: auto; over-x: hidden"
|
|
>
|
|
>
|
|
<el-col
|
|
<el-col
|
|
:span="actCopList.length > 1 ? 12 : 24"
|
|
:span="actCopList.length > 1 ? 12 : 24"
|
|
@@ -247,7 +248,6 @@
|
|
:yAxis="item.yAxis"
|
|
:yAxis="item.yAxis"
|
|
:dataset="item.dataset"
|
|
:dataset="item.dataset"
|
|
:brush="item.isBrush"
|
|
:brush="item.isBrush"
|
|
- :count="item.count || []"
|
|
|
|
@getSelected="funChartSelect"
|
|
@getSelected="funChartSelect"
|
|
></component>
|
|
></component>
|
|
</el-col>
|
|
</el-col>
|
|
@@ -288,10 +288,16 @@ const tableHeight = ref(window.innerHeight - 170 + "px");
|
|
const activeTab = ref("1");
|
|
const activeTab = ref("1");
|
|
const excelCheckIds = ref([]);
|
|
const excelCheckIds = ref([]);
|
|
const excelList = ref([]);
|
|
const excelList = ref([]);
|
|
|
|
+const tableShowId = ref("");
|
|
|
|
+const tableName = ref("");
|
|
|
|
+const tableFilePath = ref("");
|
|
const currentNodeKey = ref("");
|
|
const currentNodeKey = ref("");
|
|
//点击excel项时
|
|
//点击excel项时
|
|
const funExcelChange = async (obj) => {
|
|
const funExcelChange = async (obj) => {
|
|
excelCheckIds.value = [obj.id]; //当为单选展示风机图表时
|
|
excelCheckIds.value = [obj.id]; //当为单选展示风机图表时
|
|
|
|
+ tableShowId.value = obj.id
|
|
|
|
+ tableName.value = obj.code ? obj.code : obj.name.substring(0, obj.name.indexOf('_'));
|
|
|
|
+ tableFilePath.value = obj.path;
|
|
chartExcelList.value = excelList.value.map((o) => {
|
|
chartExcelList.value = excelList.value.map((o) => {
|
|
return {
|
|
return {
|
|
...o,
|
|
...o,
|
|
@@ -357,6 +363,8 @@ const funGetTree = async () => {
|
|
});
|
|
});
|
|
funExcelChange({
|
|
funExcelChange({
|
|
id: actTreeNode.value.childs[0].id,
|
|
id: actTreeNode.value.childs[0].id,
|
|
|
|
+ code: actTreeNode.value.childs[0].code,
|
|
|
|
+ path: actTreeNode.value.childs[0].path
|
|
});
|
|
});
|
|
currentNodeKey.value = actTreeNode.value?.id || "";
|
|
currentNodeKey.value = actTreeNode.value?.id || "";
|
|
}
|
|
}
|
|
@@ -456,7 +464,6 @@ const funSubmit = async () => {
|
|
if (rosesRes.data.length) {
|
|
if (rosesRes.data.length) {
|
|
chartData.value = [];
|
|
chartData.value = [];
|
|
for (const chart of rosesRes.data) {
|
|
for (const chart of rosesRes.data) {
|
|
- // 风速风向玫瑰图左侧
|
|
|
|
chartData.value.push({
|
|
chartData.value.push({
|
|
id: chartId,
|
|
id: chartId,
|
|
title: "",
|
|
title: "",
|
|
@@ -464,24 +471,7 @@ const funSubmit = async () => {
|
|
xAxis: {
|
|
xAxis: {
|
|
type: "category",
|
|
type: "category",
|
|
boundaryGap: false,
|
|
boundaryGap: false,
|
|
- data: [
|
|
|
|
- "北",
|
|
|
|
- "",
|
|
|
|
- "东北",
|
|
|
|
- "",
|
|
|
|
- "东",
|
|
|
|
- "",
|
|
|
|
- "东南",
|
|
|
|
- "",
|
|
|
|
- "南",
|
|
|
|
- "",
|
|
|
|
- "西南",
|
|
|
|
- "",
|
|
|
|
- "西",
|
|
|
|
- "",
|
|
|
|
- "西北",
|
|
|
|
- "",
|
|
|
|
- ],
|
|
|
|
|
|
+ data: ["北", "东北", "东", "东南", "南", "西南", "西", "西北"],
|
|
splitLine: {
|
|
splitLine: {
|
|
show: true,
|
|
show: true,
|
|
},
|
|
},
|
|
@@ -506,7 +496,6 @@ const funSubmit = async () => {
|
|
coordinateSystem: "polar",
|
|
coordinateSystem: "polar",
|
|
name: "方位风速",
|
|
name: "方位风速",
|
|
},
|
|
},
|
|
- count: chart.ys || [],
|
|
|
|
});
|
|
});
|
|
chartId++;
|
|
chartId++;
|
|
chartData.value.push({
|
|
chartData.value.push({
|
|
@@ -539,9 +528,9 @@ const funSubmit = async () => {
|
|
show: true,
|
|
show: true,
|
|
},
|
|
},
|
|
},
|
|
},
|
|
- series: chart.roses.length
|
|
|
|
|
|
+ series: chart.count.length
|
|
? [
|
|
? [
|
|
- ...chart.roses.map((o, index) => {
|
|
|
|
|
|
+ ...chart.count.map((o, index) => {
|
|
return {
|
|
return {
|
|
type: "bar",
|
|
type: "bar",
|
|
data: o,
|
|
data: o,
|
|
@@ -551,7 +540,6 @@ const funSubmit = async () => {
|
|
emphasis: {
|
|
emphasis: {
|
|
focus: "series",
|
|
focus: "series",
|
|
},
|
|
},
|
|
- coordinateSystem: "polar",
|
|
|
|
};
|
|
};
|
|
}),
|
|
}),
|
|
{
|
|
{
|
|
@@ -568,7 +556,6 @@ const funSubmit = async () => {
|
|
},
|
|
},
|
|
]
|
|
]
|
|
: [],
|
|
: [],
|
|
- count: chart.count || [],
|
|
|
|
});
|
|
});
|
|
chartId++;
|
|
chartId++;
|
|
scatterSeries.value[0].data = chart.frequency.data.length
|
|
scatterSeries.value[0].data = chart.frequency.data.length
|
|
@@ -900,7 +887,6 @@ const funDiaSubmit = async () => {
|
|
if (res.data.length) {
|
|
if (res.data.length) {
|
|
for (const chart of res.data) {
|
|
for (const chart of res.data) {
|
|
if (actChartName.value === "chartCop1") {
|
|
if (actChartName.value === "chartCop1") {
|
|
- // 弹窗展示内容
|
|
|
|
actCopList.value.push({
|
|
actCopList.value.push({
|
|
id: chartId,
|
|
id: chartId,
|
|
isBrush: false,
|
|
isBrush: false,
|
|
@@ -933,13 +919,25 @@ const funDiaSubmit = async () => {
|
|
},
|
|
},
|
|
},
|
|
},
|
|
isRadar: false,
|
|
isRadar: false,
|
|
- series: {
|
|
|
|
- type: "bar",
|
|
|
|
- data: chart.roses,
|
|
|
|
- coordinateSystem: "polar",
|
|
|
|
- name: "方位风速",
|
|
|
|
- },
|
|
|
|
- count: chart.ys || [],
|
|
|
|
|
|
+ series:
|
|
|
|
+ // chart.roses.length ? chart.roses.map((o, index) => {
|
|
|
|
+ // return {
|
|
|
|
+ // type: 'bar',
|
|
|
|
+ // data: o,
|
|
|
|
+ // coordinateSystem: 'polar',
|
|
|
|
+ // name: funText(index),
|
|
|
|
+ // stack: 'a',
|
|
|
|
+ // emphasis: {
|
|
|
|
+ // focus: 'series'
|
|
|
|
+ // }
|
|
|
|
+ // }
|
|
|
|
+ // }) : []
|
|
|
|
+ {
|
|
|
|
+ type: "bar",
|
|
|
|
+ data: chart.roses,
|
|
|
|
+ coordinateSystem: "polar",
|
|
|
|
+ name: "方位风速",
|
|
|
|
+ },
|
|
});
|
|
});
|
|
chartId++;
|
|
chartId++;
|
|
}
|
|
}
|
|
@@ -976,9 +974,9 @@ const funDiaSubmit = async () => {
|
|
},
|
|
},
|
|
},
|
|
},
|
|
isRadar: true,
|
|
isRadar: true,
|
|
- series: chart.roses.length
|
|
|
|
|
|
+ series: chart.count.length
|
|
? [
|
|
? [
|
|
- ...chart.roses.map((o, index) => {
|
|
|
|
|
|
+ ...chart.count.map((o, index) => {
|
|
return {
|
|
return {
|
|
type: "bar",
|
|
type: "bar",
|
|
data: o,
|
|
data: o,
|
|
@@ -988,14 +986,16 @@ const funDiaSubmit = async () => {
|
|
emphasis: {
|
|
emphasis: {
|
|
focus: "series",
|
|
focus: "series",
|
|
},
|
|
},
|
|
- coordinateSystem: "polar",
|
|
|
|
};
|
|
};
|
|
}),
|
|
}),
|
|
{
|
|
{
|
|
type: "radar",
|
|
type: "radar",
|
|
|
|
+ // coordinateSystem: 'polar',
|
|
tooltip: {
|
|
tooltip: {
|
|
trigger: "item",
|
|
trigger: "item",
|
|
},
|
|
},
|
|
|
|
+ // smooth: true,
|
|
|
|
+ // areaStyle: {},
|
|
name: "对风",
|
|
name: "对风",
|
|
data: [
|
|
data: [
|
|
{
|
|
{
|
|
@@ -1005,7 +1005,6 @@ const funDiaSubmit = async () => {
|
|
},
|
|
},
|
|
]
|
|
]
|
|
: [],
|
|
: [],
|
|
- count: chart.count || [],
|
|
|
|
});
|
|
});
|
|
chartId++;
|
|
chartId++;
|
|
}
|
|
}
|
|
@@ -1030,9 +1029,9 @@ const funDiaSubmit = async () => {
|
|
{
|
|
{
|
|
name: "对风频次",
|
|
name: "对风频次",
|
|
type: "line",
|
|
type: "line",
|
|
- symbol: "line", // 设定为实心点
|
|
|
|
- symbolSize: 0, // 设定实心点的大小
|
|
|
|
- smooth: true, // 这个是把线变成曲线
|
|
|
|
|
|
+ symbol: "line", //设定为实心点
|
|
|
|
+ symbolSize: 0, //设定实心点的大小
|
|
|
|
+ smooth: true, //这个是把线变成曲线
|
|
data: chart.count,
|
|
data: chart.count,
|
|
yAxisIndex: 1,
|
|
yAxisIndex: 1,
|
|
large: true,
|
|
large: true,
|
|
@@ -1176,9 +1175,14 @@ const initPageData = () => {
|
|
|
|
|
|
const obj = {
|
|
const obj = {
|
|
id: actTreeNode.value.childs[0].id,
|
|
id: actTreeNode.value.childs[0].id,
|
|
|
|
+ code: actTreeNode.value.childs[0].code,
|
|
|
|
+ path: actTreeNode.value.childs[0].path
|
|
};
|
|
};
|
|
|
|
|
|
excelCheckIds.value = [obj.id]; //当为单选展示风机图表时
|
|
excelCheckIds.value = [obj.id]; //当为单选展示风机图表时
|
|
|
|
+ tableShowId.value = obj.id
|
|
|
|
+ tableName.value = obj.code;
|
|
|
|
+ tableFilePath.value = obj.path;
|
|
chartExcelList.value = excelList.value.map((o) => {
|
|
chartExcelList.value = excelList.value.map((o) => {
|
|
return {
|
|
return {
|
|
...o,
|
|
...o,
|
|
@@ -1240,6 +1244,56 @@ const initPageData = () => {
|
|
name: "方位风速",
|
|
name: "方位风速",
|
|
},
|
|
},
|
|
});
|
|
});
|
|
|
|
+ false &&
|
|
|
|
+ console.log(1111111111, {
|
|
|
|
+ id: chartId,
|
|
|
|
+ title: "",
|
|
|
|
+ subtext: "风速风向玫瑰图",
|
|
|
|
+ xAxis: {
|
|
|
|
+ type: "category",
|
|
|
|
+ boundaryGap: false,
|
|
|
|
+ data: [
|
|
|
|
+ "北",
|
|
|
|
+ "",
|
|
|
|
+ "东北",
|
|
|
|
+ "",
|
|
|
|
+ "东",
|
|
|
|
+ "",
|
|
|
|
+ "东南",
|
|
|
|
+ "",
|
|
|
|
+ "南",
|
|
|
|
+ "",
|
|
|
|
+ "西南",
|
|
|
|
+ "",
|
|
|
|
+ "西",
|
|
|
|
+ "",
|
|
|
|
+ "西北",
|
|
|
|
+ ],
|
|
|
|
+ splitLine: {
|
|
|
|
+ show: true,
|
|
|
|
+ },
|
|
|
|
+ },
|
|
|
|
+ isRadar: false,
|
|
|
|
+ series: chart.roses.length
|
|
|
|
+ ? chart.roses.map((o, index) => {
|
|
|
|
+ return {
|
|
|
|
+ type: "bar",
|
|
|
|
+ data: o,
|
|
|
|
+ coordinateSystem: "polar",
|
|
|
|
+ name: funText(index),
|
|
|
|
+ stack: "a",
|
|
|
|
+ emphasis: {
|
|
|
|
+ focus: "series",
|
|
|
|
+ },
|
|
|
|
+ };
|
|
|
|
+ })
|
|
|
|
+ : {
|
|
|
|
+ type: "bar",
|
|
|
|
+ data: chart.roses,
|
|
|
|
+ coordinateSystem: "polar",
|
|
|
|
+ name: "方位风速",
|
|
|
|
+ },
|
|
|
|
+ });
|
|
chartId++;
|
|
chartId++;
|
|
chartData.value.push({
|
|
chartData.value.push({
|
|
id: chartId,
|
|
id: chartId,
|
|
@@ -1302,6 +1356,67 @@ const initPageData = () => {
|
|
: [],
|
|
: [],
|
|
count: chart.count || [],
|
|
count: chart.count || [],
|
|
});
|
|
});
|
|
|
|
+ false &&
|
|
|
|
+ console.log(2222222222, {
|
|
|
|
+ id: chartId,
|
|
|
|
+ title: "",
|
|
|
|
+ subtext: "风速风向频次玫瑰图",
|
|
|
|
+ isRadar: true,
|
|
|
|
+ xAxis: {
|
|
|
|
+ type: "category",
|
|
|
|
+ boundaryGap: false,
|
|
|
|
+ data: [
|
|
|
|
+ "北",
|
|
|
|
+ "",
|
|
|
|
+ "东北",
|
|
|
|
+ "",
|
|
|
|
+ "东",
|
|
|
|
+ "",
|
|
|
|
+ "东南",
|
|
|
|
+ "",
|
|
|
|
+ "南",
|
|
|
|
+ "",
|
|
|
|
+ "西南",
|
|
|
|
+ "",
|
|
|
|
+ "西",
|
|
|
|
+ "",
|
|
|
|
+ "西北",
|
|
|
|
+ "",
|
|
|
|
+ ],
|
|
|
|
+ splitLine: {
|
|
|
|
+ show: true,
|
|
|
|
+ },
|
|
|
|
+ },
|
|
|
|
+ series: chart.count.length
|
|
|
|
+ ? [
|
|
|
|
+ ...chart.count.map((o, index) => {
|
|
|
|
+ return {
|
|
|
|
+ type: "bar",
|
|
|
|
+ data: o,
|
|
|
|
+ coordinateSystem: "polar",
|
|
|
|
+ name: funText(index),
|
|
|
|
+ stack: "a",
|
|
|
|
+ emphasis: {
|
|
|
|
+ focus: "series",
|
|
|
|
+ },
|
|
|
|
+ coordinateSystem: "polar",
|
|
|
|
+ };
|
|
|
|
+ }),
|
|
|
|
+ {
|
|
|
|
+ type: "radar",
|
|
|
|
+ tooltip: {
|
|
|
|
+ trigger: "item",
|
|
|
|
+ },
|
|
|
|
+ name: "对风",
|
|
|
|
+ data: [
|
|
|
|
+ {
|
|
|
|
+ value: chart.radar,
|
|
|
|
+ },
|
|
|
|
+ ],
|
|
|
|
+ },
|
|
|
|
+ ]
|
|
|
|
+ : [],
|
|
|
|
+ });
|
|
chartId++;
|
|
chartId++;
|
|
scatterSeries.value[0].data = chart.frequency.data.length
|
|
scatterSeries.value[0].data = chart.frequency.data.length
|
|
? chart.frequency.data.map((item) => {
|
|
? chart.frequency.data.map((item) => {
|