|
@@ -1,27 +1,27 @@
|
|
|
<!-- eslint-disable vue/multi-word-component-names -->
|
|
|
<template>
|
|
|
- <CostumeHeader :api="fetchOptions" @change="selectDeviceByID">
|
|
|
+ <!-- <CostumeHeader :api="fetchOptions" @change="selectDeviceByID">
|
|
|
<div class="w-200px flex flex-items-center">
|
|
|
<RightCircleOutlined class="w-30px" />
|
|
|
<div class="flex-grow-1">
|
|
|
{{ selectedDevice.strinstallpos }}
|
|
|
</div>
|
|
|
</div>
|
|
|
- </CostumeHeader>
|
|
|
- <Bar
|
|
|
+ </CostumeHeader> -->
|
|
|
+ <PictorialBar
|
|
|
:option="chartOption"
|
|
|
series-prop-type="valueA"
|
|
|
x-axis-prop-type="x"
|
|
|
:chart-data="[
|
|
|
{ valueA: 1, valueB: 1, x: 2 },
|
|
|
+ { valueA: 1, valueB: 1, x: 3 },
|
|
|
{ valueA: 1, valueB: 1, x: 4 },
|
|
|
- { valueA: 1, valueB: 1, x: 4 },
|
|
|
- { valueA: 1, valueB: 1, x: 4 },
|
|
|
- { valueA: 2, valueB: 2, x: 4 },
|
|
|
- { valueA: 3, valueB: 1, x: 4 },
|
|
|
- { valueA: 1, valueB: 1, x: 4 },
|
|
|
+ { valueA: 1, valueB: 1, x: 5 },
|
|
|
+ { valueA: 2, valueB: 2, x: 6 },
|
|
|
+ { valueA: 3, valueB: 1, x: 7 },
|
|
|
+ { valueA: 1, valueB: 1, x: 8 },
|
|
|
]"
|
|
|
- height="220px"
|
|
|
+ height="100%"
|
|
|
/>
|
|
|
<!-- <div class="flex justify-around mt-10px">
|
|
|
<MiniBoard v-for="item in configs" :key="item.prop" :label="item.label" :value="selectedDevice[item.prop]" />
|
|
@@ -33,7 +33,7 @@
|
|
|
import { list } from '@/views/vent/deviceManager/deviceTable/device.api';
|
|
|
import CostumeHeader from './CostumeHeader.vue';
|
|
|
import { RightCircleOutlined } from '@ant-design/icons-vue';
|
|
|
- import Bar from '/@/components/chart/Bar.vue';
|
|
|
+ import PictorialBar from '/@/components/chart/PictorialBar.vue';
|
|
|
import { EChartsOption, graphic } from 'echarts';
|
|
|
// import MiniBoard from './MiniBoard.vue';
|
|
|
// import mapComponent from './components/3Dmap/index.vue';
|
|
@@ -81,6 +81,10 @@
|
|
|
|
|
|
// 图表相关
|
|
|
const chartOption: EChartsOption = {
|
|
|
+ grid: {
|
|
|
+ top: 50,
|
|
|
+ height: 150,
|
|
|
+ },
|
|
|
yAxis: {
|
|
|
splitLine: {
|
|
|
lineStyle: {
|
|
@@ -89,18 +93,35 @@
|
|
|
},
|
|
|
},
|
|
|
},
|
|
|
+ legend: { show: false },
|
|
|
series: [
|
|
|
{
|
|
|
- name: 'bar',
|
|
|
+ type: 'pictorialBar',
|
|
|
+ name: 'pictorial element',
|
|
|
+ symbol: 'circle',
|
|
|
+ symbolPosition: 'end',
|
|
|
+ symbolSize: [16, 16],
|
|
|
+ symbolOffset: [0, -8],
|
|
|
+ itemStyle: {
|
|
|
+ color: '#66ffff',
|
|
|
+ },
|
|
|
+ data: [],
|
|
|
+ },
|
|
|
+ {
|
|
|
+ name: 'reference bar',
|
|
|
type: 'bar',
|
|
|
+ silent: true,
|
|
|
itemStyle: {
|
|
|
color: new graphic.LinearGradient(0, 0, 0, 1, [
|
|
|
- { offset: 0, color: '#0091ffff' },
|
|
|
- { offset: 1, color: '#0091ff44' },
|
|
|
+ { offset: 0, color: '#66ffff' },
|
|
|
+ { offset: 0.2, color: '#66ffff' },
|
|
|
+ { offset: 1, color: '#66ffff22' },
|
|
|
]),
|
|
|
- borderRadius: [50, 50, 0, 0],
|
|
|
},
|
|
|
- barWidth: 20,
|
|
|
+ tooltip: {
|
|
|
+ show: false,
|
|
|
+ },
|
|
|
+ barWidth: 8,
|
|
|
data: [],
|
|
|
},
|
|
|
],
|