vue2-client 1.14.46 → 1.14.47
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/.history/src/base-client/components/common/AddressSearchCombobox/AddressSearchCombobox_20250527173925.vue +509 -0
- package/.history/src/base-client/components/common/AddressSearchCombobox/AddressSearchCombobox_20250527174316.vue +524 -0
- package/.history/src/base-client/components/common/AddressSearchCombobox/AddressSearchCombobox_20250527174419.vue +524 -0
- package/.history/src/base-client/components/common/AddressSearchCombobox/AddressSearchCombobox_20250527174422.vue +524 -0
- package/.history/src/base-client/components/common/XForm/XFormItem_20250508134122.vue +1320 -0
- package/.history/src/base-client/components/common/XForm/XFormItem_20250527171604.vue +1332 -0
- package/.history/src/base-client/components/common/XForm/XFormItem_20250527171613.vue +1331 -0
- package/.history/src/base-client/components/common/XForm/XFormItem_20250527171703.vue +1331 -0
- package/.history/src/base-client/components/common/XForm/XFormItem_20250527171720.vue +1331 -0
- package/.history/src/base-client/components/common/XForm/XFormItem_20250527174327.vue +1339 -0
- package/Users/objecrt/af-vue2-client/src/base-client/components/his/XShiftSchedule/XShiftSchedule.vue +36 -0
- package/docs//345/207/275/346/225/260/344/275/277/347/224/250/347/233/270/345/205/263.md +2 -1
- package/package.json +1 -1
- package/src/base-client/components/TreeList/TreeList.vue +91 -0
- package/src/base-client/components/TreeList/TreeNode.vue +81 -0
- package/src/base-client/components/common/AddressSearchCombobox/AddressSearchCombobox.vue +20 -6
- package/src/base-client/components/common/XCardSet/XTiltle.vue +191 -0
- package/src/base-client/components/common/XForm/XFormItem.vue +2 -2
- package/src/base-client/components/common/XReportGrid/XReportDemo.vue +1 -1
- package/src/base-client/components/his/XShiftSchedule/XShiftSchedule.vue +3 -33
- package/src/base-client/components/his/XTextCard/XTextCard.vue +207 -207
- package/src/base-client/components/his/XTitle/README.md +8 -5
- package/src/base-client/components/his/XTreeRows/TreeNode.vue +100 -100
- package/src/base-client/components/his/XTreeRows/XTreeRows.vue +197 -197
- package/src/base-client/components/his/threeTestOrders/editor.vue +111 -111
- package/src/base-client/components/his/threeTestOrders/textBox.vue +463 -463
- package/src/pages/ReportGrid/index.vue +1 -5
- package/src/router/async/router.map.js +4 -6
- package/src/utils/common.js +0 -32
- package/vue.config.js +1 -1
|
@@ -4,14 +4,13 @@
|
|
|
4
4
|
@updateImg="updateImg"
|
|
5
5
|
ref="main"
|
|
6
6
|
:use-oss-for-img="false"
|
|
7
|
-
config-name="
|
|
7
|
+
config-name="outpatientWait"
|
|
8
8
|
server-name="af-his"
|
|
9
9
|
:show-img-in-cell="true"
|
|
10
10
|
:display-only="displayOnly"
|
|
11
11
|
:edit-mode="false"
|
|
12
12
|
:show-save-button="false"
|
|
13
13
|
:dont-format="true"/>
|
|
14
|
-
<button @click="clickButton()"></button>
|
|
15
14
|
</div>
|
|
16
15
|
</template>
|
|
17
16
|
|
|
@@ -68,9 +67,6 @@ export default {
|
|
|
68
67
|
result.push(item.exportData())
|
|
69
68
|
})
|
|
70
69
|
console.warn('save', result)
|
|
71
|
-
},
|
|
72
|
-
clickButton () {
|
|
73
|
-
this.findComponentByName(this, 'aaa', 10, 'parent')
|
|
74
70
|
}
|
|
75
71
|
}
|
|
76
72
|
}
|
|
@@ -55,18 +55,16 @@ routerResource.newDynamicStatistics = () => import('@vue2-client/pages/NewDynami
|
|
|
55
55
|
routerResource.example = {
|
|
56
56
|
path: 'example',
|
|
57
57
|
name: '示例主页面',
|
|
58
|
-
// component: () => import('@vue2-client/base-client/components/common/
|
|
59
|
-
// component: () => import('@vue2-client/base-client/components/his/XTitle/XTitle.vue'),
|
|
60
|
-
// component: () => import('@vue2-client/base-client/components/his/XCharge/XCharge.vue'),
|
|
58
|
+
// component: () => import('@vue2-client/base-client/components/common/XDescriptions/demo.vue'),
|
|
61
59
|
// component: () => import('@vue2-client/base-client/components/common/XAddNativeForm/demo.vue'),
|
|
62
60
|
// component: () => import('@vue2-client/base-client/components/common/XFormGroup/demo.vue'),
|
|
63
|
-
component: () => import('@vue2-client/base-client/components/common/
|
|
64
|
-
// component: () => import('@vue2-client/base-client/components/common/XFormTable/
|
|
61
|
+
// component: () => import('@vue2-client/base-client/components/common/XReport/XReportDemo.vue'),
|
|
62
|
+
// component: () => import('@vue2-client/base-client/components/common/XFormTable/demo.vue'),
|
|
65
63
|
// component: () => import('@vue2-client/base-client/components/common/XDatePicker/demo.vue'),
|
|
66
64
|
// component: () => import('@vue2-client/base-client/components/common/XTab/XTabDemo.vue'),
|
|
67
65
|
// component: () => import('@vue2-client/base-client/components/common/XRate/demo.vue'),
|
|
68
66
|
// component: () => import('@vue2-client/base-client/components/common/XForm/demo.vue'),
|
|
69
|
-
|
|
67
|
+
component: () => import('@vue2-client/pages/WorkflowDetail/WorkFlowDemo.vue'),
|
|
70
68
|
// component: () => import('@vue2-client/base-client/components/common/XConversation/XConversationDemo.vue'),
|
|
71
69
|
// component: () => import('@vue2-client/base-client/components/common/XButtons/XButtonDemo.vue'),
|
|
72
70
|
// component: () => import('@vue2-client/base-client/components/common/XLabelSelect/XLabelSelectDemo.vue'),
|
package/src/utils/common.js
CHANGED
|
@@ -8,35 +8,3 @@ export async function blobValidate (data) {
|
|
|
8
8
|
return true
|
|
9
9
|
}
|
|
10
10
|
}
|
|
11
|
-
export function findComponentByName (instance, componentName, maxDepth = 50) {
|
|
12
|
-
// 基础判断:如果实例不存在或者已经超过最大深度,返回null
|
|
13
|
-
if (!instance || maxDepth <= 0) {
|
|
14
|
-
return null
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
// 检查当前实例是否有目标组件
|
|
18
|
-
try {
|
|
19
|
-
if (instance.getComponentByName && instance.getComponentByName(componentName)) {
|
|
20
|
-
return instance.getComponentByName(componentName)
|
|
21
|
-
}
|
|
22
|
-
} catch (e) {
|
|
23
|
-
console.warn('查找组件时发生错误:', e)
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
// 递归查找子组件
|
|
27
|
-
if (instance.$children && instance.$children.length) {
|
|
28
|
-
for (const child of instance.$children) {
|
|
29
|
-
const result = findComponentByName(child, componentName, maxDepth - 1)
|
|
30
|
-
if (result) {
|
|
31
|
-
return result
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
// 向上查找父组件
|
|
37
|
-
if (instance.$parent) {
|
|
38
|
-
return findComponentByName(instance.$parent, componentName, maxDepth - 1)
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
return null
|
|
42
|
-
}
|