完善星座图和载噪比视图布局
parent
b6c21343f3
commit
a2f3fd60ec
|
@ -3,16 +3,16 @@
|
||||||
<TheHeader />
|
<TheHeader />
|
||||||
|
|
||||||
<div class="main-content flex-1 grid grid-cols-2 grid-rows-2">
|
<div class="main-content flex-1 grid grid-cols-2 grid-rows-2">
|
||||||
<div class="">
|
<div>
|
||||||
<PlanisphereView title="北斗" />
|
<PlanisphereView title="北斗" />
|
||||||
</div>
|
</div>
|
||||||
<div class="">
|
<div>
|
||||||
<PlanisphereView title="GPS" />
|
<PlanisphereView title="GPS" />
|
||||||
</div>
|
</div>
|
||||||
<div class="">
|
<div>
|
||||||
<PlanisphereView title="格洛纳斯" />
|
<PlanisphereView title="格洛纳斯" />
|
||||||
</div>
|
</div>
|
||||||
<div class="">
|
<div>
|
||||||
<PlanisphereView title="伽利略" />
|
<PlanisphereView title="伽利略" />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -2,18 +2,18 @@
|
||||||
<full-screen-container>
|
<full-screen-container>
|
||||||
<TheHeader />
|
<TheHeader />
|
||||||
|
|
||||||
<div class="main-content flex flex-wrap flex-1">
|
<div class="main-content flex-1 grid grid-cols-2 grid-rows-2">
|
||||||
<div class="w-1/2 h/1/2">
|
<div>
|
||||||
<PlanisphereView />
|
<SNRView title="北斗" />
|
||||||
</div>
|
</div>
|
||||||
<div class="w-1/2 h/1/2">
|
<div>
|
||||||
<PlanisphereView />
|
<SNRView title="GPS" />
|
||||||
</div>
|
</div>
|
||||||
<div class="w-1/2 h/1/2">
|
<div>
|
||||||
<PlanisphereView />
|
<SNRView title="格洛纳斯" />
|
||||||
</div>
|
</div>
|
||||||
<div class="w-1/2 h/1/2">
|
<div>
|
||||||
<PlanisphereView />
|
<SNRView title="伽利略" />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</full-screen-container>
|
</full-screen-container>
|
||||||
|
|
|
@ -23,13 +23,12 @@ use([
|
||||||
|
|
||||||
const props = defineProps({
|
const props = defineProps({
|
||||||
title: String
|
title: String
|
||||||
})
|
})
|
||||||
|
|
||||||
const option = reactive({
|
const option = reactive({
|
||||||
title: {
|
title: {
|
||||||
text: props.title,
|
text: props.title,
|
||||||
left: 'center'
|
left: 'center'
|
||||||
// textAlign: 'center'
|
|
||||||
},
|
},
|
||||||
polar: {
|
polar: {
|
||||||
radius: '75%'
|
radius: '75%'
|
||||||
|
|
|
@ -9,17 +9,22 @@ import { reactive } from "vue"
|
||||||
import { use, graphic } from "echarts/core";
|
import { use, graphic } from "echarts/core";
|
||||||
import { CanvasRenderer } from "echarts/renderers";
|
import { CanvasRenderer } from "echarts/renderers";
|
||||||
import { BarChart } from "echarts/charts";
|
import { BarChart } from "echarts/charts";
|
||||||
import { GridComponent } from "echarts/components";
|
import { TitleComponent, GridComponent } from "echarts/components";
|
||||||
import VChart from "vue-echarts";
|
import VChart from "vue-echarts";
|
||||||
import utils from '../api/utils'
|
import { get_in_positioning_id } from '../api/util'
|
||||||
|
|
||||||
|
|
||||||
use([
|
use([
|
||||||
CanvasRenderer,
|
CanvasRenderer,
|
||||||
BarChart,
|
BarChart,
|
||||||
|
TitleComponent,
|
||||||
GridComponent
|
GridComponent
|
||||||
]);
|
]);
|
||||||
|
|
||||||
|
const props = defineProps({
|
||||||
|
title: String
|
||||||
|
})
|
||||||
|
|
||||||
const BAR_COUNT = 16
|
const BAR_COUNT = 16
|
||||||
const UN_POSITIONING_COLOR = '#9ca3af'
|
const UN_POSITIONING_COLOR = '#9ca3af'
|
||||||
const IN_POSITIONING_COLOR = new graphic.LinearGradient(
|
const IN_POSITIONING_COLOR = new graphic.LinearGradient(
|
||||||
|
@ -31,6 +36,10 @@ const IN_POSITIONING_COLOR = new graphic.LinearGradient(
|
||||||
)
|
)
|
||||||
|
|
||||||
const option = reactive({
|
const option = reactive({
|
||||||
|
title: {
|
||||||
|
text: props.title,
|
||||||
|
left: 'center'
|
||||||
|
},
|
||||||
grid: {
|
grid: {
|
||||||
containLabel: true
|
containLabel: true
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue