|
@@ -295,8 +295,10 @@ 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('_'));
|
|
|
|
|
|
+ tableShowId.value = obj.id;
|
|
|
|
+ tableName.value = obj.code
|
|
|
|
+ ? obj.code
|
|
|
|
+ : obj.name.substring(0, obj.name.indexOf("_"));
|
|
tableFilePath.value = obj.path;
|
|
tableFilePath.value = obj.path;
|
|
chartExcelList.value = excelList.value.map((o) => {
|
|
chartExcelList.value = excelList.value.map((o) => {
|
|
return {
|
|
return {
|
|
@@ -364,7 +366,7 @@ const funGetTree = async () => {
|
|
funExcelChange({
|
|
funExcelChange({
|
|
id: actTreeNode.value.childs[0].id,
|
|
id: actTreeNode.value.childs[0].id,
|
|
code: actTreeNode.value.childs[0].code,
|
|
code: actTreeNode.value.childs[0].code,
|
|
- path: actTreeNode.value.childs[0].path
|
|
|
|
|
|
+ path: actTreeNode.value.childs[0].path,
|
|
});
|
|
});
|
|
currentNodeKey.value = actTreeNode.value?.id || "";
|
|
currentNodeKey.value = actTreeNode.value?.id || "";
|
|
}
|
|
}
|
|
@@ -528,9 +530,9 @@ const funSubmit = async () => {
|
|
show: true,
|
|
show: true,
|
|
},
|
|
},
|
|
},
|
|
},
|
|
- series: chart.count.length
|
|
|
|
|
|
+ series: chart.roses.length
|
|
? [
|
|
? [
|
|
- ...chart.count.map((o, index) => {
|
|
|
|
|
|
+ ...chart.roses.map((o, index) => {
|
|
return {
|
|
return {
|
|
type: "bar",
|
|
type: "bar",
|
|
data: o,
|
|
data: o,
|
|
@@ -556,6 +558,7 @@ const funSubmit = async () => {
|
|
},
|
|
},
|
|
]
|
|
]
|
|
: [],
|
|
: [],
|
|
|
|
+ count: chart.count || [],
|
|
});
|
|
});
|
|
chartId++;
|
|
chartId++;
|
|
scatterSeries.value[0].data = chart.frequency.data.length
|
|
scatterSeries.value[0].data = chart.frequency.data.length
|
|
@@ -974,9 +977,9 @@ const funDiaSubmit = async () => {
|
|
},
|
|
},
|
|
},
|
|
},
|
|
isRadar: true,
|
|
isRadar: true,
|
|
- series: chart.count.length
|
|
|
|
|
|
+ series: chart.roses.length
|
|
? [
|
|
? [
|
|
- ...chart.count.map((o, index) => {
|
|
|
|
|
|
+ ...chart.roses.map((o, index) => {
|
|
return {
|
|
return {
|
|
type: "bar",
|
|
type: "bar",
|
|
data: o,
|
|
data: o,
|
|
@@ -1005,6 +1008,7 @@ const funDiaSubmit = async () => {
|
|
},
|
|
},
|
|
]
|
|
]
|
|
: [],
|
|
: [],
|
|
|
|
+ count: chart.count || [],
|
|
});
|
|
});
|
|
chartId++;
|
|
chartId++;
|
|
}
|
|
}
|
|
@@ -1176,11 +1180,11 @@ const initPageData = () => {
|
|
const obj = {
|
|
const obj = {
|
|
id: actTreeNode.value.childs[0].id,
|
|
id: actTreeNode.value.childs[0].id,
|
|
code: actTreeNode.value.childs[0].code,
|
|
code: actTreeNode.value.childs[0].code,
|
|
- path: actTreeNode.value.childs[0].path
|
|
|
|
|
|
+ path: actTreeNode.value.childs[0].path,
|
|
};
|
|
};
|
|
|
|
|
|
excelCheckIds.value = [obj.id]; //当为单选展示风机图表时
|
|
excelCheckIds.value = [obj.id]; //当为单选展示风机图表时
|
|
- tableShowId.value = obj.id
|
|
|
|
|
|
+ tableShowId.value = obj.id;
|
|
tableName.value = obj.code;
|
|
tableName.value = obj.code;
|
|
tableFilePath.value = obj.path;
|
|
tableFilePath.value = obj.path;
|
|
chartExcelList.value = excelList.value.map((o) => {
|
|
chartExcelList.value = excelList.value.map((o) => {
|
|
@@ -1244,56 +1248,6 @@ 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,
|
|
@@ -1356,67 +1310,6 @@ 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) => {
|