vue2-client 1.15.109 → 1.15.111

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.
Files changed (38) hide show
  1. package/.history/src/base-client/components/his/XChart/XChart_20250812134005.vue +160 -0
  2. package/.history/src/base-client/components/his/XChart/XChart_20250812134010.vue +160 -0
  3. package/.history/src/base-client/components/his/XChart/XChart_20250812134019.vue +160 -0
  4. package/.history/src/base-client/components/his/XChart/XChart_20250812134037.vue +160 -0
  5. package/.history/src/base-client/components/his/XChart/XChart_20250812134112.vue +160 -0
  6. package/.history/src/base-client/components/his/XChart/XChart_20250812134114.vue +160 -0
  7. package/.history/src/base-client/components/his/XChart/XChart_20250812134828.vue +148 -0
  8. package/.history/src/base-client/components/his/XChart/XChart_20250812134838.vue +155 -0
  9. package/.history/src/base-client/components/his/XChart/XChart_20250812134846.vue +155 -0
  10. package/.history/src/base-client/components/his/XChart/XChart_20250812134917.vue +155 -0
  11. package/.history/src/base-client/components/his/XChart/XChart_20250812151145.vue +149 -0
  12. package/.history/src/base-client/components/his/XChart/XChart_20250812151810.vue +153 -0
  13. package/.history/src/base-client/components/his/XChart/XChart_20250812151822.vue +153 -0
  14. package/.history/src/base-client/components/his/XChart/XChart_20250812151910.vue +153 -0
  15. package/.history/src/base-client/components/his/XChart/XChart_20250812152858.vue +258 -0
  16. package/.history/src/base-client/components/his/XChart/XChart_20250812152902.vue +258 -0
  17. package/.history/src/base-client/components/his/XChart/XChart_20250812152907.vue +258 -0
  18. package/.history/src/base-client/components/his/XChart/XChart_20250812152919.vue +258 -0
  19. package/.history/src/base-client/components/his/XChart/XChart_20250812153141.vue +269 -0
  20. package/.history/src/base-client/components/his/XChart/XChart_20250812153149.vue +276 -0
  21. package/.history/src/base-client/components/his/XChart/XChart_20250812153153.vue +276 -0
  22. package/.history/src/base-client/components/his/XChart/XChart_20250812153155.vue +276 -0
  23. package/.history/src/base-client/components/his/XChart/XChart_20250812153157.vue +276 -0
  24. package/.history/src/base-client/components/his/XChart/XChart_20250812153158.vue +276 -0
  25. package/.history/src/base-client/components/his/XChart/XChart_20250812153200.vue +276 -0
  26. package/.history/src/base-client/components/his/XChart/XChart_20250812153210.vue +276 -0
  27. package/.history/src/base-client/components/his/XChart/XChart_20250812153918.vue +275 -0
  28. package/.history/src/base-client/components/his/XChart/XChart_20250812154157.vue +280 -0
  29. package/.history/src/base-client/components/his/XChart/XChart_20250812154212.vue +280 -0
  30. package/.history/src/base-client/components/his/XChart/XChart_20250812154250.vue +280 -0
  31. package/.history/src/base-client/components/his/XChart/XChart_20250812154252.vue +280 -0
  32. package/.history/src/base-client/components/his/XChart/XChart_20250812154444.vue +280 -0
  33. package/package.json +1 -1
  34. package/src/base-client/components/common/XReportGrid/XReportTrGroup.vue +4 -3
  35. package/src/base-client/components/his/XChart/XChart.vue +280 -0
  36. package/src/base-client/components/his/XChart/dome.vue +19 -0
  37. package/src/base-client/components/his/XShiftSchedule/XShiftSchedule.vue +2 -2
  38. 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,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>