vue2-client 1.18.32 → 1.18.33
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/.eslintrc.js +90 -90
- package/Components.md +60 -60
- package/docs/index.md +30 -30
- package/index.js +31 -31
- package/jest-transform-stub.js +8 -8
- package/jest.setup.js +7 -7
- package/package.json +1 -1
- package/src/assets/img/querySlotDemo.svg +15 -15
- package/src/assets/svg/female.svg +1 -1
- package/src/assets/svg/male.svg +1 -1
- package/src/base-client/components/common/AmapMarker/AmapPointRendering.vue +120 -120
- package/src/base-client/components/common/CitySelect/index.js +3 -3
- package/src/base-client/components/common/CitySelect/index.md +109 -109
- package/src/base-client/components/common/CreateQuery/CreateQuery.vue +669 -669
- package/src/base-client/components/common/CreateQuery/index.js +3 -3
- package/src/base-client/components/common/CreateQuery/index.md +42 -42
- package/src/base-client/components/common/CreateSimpleFormQuery/index.js +3 -3
- package/src/base-client/components/common/CreateSimpleFormQuery/index.md +42 -42
- package/src/base-client/components/common/FormGroupEdit/index.js +3 -3
- package/src/base-client/components/common/FormGroupEdit/index.md +43 -43
- package/src/base-client/components/common/FormGroupQuery/FormGroupQuery.vue +166 -166
- package/src/base-client/components/common/FormGroupQuery/index.js +3 -3
- package/src/base-client/components/common/FormGroupQuery/index.md +43 -43
- package/src/base-client/components/common/HIS/HFormGroup/index.js +3 -3
- package/src/base-client/components/common/JSONToTree/jsontotree.vue +271 -271
- package/src/base-client/components/common/PersonSetting/PersonSetting.vue +208 -208
- package/src/base-client/components/common/PersonSetting/index.js +3 -3
- package/src/base-client/components/common/Tree/Tree.vue +149 -149
- package/src/base-client/components/common/Tree/index.js +2 -2
- package/src/base-client/components/common/Upload/index.js +3 -3
- package/src/base-client/components/common/XAddNativeForm/index.md +146 -146
- package/src/base-client/components/common/XCard/XCard.vue +64 -64
- package/src/base-client/components/common/XCollapse/XCollapse.vue +830 -830
- package/src/base-client/components/common/XDataDrawer/XDataDrawer.vue +180 -180
- package/src/base-client/components/common/XDataDrawer/index.js +3 -3
- package/src/base-client/components/common/XDataDrawer/index.md +41 -41
- package/src/base-client/components/common/XDescriptions/index.js +3 -3
- package/src/base-client/components/common/XDescriptions/index.md +322 -322
- package/src/base-client/components/common/XForm/index.md +178 -178
- package/src/base-client/components/common/XReportGrid/XReportTrGroup.vue +6 -3
- package/src/base-client/components/common/XStepView/XStepView.vue +252 -252
- package/src/base-client/components/common/XStepView/index.js +3 -3
- package/src/base-client/components/common/XStepView/index.md +31 -31
- package/src/base-client/components/common/XTable/XTable.vue +1715 -1715
- package/src/base-client/components/common/XTable/index.md +255 -255
- package/src/base-client/components/common/XTimeline/XTimeline.vue +477 -477
- package/src/base-client/components/his/XHisEditor/XHisEditor.vue +705 -705
- package/src/base-client/components/his/XList/XList.vue +938 -938
- package/src/base-client/components/his/XSimpleTable/XSimpleTable.vue +443 -44
- package/src/base-client/components/his/XTimeSelect/XTimeSelect.vue +354 -354
- package/src/base-client/components/his/XTitle/XTitle.vue +314 -314
- package/src/base-client/components/his/XTreeRows/XTreeRows.vue +341 -341
- package/src/base-client/components/his/threeTestOrders/editor.vue +113 -113
- package/src/base-client/components/system/DictionaryDetailsView/DictionaryDetailsView.vue +232 -232
- package/src/base-client/plugins/Config.js +19 -19
- package/src/base-client/plugins/tabs-page-plugin.js +39 -39
- package/src/components/Charts/Bar.vue +62 -62
- package/src/components/Charts/ChartCard.vue +134 -134
- package/src/components/Charts/Liquid.vue +67 -67
- package/src/components/Charts/MiniArea.vue +39 -39
- package/src/components/Charts/MiniBar.vue +39 -39
- package/src/components/Charts/MiniProgress.vue +75 -75
- package/src/components/Charts/MiniSmoothArea.vue +40 -40
- package/src/components/Charts/Radar.vue +68 -68
- package/src/components/Charts/RankList.vue +77 -77
- package/src/components/Charts/TagCloud.vue +113 -113
- package/src/components/Charts/TransferBar.vue +64 -64
- package/src/components/Charts/Trend.vue +82 -82
- package/src/components/Charts/chart.less +12 -12
- package/src/components/Charts/smooth.area.less +13 -13
- package/src/components/NumberInfo/NumberInfo.vue +54 -54
- package/src/components/NumberInfo/index.js +3 -3
- package/src/components/NumberInfo/index.less +54 -54
- package/src/components/NumberInfo/index.md +43 -43
- package/src/components/card/ChartCard.vue +79 -79
- package/src/components/chart/Bar.vue +60 -60
- package/src/components/chart/MiniArea.vue +67 -67
- package/src/components/chart/MiniBar.vue +59 -59
- package/src/components/chart/MiniProgress.vue +57 -57
- package/src/components/chart/Radar.vue +80 -80
- package/src/components/chart/RankingList.vue +60 -60
- package/src/components/chart/Trend.vue +79 -79
- package/src/components/chart/index.less +9 -9
- package/src/components/checkbox/ColorCheckbox.vue +157 -157
- package/src/components/input/IInput.vue +66 -66
- package/src/components/menu/SideMenu.vue +75 -75
- package/src/components/menu/menu.js +273 -273
- package/src/components/tool/AStepItem.vue +60 -60
- package/src/layouts/CommonLayout.vue +56 -56
- package/src/layouts/header/HeaderNotice.vue +177 -177
- package/src/lib.js +1 -1
- package/src/mock/extend/index.js +84 -84
- package/src/mock/goods/index.js +108 -108
- package/src/pages/dashboard/workplace/WorkPlace.vue +141 -141
- package/src/pages/system/dictionary/index.vue +44 -44
- package/src/pages/system/monitor/loginInfor/index.vue +37 -37
- package/src/pages/system/monitor/operLog/index.vue +37 -37
- package/src/pages/userInfoDetailManage/ExceptionRecordQuery/index.vue +45 -45
- package/src/services/api/cas.js +79 -79
- package/src/store/modules/setting.js +119 -119
- package/src/utils/authority-utils.js +85 -85
- package/src/utils/errorCode.js +6 -6
- package/src-base-client/components/common/HIS/HForm/HForm.vue +347 -0
- package/src-base-client/components/common/XCollapse/XCollapse.vue +0 -0
- package//350/277/201/347/247/273/346/227/245/345/277/227.md +15 -15
|
@@ -1,13 +1,30 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
2
|
+
<div>
|
|
3
|
+
<!-- 标题区域 -->
|
|
4
|
+
<div v-if="showTitle" class="table-title-container" :class="{ 'table-report-mode': isReportMode }">
|
|
5
|
+
<div class="table-title-content">
|
|
6
|
+
<span class="title-text">{{ titleData.text }}</span>
|
|
7
|
+
<span class="title-unit-text">共</span>
|
|
8
|
+
<span class="title-value" v-if="titleData.value !== null">
|
|
9
|
+
{{ titleData.value }}
|
|
10
|
+
</span>
|
|
11
|
+
<span class="title-unit-text">条</span>
|
|
12
|
+
</div>
|
|
13
|
+
<div v-if="titleData.line" class="title-line"></div>
|
|
14
|
+
</div>
|
|
15
|
+
|
|
16
|
+
<!-- 表格区域 -->
|
|
17
|
+
<div class="table-container" :class="{ 'table-report-mode': isReportMode }" :style="{ height: tableHeight }">
|
|
18
|
+
<a-table
|
|
19
|
+
:columns="processedColumns"
|
|
20
|
+
:dataSource="tableData"
|
|
21
|
+
:pagination="false"
|
|
22
|
+
:bordered="false"
|
|
23
|
+
:rowKey="rowKey"
|
|
24
|
+
:scroll="{ y: scrollY }"
|
|
25
|
+
:customRow="customRow"
|
|
26
|
+
/>
|
|
27
|
+
</div>
|
|
11
28
|
</div>
|
|
12
29
|
</template>
|
|
13
30
|
|
|
@@ -33,8 +50,20 @@ export default {
|
|
|
33
50
|
return {
|
|
34
51
|
columns: [],
|
|
35
52
|
tableData: [],
|
|
36
|
-
tableHeight: 'auto',
|
|
37
|
-
scrollY: undefined
|
|
53
|
+
tableHeight: 'auto',
|
|
54
|
+
scrollY: undefined,
|
|
55
|
+
rowStyleConfig: {},
|
|
56
|
+
isReportMode: false,
|
|
57
|
+
// 标题数据 - 添加 show 字段
|
|
58
|
+
titleData: {
|
|
59
|
+
// 默认不显示
|
|
60
|
+
show: false,
|
|
61
|
+
text: '',
|
|
62
|
+
value: null,
|
|
63
|
+
line: false
|
|
64
|
+
},
|
|
65
|
+
// 从配置中读取的数据模式
|
|
66
|
+
dataMode: 'normal'
|
|
38
67
|
}
|
|
39
68
|
},
|
|
40
69
|
watch: {
|
|
@@ -46,24 +75,255 @@ export default {
|
|
|
46
75
|
}
|
|
47
76
|
},
|
|
48
77
|
computed: {
|
|
78
|
+
// 是否显示标题 - 必须明确配置 show: true 才显示
|
|
79
|
+
showTitle () {
|
|
80
|
+
return this.titleData.show === true && (this.titleData.text || this.titleData.value !== null)
|
|
81
|
+
},
|
|
82
|
+
|
|
49
83
|
processedColumns () {
|
|
50
|
-
return this.columns.map(column =>
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
84
|
+
return this.columns.map(column => {
|
|
85
|
+
const processedColumn = {
|
|
86
|
+
...column,
|
|
87
|
+
customHeaderCell: column.headerStyle
|
|
88
|
+
? () => ({ style: column.headerStyle })
|
|
89
|
+
: undefined,
|
|
90
|
+
customCell: (record, rowIndex) => {
|
|
91
|
+
let cellStyle = {}
|
|
92
|
+
|
|
93
|
+
if (column.contentStyle && typeof column.contentStyle === 'object') {
|
|
94
|
+
cellStyle = { ...column.contentStyle }
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
if (this.isReportMode && column.displayType === 'progress') {
|
|
98
|
+
Object.assign(cellStyle, {
|
|
99
|
+
padding: '8px 4px'
|
|
100
|
+
})
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
return { style: cellStyle }
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
if (column.displayType === 'progress') {
|
|
108
|
+
processedColumn.customRender = (text, record, index) => {
|
|
109
|
+
if (text === undefined || text === null || text === '') {
|
|
110
|
+
return text
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
const num = parseFloat(text)
|
|
114
|
+
if (!isNaN(num)) {
|
|
115
|
+
const percentage = Math.min(Math.max(num, 0), 100)
|
|
116
|
+
|
|
117
|
+
if (this.isReportMode) {
|
|
118
|
+
return this.$createElement('div', {
|
|
119
|
+
style: {
|
|
120
|
+
display: 'flex',
|
|
121
|
+
alignItems: 'center',
|
|
122
|
+
gap: '8px',
|
|
123
|
+
width: '100%'
|
|
124
|
+
}
|
|
125
|
+
}, [
|
|
126
|
+
this.$createElement('div', {
|
|
127
|
+
style: {
|
|
128
|
+
position: 'relative',
|
|
129
|
+
width: '100px',
|
|
130
|
+
height: '6px',
|
|
131
|
+
backgroundColor: '#f5f5f5',
|
|
132
|
+
borderRadius: '6px',
|
|
133
|
+
overflow: 'hidden',
|
|
134
|
+
flexShrink: 0
|
|
135
|
+
}
|
|
136
|
+
}, [
|
|
137
|
+
this.$createElement('div', {
|
|
138
|
+
style: {
|
|
139
|
+
position: 'absolute',
|
|
140
|
+
top: 0,
|
|
141
|
+
left: 0,
|
|
142
|
+
width: `${percentage}%`,
|
|
143
|
+
height: '100%',
|
|
144
|
+
backgroundColor: '#377CFF',
|
|
145
|
+
borderRadius: '6px',
|
|
146
|
+
opacity: 1,
|
|
147
|
+
transition: 'width 0.3s ease'
|
|
148
|
+
}
|
|
149
|
+
})
|
|
150
|
+
]),
|
|
151
|
+
this.$createElement('span', {
|
|
152
|
+
style: {
|
|
153
|
+
fontFamily: 'Source Han Sans',
|
|
154
|
+
fontWeight: 700,
|
|
155
|
+
fontSize: '16px',
|
|
156
|
+
color: '#0057FE',
|
|
157
|
+
whiteSpace: 'nowrap'
|
|
158
|
+
}
|
|
159
|
+
}, `${text}${column.unit || ''}`)
|
|
160
|
+
])
|
|
161
|
+
} else {
|
|
162
|
+
return this.$createElement('div', {
|
|
163
|
+
style: {
|
|
164
|
+
position: 'relative',
|
|
165
|
+
width: '100%',
|
|
166
|
+
height: '20px',
|
|
167
|
+
backgroundColor: '#f5f5f5',
|
|
168
|
+
borderRadius: '10px',
|
|
169
|
+
overflow: 'hidden'
|
|
170
|
+
}
|
|
171
|
+
}, [
|
|
172
|
+
this.$createElement('div', {
|
|
173
|
+
style: {
|
|
174
|
+
position: 'absolute',
|
|
175
|
+
top: 0,
|
|
176
|
+
left: 0,
|
|
177
|
+
height: '100%',
|
|
178
|
+
width: `${percentage}%`,
|
|
179
|
+
backgroundColor: this.getProgressColor(percentage),
|
|
180
|
+
borderRadius: '10px',
|
|
181
|
+
transition: 'width 0.3s ease'
|
|
182
|
+
}
|
|
183
|
+
}),
|
|
184
|
+
this.$createElement('div', {
|
|
185
|
+
style: {
|
|
186
|
+
position: 'absolute',
|
|
187
|
+
top: 0,
|
|
188
|
+
left: 0,
|
|
189
|
+
width: '100%',
|
|
190
|
+
height: '100%',
|
|
191
|
+
display: 'flex',
|
|
192
|
+
alignItems: 'center',
|
|
193
|
+
justifyContent: 'center',
|
|
194
|
+
fontSize: '12px',
|
|
195
|
+
fontWeight: 'bold',
|
|
196
|
+
color: percentage > 50 ? '#fff' : '#333',
|
|
197
|
+
zIndex: 1
|
|
198
|
+
}
|
|
199
|
+
}, `${text}${column.unit || ''}`)
|
|
200
|
+
])
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
return text
|
|
205
|
+
}
|
|
206
|
+
} else if (column.unit && !processedColumn.customRender) {
|
|
207
|
+
processedColumn.customRender = (text, record, index) => {
|
|
208
|
+
if (text === undefined || text === null || text === '') {
|
|
209
|
+
return text
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
const num = parseFloat(text)
|
|
213
|
+
if (!isNaN(num)) {
|
|
214
|
+
return {
|
|
215
|
+
children: [
|
|
216
|
+
this.$createElement('span', {
|
|
217
|
+
style: column.contentStyle || {}
|
|
218
|
+
}, text),
|
|
219
|
+
this.$createElement('span', {
|
|
220
|
+
style: {
|
|
221
|
+
fontFamily: 'Source Han Sans',
|
|
222
|
+
fontSize: '16px',
|
|
223
|
+
fontWeight: 'normal',
|
|
224
|
+
lineHeight: '37px',
|
|
225
|
+
color: '#313131',
|
|
226
|
+
marginLeft: '2px'
|
|
227
|
+
}
|
|
228
|
+
}, column.unit)
|
|
229
|
+
]
|
|
230
|
+
}
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
return text
|
|
234
|
+
}
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
return processedColumn
|
|
238
|
+
})
|
|
239
|
+
},
|
|
240
|
+
|
|
241
|
+
customRow () {
|
|
242
|
+
return (record, index) => {
|
|
243
|
+
const rowStyle = { ...this.rowStyleConfig }
|
|
244
|
+
|
|
245
|
+
if (this.isReportMode) {
|
|
246
|
+
Object.assign(rowStyle, {
|
|
247
|
+
borderBottom: '1px solid #E5E9F0',
|
|
248
|
+
margin: 0,
|
|
249
|
+
padding: 0
|
|
250
|
+
})
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
return {
|
|
254
|
+
style: rowStyle,
|
|
255
|
+
on: {
|
|
256
|
+
click: () => this.$emit('row-click', record, index)
|
|
257
|
+
}
|
|
258
|
+
}
|
|
259
|
+
}
|
|
56
260
|
}
|
|
57
261
|
},
|
|
58
262
|
methods: {
|
|
263
|
+
getProgressColor (percentage) {
|
|
264
|
+
if (percentage < 30) {
|
|
265
|
+
return '#ff4d4f'
|
|
266
|
+
} else if (percentage < 60) {
|
|
267
|
+
return '#faad14'
|
|
268
|
+
} else if (percentage < 80) {
|
|
269
|
+
return '#1890ff'
|
|
270
|
+
} else {
|
|
271
|
+
return '#52c41a'
|
|
272
|
+
}
|
|
273
|
+
},
|
|
274
|
+
|
|
59
275
|
init (config, parameterData) {
|
|
60
276
|
getConfigByName(config, 'af-his', res => {
|
|
61
|
-
|
|
62
|
-
this.tableHeight = res.tableHeight || '400px' // 默认400px
|
|
277
|
+
this.tableHeight = res.tableHeight || '400px'
|
|
63
278
|
this.columns = res.columns || []
|
|
64
279
|
|
|
280
|
+
this.rowStyleConfig = res.rowStyle || {}
|
|
281
|
+
|
|
282
|
+
// 从配置中读取数据模式
|
|
283
|
+
this.dataMode = res.dataMode || 'normal'
|
|
284
|
+
|
|
285
|
+
// 从 $attrs 判断是否启用报表模式
|
|
286
|
+
this.isReportMode = this.$attrs['report-mode'] === true ||
|
|
287
|
+
this.$attrs['report-mode'] === '' ||
|
|
288
|
+
this.$attrs['report-mode'] === 'true'
|
|
289
|
+
|
|
290
|
+
// 读取标题配置,默认不显示
|
|
291
|
+
const titleConfig = res.titleConfig || {}
|
|
292
|
+
this.titleData = {
|
|
293
|
+
// 默认 false
|
|
294
|
+
show: titleConfig.show || false,
|
|
295
|
+
text: titleConfig.text || '',
|
|
296
|
+
line: titleConfig.line || false,
|
|
297
|
+
value: null
|
|
298
|
+
}
|
|
299
|
+
|
|
65
300
|
runLogic(res.logicName, parameterData, 'af-his').then(result => {
|
|
66
|
-
|
|
301
|
+
// 根据配置中的dataMode处理返回的数据
|
|
302
|
+
if (this.dataMode === 'title' && result && typeof result === 'object') {
|
|
303
|
+
if (result.title) {
|
|
304
|
+
// 如果接口返回了title,则显示标题(即使配置中show: false)
|
|
305
|
+
this.titleData.show = true
|
|
306
|
+
this.titleData = {
|
|
307
|
+
...this.titleData,
|
|
308
|
+
...result.title,
|
|
309
|
+
value: result.title.value !== undefined ? result.title.value : result.title.count
|
|
310
|
+
}
|
|
311
|
+
}
|
|
312
|
+
|
|
313
|
+
this.tableData = result.data || []
|
|
314
|
+
} else {
|
|
315
|
+
// 普通模式:返回的是数组
|
|
316
|
+
this.tableData = Array.isArray(result) ? result : []
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
// 只有在显示标题的情况下才设置value
|
|
320
|
+
if (this.titleData.show) {
|
|
321
|
+
if (this.titleData.value === null || this.titleData.value === undefined) {
|
|
322
|
+
this.titleData.value = this.tableData.length
|
|
323
|
+
}
|
|
324
|
+
}
|
|
325
|
+
|
|
326
|
+
this.tableData = this.tableData.map((item, index) => ({
|
|
67
327
|
...item,
|
|
68
328
|
key: item[this.rowKey] || `row_${index}`
|
|
69
329
|
}))
|
|
@@ -78,68 +338,207 @@ export default {
|
|
|
78
338
|
}
|
|
79
339
|
</script>
|
|
80
340
|
|
|
81
|
-
<style scoped>
|
|
82
|
-
/*
|
|
341
|
+
<style scoped lang="less">
|
|
342
|
+
/* 标题区域样式 - 默认 */
|
|
343
|
+
.table-title-container {
|
|
344
|
+
margin-bottom: 16px;
|
|
345
|
+
padding: 0 13px;
|
|
346
|
+
}
|
|
347
|
+
|
|
348
|
+
.table-title-content {
|
|
349
|
+
display: flex;
|
|
350
|
+
align-items: center;
|
|
351
|
+
gap: 4px;
|
|
352
|
+
}
|
|
353
|
+
|
|
354
|
+
/* 标题文本 - 默认样式 */
|
|
355
|
+
.title-text {
|
|
356
|
+
font-family: 'Source Han Sans', sans-serif;
|
|
357
|
+
font-size: 18px;
|
|
358
|
+
font-weight: 700;
|
|
359
|
+
color: #313131;
|
|
360
|
+
line-height: 1.5;
|
|
361
|
+
white-space: nowrap;
|
|
362
|
+
}
|
|
363
|
+
|
|
364
|
+
/* 单位文本 - 默认样式 */
|
|
365
|
+
.title-unit-text {
|
|
366
|
+
font-family: 'Source Han Sans', sans-serif;
|
|
367
|
+
font-size: 14px;
|
|
368
|
+
font-weight: 400;
|
|
369
|
+
color: #5D5C5C;
|
|
370
|
+
line-height: 1.5;
|
|
371
|
+
}
|
|
372
|
+
|
|
373
|
+
/* 值文本 - 默认样式 */
|
|
374
|
+
.title-value {
|
|
375
|
+
font-family: 'Source Han Sans', sans-serif;
|
|
376
|
+
font-size: 14px;
|
|
377
|
+
font-weight: 400;
|
|
378
|
+
color: #0057FE;
|
|
379
|
+
line-height: 1.5;
|
|
380
|
+
margin: 0 2px;
|
|
381
|
+
}
|
|
382
|
+
|
|
383
|
+
.title-line {
|
|
384
|
+
height: 1px;
|
|
385
|
+
background-color: #E5E9F0;
|
|
386
|
+
width: 100%;
|
|
387
|
+
margin-top: 8px;
|
|
388
|
+
}
|
|
389
|
+
|
|
390
|
+
/* 报表模式下的标题样式 */
|
|
391
|
+
.table-report-mode.table-title-container {
|
|
392
|
+
.title-text {
|
|
393
|
+
height: 37px;
|
|
394
|
+
opacity: 1;
|
|
395
|
+
font-family: 'Source Han Sans', sans-serif;
|
|
396
|
+
font-size: 16px;
|
|
397
|
+
font-weight: bold;
|
|
398
|
+
line-height: 37px;
|
|
399
|
+
letter-spacing: 0em;
|
|
400
|
+
color: #313131;
|
|
401
|
+
margin-right: 8px;
|
|
402
|
+
}
|
|
403
|
+
|
|
404
|
+
.title-value {
|
|
405
|
+
font-family: 'Source Han Sans', sans-serif;
|
|
406
|
+
font-weight: 700;
|
|
407
|
+
font-size: 16px;
|
|
408
|
+
color: #0057FE;
|
|
409
|
+
line-height: 37px;
|
|
410
|
+
margin: 0 2px;
|
|
411
|
+
}
|
|
412
|
+
|
|
413
|
+
.title-unit-text {
|
|
414
|
+
font-family: 'Source Han Sans', sans-serif;
|
|
415
|
+
font-weight: 400;
|
|
416
|
+
font-size: 16px;
|
|
417
|
+
color: #313131;
|
|
418
|
+
line-height: 37px;
|
|
419
|
+
}
|
|
420
|
+
}
|
|
421
|
+
|
|
422
|
+
/* 表格区域样式 */
|
|
83
423
|
.table-container {
|
|
84
424
|
overflow: hidden;
|
|
85
425
|
display: flex;
|
|
86
426
|
flex-direction: column;
|
|
87
|
-
padding-left: 13px;
|
|
427
|
+
padding-left: 13px;
|
|
88
428
|
}
|
|
89
429
|
|
|
90
|
-
/*
|
|
91
|
-
|
|
430
|
+
/* 报表模式下的表格样式 */
|
|
431
|
+
.table-report-mode.table-container {
|
|
432
|
+
:deep(.ant-table) {
|
|
433
|
+
border: 1px solid #E5E9F0 !important;
|
|
434
|
+
border-radius: 4px;
|
|
435
|
+
overflow: hidden;
|
|
436
|
+
}
|
|
437
|
+
|
|
438
|
+
:deep(.ant-table-thead > tr > th) {
|
|
439
|
+
border-bottom: 1px solid #E5E9F0 !important;
|
|
440
|
+
border-right: none !important;
|
|
441
|
+
border-left: none !important;
|
|
442
|
+
padding: 8px 6px !important;
|
|
443
|
+
margin: 0 !important;
|
|
444
|
+
background: white !important;
|
|
445
|
+
}
|
|
446
|
+
|
|
447
|
+
:deep(.ant-table-tbody > tr > td) {
|
|
448
|
+
border-bottom: 1px solid #E5E9F0 !important;
|
|
449
|
+
border-right: none !important;
|
|
450
|
+
border-left: none !important;
|
|
451
|
+
padding: 6px !important;
|
|
452
|
+
margin: 0 !important;
|
|
453
|
+
}
|
|
454
|
+
|
|
455
|
+
:deep(.ant-table-tbody > tr:last-child > td) {
|
|
456
|
+
border-bottom: none !important;
|
|
457
|
+
}
|
|
458
|
+
|
|
459
|
+
:deep(.ant-table-thead > tr > th),
|
|
460
|
+
:deep(.ant-table-tbody > tr > td) {
|
|
461
|
+
width: auto;
|
|
462
|
+
box-sizing: border-box;
|
|
463
|
+
}
|
|
464
|
+
|
|
465
|
+
:deep(.ant-table-content) {
|
|
466
|
+
margin: 0 !important;
|
|
467
|
+
padding: 0 !important;
|
|
468
|
+
}
|
|
469
|
+
|
|
470
|
+
:deep(.ant-table-body) {
|
|
471
|
+
margin: 0 !important;
|
|
472
|
+
padding: 0 !important;
|
|
473
|
+
border-top: none !important;
|
|
474
|
+
}
|
|
475
|
+
|
|
476
|
+
:deep(.ant-table-header) {
|
|
477
|
+
margin-bottom: 0 !important;
|
|
478
|
+
}
|
|
479
|
+
|
|
480
|
+
:deep(.ant-table-scroll) {
|
|
481
|
+
overflow: hidden;
|
|
482
|
+
}
|
|
483
|
+
}
|
|
484
|
+
|
|
485
|
+
/* 基础表格样式 */
|
|
486
|
+
:deep(.ant-table) {
|
|
92
487
|
border: none !important;
|
|
93
488
|
flex: 1;
|
|
94
489
|
display: flex;
|
|
95
490
|
flex-direction: column;
|
|
491
|
+
margin: 0 !important;
|
|
96
492
|
}
|
|
97
493
|
|
|
98
|
-
|
|
494
|
+
:deep(.ant-table-content) {
|
|
99
495
|
flex: 1;
|
|
100
496
|
display: flex;
|
|
101
497
|
flex-direction: column;
|
|
498
|
+
margin: 0 !important;
|
|
102
499
|
}
|
|
103
500
|
|
|
104
|
-
|
|
501
|
+
:deep(.ant-table-body) {
|
|
105
502
|
flex: 1;
|
|
106
503
|
overflow-y: auto !important;
|
|
107
|
-
|
|
504
|
+
margin: 0 !important;
|
|
505
|
+
padding-top: 0 !important;
|
|
108
506
|
}
|
|
109
507
|
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
scrollbar-width: thin; /* auto | thin | none */
|
|
114
|
-
scrollbar-color: #E5E5E5 transparent; /* thumb track */
|
|
508
|
+
:deep(.ant-table-body) {
|
|
509
|
+
scrollbar-width: thin;
|
|
510
|
+
scrollbar-color: #E5E5E5 transparent;
|
|
115
511
|
}
|
|
116
|
-
|
|
512
|
+
|
|
513
|
+
:deep(.ant-table-body::-webkit-scrollbar) {
|
|
117
514
|
width: 8px;
|
|
118
515
|
height: 8px;
|
|
119
516
|
}
|
|
120
|
-
|
|
517
|
+
|
|
518
|
+
:deep(.ant-table-body::-webkit-scrollbar-track) {
|
|
121
519
|
background: transparent;
|
|
122
520
|
}
|
|
123
|
-
|
|
521
|
+
|
|
522
|
+
:deep(.ant-table-body::-webkit-scrollbar-thumb) {
|
|
124
523
|
background: #E5E5E5;
|
|
125
524
|
border-radius: 25px;
|
|
126
525
|
}
|
|
127
526
|
|
|
128
|
-
|
|
527
|
+
:deep(.ant-table-tbody > tr > td) {
|
|
129
528
|
border-bottom: none !important;
|
|
130
529
|
padding: 6px !important;
|
|
131
|
-
/* 表体字体样式 */
|
|
132
530
|
font-family: 'Source Han Sans', sans-serif;
|
|
133
531
|
font-size: 14px;
|
|
134
|
-
font-weight: 400;
|
|
532
|
+
font-weight: 400;
|
|
135
533
|
line-height: 18px;
|
|
136
534
|
letter-spacing: 0em;
|
|
137
|
-
font-optical-sizing: auto;
|
|
535
|
+
font-optical-sizing: auto;
|
|
138
536
|
font-feature-settings: 'kern' on;
|
|
139
537
|
color: #5D5C5C;
|
|
538
|
+
margin: 0 !important;
|
|
140
539
|
}
|
|
141
540
|
|
|
142
|
-
|
|
541
|
+
:deep(.ant-table-thead > tr > th) {
|
|
143
542
|
border-bottom: none !important;
|
|
144
543
|
background: none !important;
|
|
145
544
|
padding: 8px 6px !important;
|
|
@@ -147,16 +546,16 @@ export default {
|
|
|
147
546
|
top: 0;
|
|
148
547
|
z-index: 1;
|
|
149
548
|
background-color: white !important;
|
|
150
|
-
/* 头部字体样式 */
|
|
151
549
|
height: 20px;
|
|
152
550
|
opacity: 1;
|
|
153
551
|
font-family: 'Source Han Sans', sans-serif;
|
|
154
552
|
font-size: 14px;
|
|
155
|
-
font-weight: 700;
|
|
553
|
+
font-weight: 700;
|
|
156
554
|
line-height: normal;
|
|
157
555
|
letter-spacing: 0em;
|
|
158
|
-
font-optical-sizing: auto;
|
|
556
|
+
font-optical-sizing: auto;
|
|
159
557
|
font-feature-settings: 'kern' on;
|
|
160
558
|
color: #5D5C5C;
|
|
559
|
+
margin: 0 !important;
|
|
161
560
|
}
|
|
162
561
|
</style>
|