vue2-client 1.16.49 → 1.16.51

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 (45) hide show
  1. package/package.json +112 -112
  2. package/src/assets/svg/female.svg +1 -0
  3. package/src/assets/svg/male.svg +1 -0
  4. package/src/base-client/components/common/HIS/HButtons/HButtons.vue +371 -371
  5. package/src/base-client/components/common/HIS/HFormGroup/HFormGroup.vue +120 -120
  6. package/src/base-client/components/common/HIS/HFormGroup/index.js +3 -3
  7. package/src/base-client/components/common/HIS/HFormTable/HFormTable.vue +379 -257
  8. package/src/base-client/components/common/HIS/demo.vue +61 -61
  9. package/src/base-client/components/common/XCollapse/XCollapse.vue +461 -461
  10. package/src/base-client/components/common/XInput/XInput.vue +147 -147
  11. package/src/base-client/components/common/XReportGrid/XReportTrGroup.vue +824 -824
  12. package/src/base-client/components/common/XTable/XTable.vue +1610 -1610
  13. package/src/base-client/components/common/XTimeline/XTimeline.vue +454 -454
  14. package/src/base-client/components/his/XHisEditor/XHisEditor.vue +705 -705
  15. package/src/base-client/components/his/XList/XList.vue +829 -607
  16. package/src/base-client/components/his/threeTestOrders/editor.vue +113 -113
  17. package/src/pages/WorkflowDetail/WorkFlowDemo3.vue +203 -225
  18. package/src/pages/userInfoDetailManage/ExceptionRecordQuery/index.vue +45 -45
  19. package/src/router/async/router.map.js +129 -129
  20. package/src/services/api/common.js +0 -2
  21. package/.history/src/base-client/components/common/XDataCard/XDataCard_20250926145434.vue +0 -641
  22. package/.history/src/base-client/components/common/XDataCard/XDataCard_20250926145453.vue +0 -641
  23. package/.history/src/base-client/components/common/XDataCard/XDataCard_20250926145610.vue +0 -647
  24. package/.history/src/base-client/components/common/XDataCard/XDataCard_20250926145629.vue +0 -647
  25. package/.history/src/base-client/components/common/XDataCard/XDataCard_20250926145901.vue +0 -645
  26. package/.history/src/base-client/components/common/XDataCard/XDataCard_20250926145907.vue +0 -651
  27. package/.history/src/base-client/components/common/XDataCard/XDataCard_20250926145920.vue +0 -651
  28. package/.history/src/base-client/components/common/XDataCard/XDataCard_20250926150047.vue +0 -651
  29. package/.history/src/base-client/components/common/XDataCard/XDataCard_20250926151820.vue +0 -646
  30. package/.history/src/base-client/components/common/XDataCard/XDataCard_20250926151827.vue +0 -646
  31. package/.history/src/base-client/components/common/XDataCard/XDataCard_20250926152115.vue +0 -646
  32. package/.history/src/base-client/components/common/XDataCard/XDataCard_20250926152212.vue +0 -653
  33. package/.history/src/base-client/components/common/XDataCard/XDataCard_20250926152215.vue +0 -653
  34. package/.history/src/base-client/components/common/XDataCard/XDataCard_20250926152337.vue +0 -657
  35. package/.history/src/base-client/components/common/XDataCard/XDataCard_20250926152341.vue +0 -657
  36. package/.history/src/base-client/components/common/XDataCard/XDataCard_20250926152826.vue +0 -657
  37. package/.history/src/base-client/components/common/XDataCard/XDataCard_20250926152828.vue +0 -646
  38. package/.history/src/base-client/components/common/XDataCard/XDataCard_20250926153121.vue +0 -654
  39. package/.history/src/base-client/components/common/XDataCard/XDataCard_20250926153242.vue +0 -654
  40. package/.history/src/base-client/components/common/XDataCard/XDataCard_20250926153318.vue +0 -646
  41. package/.history/src/base-client/components/common/XDataCard/XDataCard_20250926153415.vue +0 -646
  42. package/.history/src/base-client/components/common/XDataCard/XDataCard_20250926153435.vue +0 -655
  43. package/.history/src/base-client/components/common/XDataCard/XDataCard_20250926153606.vue +0 -655
  44. package/.history/src/base-client/components/common/XDataCard/XDataCard_20250926153653.vue +0 -655
  45. package/src/base-client/components/common/XDataCard/test.vue +0 -367
