|
@@ -411,39 +411,6 @@ const funCurrentChange = ({ current, currentNode }) => {
|
|
|
const funText = (index) => {
|
|
|
let str = "";
|
|
|
switch (index) {
|
|
|
- // case 0:
|
|
|
- // str = '0-2.5'
|
|
|
- // break
|
|
|
- // case 1:
|
|
|
- // str = '2.5-5'
|
|
|
- // break
|
|
|
- // case 2:
|
|
|
- // str = '5-7.5'
|
|
|
- // break
|
|
|
- // case 3:
|
|
|
- // str = '7.5-10'
|
|
|
- // break
|
|
|
- // case 4:
|
|
|
- // str = '10-12.5'
|
|
|
- // break
|
|
|
- // case 5:
|
|
|
- // str = '12.5-15'
|
|
|
- // break
|
|
|
- // case 6:
|
|
|
- // str = '15-17.5'
|
|
|
- // break
|
|
|
- // case 7:
|
|
|
- // str = '17.5-20'
|
|
|
- // break
|
|
|
- // case 8:
|
|
|
- // str = '20-22.5'
|
|
|
- // break
|
|
|
- // case 9:
|
|
|
- // str = '22.5-25'
|
|
|
- // break
|
|
|
- // case 10:
|
|
|
- // str = '25-inf'
|
|
|
- // break
|
|
|
case 0:
|
|
|
str = "0-3";
|
|
|
break;
|
|
@@ -485,7 +452,6 @@ const funSubmit = async () => {
|
|
|
// const lineRes = lineChartRes
|
|
|
if (rosesRes.code === 200) {
|
|
|
if (rosesRes.data.length) {
|
|
|
- // console.log(rosesRes.data)
|
|
|
chartData.value = [];
|
|
|
for (const chart of rosesRes.data) {
|
|
|
chartData.value.push({
|
|
@@ -568,12 +534,9 @@ const funSubmit = async () => {
|
|
|
}),
|
|
|
{
|
|
|
type: "radar",
|
|
|
- // coordinateSystem: 'polar',
|
|
|
tooltip: {
|
|
|
trigger: "item",
|
|
|
},
|
|
|
- // smooth: true,
|
|
|
- // areaStyle: {},
|
|
|
name: "对风",
|
|
|
data: [
|
|
|
{
|
|
@@ -605,6 +568,7 @@ const funSubmit = async () => {
|
|
|
return [o.x + "", o.y];
|
|
|
});
|
|
|
const lineSeriseMax = Math.max(...lineRes.data[0].count);
|
|
|
+ const lineSeriseMaxIndex = lineRes.data[0].count.indexOf(lineSeriseMax);
|
|
|
lineSeries.value = [
|
|
|
{
|
|
|
name: "对风频次",
|
|
@@ -615,13 +579,19 @@ const funSubmit = async () => {
|
|
|
data: lineRes.data[0].count,
|
|
|
yAxisIndex: 1,
|
|
|
markLine: {
|
|
|
+ symbol: "none",
|
|
|
+ label: {
|
|
|
+ show: false,
|
|
|
+ },
|
|
|
+ lineStyle: {
|
|
|
+ color: "#F72C5B",
|
|
|
+ width: "3",
|
|
|
+ },
|
|
|
+ large: true,
|
|
|
data: [
|
|
|
{
|
|
|
- yAxis: maxValue,
|
|
|
- label: {
|
|
|
- show: false,
|
|
|
- formatter: "最高频次: {value}",
|
|
|
- },
|
|
|
+ // name: `平均偏航:${chart.frequency.avg}度`,
|
|
|
+ xAxis: lineSeriseMaxIndex,
|
|
|
},
|
|
|
],
|
|
|
},
|
|
@@ -1055,17 +1025,6 @@ const funDiaSubmit = async () => {
|
|
|
data: chart.count,
|
|
|
yAxisIndex: 1,
|
|
|
large: true,
|
|
|
- markLine: {
|
|
|
- data: [
|
|
|
- {
|
|
|
- yAxis: Math.max(chart.count),
|
|
|
- label: {
|
|
|
- show: false,
|
|
|
- formatter: "最高频次: {value}",
|
|
|
- },
|
|
|
- },
|
|
|
- ],
|
|
|
- },
|
|
|
},
|
|
|
{
|
|
|
type: "effectScatter",
|
|
@@ -1317,12 +1276,9 @@ const initPageData = () => {
|
|
|
}),
|
|
|
{
|
|
|
type: "radar",
|
|
|
- // coordinateSystem: 'polar',
|
|
|
tooltip: {
|
|
|
trigger: "item",
|
|
|
},
|
|
|
- // smooth: true,
|
|
|
- // areaStyle: {},
|
|
|
name: "对风",
|
|
|
data: [
|
|
|
{
|
|
@@ -1349,7 +1305,10 @@ const initPageData = () => {
|
|
|
lineDataSet.value[0].source = jsonData.ratioData[0].scatter.map((o) => {
|
|
|
return [o.x + "", o.y];
|
|
|
});
|
|
|
+
|
|
|
const lineSeriseMax = Math.max(...jsonData.ratioData[0].count);
|
|
|
+ const lineSeriseMaxIndex =
|
|
|
+ jsonData.ratioData[0].count.indexOf(lineSeriseMax);
|
|
|
|
|
|
lineSeries.value = [
|
|
|
{
|
|
@@ -1361,13 +1320,19 @@ const initPageData = () => {
|
|
|
data: jsonData.ratioData[0].count,
|
|
|
yAxisIndex: 1,
|
|
|
markLine: {
|
|
|
+ symbol: "none",
|
|
|
+ label: {
|
|
|
+ show: false,
|
|
|
+ },
|
|
|
+ lineStyle: {
|
|
|
+ color: "#F72C5B",
|
|
|
+ width: "3",
|
|
|
+ },
|
|
|
+ large: true,
|
|
|
data: [
|
|
|
{
|
|
|
- yAxis: lineSeriseMax,
|
|
|
- label: {
|
|
|
- show: false,
|
|
|
- formatter: "最高频次: {value}",
|
|
|
- },
|
|
|
+ // name: `平均偏航:${chart.frequency.avg}度`,
|
|
|
+ xAxis: lineSeriseMaxIndex,
|
|
|
},
|
|
|
],
|
|
|
},
|