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,120 +1,120 @@
1
- <script setup lang="ts">
2
- import XFormGroup from '@vue2-client/base-client/components/common/XFormGroup/XFormGroup.vue'
3
- import { ref, onMounted, getCurrentInstance, watch } from 'vue'
4
- import { getConfigByNameAsync } from '@vue2-client/services/api/common'
5
-
6
- // 与 HTab 保持一致的样式开关
7
- defineProps({
8
- hasTopMargin: { type: Boolean, default: true },
9
- // 隐藏左侧索引栏(样式控制)
10
- leftHide: { type: Boolean, default: false }
11
- })
12
-
13
- // 内部 XFormGroup 实例引用
14
- const xFormGroupRef = ref()
15
-
16
- // 暴露方法:对齐 XFormGroup 的外部可用方法
17
- defineExpose({
18
- getXFormGroupInstance: () => xFormGroupRef.value,
19
- init: (params) => xFormGroupRef.value && xFormGroupRef.value.init && xFormGroupRef.value.init(params),
20
- asyncSubmit: () => xFormGroupRef.value && xFormGroupRef.value.asyncSubmit && xFormGroupRef.value.asyncSubmit(),
21
- getNativeFormRef: (group) => xFormGroupRef.value && xFormGroupRef.value.getNativeFormRef && xFormGroupRef.value.getNativeFormRef(group),
22
- getNativeForm: (group) => xFormGroupRef.value && xFormGroupRef.value.getNativeForm && xFormGroupRef.value.getNativeForm(group)
23
- })
24
-
25
- // 自动初始化:当外部传入 queryParamsName 时,自动加载配置并调用 XFormGroup.init
26
- const vm = getCurrentInstance()
27
- const autoInit = async () => {
28
- try {
29
- const a = vm?.proxy?.$attrs || {}
30
- const queryParamsName = a.queryParamsName
31
- if (!queryParamsName) return
32
- const serviceName = a.serviceName || process.env.VUE_APP_SYSTEM_NAME
33
- const env = a.env || 'prod'
34
- const showLeftTab = a.showLeftTab || false
35
- const businessType = a.businessType || '新增'
36
- const modifyModelData = a.modifyModelData || {}
37
-
38
- const isDev = env === 'dev'
39
- const res = await getConfigByNameAsync(queryParamsName, serviceName, isDev)
40
-
41
- const payload = {
42
- ...res,
43
- serviceName,
44
- env,
45
- showLeftTab,
46
- businessType,
47
- modifyModelData
48
- }
49
- if (xFormGroupRef.value && typeof xFormGroupRef.value.init === 'function') {
50
- xFormGroupRef.value.init(payload)
51
- } else {
52
- // do nothing
53
- }
54
- } catch (e) {
55
- // swallow
56
- }
57
- }
58
-
59
- onMounted(() => {
60
- autoInit()
61
- })
62
-
63
- // 当关键 attrs 变更时,重新初始化
64
- watch(() => [vm?.proxy?.$attrs?.queryParamsName, vm?.proxy?.$attrs?.serviceName, vm?.proxy?.$attrs?.env], () => {
65
- autoInit()
66
- })
67
- </script>
68
-
69
- <template>
70
- <div
71
- class="h-form-group-wrapper"
72
- :class="{
73
- 'h-form-group-has-top-margin': hasTopMargin,
74
- 'left-hide': leftHide
75
- }"
76
- >
77
- <x-form-group
78
- ref="xFormGroupRef"
79
- v-bind="$attrs"
80
- v-on="$listeners"
81
- >
82
- <template v-for="(_, name) in $slots" #[name]="slotData">
83
- <slot :name="name" v-bind="slotData" />
84
- </template>
85
- </x-form-group>
86
- </div>
87
-
88
- </template>
89
-
90
- <style scoped lang="less">
91
- .h-form-group-wrapper {
92
- // XFormGroup 自身容器
93
- :deep(.XFormGroupClass) {
94
- height: 100%;
95
-
96
- .heigth100 { height: 100%; }
97
- :deep(.ant-spin-container) { height: 100%; }
98
-
99
- // 默认分组标题样式,参考 XFormGroup
100
- .xFormGroupTitle {
101
- font-size: 15px;
102
- font-weight: bold;
103
- color: @primary-color;
104
- }
105
-
106
- .formGroupContext {
107
- height: 100%;
108
- overflow-y: auto;
109
- }
110
- }
111
- // 隐藏左侧(索引栏)
112
- &.left-hide {
113
- :deep(.ant-spin-container) {
114
- .ant-row {
115
- .ant-col-3 { display: none; }
116
- }
117
- }
118
- }
119
- }
120
- </style>
1
+ <script setup lang="ts">
2
+ import XFormGroup from '@vue2-client/base-client/components/common/XFormGroup/XFormGroup.vue'
3
+ import { ref, onMounted, getCurrentInstance, watch } from 'vue'
4
+ import { getConfigByNameAsync } from '@vue2-client/services/api/common'
5
+
6
+ // 与 HTab 保持一致的样式开关
7
+ defineProps({
8
+ hasTopMargin: { type: Boolean, default: true },
9
+ // 隐藏左侧索引栏(样式控制)
10
+ leftHide: { type: Boolean, default: false }
11
+ })
12
+
13
+ // 内部 XFormGroup 实例引用
14
+ const xFormGroupRef = ref()
15
+
16
+ // 暴露方法:对齐 XFormGroup 的外部可用方法
17
+ defineExpose({
18
+ getXFormGroupInstance: () => xFormGroupRef.value,
19
+ init: (params) => xFormGroupRef.value && xFormGroupRef.value.init && xFormGroupRef.value.init(params),
20
+ asyncSubmit: () => xFormGroupRef.value && xFormGroupRef.value.asyncSubmit && xFormGroupRef.value.asyncSubmit(),
21
+ getNativeFormRef: (group) => xFormGroupRef.value && xFormGroupRef.value.getNativeFormRef && xFormGroupRef.value.getNativeFormRef(group),
22
+ getNativeForm: (group) => xFormGroupRef.value && xFormGroupRef.value.getNativeForm && xFormGroupRef.value.getNativeForm(group)
23
+ })
24
+
25
+ // 自动初始化:当外部传入 queryParamsName 时,自动加载配置并调用 XFormGroup.init
26
+ const vm = getCurrentInstance()
27
+ const autoInit = async () => {
28
+ try {
29
+ const a = vm?.proxy?.$attrs || {}
30
+ const queryParamsName = a.queryParamsName
31
+ if (!queryParamsName) return
32
+ const serviceName = a.serviceName || process.env.VUE_APP_SYSTEM_NAME
33
+ const env = a.env || 'prod'
34
+ const showLeftTab = a.showLeftTab || false
35
+ const businessType = a.businessType || '新增'
36
+ const modifyModelData = a.modifyModelData || {}
37
+
38
+ const isDev = env === 'dev'
39
+ const res = await getConfigByNameAsync(queryParamsName, serviceName, isDev)
40
+
41
+ const payload = {
42
+ ...res,
43
+ serviceName,
44
+ env,
45
+ showLeftTab,
46
+ businessType,
47
+ modifyModelData
48
+ }
49
+ if (xFormGroupRef.value && typeof xFormGroupRef.value.init === 'function') {
50
+ xFormGroupRef.value.init(payload)
51
+ } else {
52
+ // do nothing
53
+ }
54
+ } catch (e) {
55
+ // swallow
56
+ }
57
+ }
58
+
59
+ onMounted(() => {
60
+ autoInit()
61
+ })
62
+
63
+ // 当关键 attrs 变更时,重新初始化
64
+ watch(() => [vm?.proxy?.$attrs?.queryParamsName, vm?.proxy?.$attrs?.serviceName, vm?.proxy?.$attrs?.env], () => {
65
+ autoInit()
66
+ })
67
+ </script>
68
+
69
+ <template>
70
+ <div
71
+ class="h-form-group-wrapper"
72
+ :class="{
73
+ 'h-form-group-has-top-margin': hasTopMargin,
74
+ 'left-hide': leftHide
75
+ }"
76
+ >
77
+ <x-form-group
78
+ ref="xFormGroupRef"
79
+ v-bind="$attrs"
80
+ v-on="$listeners"
81
+ >
82
+ <template v-for="(_, name) in $slots" #[name]="slotData">
83
+ <slot :name="name" v-bind="slotData" />
84
+ </template>
85
+ </x-form-group>
86
+ </div>
87
+
88
+ </template>
89
+
90
+ <style scoped lang="less">
91
+ .h-form-group-wrapper {
92
+ // XFormGroup 自身容器
93
+ :deep(.XFormGroupClass) {
94
+ height: 100%;
95
+
96
+ .heigth100 { height: 100%; }
97
+ :deep(.ant-spin-container) { height: 100%; }
98
+
99
+ // 默认分组标题样式,参考 XFormGroup
100
+ .xFormGroupTitle {
101
+ font-size: 15px;
102
+ font-weight: bold;
103
+ color: @primary-color;
104
+ }
105
+
106
+ .formGroupContext {
107
+ height: 100%;
108
+ overflow-y: auto;
109
+ }
110
+ }
111
+ // 隐藏左侧(索引栏)
112
+ &.left-hide {
113
+ :deep(.ant-spin-container) {
114
+ .ant-row {
115
+ .ant-col-3 { display: none; }
116
+ }
117
+ }
118
+ }
119
+ }
120
+ </style>
@@ -1,3 +1,3 @@
1
- import HFormGroup from './HFormGroup.vue'
2
-
3
- export default HFormGroup
1
+ import HFormGroup from './HFormGroup.vue'
2
+
3
+ export default HFormGroup