@@ -1,147 +1,147 @@
1
- <template>
2
- <div class="x-input-wrapper" :class="wrapperClassObject">
3
- <div class="input-container">
4
- <span v-if="config?.label" class="input-label">{{ config.label }}</span>
5
- <div class="input-wrapper">
6
- <a-input
7
- v-model="innerValue"
8
- v-bind="$attrs"
9
- :placeholder="config?.placeholder"
10
- :size="config?.size"
11
- :maxLength="config?.maxLength"
12
- :disabled="config?.disabled"
13
- :allowClear="config?.allowClear"
14
- @change="handleInput"
15
- @pressEnter="handleSearch"
16
- >
17
- <template v-if="config?.prefix" #prefix>
18
- <a-icon :type="config.prefix" @click="handleSearch" class="clickable-icon" />
19
- </template>
20
- <template v-if="config?.suffix" #suffix>
21
- <a-icon :type="config.suffix" @click="handleSearch" class="clickable-icon" />
22
- </template>
23
- </a-input>
24
- </div>
25
- <span v-if="config?.tail" class="input-tail">{{ config.tail }}</span>
26
- </div>
27
- </div>
28
- </template>
29
-
30
- <script>
31
- import { getConfigByName, runLogic } from '@vue2-client/services/api/common'
32
-
33
- export default {
34
- name: 'XInput',
35
- inheritAttrs: false,
36
- props: {
37
- value: {
38
- type: [String, Number],
39
- default: ''
40
- },
41
- queryParamsName: {
42
- type: String,
43
- default: ''
44
- }
45
- },
46
- data () {
47
- return {
48
- innerValue: this.value || '',
49
- config: null
50
- }
51
- },
52
- computed: {
53
- // 动态样式开关:布尔开关 + size 派生类
54
- wrapperClassObject () {
55
- const attrs = this.$attrs || {}
56
- const classes = {}
57
- const booleanStyleKeys = [
58
-
59
- ]
60
- booleanStyleKeys.forEach(key => {
61
- const val = attrs[key]
62
- const truthy = val === true || val === '' || val === 'true'
63
- if (truthy) classes[`xinput-${key}`] = true
64
- })
65
- const size = attrs.size
66
- if (size && typeof size === 'string') classes[`xinput-size-${size}`] = true
67
- return classes
68
- }
69
- },
70
- created () {
71
- this.getData(this.queryParamsName)
72
- },
73
- emits: ['search'],
74
- methods: {
75
- runLogic,
76
- async getData (data) {
77
- getConfigByName(data, 'af-his', res => {
78
- this.config = res
79
- if (res.defaultValue !== undefined) {
80
- this.innerValue = res.defaultValue
81
- }
82
- })
83
- },
84
- handleInput (e) {
85
- const value = e.target.value
86
- this.innerValue = value
87
- this.$emit('search', value)
88
- },
89
- handleSearch () {
90
- // 统一的搜索事件:将当前输入值发送给父组件
91
- this.$emit('search', this.innerValue)
92
- }
93
- },
94
- watch: {
95
- value: {
96
- handler (newValue) {
97
- this.innerValue = newValue
98
- },
99
- immediate: true
100
- },
101
- queryParamsName: {
102
- handler (newValue) {
103
- this.getData(newValue)
104
- },
105
- deep: true
106
- }
107
- }
108
- }
109
- </script>
110
-
111
- <style scoped lang="less">
112
- .x-input-wrapper {
113
- position: relative;
114
- display: inline-block;
115
- width: 100%;
116
- }
117
-
118
- .input-container {
119
- display: flex;
120
- align-items: center;
121
- }
122
-
123
- .input-label {
124
- white-space: nowrap;
125
- color: rgba(0, 0, 0, 0.85);
126
- padding-right: 8px; /* 标签右侧固定间距 */
127
- }
128
-
129
- .input-label {
130
- white-space: nowrap;
131
- color: rgba(0, 0, 0, 0.85);
132
- padding-left: 4px; /* 标签左侧固定间距 */
133
- }
134
-
135
- .input-wrapper {
136
- flex: 1; /* 输入框占据剩余空间 */
137
- }
138
-
139
- :deep(.clickable-icon) {
140
- cursor: pointer;
141
- }
142
-
143
- :deep(.clickable-icon:hover) {
144
- color: #1890ff;
145
- }
146
-
147
- </style>
1
+ <template>
2
+ <div class="x-input-wrapper" :class="wrapperClassObject">
3
+ <div class="input-container">
4
+ <span v-if="config?.label" class="input-label">{{ config.label }}</span>
5
+ <div class="input-wrapper">
6
+ <a-input
7
+ v-model="innerValue"
8
+ v-bind="$attrs"
9
+ :placeholder="config?.placeholder"
10
+ :size="config?.size"
11
+ :maxLength="config?.maxLength"
12
+ :disabled="config?.disabled"
13
+ :allowClear="config?.allowClear"
14
+ @change="handleInput"
15
+ @pressEnter="handleSearch"
16
+ >
17
+ <template v-if="config?.prefix" #prefix>
18
+ <a-icon :type="config.prefix" @click="handleSearch" class="clickable-icon" />
19
+ </template>
20
+ <template v-if="config?.suffix" #suffix>
21
+ <a-icon :type="config.suffix" @click="handleSearch" class="clickable-icon" />
22
+ </template>
23
+ </a-input>
24
+ </div>
25
+ <span v-if="config?.tail" class="input-tail">{{ config.tail }}</span>
26
+ </div>
27
+ </div>
28
+ </template>
29
+
30
+ <script>
31
+ import { getConfigByName, runLogic } from '@vue2-client/services/api/common'
32
+
33
+ export default {
34
+ name: 'XInput',
35
+ inheritAttrs: false,
36
+ props: {
37
+ value: {
38
+ type: [String, Number],
39
+ default: ''
40
+ },
41
+ queryParamsName: {
42
+ type: String,
43
+ default: ''
44
+ }
45
+ },
46
+ data () {
47
+ return {
48
+ innerValue: this.value || '',
49
+ config: null
50
+ }
51
+ },
52
+ computed: {
53
+ // 动态样式开关:布尔开关 + size 派生类
54
+ wrapperClassObject () {
55
+ const attrs = this.$attrs || {}
56
+ const classes = {}
57
+ const booleanStyleKeys = [
58
+
59
+ ]
60
+ booleanStyleKeys.forEach(key => {
61
+ const val = attrs[key]
62
+ const truthy = val === true || val === '' || val === 'true'
63
+ if (truthy) classes[`xinput-${key}`] = true
64
+ })
65
+ const size = attrs.size
66
+ if (size && typeof size === 'string') classes[`xinput-size-${size}`] = true
67
+ return classes
68
+ }
69
+ },
70
+ created () {
71
+ this.getData(this.queryParamsName)
72
+ },
73
+ emits: ['search'],
74
+ methods: {
75
+ runLogic,
76
+ async getData (data) {
77
+ getConfigByName(data, 'af-his', res => {
78
+ this.config = res
79
+ if (res.defaultValue !== undefined) {
80
+ this.innerValue = res.defaultValue
81
+ }
82
+ })
83
+ },
84
+ handleInput (e) {
85
+ const value = e.target.value
86
+ this.innerValue = value
87
+ this.$emit('search', value)
88
+ },
89
+ handleSearch () {
90
+ // 统一的搜索事件:将当前输入值发送给父组件
91
+ this.$emit('search', this.innerValue)
92
+ }
93
+ },
94
+ watch: {
95
+ value: {
96
+ handler (newValue) {
97
+ this.innerValue = newValue
98
+ },
99
+ immediate: true
100
+ },
101
+ queryParamsName: {
102
+ handler (newValue) {
103
+ this.getData(newValue)
104
+ },
105
+ deep: true
106
+ }
107
+ }
108
+ }
109
+ </script>
110
+
111
+ <style scoped lang="less">
112
+ .x-input-wrapper {
113
+ position: relative;
114
+ display: inline-block;
115
+ width: 100%;
116
+ }
117
+
118
+ .input-container {
119
+ display: flex;
120
+ align-items: center;
121
+ }
122
+
123
+ .input-label {
124
+ white-space: nowrap;
125
+ color: rgba(0, 0, 0, 0.85);
126
+ padding-right: 8px; /* 标签右侧固定间距 */
127
+ }
128
+
129
+ .input-label {
130
+ white-space: nowrap;
131
+ color: rgba(0, 0, 0, 0.85);
132
+ padding-left: 4px; /* 标签左侧固定间距 */
133
+ }
134
+
135
+ .input-wrapper {
136
+ flex: 1; /* 输入框占据剩余空间 */
137
+ }
138
+
139
+ :deep(.clickable-icon) {
140
+ cursor: pointer;
141
+ }
142
+
143
+ :deep(.clickable-icon:hover) {
144
+ color: #1890ff;
145
+ }
146
+
147
+ </style>