vue2-client 1.16.95 → 1.16.97

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 (23) hide show
  1. package/.env.message +19 -19
  2. package/package.json +1 -1
  3. package/src/assets/svg/female.svg +1 -1
  4. package/src/assets/svg/male.svg +1 -1
  5. package/src/base-client/components/common/HIS/HButtons/HButtons.vue +491 -491
  6. package/src/base-client/components/common/HIS/HForm/HForm.vue +401 -389
  7. package/src/base-client/components/common/HIS/HFormGroup/index.js +3 -3
  8. package/src/base-client/components/common/HIS/HTab/HTab.vue +443 -443
  9. package/src/base-client/components/common/XAddNativeForm/XAddNativeForm.vue +1292 -1288
  10. package/src/base-client/components/common/XCollapse/XCollapse.vue +833 -833
  11. package/src/base-client/components/common/XFormTable/demo.vue +89 -89
  12. package/src/base-client/components/common/XTimeline/XTimeline.vue +477 -477
  13. package/src/base-client/components/his/XHisEditor/XHisEditor.vue +705 -705
  14. package/src/base-client/components/his/XList/XList.vue +938 -938
  15. package/src/base-client/components/his/XRadio/XRadio.vue +469 -469
  16. package/src/base-client/components/his/XSimpleTable/XSimpleTable.vue +159 -159
  17. package/src/base-client/components/his/XTimeSelect/XTimeSelect.vue +354 -354
  18. package/src/base-client/components/his/XTitle/XTitle.vue +306 -288
  19. package/src/base-client/components/his/XTreeRows/XTreeRows.vue +341 -341
  20. package/src/base-client/components/his/threeTestOrders/editor.vue +113 -113
  21. package/src/pages/userInfoDetailManage/ExceptionRecordQuery/index.vue +45 -45
  22. package/src-base-client/components/common/HIS/HForm/HForm.vue +0 -347
  23. package/src-base-client/components/common/XCollapse/XCollapse.vue +0 -0
