vue2-client 1.12.80 → 1.12.83
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/package.json
CHANGED
|
@@ -1,109 +1,109 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "vue2-client",
|
|
3
|
-
"version": "1.12.
|
|
4
|
-
"private": false,
|
|
5
|
-
"scripts": {
|
|
6
|
-
"serve": "SET NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service serve --no-eslint",
|
|
7
|
-
"serve:gaslink": "SET NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service serve --no-eslint --mode gaslink",
|
|
8
|
-
"serve:revenue": "SET NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service serve --no-eslint --mode revenue",
|
|
9
|
-
"serve:liuli": "SET NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service serve --no-eslint --mode liuli",
|
|
10
|
-
"serve:scada": "SET NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service serve --no-eslint --mode scada",
|
|
11
|
-
"serve:iot": "SET NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service serve --no-eslint --mode iot",
|
|
12
|
-
"serve:his": "SET NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service serve --no-eslint --mode his",
|
|
13
|
-
"mac-serve": "vue-cli-service serve --no-eslint --mode his",
|
|
14
|
-
"build": "SET NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service build",
|
|
15
|
-
"test:unit": "vue-cli-service test:unit",
|
|
16
|
-
"lint": "vue-cli-service lint",
|
|
17
|
-
"build:preview": "vue-cli-service build --mode preview",
|
|
18
|
-
"lint:nofix": "vue-cli-service lint --no-fix",
|
|
19
|
-
"test": "jest"
|
|
20
|
-
},
|
|
21
|
-
"dependencies": {
|
|
22
|
-
"@afwenming123/vue-easy-tree": "^1.0.1",
|
|
23
|
-
"@afwenming123/vue-plugin-hiprint": "^0.0.70",
|
|
24
|
-
"@amap/amap-jsapi-loader": "^1.0.1",
|
|
25
|
-
"@antv/data-set": "^0.11.8",
|
|
26
|
-
"@antv/g2plot": "^2.4.31",
|
|
27
|
-
"@hufe921/canvas-editor": "^0.9.49",
|
|
28
|
-
"@microsoft/fetch-event-source": "^2.0.1",
|
|
29
|
-
"@vue/babel-preset-jsx": "^1.4.0",
|
|
30
|
-
"animate.css": "^4.1.1",
|
|
31
|
-
"ant-design-vue": "^1.7.8",
|
|
32
|
-
"axios": "^0.27.2",
|
|
33
|
-
"clipboard": "^2.0.11",
|
|
34
|
-
"core-js": "^3.33.0",
|
|
35
|
-
"crypto-js": "^4.1.1",
|
|
36
|
-
"date-fns": "^2.29.3",
|
|
37
|
-
"dayjs": "^1.11.13",
|
|
38
|
-
"default-passive-events": "^2.0.0",
|
|
39
|
-
"dotenv": "^16.3.1",
|
|
40
|
-
"echarts": "^5.5.0",
|
|
41
|
-
"enquire.js": "^2.1.6",
|
|
42
|
-
"file-saver": "^2.0.5",
|
|
43
|
-
"highlight.js": "^11.7.0",
|
|
44
|
-
"html2canvas": "^1.4.1",
|
|
45
|
-
"js-base64": "^3.7.5",
|
|
46
|
-
"js-cookie": "^2.2.1",
|
|
47
|
-
"jsencrypt": "^3.3.2",
|
|
48
|
-
"jspdf": "^2.5.1",
|
|
49
|
-
"lodash.clonedeep": "^4.5.0",
|
|
50
|
-
"lodash.debounce": "^4",
|
|
51
|
-
"lodash.get": "^4.4.2",
|
|
52
|
-
"marked": "^4",
|
|
53
|
-
"mockjs": "^1.1.0",
|
|
54
|
-
"nprogress": "^0.2.0",
|
|
55
|
-
"qs": "^6.11.2",
|
|
56
|
-
"regenerator-runtime": "^0.14.0",
|
|
57
|
-
"videojs-contrib-hls": "^5.15.0",
|
|
58
|
-
"viser-vue": "^2.4.8",
|
|
59
|
-
"vue": "^2.7.14",
|
|
60
|
-
"vue-codemirror": "4.0.6",
|
|
61
|
-
"vue-draggable-resizable": "^2",
|
|
62
|
-
"vue-i18n": "^8.28.2",
|
|
63
|
-
"vue-json-viewer": "^2.2.22",
|
|
64
|
-
"vue-router": "^3.6.5",
|
|
65
|
-
"vue-video-player": "^5.0.2",
|
|
66
|
-
"vue-virtual-scroller": "^1.1.2",
|
|
67
|
-
"vuedraggable": "^2.24.3",
|
|
68
|
-
"vuex": "^3.6.2",
|
|
69
|
-
"xlsx": "0.18.5"
|
|
70
|
-
},
|
|
71
|
-
"devDependencies": {
|
|
72
|
-
"@ant-design/colors": "^7.0.0",
|
|
73
|
-
"@babel/core": "^7.22.20",
|
|
74
|
-
"@babel/eslint-parser": "^7.22.15",
|
|
75
|
-
"@babel/preset-env": "^7.22.20",
|
|
76
|
-
"@jest/globals": "^29.7.0",
|
|
77
|
-
"@vue/cli-plugin-babel": "^5.0.8",
|
|
78
|
-
"@vue/cli-plugin-eslint": "^5.0.8",
|
|
79
|
-
"@vue/cli-service": "^5.0.8",
|
|
80
|
-
"@vue/eslint-config-standard": "^8.0.1",
|
|
81
|
-
"@vue/test-utils": "^1.3.6",
|
|
82
|
-
"babel-plugin-transform-remove-console": "^6.9.4",
|
|
83
|
-
"compression-webpack-plugin": "^10.0.0",
|
|
84
|
-
"css-minimizer-webpack-plugin": "^5.0.1",
|
|
85
|
-
"deepmerge": "^4.3.1",
|
|
86
|
-
"eslint": "^8.51.0",
|
|
87
|
-
"eslint-plugin-vue": "^9.17.0",
|
|
88
|
-
"fast-deep-equal": "^3.1.3",
|
|
89
|
-
"ignore-loader": "^0.1.2",
|
|
90
|
-
"jest": "^29.7.0",
|
|
91
|
-
"jest-environment-jsdom": "^29.7.0",
|
|
92
|
-
"jest-transform-stub": "^2.0.0",
|
|
93
|
-
"less-loader": "^6.2.0",
|
|
94
|
-
"script-loader": "^0.7.2",
|
|
95
|
-
"style-resources-loader": "^1.5.0",
|
|
96
|
-
"vue-cli-plugin-style-resources-loader": "^0.1.5",
|
|
97
|
-
"vue-jest": "^4.0.1",
|
|
98
|
-
"vue-template-compiler": "^2.7.14",
|
|
99
|
-
"webpack": "^5.88.2",
|
|
100
|
-
"webpack-theme-color-replacer": "^1.4.7",
|
|
101
|
-
"whatwg-fetch": "^3.6.19"
|
|
102
|
-
},
|
|
103
|
-
"browserslist": [
|
|
104
|
-
"> 1%",
|
|
105
|
-
"last 2 versions",
|
|
106
|
-
"not dead",
|
|
107
|
-
"not ie 11"
|
|
108
|
-
]
|
|
109
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "vue2-client",
|
|
3
|
+
"version": "1.12.83",
|
|
4
|
+
"private": false,
|
|
5
|
+
"scripts": {
|
|
6
|
+
"serve": "SET NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service serve --no-eslint",
|
|
7
|
+
"serve:gaslink": "SET NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service serve --no-eslint --mode gaslink",
|
|
8
|
+
"serve:revenue": "SET NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service serve --no-eslint --mode revenue",
|
|
9
|
+
"serve:liuli": "SET NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service serve --no-eslint --mode liuli",
|
|
10
|
+
"serve:scada": "SET NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service serve --no-eslint --mode scada",
|
|
11
|
+
"serve:iot": "SET NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service serve --no-eslint --mode iot",
|
|
12
|
+
"serve:his": "SET NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service serve --no-eslint --mode his",
|
|
13
|
+
"mac-serve": "vue-cli-service serve --no-eslint --mode his",
|
|
14
|
+
"build": "SET NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service build",
|
|
15
|
+
"test:unit": "vue-cli-service test:unit",
|
|
16
|
+
"lint": "vue-cli-service lint",
|
|
17
|
+
"build:preview": "vue-cli-service build --mode preview",
|
|
18
|
+
"lint:nofix": "vue-cli-service lint --no-fix",
|
|
19
|
+
"test": "jest"
|
|
20
|
+
},
|
|
21
|
+
"dependencies": {
|
|
22
|
+
"@afwenming123/vue-easy-tree": "^1.0.1",
|
|
23
|
+
"@afwenming123/vue-plugin-hiprint": "^0.0.70",
|
|
24
|
+
"@amap/amap-jsapi-loader": "^1.0.1",
|
|
25
|
+
"@antv/data-set": "^0.11.8",
|
|
26
|
+
"@antv/g2plot": "^2.4.31",
|
|
27
|
+
"@hufe921/canvas-editor": "^0.9.49",
|
|
28
|
+
"@microsoft/fetch-event-source": "^2.0.1",
|
|
29
|
+
"@vue/babel-preset-jsx": "^1.4.0",
|
|
30
|
+
"animate.css": "^4.1.1",
|
|
31
|
+
"ant-design-vue": "^1.7.8",
|
|
32
|
+
"axios": "^0.27.2",
|
|
33
|
+
"clipboard": "^2.0.11",
|
|
34
|
+
"core-js": "^3.33.0",
|
|
35
|
+
"crypto-js": "^4.1.1",
|
|
36
|
+
"date-fns": "^2.29.3",
|
|
37
|
+
"dayjs": "^1.11.13",
|
|
38
|
+
"default-passive-events": "^2.0.0",
|
|
39
|
+
"dotenv": "^16.3.1",
|
|
40
|
+
"echarts": "^5.5.0",
|
|
41
|
+
"enquire.js": "^2.1.6",
|
|
42
|
+
"file-saver": "^2.0.5",
|
|
43
|
+
"highlight.js": "^11.7.0",
|
|
44
|
+
"html2canvas": "^1.4.1",
|
|
45
|
+
"js-base64": "^3.7.5",
|
|
46
|
+
"js-cookie": "^2.2.1",
|
|
47
|
+
"jsencrypt": "^3.3.2",
|
|
48
|
+
"jspdf": "^2.5.1",
|
|
49
|
+
"lodash.clonedeep": "^4.5.0",
|
|
50
|
+
"lodash.debounce": "^4",
|
|
51
|
+
"lodash.get": "^4.4.2",
|
|
52
|
+
"marked": "^4",
|
|
53
|
+
"mockjs": "^1.1.0",
|
|
54
|
+
"nprogress": "^0.2.0",
|
|
55
|
+
"qs": "^6.11.2",
|
|
56
|
+
"regenerator-runtime": "^0.14.0",
|
|
57
|
+
"videojs-contrib-hls": "^5.15.0",
|
|
58
|
+
"viser-vue": "^2.4.8",
|
|
59
|
+
"vue": "^2.7.14",
|
|
60
|
+
"vue-codemirror": "4.0.6",
|
|
61
|
+
"vue-draggable-resizable": "^2",
|
|
62
|
+
"vue-i18n": "^8.28.2",
|
|
63
|
+
"vue-json-viewer": "^2.2.22",
|
|
64
|
+
"vue-router": "^3.6.5",
|
|
65
|
+
"vue-video-player": "^5.0.2",
|
|
66
|
+
"vue-virtual-scroller": "^1.1.2",
|
|
67
|
+
"vuedraggable": "^2.24.3",
|
|
68
|
+
"vuex": "^3.6.2",
|
|
69
|
+
"xlsx": "0.18.5"
|
|
70
|
+
},
|
|
71
|
+
"devDependencies": {
|
|
72
|
+
"@ant-design/colors": "^7.0.0",
|
|
73
|
+
"@babel/core": "^7.22.20",
|
|
74
|
+
"@babel/eslint-parser": "^7.22.15",
|
|
75
|
+
"@babel/preset-env": "^7.22.20",
|
|
76
|
+
"@jest/globals": "^29.7.0",
|
|
77
|
+
"@vue/cli-plugin-babel": "^5.0.8",
|
|
78
|
+
"@vue/cli-plugin-eslint": "^5.0.8",
|
|
79
|
+
"@vue/cli-service": "^5.0.8",
|
|
80
|
+
"@vue/eslint-config-standard": "^8.0.1",
|
|
81
|
+
"@vue/test-utils": "^1.3.6",
|
|
82
|
+
"babel-plugin-transform-remove-console": "^6.9.4",
|
|
83
|
+
"compression-webpack-plugin": "^10.0.0",
|
|
84
|
+
"css-minimizer-webpack-plugin": "^5.0.1",
|
|
85
|
+
"deepmerge": "^4.3.1",
|
|
86
|
+
"eslint": "^8.51.0",
|
|
87
|
+
"eslint-plugin-vue": "^9.17.0",
|
|
88
|
+
"fast-deep-equal": "^3.1.3",
|
|
89
|
+
"ignore-loader": "^0.1.2",
|
|
90
|
+
"jest": "^29.7.0",
|
|
91
|
+
"jest-environment-jsdom": "^29.7.0",
|
|
92
|
+
"jest-transform-stub": "^2.0.0",
|
|
93
|
+
"less-loader": "^6.2.0",
|
|
94
|
+
"script-loader": "^0.7.2",
|
|
95
|
+
"style-resources-loader": "^1.5.0",
|
|
96
|
+
"vue-cli-plugin-style-resources-loader": "^0.1.5",
|
|
97
|
+
"vue-jest": "^4.0.1",
|
|
98
|
+
"vue-template-compiler": "^2.7.14",
|
|
99
|
+
"webpack": "^5.88.2",
|
|
100
|
+
"webpack-theme-color-replacer": "^1.4.7",
|
|
101
|
+
"whatwg-fetch": "^3.6.19"
|
|
102
|
+
},
|
|
103
|
+
"browserslist": [
|
|
104
|
+
"> 1%",
|
|
105
|
+
"last 2 versions",
|
|
106
|
+
"not dead",
|
|
107
|
+
"not ie 11"
|
|
108
|
+
]
|
|
109
|
+
}
|
|
@@ -1,209 +1,237 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div>
|
|
3
|
-
<a-collapse
|
|
4
|
-
:activeKey="activeKey"
|
|
5
|
-
@change="handleChange"
|
|
6
|
-
>
|
|
7
|
-
<a-collapse-panel
|
|
8
|
-
v-for="(panel, panelIndex) in config.showData"
|
|
9
|
-
:key="panelIndex.toString()"
|
|
10
|
-
:show-arrow="false"
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
:
|
|
61
|
-
|
|
62
|
-
:
|
|
63
|
-
:
|
|
64
|
-
:
|
|
65
|
-
:
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
</
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
}
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
.
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
.
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
.
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
:
|
|
195
|
-
flex:
|
|
196
|
-
}
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
:
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
1
|
+
<template>
|
|
2
|
+
<div>
|
|
3
|
+
<a-collapse
|
|
4
|
+
:activeKey="activeKey"
|
|
5
|
+
@change="handleChange"
|
|
6
|
+
>
|
|
7
|
+
<a-collapse-panel
|
|
8
|
+
v-for="(panel, panelIndex) in config.showData"
|
|
9
|
+
:key="panelIndex.toString()"
|
|
10
|
+
:show-arrow="false"
|
|
11
|
+
:disabled="config.collapsible"
|
|
12
|
+
>
|
|
13
|
+
<template #header>
|
|
14
|
+
<div class="header-content">
|
|
15
|
+
<span
|
|
16
|
+
class="header-text"
|
|
17
|
+
:style="config.titleStyle"
|
|
18
|
+
>
|
|
19
|
+
{{ panel.title }}
|
|
20
|
+
</span>
|
|
21
|
+
<!-- 当有 title2 数据时显示信息项 -->
|
|
22
|
+
<template v-if="panel.title2 && panel.title2.length">
|
|
23
|
+
<span
|
|
24
|
+
v-for="(item, headerIndex) in panel.title2"
|
|
25
|
+
:key="headerIndex"
|
|
26
|
+
class="info-item"
|
|
27
|
+
:style="config.title2Style"
|
|
28
|
+
>
|
|
29
|
+
<!-- 根据showTitle是否显示键名 -->
|
|
30
|
+
<span v-if="config.showTitle">{{ item.key }}:</span>
|
|
31
|
+
<span>{{ item.value }}</span>
|
|
32
|
+
</span>
|
|
33
|
+
</template>
|
|
34
|
+
<!-- 当有 title3 数据时显示时间项 -->
|
|
35
|
+
<span
|
|
36
|
+
v-if="panel.title3"
|
|
37
|
+
class="time-item"
|
|
38
|
+
:style="config.title3Style"
|
|
39
|
+
>
|
|
40
|
+
{{ panel.title3 }}
|
|
41
|
+
</span>
|
|
42
|
+
<!-- 修改搜索框的显示条件 -->
|
|
43
|
+
<a-input-search
|
|
44
|
+
v-if="panel.search"
|
|
45
|
+
v-model="searchText[panelIndex]"
|
|
46
|
+
:placeholder="panel.searchPlace"
|
|
47
|
+
class="search-input"
|
|
48
|
+
@search="(value) => onSearch(value, panelIndex)"
|
|
49
|
+
@click.stop
|
|
50
|
+
/>
|
|
51
|
+
</div>
|
|
52
|
+
</template>
|
|
53
|
+
<!-- 根据类型显示不同内容 -->
|
|
54
|
+
<template v-if="panel.type === 'picture'">
|
|
55
|
+
<img :src="panel.configName" alt="图片" style="width: 100%; max-width: 500px;"/>
|
|
56
|
+
</template>
|
|
57
|
+
<template v-else-if="panel.type === 'cover'">
|
|
58
|
+
<x-report
|
|
59
|
+
:use-oss-for-img="false"
|
|
60
|
+
:config-name="panel.configName"
|
|
61
|
+
server-name="af-his"
|
|
62
|
+
:show-img-in-cell="true"
|
|
63
|
+
:display-only="true"
|
|
64
|
+
:edit-mode="false"
|
|
65
|
+
:show-save-button="false"
|
|
66
|
+
:no-padding="true"
|
|
67
|
+
:dont-format="true">
|
|
68
|
+
</x-report>
|
|
69
|
+
</template>
|
|
70
|
+
</a-collapse-panel>
|
|
71
|
+
</a-collapse>
|
|
72
|
+
</div>
|
|
73
|
+
</template>
|
|
74
|
+
|
|
75
|
+
<script>
|
|
76
|
+
import XReport from '@vue2-client/base-client/components/common/XReportGrid'
|
|
77
|
+
import { getConfigByName, runLogic } from '@vue2-client/services/api/common'
|
|
78
|
+
|
|
79
|
+
export default {
|
|
80
|
+
name: 'XCollapse',
|
|
81
|
+
components: {
|
|
82
|
+
XReport
|
|
83
|
+
},
|
|
84
|
+
inject: ['getConfigByName', 'getComponentByName'],
|
|
85
|
+
data () {
|
|
86
|
+
return {
|
|
87
|
+
activeKey: [],
|
|
88
|
+
config: {},
|
|
89
|
+
configName: '',
|
|
90
|
+
searchText: {}
|
|
91
|
+
}
|
|
92
|
+
},
|
|
93
|
+
props: {
|
|
94
|
+
// json名
|
|
95
|
+
queryParamsName: {
|
|
96
|
+
type: Object,
|
|
97
|
+
default: 'openPrescriptionConfig'
|
|
98
|
+
},
|
|
99
|
+
parameter: {
|
|
100
|
+
type: Object,
|
|
101
|
+
default: () => {
|
|
102
|
+
return {}
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
},
|
|
106
|
+
created () {
|
|
107
|
+
this.searchTexts = {} // 初始化对象
|
|
108
|
+
|
|
109
|
+
this.getData(this.queryParamsName)
|
|
110
|
+
window.addEventListener('setItem', (e) => {
|
|
111
|
+
console.log('监听到sessionStorage的变化:', e)
|
|
112
|
+
if (e.key === 'klcf_id') {
|
|
113
|
+
this.newVal = sessionStorage.getItem('klcf_id')
|
|
114
|
+
// 进行业务处理
|
|
115
|
+
console.log('sessionStorage中的值发生了变化:', this.newVal)
|
|
116
|
+
}
|
|
117
|
+
})
|
|
118
|
+
},
|
|
119
|
+
beforeDestroy () {
|
|
120
|
+
window.removeEventListener('setItem', this.handleStorageChange)
|
|
121
|
+
},
|
|
122
|
+
methods: {
|
|
123
|
+
handleStorageChange (e) {
|
|
124
|
+
console.log('监听到sessionStorage的变化:', e)
|
|
125
|
+
if (e.key === 'klcf_id') {
|
|
126
|
+
this.newVal = sessionStorage.getItem('klcf_id')
|
|
127
|
+
// 进行业务处理
|
|
128
|
+
console.log('sessionStorage中的值发生了变化:', this.newVal)
|
|
129
|
+
}
|
|
130
|
+
},
|
|
131
|
+
async getData (config) {
|
|
132
|
+
this.configName = config
|
|
133
|
+
getConfigByName(config, 'af-his', res => {
|
|
134
|
+
this.config = res
|
|
135
|
+
console.warn(this.config)
|
|
136
|
+
runLogic(res.mainLogic, this.parameter, 'af-his').then(result => {
|
|
137
|
+
this.config.showData = result
|
|
138
|
+
// 更具timeType更改时间类型
|
|
139
|
+
if (this.config.timeType && this.config.timeType === '.') {
|
|
140
|
+
this.config.showData.forEach(panel => {
|
|
141
|
+
if (panel.title3) {
|
|
142
|
+
panel.title3 = this.convertToCustomFormat(panel.title3)
|
|
143
|
+
}
|
|
144
|
+
})
|
|
145
|
+
this.$forceUpdate()
|
|
146
|
+
}
|
|
147
|
+
this.activeKey = this.config.showData.map((_, panelIndex) => panelIndex.toString())
|
|
148
|
+
})
|
|
149
|
+
})
|
|
150
|
+
},
|
|
151
|
+
refreshXCollapse () {
|
|
152
|
+
this.getData(this.queryParamsName)
|
|
153
|
+
},
|
|
154
|
+
convertToCustomFormat (dateString) {
|
|
155
|
+
// 创建一个新的 Date 对象
|
|
156
|
+
const date = new Date(dateString)
|
|
157
|
+
// 获取年、月、日
|
|
158
|
+
const year = date.getFullYear()
|
|
159
|
+
const month = date.getMonth() + 1 // 月份从0开始,所以需要加1
|
|
160
|
+
const day = date.getDate()
|
|
161
|
+
// 返回格式化后的字符串
|
|
162
|
+
return `${year}.${month}.${day}`
|
|
163
|
+
},
|
|
164
|
+
handleChange (keys) {
|
|
165
|
+
this.activeKey = keys
|
|
166
|
+
},
|
|
167
|
+
onSearch (value, panelIndex) {
|
|
168
|
+
console.log('搜索内容:', value, '面板索引:', panelIndex)
|
|
169
|
+
},
|
|
170
|
+
},
|
|
171
|
+
watch: {
|
|
172
|
+
queryParamsName: {
|
|
173
|
+
handler (newValue) {
|
|
174
|
+
this.getData(newValue, null)
|
|
175
|
+
},
|
|
176
|
+
deep: true
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
</script>
|
|
181
|
+
|
|
182
|
+
<style scoped>
|
|
183
|
+
.header-content {
|
|
184
|
+
display: flex;
|
|
185
|
+
align-items: center;
|
|
186
|
+
gap: 24px;
|
|
187
|
+
white-space: nowrap;
|
|
188
|
+
overflow: hidden;
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
.header-text {
|
|
192
|
+
margin-right: 16px;
|
|
193
|
+
font-size: 16px;
|
|
194
|
+
font-weight: 800;
|
|
195
|
+
flex-shrink: 0;
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
.info-item {
|
|
199
|
+
display: inline-flex;
|
|
200
|
+
align-items: center;
|
|
201
|
+
gap: 4px;
|
|
202
|
+
font-size: 12px;
|
|
203
|
+
color: #888888;
|
|
204
|
+
flex-shrink: 0;
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
.time-item {
|
|
208
|
+
margin-left: auto;
|
|
209
|
+
text-align: right;
|
|
210
|
+
flex-shrink: 0;
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
:deep(.ant-collapse-header) {
|
|
214
|
+
position: relative;
|
|
215
|
+
border-bottom: v-bind('config.showLine ? "1px solid #000000" : "none"');
|
|
216
|
+
align-items: center !important;
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
:deep(.ant-collapse-header-text) {
|
|
220
|
+
flex: 1;
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
:deep(.ant-collapse-content > .ant-collapse-content-box) {
|
|
224
|
+
padding: 0;
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
:deep(.ant-card-body) {
|
|
228
|
+
padding: 8px;
|
|
229
|
+
}
|
|
230
|
+
.search-input {
|
|
231
|
+
margin-left: auto;
|
|
232
|
+
width: 100%;
|
|
233
|
+
}
|
|
234
|
+
:deep(.ant-collapse-item-disabled > .ant-collapse-header) {
|
|
235
|
+
cursor: default !important;
|
|
236
|
+
}
|
|
237
|
+
</style>
|
|
@@ -129,6 +129,9 @@ export default {
|
|
|
129
129
|
this.currentDate = res.defaultValue
|
|
130
130
|
this.baseDate = res.defaultValue
|
|
131
131
|
this.$emit('update:modelValue', res.defaultValue)
|
|
132
|
+
} else {
|
|
133
|
+
// 如果没有默认值,则设置今天日期为基准日期
|
|
134
|
+
this.modelValue = this.baseDate
|
|
132
135
|
}
|
|
133
136
|
|
|
134
137
|
// 执行配置中指定的业务逻辑
|
|
@@ -52,9 +52,9 @@ routerResource.newDynamicStatistics = () => import('@vue2-client/pages/NewDynami
|
|
|
52
52
|
routerResource.example = {
|
|
53
53
|
path: 'example',
|
|
54
54
|
name: '示例主页面',
|
|
55
|
-
component: () => import('@vue2-client/base-client/components/his/XRadio/XRadio.vue'),
|
|
55
|
+
// component: () => import('@vue2-client/base-client/components/his/XRadio/XRadio.vue'),
|
|
56
56
|
// component: () => import('@vue2-client/base-client/components/his/XList/XList.vue'),
|
|
57
|
-
|
|
57
|
+
component: () => import('@vue2-client/base-client/components/common/XCollapse/XCollapse.vue'),
|
|
58
58
|
// component: () => import('@vue2-client/base-client/components/common/XDataCard/XDataCard.vue'),
|
|
59
59
|
// component: () => import('@vue2-client/base-client/components/common/XDescriptions/demo.vue'),
|
|
60
60
|
// component: () => import('@vue2-client/base-client/components/common/XAddNativeForm/demo.vue'),
|