vue2-client 1.15.110 → 1.15.112
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.history/src/base-client/components/his/XChart/XChart_20250812134005.vue +160 -0
- package/.history/src/base-client/components/his/XChart/XChart_20250812134010.vue +160 -0
- package/.history/src/base-client/components/his/XChart/XChart_20250812134019.vue +160 -0
- package/.history/src/base-client/components/his/XChart/XChart_20250812134037.vue +160 -0
- package/.history/src/base-client/components/his/XChart/XChart_20250812134112.vue +160 -0
- package/.history/src/base-client/components/his/XChart/XChart_20250812134114.vue +160 -0
- package/.history/src/base-client/components/his/XChart/XChart_20250812134828.vue +148 -0
- package/.history/src/base-client/components/his/XChart/XChart_20250812134838.vue +155 -0
- package/.history/src/base-client/components/his/XChart/XChart_20250812134846.vue +155 -0
- package/.history/src/base-client/components/his/XChart/XChart_20250812134917.vue +155 -0
- package/.history/src/base-client/components/his/XChart/XChart_20250812151145.vue +149 -0
- package/.history/src/base-client/components/his/XChart/XChart_20250812151810.vue +153 -0
- package/.history/src/base-client/components/his/XChart/XChart_20250812151822.vue +153 -0
- package/.history/src/base-client/components/his/XChart/XChart_20250812151910.vue +153 -0
- package/.history/src/base-client/components/his/XChart/XChart_20250812152858.vue +258 -0
- package/.history/src/base-client/components/his/XChart/XChart_20250812152902.vue +258 -0
- package/.history/src/base-client/components/his/XChart/XChart_20250812152907.vue +258 -0
- package/.history/src/base-client/components/his/XChart/XChart_20250812152919.vue +258 -0
- package/.history/src/base-client/components/his/XChart/XChart_20250812153141.vue +269 -0
- package/.history/src/base-client/components/his/XChart/XChart_20250812153149.vue +276 -0
- package/.history/src/base-client/components/his/XChart/XChart_20250812153153.vue +276 -0
- package/.history/src/base-client/components/his/XChart/XChart_20250812153155.vue +276 -0
- package/.history/src/base-client/components/his/XChart/XChart_20250812153157.vue +276 -0
- package/.history/src/base-client/components/his/XChart/XChart_20250812153158.vue +276 -0
- package/.history/src/base-client/components/his/XChart/XChart_20250812153200.vue +276 -0
- package/.history/src/base-client/components/his/XChart/XChart_20250812153210.vue +276 -0
- package/.history/src/base-client/components/his/XChart/XChart_20250812153918.vue +275 -0
- package/.history/src/base-client/components/his/XChart/XChart_20250812154157.vue +280 -0
- package/.history/src/base-client/components/his/XChart/XChart_20250812154212.vue +280 -0
- package/.history/src/base-client/components/his/XChart/XChart_20250812154250.vue +280 -0
- package/.history/src/base-client/components/his/XChart/XChart_20250812154252.vue +280 -0
- package/.history/src/base-client/components/his/XChart/XChart_20250812154444.vue +280 -0
- package/package.json +1 -1
- package/src/base-client/components/common/XReportGrid/XReportTrGroup.vue +4 -3
- package/src/base-client/components/his/XChart/XChart.vue +282 -0
- package/src/base-client/components/his/XChart/dome.vue +19 -0
- package/src/router/async/router.map.js +1 -1
@@ -0,0 +1,160 @@
|
|
1
|
+
<template>
|
2
|
+
<div ref="main" :style="{width: config.width, height: config.height}">
|
3
|
+
</div>
|
4
|
+
</template>
|
5
|
+
|
6
|
+
<script>
|
7
|
+
import * as echarts from 'echarts'
|
8
|
+
import ecStat from 'echarts-stat'
|
9
|
+
import { getConfigByName, runLogic } from '@vue2-client/services/api/common'
|
10
|
+
|
11
|
+
export default {
|
12
|
+
name: 'XTable',
|
13
|
+
props: {
|
14
|
+
// 配置名
|
15
|
+
queryParamsName: {
|
16
|
+
type: String,
|
17
|
+
default: ''
|
18
|
+
},
|
19
|
+
// 服务名
|
20
|
+
serviceName: {
|
21
|
+
type: String,
|
22
|
+
default: 'af-his'
|
23
|
+
},
|
24
|
+
// 标准值
|
25
|
+
standardValue: {
|
26
|
+
type: Number,
|
27
|
+
default: 3.5
|
28
|
+
}
|
29
|
+
},
|
30
|
+
data () {
|
31
|
+
return {
|
32
|
+
data: [
|
33
|
+
[1, 3.176513],
|
34
|
+
[2, 3.816464],
|
35
|
+
[3, 4.119688],
|
36
|
+
[4, 4.282233],
|
37
|
+
[5, 4.655492],
|
38
|
+
[6, 3.965162],
|
39
|
+
[7, 3.5149],
|
40
|
+
[8, 3.125947],
|
41
|
+
[9, 3.44808],
|
42
|
+
[10, 3.16744],
|
43
|
+
[11, 3.620992],
|
44
|
+
[12, 4.641845],
|
45
|
+
[13, 3.175939]
|
46
|
+
],
|
47
|
+
// 配置项
|
48
|
+
config: {
|
49
|
+
width: '900px',
|
50
|
+
height: '700px'
|
51
|
+
}
|
52
|
+
}
|
53
|
+
},
|
54
|
+
mounted () {
|
55
|
+
this.renderChart()
|
56
|
+
},
|
57
|
+
methods: {
|
58
|
+
initDome (queryParamsName, parameter) {
|
59
|
+
getConfigByName(queryParamsName, 'af-his', async (res) => {
|
60
|
+
this.config = res
|
61
|
+
runLogic(res.data, parameter, 'af-his').then(result => {
|
62
|
+
this.data = result
|
63
|
+
this.renderChart()
|
64
|
+
})
|
65
|
+
})
|
66
|
+
},
|
67
|
+
// 渲染图表
|
68
|
+
renderChart () {
|
69
|
+
echarts.registerTransform(ecStat.transform.regression)
|
70
|
+
const chartDom = this.$refs.main
|
71
|
+
const myChart = echarts.init(chartDom)
|
72
|
+
|
73
|
+
// 生成标准值线的数据点
|
74
|
+
const xMin = Math.min(...this.data.map(item => item[0]))
|
75
|
+
const xMax = Math.max(...this.data.map(item => item[0]))
|
76
|
+
const standardLineData = [
|
77
|
+
[xMin, this.standardValue],
|
78
|
+
[xMax, this.standardValue]
|
79
|
+
]
|
80
|
+
|
81
|
+
const option = {
|
82
|
+
dataset: [
|
83
|
+
{
|
84
|
+
source: this.data
|
85
|
+
},
|
86
|
+
{
|
87
|
+
transform: {
|
88
|
+
type: 'ecStat:regression'
|
89
|
+
}
|
90
|
+
}
|
91
|
+
],
|
92
|
+
title: {
|
93
|
+
text: '仪器质控图',
|
94
|
+
subtext: 'y轴:靶值,x轴:日期',
|
95
|
+
sublink: 'https://github.com/ecomfe/echarts-stat',
|
96
|
+
left: 'center'
|
97
|
+
},
|
98
|
+
legend: {
|
99
|
+
bottom: 5
|
100
|
+
},
|
101
|
+
tooltip: {
|
102
|
+
trigger: 'axis',
|
103
|
+
axisPointer: {
|
104
|
+
type: 'cross'
|
105
|
+
}
|
106
|
+
},
|
107
|
+
xAxis: {
|
108
|
+
splitLine: {
|
109
|
+
lineStyle: {
|
110
|
+
type: 'dashed'
|
111
|
+
}
|
112
|
+
}
|
113
|
+
},
|
114
|
+
yAxis: {
|
115
|
+
splitLine: {
|
116
|
+
lineStyle: {
|
117
|
+
type: 'dashed'
|
118
|
+
}
|
119
|
+
}
|
120
|
+
},
|
121
|
+
series: [
|
122
|
+
{
|
123
|
+
name: 'scatter',
|
124
|
+
type: 'scatter'
|
125
|
+
},
|
126
|
+
{
|
127
|
+
name: 'line',
|
128
|
+
type: 'line',
|
129
|
+
datasetIndex: 1,
|
130
|
+
symbolSize: 0.1,
|
131
|
+
symbol: 'circle',
|
132
|
+
label: { show: true, fontSize: 16 },
|
133
|
+
labelLayout: { dx: -20 },
|
134
|
+
encode: { label: 2, tooltip: 1 }
|
135
|
+
},
|
136
|
+
{
|
137
|
+
name: '标准值线',
|
138
|
+
type: 'line',
|
139
|
+
data: standardLineData,
|
140
|
+
lineStyle: {
|
141
|
+
color: '#ff4757',
|
142
|
+
width: 2,
|
143
|
+
type: 'dashed'
|
144
|
+
},
|
145
|
+
symbol: 'none',
|
146
|
+
tooltip: {
|
147
|
+
formatter: `标准值: ${this.standardValue}`
|
148
|
+
}
|
149
|
+
}
|
150
|
+
]
|
151
|
+
}
|
152
|
+
option && myChart.setOption(option)
|
153
|
+
}
|
154
|
+
}
|
155
|
+
}
|
156
|
+
</script>
|
157
|
+
|
158
|
+
<style scoped lang="less">
|
159
|
+
|
160
|
+
</style>
|
@@ -0,0 +1,160 @@
|
|
1
|
+
<template>
|
2
|
+
<div ref="main" :style="{width: config.width, height: config.height}">
|
3
|
+
</div>
|
4
|
+
</template>
|
5
|
+
|
6
|
+
<script>
|
7
|
+
import * as echarts from 'echarts'
|
8
|
+
import ecStat from 'echarts-stat'
|
9
|
+
import { getConfigByName, runLogic } from '@vue2-client/services/api/common'
|
10
|
+
|
11
|
+
export default {
|
12
|
+
name: 'XTable',
|
13
|
+
props: {
|
14
|
+
// 配置名
|
15
|
+
queryParamsName: {
|
16
|
+
type: String,
|
17
|
+
default: ''
|
18
|
+
},
|
19
|
+
// 服务名
|
20
|
+
serviceName: {
|
21
|
+
type: String,
|
22
|
+
default: 'af-his'
|
23
|
+
},
|
24
|
+
// 标准值
|
25
|
+
standardValue: {
|
26
|
+
type: Number,
|
27
|
+
default: 3.5
|
28
|
+
}
|
29
|
+
},
|
30
|
+
data () {
|
31
|
+
return {
|
32
|
+
data: [
|
33
|
+
[1, 3.176513],
|
34
|
+
[2, 3.816464],
|
35
|
+
[3, 4.119688],
|
36
|
+
[4, 4.282233],
|
37
|
+
[5, 4.655492],
|
38
|
+
[6, 3.965162],
|
39
|
+
[7, 3.5149],
|
40
|
+
[8, 3.125947],
|
41
|
+
[9, 3.44808],
|
42
|
+
[10, 3.16744],
|
43
|
+
[11, 3.620992],
|
44
|
+
[12, 4.641845],
|
45
|
+
[13, 3.175939]
|
46
|
+
],
|
47
|
+
// 配置项
|
48
|
+
config: {
|
49
|
+
width: '900px',
|
50
|
+
height: '700px'
|
51
|
+
}
|
52
|
+
}
|
53
|
+
},
|
54
|
+
mounted () {
|
55
|
+
this.renderChart()
|
56
|
+
},
|
57
|
+
methods: {
|
58
|
+
initDome (queryParamsName, parameter) {
|
59
|
+
getConfigByName(queryParamsName, 'af-his', async (res) => {
|
60
|
+
this.config = res
|
61
|
+
runLogic(res.data, parameter, 'af-his').then(result => {
|
62
|
+
this.data = result
|
63
|
+
this.renderChart()
|
64
|
+
})
|
65
|
+
})
|
66
|
+
},
|
67
|
+
// 渲染图表
|
68
|
+
renderChart () {
|
69
|
+
echarts.registerTransform(ecStat.transform.regression)
|
70
|
+
const chartDom = this.$refs.main
|
71
|
+
const myChart = echarts.init(chartDom)
|
72
|
+
|
73
|
+
// 生成标准值线的数据点
|
74
|
+
const xMin = Math.min(...this.data.map(item => item[0]))
|
75
|
+
const xMax = Math.max(...this.data.map(item => item[0]))
|
76
|
+
const standardLineData = [
|
77
|
+
[xMin, this.standardValue],
|
78
|
+
[xMax, this.standardValue]
|
79
|
+
]
|
80
|
+
|
81
|
+
const option = {
|
82
|
+
dataset: [
|
83
|
+
{
|
84
|
+
source: this.data
|
85
|
+
},
|
86
|
+
{
|
87
|
+
transform: {
|
88
|
+
type: 'ecStat:regression'
|
89
|
+
}
|
90
|
+
}
|
91
|
+
],
|
92
|
+
title: {
|
93
|
+
text: '仪器质控图',
|
94
|
+
subtext: 'y轴:靶值,x轴:日期',
|
95
|
+
sublink: 'https://github.com/ecomfe/echarts-stat',
|
96
|
+
left: 'center'
|
97
|
+
},
|
98
|
+
legend: {
|
99
|
+
bottom: 5
|
100
|
+
},
|
101
|
+
tooltip: {
|
102
|
+
trigger: 'axis',
|
103
|
+
axisPointer: {
|
104
|
+
type: 'cross'
|
105
|
+
}
|
106
|
+
},
|
107
|
+
xAxis: {
|
108
|
+
splitLine: {
|
109
|
+
lineStyle: {
|
110
|
+
type: 'dashed'
|
111
|
+
}
|
112
|
+
}
|
113
|
+
},
|
114
|
+
yAxis: {
|
115
|
+
splitLine: {
|
116
|
+
lineStyle: {
|
117
|
+
type: 'dashed'
|
118
|
+
}
|
119
|
+
}
|
120
|
+
},
|
121
|
+
series: [
|
122
|
+
{
|
123
|
+
name: 'scatter',
|
124
|
+
type: 'scatter'
|
125
|
+
},
|
126
|
+
{
|
127
|
+
name: 'line',
|
128
|
+
type: 'line',
|
129
|
+
datasetIndex: 1,
|
130
|
+
symbolSize: 0.1,
|
131
|
+
symbol: 'circle',
|
132
|
+
label: { show: true, fontSize: 16 },
|
133
|
+
labelLayout: { dx: -20 },
|
134
|
+
encode: { label: 2, tooltip: 1 }
|
135
|
+
},
|
136
|
+
{
|
137
|
+
name: '标准值线',
|
138
|
+
type: 'line',
|
139
|
+
data: standardLineData,
|
140
|
+
lineStyle: {
|
141
|
+
color: '#ff4757',
|
142
|
+
width: 2,
|
143
|
+
type: 'dashed'
|
144
|
+
},
|
145
|
+
symbol: 'none',
|
146
|
+
tooltip: {
|
147
|
+
formatter: `标准值: ${this.standardValue}`
|
148
|
+
}
|
149
|
+
}
|
150
|
+
]
|
151
|
+
}
|
152
|
+
option && myChart.setOption(option)
|
153
|
+
}
|
154
|
+
}
|
155
|
+
}
|
156
|
+
</script>
|
157
|
+
|
158
|
+
<style scoped lang="less">
|
159
|
+
|
160
|
+
</style>
|
@@ -0,0 +1,148 @@
|
|
1
|
+
<template>
|
2
|
+
<div ref="main" :style="{width: config.width, height: config.height}">
|
3
|
+
</div>
|
4
|
+
</template>
|
5
|
+
|
6
|
+
<script>
|
7
|
+
import * as echarts from 'echarts'
|
8
|
+
import ecStat from 'echarts-stat'
|
9
|
+
import { getConfigByName, runLogic } from '@vue2-client/services/api/common'
|
10
|
+
|
11
|
+
export default {
|
12
|
+
name: 'XTable',
|
13
|
+
props: {
|
14
|
+
// 配置名
|
15
|
+
queryParamsName: {
|
16
|
+
type: String,
|
17
|
+
default: ''
|
18
|
+
},
|
19
|
+
// 服务名
|
20
|
+
serviceName: {
|
21
|
+
type: String,
|
22
|
+
default: 'af-his'
|
23
|
+
},
|
24
|
+
// 标准值
|
25
|
+
standardValue: {
|
26
|
+
type: Number,
|
27
|
+
default: 3.5
|
28
|
+
}
|
29
|
+
},
|
30
|
+
data () {
|
31
|
+
return {
|
32
|
+
data: [
|
33
|
+
[1, 3.176513],
|
34
|
+
[2, 3.816464],
|
35
|
+
[3, 4.119688],
|
36
|
+
[4, 4.282233],
|
37
|
+
[5, 4.655492],
|
38
|
+
[6, 3.965162],
|
39
|
+
[7, 3.5149],
|
40
|
+
[8, 3.125947],
|
41
|
+
[9, 3.44808],
|
42
|
+
[10, 3.16744],
|
43
|
+
[11, 3.620992],
|
44
|
+
[12, 4.641845],
|
45
|
+
[13, 3.175939]
|
46
|
+
],
|
47
|
+
// 配置项
|
48
|
+
config: {
|
49
|
+
width: '900px',
|
50
|
+
height: '700px'
|
51
|
+
}
|
52
|
+
}
|
53
|
+
},
|
54
|
+
mounted () {
|
55
|
+
this.renderChart()
|
56
|
+
},
|
57
|
+
methods: {
|
58
|
+
initDome (queryParamsName, parameter) {
|
59
|
+
getConfigByName(queryParamsName, 'af-his', async (res) => {
|
60
|
+
this.config = res
|
61
|
+
runLogic(res.data, parameter, 'af-his').then(result => {
|
62
|
+
this.data = result
|
63
|
+
this.renderChart()
|
64
|
+
})
|
65
|
+
})
|
66
|
+
},
|
67
|
+
// 渲染图表
|
68
|
+
renderChart () {
|
69
|
+
echarts.registerTransform(ecStat.transform.regression)
|
70
|
+
const chartDom = this.$refs.main
|
71
|
+
const myChart = echarts.init(chartDom)
|
72
|
+
|
73
|
+
const option = {
|
74
|
+
dataset: [
|
75
|
+
{
|
76
|
+
source: this.data
|
77
|
+
},
|
78
|
+
{
|
79
|
+
transform: {
|
80
|
+
type: 'ecStat:regression'
|
81
|
+
}
|
82
|
+
}
|
83
|
+
],
|
84
|
+
title: {
|
85
|
+
text: '仪器质控图',
|
86
|
+
subtext: 'y轴:靶值,x轴:日期',
|
87
|
+
sublink: 'https://github.com/ecomfe/echarts-stat',
|
88
|
+
left: 'center'
|
89
|
+
},
|
90
|
+
legend: {
|
91
|
+
bottom: 5
|
92
|
+
},
|
93
|
+
tooltip: {
|
94
|
+
trigger: 'axis',
|
95
|
+
axisPointer: {
|
96
|
+
type: 'cross'
|
97
|
+
}
|
98
|
+
},
|
99
|
+
xAxis: {
|
100
|
+
splitLine: {
|
101
|
+
lineStyle: {
|
102
|
+
type: 'dashed'
|
103
|
+
}
|
104
|
+
}
|
105
|
+
},
|
106
|
+
yAxis: {
|
107
|
+
splitLine: {
|
108
|
+
lineStyle: {
|
109
|
+
type: 'dashed'
|
110
|
+
}
|
111
|
+
}
|
112
|
+
},
|
113
|
+
series: [
|
114
|
+
{
|
115
|
+
name: 'scatter',
|
116
|
+
type: 'scatter'
|
117
|
+
},
|
118
|
+
{
|
119
|
+
name: 'line',
|
120
|
+
type: 'line',
|
121
|
+
datasetIndex: 1,
|
122
|
+
symbolSize: 0.1,
|
123
|
+
symbol: 'circle',
|
124
|
+
label: { show: true, fontSize: 16 },
|
125
|
+
labelLayout: { dx: -20 },
|
126
|
+
encode: { label: 2, tooltip: 1 }
|
127
|
+
},
|
128
|
+
{
|
129
|
+
name: '标准值线',
|
130
|
+
type: 'line',
|
131
|
+
data: standardLineData,
|
132
|
+
lineStyle: {
|
133
|
+
color: '#a4a4a8',
|
134
|
+
width: 2,
|
135
|
+
type: 'dashed'
|
136
|
+
}
|
137
|
+
}
|
138
|
+
]
|
139
|
+
}
|
140
|
+
option && myChart.setOption(option)
|
141
|
+
}
|
142
|
+
}
|
143
|
+
}
|
144
|
+
</script>
|
145
|
+
|
146
|
+
<style scoped lang="less">
|
147
|
+
|
148
|
+
</style>
|
@@ -0,0 +1,155 @@
|
|
1
|
+
<template>
|
2
|
+
<div ref="main" :style="{width: config.width, height: config.height}">
|
3
|
+
</div>
|
4
|
+
</template>
|
5
|
+
|
6
|
+
<script>
|
7
|
+
import * as echarts from 'echarts'
|
8
|
+
import ecStat from 'echarts-stat'
|
9
|
+
import { getConfigByName, runLogic } from '@vue2-client/services/api/common'
|
10
|
+
|
11
|
+
export default {
|
12
|
+
name: 'XTable',
|
13
|
+
props: {
|
14
|
+
// 配置名
|
15
|
+
queryParamsName: {
|
16
|
+
type: String,
|
17
|
+
default: ''
|
18
|
+
},
|
19
|
+
// 服务名
|
20
|
+
serviceName: {
|
21
|
+
type: String,
|
22
|
+
default: 'af-his'
|
23
|
+
},
|
24
|
+
// 标准值
|
25
|
+
standardValue: {
|
26
|
+
type: Number,
|
27
|
+
default: 3.5
|
28
|
+
}
|
29
|
+
},
|
30
|
+
data () {
|
31
|
+
return {
|
32
|
+
data: [
|
33
|
+
[1, 3.176513],
|
34
|
+
[2, 3.816464],
|
35
|
+
[3, 4.119688],
|
36
|
+
[4, 4.282233],
|
37
|
+
[5, 4.655492],
|
38
|
+
[6, 3.965162],
|
39
|
+
[7, 3.5149],
|
40
|
+
[8, 3.125947],
|
41
|
+
[9, 3.44808],
|
42
|
+
[10, 3.16744],
|
43
|
+
[11, 3.620992],
|
44
|
+
[12, 4.641845],
|
45
|
+
[13, 3.175939]
|
46
|
+
],
|
47
|
+
// 配置项
|
48
|
+
config: {
|
49
|
+
width: '900px',
|
50
|
+
height: '700px'
|
51
|
+
}
|
52
|
+
}
|
53
|
+
},
|
54
|
+
mounted () {
|
55
|
+
this.renderChart()
|
56
|
+
},
|
57
|
+
methods: {
|
58
|
+
initDome (queryParamsName, parameter) {
|
59
|
+
getConfigByName(queryParamsName, 'af-his', async (res) => {
|
60
|
+
this.config = res
|
61
|
+
runLogic(res.data, parameter, 'af-his').then(result => {
|
62
|
+
this.data = result
|
63
|
+
this.renderChart()
|
64
|
+
})
|
65
|
+
})
|
66
|
+
},
|
67
|
+
// 渲染图表
|
68
|
+
renderChart () {
|
69
|
+
echarts.registerTransform(ecStat.transform.regression)
|
70
|
+
const chartDom = this.$refs.main
|
71
|
+
const myChart = echarts.init(chartDom)
|
72
|
+
|
73
|
+
const option = {
|
74
|
+
dataset: [
|
75
|
+
{
|
76
|
+
source: this.data
|
77
|
+
},
|
78
|
+
{
|
79
|
+
transform: {
|
80
|
+
type: 'ecStat:regression'
|
81
|
+
}
|
82
|
+
}
|
83
|
+
],
|
84
|
+
title: {
|
85
|
+
text: '仪器质控图',
|
86
|
+
subtext: 'y轴:靶值,x轴:日期',
|
87
|
+
sublink: 'https://github.com/ecomfe/echarts-stat',
|
88
|
+
left: 'center'
|
89
|
+
},
|
90
|
+
legend: {
|
91
|
+
bottom: 5
|
92
|
+
},
|
93
|
+
tooltip: {
|
94
|
+
trigger: 'axis',
|
95
|
+
axisPointer: {
|
96
|
+
type: 'cross'
|
97
|
+
}
|
98
|
+
},
|
99
|
+
xAxis: {
|
100
|
+
splitLine: {
|
101
|
+
lineStyle: {
|
102
|
+
type: 'dashed'
|
103
|
+
}
|
104
|
+
}
|
105
|
+
},
|
106
|
+
yAxis: {
|
107
|
+
splitLine: {
|
108
|
+
lineStyle: {
|
109
|
+
type: 'dashed'
|
110
|
+
}
|
111
|
+
}
|
112
|
+
},
|
113
|
+
series: [
|
114
|
+
{
|
115
|
+
name: 'scatter',
|
116
|
+
type: 'scatter'
|
117
|
+
},
|
118
|
+
{
|
119
|
+
name: 'line',
|
120
|
+
type: 'line',
|
121
|
+
datasetIndex: 1,
|
122
|
+
symbolSize: 0.1,
|
123
|
+
symbol: 'circle',
|
124
|
+
label: { show: true, fontSize: 16 },
|
125
|
+
labelLayout: { dx: -20 },
|
126
|
+
encode: { label: 2, tooltip: 1 },
|
127
|
+
markLine: {
|
128
|
+
silent: true,
|
129
|
+
symbol: 'none',
|
130
|
+
lineStyle: {
|
131
|
+
color: '#a4a4a8',
|
132
|
+
width: 2,
|
133
|
+
type: 'dashed'
|
134
|
+
},
|
135
|
+
data: [
|
136
|
+
{
|
137
|
+
yAxis: this.standardValue,
|
138
|
+
label: {
|
139
|
+
formatter: `标准值: ${this.standardValue}`
|
140
|
+
}
|
141
|
+
}
|
142
|
+
]
|
143
|
+
}
|
144
|
+
}
|
145
|
+
]
|
146
|
+
}
|
147
|
+
option && myChart.setOption(option)
|
148
|
+
}
|
149
|
+
}
|
150
|
+
}
|
151
|
+
</script>
|
152
|
+
|
153
|
+
<style scoped lang="less">
|
154
|
+
|
155
|
+
</style>
|