@@ -1,159 +1,159 @@
1
- <template>
2
- <div class="table-container" :style="{ height: tableHeight }">
3
- <a-table
4
- :columns="processedColumns"
5
- :dataSource="tableData"
6
- :pagination="false"
7
- :bordered="false"
8
- :rowKey="rowKey"
9
- :scroll="{ y: scrollY }"
10
- />
11
- </div>
12
- </template>
13
-
14
- <script>
15
- import { getConfigByName, runLogic } from '@vue2-client/services/api/common'
16
-
17
- export default {
18
- props: {
19
- queryParamsName: String,
20
- rowKey: {
21
- type: String,
22
- default: 'id'
23
- },
24
- parameter: {
25
- type: Object,
26
- default: () => ({})
27
- }
28
- },
29
- data () {
30
- return {
31
- columns: [],
32
- tableData: [],
33
- tableHeight: 'auto', // 默认高度
34
- scrollY: undefined
35
- }
36
- },
37
- watch: {
38
- queryParamsName: {
39
- immediate: true,
40
- handler (val) {
41
- val && this.init(val, this.parameter)
42
- }
43
- }
44
- },
45
- computed: {
46
- processedColumns () {
47
- return this.columns.map(column => ({
48
- ...column,
49
- customHeaderCell: column.headerStyle
50
- ? () => ({ style: column.headerStyle })
51
- : undefined
52
- }))
53
- }
54
- },
55
- methods: {
56
- init (config, parameterData) {
57
- getConfigByName(config, 'af-his', res => {
58
- // 从配置中获取表格高度
59
- this.tableHeight = res.tableHeight || '400px' // 默认400px
60
- this.columns = res.columns || []
61
-
62
- runLogic(res.logicName, parameterData, 'af-his').then(result => {
63
- this.tableData = result.map((item, index) => ({
64
- ...item,
65
- key: item[this.rowKey] || `row_${index}`
66
- }))
67
-
68
- this.$nextTick(() => {
69
- this.scrollY = this.tableHeight
70
- })
71
- })
72
- })
73
- }
74
- }
75
- }
76
- </script>
77
-
78
- <style scoped>
79
- /* 表格容器 */
80
- .table-container {
81
- overflow: hidden;
82
- display: flex;
83
- flex-direction: column;
84
- padding-left: 13px; /* 整体左边距 */
85
- }
86
-
87
- /* 基础无边框样式 */
88
- /deep/ .ant-table {
89
- border: none !important;
90
- flex: 1;
91
- display: flex;
92
- flex-direction: column;
93
- }
94
-
95
- /deep/ .ant-table-content {
96
- flex: 1;
97
- display: flex;
98
- flex-direction: column;
99
- }
100
-
101
- /deep/ .ant-table-body {
102
- flex: 1;
103
- overflow-y: auto !important;
104
- padding-top: 5px; /* 表头与第一行的间距 */
105
- }
106
-
107
- /* 自定义滚动条样式 */
108
- /deep/ .ant-table-body {
109
- /* Firefox */
110
- scrollbar-width: thin; /* auto | thin | none */
111
- scrollbar-color: #E5E5E5 transparent; /* thumb track */
112
- }
113
- /deep/ .ant-table-body::-webkit-scrollbar {
114
- width: 8px;
115
- height: 8px;
116
- }
117
- /deep/ .ant-table-body::-webkit-scrollbar-track {
118
- background: transparent;
119
- }
120
- /deep/ .ant-table-body::-webkit-scrollbar-thumb {
121
- background: #E5E5E5;
122
- border-radius: 25px;
123
- }
124
-
125
- /deep/ .ant-table-tbody > tr > td {
126
- border-bottom: none !important;
127
- padding: 6px !important;
128
- /* 表体字体样式 */
129
- font-family: 'Source Han Sans', sans-serif;
130
- font-size: 14px;
131
- font-weight: 400; /* normal */
132
- line-height: 18px;
133
- letter-spacing: 0em;
134
- font-optical-sizing: auto; /* 替代 font-variation-settings:"opsz" auto */
135
- font-feature-settings: 'kern' on;
136
- color: #5D5C5C;
137
- }
138
-
139
- /deep/ .ant-table-thead > tr > th {
140
- border-bottom: none !important;
141
- background: none !important;
142
- padding: 8px 6px !important;
143
- position: sticky;
144
- top: 0;
145
- z-index: 1;
146
- background-color: white !important;
147
- /* 头部字体样式 */
148
- height: 20px;
149
- opacity: 1;
150
- font-family: 'Source Han Sans', sans-serif;
151
- font-size: 14px;
152
- font-weight: 700; /* bold */
153
- line-height: normal;
154
- letter-spacing: 0em;
155
- font-optical-sizing: auto; /* 替代 font-variation-settings:"opsz" auto 以通过校验 */
156
- font-feature-settings: 'kern' on;
157
- color: #5D5C5C;
158
- }
159
- </style>
1
+ <template>
2
+ <div class="table-container" :style="{ height: tableHeight }">
3
+ <a-table
4
+ :columns="processedColumns"
5
+ :dataSource="tableData"
6
+ :pagination="false"
7
+ :bordered="false"
8
+ :rowKey="rowKey"
9
+ :scroll="{ y: scrollY }"
10
+ />
11
+ </div>
12
+ </template>
13
+
14
+ <script>
15
+ import { getConfigByName, runLogic } from '@vue2-client/services/api/common'
16
+
17
+ export default {
18
+ props: {
19
+ queryParamsName: String,
20
+ rowKey: {
21
+ type: String,
22
+ default: 'id'
23
+ },
24
+ parameter: {
25
+ type: Object,
26
+ default: () => ({})
27
+ }
28
+ },
29
+ data () {
30
+ return {
31
+ columns: [],
32
+ tableData: [],
33
+ tableHeight: 'auto', // 默认高度
34
+ scrollY: undefined
35
+ }
36
+ },
37
+ watch: {
38
+ queryParamsName: {
39
+ immediate: true,
40
+ handler (val) {
41
+ val && this.init(val, this.parameter)
42
+ }
43
+ }
44
+ },
45
+ computed: {
46
+ processedColumns () {
47
+ return this.columns.map(column => ({
48
+ ...column,
49
+ customHeaderCell: column.headerStyle
50
+ ? () => ({ style: column.headerStyle })
51
+ : undefined
52
+ }))
53
+ }
54
+ },
55
+ methods: {
56
+ init (config, parameterData) {
57
+ getConfigByName(config, 'af-his', res => {
58
+ // 从配置中获取表格高度
59
+ this.tableHeight = res.tableHeight || '400px' // 默认400px
60
+ this.columns = res.columns || []
61
+
62
+ runLogic(res.logicName, parameterData, 'af-his').then(result => {
63
+ this.tableData = result.map((item, index) => ({
64
+ ...item,
65
+ key: item[this.rowKey] || `row_${index}`
66
+ }))
67
+
68
+ this.$nextTick(() => {
69
+ this.scrollY = this.tableHeight
70
+ })
71
+ })
72
+ })
73
+ }
74
+ }
75
+ }
76
+ </script>
77
+
78
+ <style scoped>
79
+ /* 表格容器 */
80
+ .table-container {
81
+ overflow: hidden;
82
+ display: flex;
83
+ flex-direction: column;
84
+ padding-left: 13px; /* 整体左边距 */
85
+ }
86
+
87
+ /* 基础无边框样式 */
88
+ /deep/ .ant-table {
89
+ border: none !important;
90
+ flex: 1;
91
+ display: flex;
92
+ flex-direction: column;
93
+ }
94
+
95
+ /deep/ .ant-table-content {
96
+ flex: 1;
97
+ display: flex;
98
+ flex-direction: column;
99
+ }
100
+
101
+ /deep/ .ant-table-body {
102
+ flex: 1;
103
+ overflow-y: auto !important;
104
+ padding-top: 5px; /* 表头与第一行的间距 */
105
+ }
106
+
107
+ /* 自定义滚动条样式 */
108
+ /deep/ .ant-table-body {
109
+ /* Firefox */
110
+ scrollbar-width: thin; /* auto | thin | none */
111
+ scrollbar-color: #E5E5E5 transparent; /* thumb track */
112
+ }
113
+ /deep/ .ant-table-body::-webkit-scrollbar {
114
+ width: 8px;
115
+ height: 8px;
116
+ }
117
+ /deep/ .ant-table-body::-webkit-scrollbar-track {
118
+ background: transparent;
119
+ }
120
+ /deep/ .ant-table-body::-webkit-scrollbar-thumb {
121
+ background: #E5E5E5;
122
+ border-radius: 25px;
123
+ }
124
+
125
+ /deep/ .ant-table-tbody > tr > td {
126
+ border-bottom: none !important;
127
+ padding: 6px !important;
128
+ /* 表体字体样式 */
129
+ font-family: 'Source Han Sans', sans-serif;
130
+ font-size: 14px;
131
+ font-weight: 400; /* normal */
132
+ line-height: 18px;
133
+ letter-spacing: 0em;
134
+ font-optical-sizing: auto; /* 替代 font-variation-settings:"opsz" auto */
135
+ font-feature-settings: 'kern' on;
136
+ color: #5D5C5C;
137
+ }
138
+
139
+ /deep/ .ant-table-thead > tr > th {
140
+ border-bottom: none !important;
141
+ background: none !important;
142
+ padding: 8px 6px !important;
143
+ position: sticky;
144
+ top: 0;
145
+ z-index: 1;
146
+ background-color: white !important;
147
+ /* 头部字体样式 */
148
+ height: 20px;
149
+ opacity: 1;
150
+ font-family: 'Source Han Sans', sans-serif;
151
+ font-size: 14px;
152
+ font-weight: 700; /* bold */
153
+ line-height: normal;
154
+ letter-spacing: 0em;
155
+ font-optical-sizing: auto; /* 替代 font-variation-settings:"opsz" auto 以通过校验 */
156
+ font-feature-settings: 'kern' on;
157
+ color: #5D5C5C;
158
+ }
159
+ </style>