vue2-client 1.9.16 → 1.9.18
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/.env.his +19 -0
- package/package.json +2 -1
- package/src/base-client/components/common/XAddNativeForm/demo.vue +25 -0
- package/src/base-client/components/common/XAddReport/XAddReport.vue +3 -0
- package/src/base-client/components/common/XTree/XTreePro.vue +11 -5
- package/src/router/async/router.map.js +2 -1
package/.env.his
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
VUE_APP_PUBLIC_PATH=/
|
|
2
|
+
VUE_APP_NAME=Admin
|
|
3
|
+
VUE_APP_ROUTES_KEY=admin.routes
|
|
4
|
+
VUE_APP_PERMISSIONS_KEY=admin.permissions
|
|
5
|
+
VUE_APP_ROLES_KEY=admin.roles
|
|
6
|
+
VUE_APP_USER_KEY=admin.user
|
|
7
|
+
VUE_APP_LOGIN_KEY=admin.login
|
|
8
|
+
VUE_APP_SETTING_KEY=admin.setting
|
|
9
|
+
VUE_APP_TBAS_KEY=admin.tabs
|
|
10
|
+
VUE_APP_TBAS_TITLES_KEY=admin.tabs.titles
|
|
11
|
+
VUE_APP_DICTIONARY_KEY=admin.dictionary
|
|
12
|
+
VUE_APP_BADGE_KEY=admin.badge
|
|
13
|
+
VUE_APP_SINGLEVALUE_KEY=admin.singlevalue
|
|
14
|
+
VUE_APP_DIVISIONSOHCHINA=admin.divisionsohchina
|
|
15
|
+
VUE_APP_WEB_CONFIG_KEY=admin.webconfig
|
|
16
|
+
VUE_APP_API_BASE_URL=http://123.60.214.109:8405
|
|
17
|
+
VUE_APP_SYSTEM_NAME=af-his
|
|
18
|
+
VUE_APP_LOGIN_VERSION=V4
|
|
19
|
+
|
package/package.json
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vue2-client",
|
|
3
|
-
"version": "1.9.
|
|
3
|
+
"version": "1.9.18",
|
|
4
4
|
"private": false,
|
|
5
5
|
"scripts": {
|
|
6
6
|
"serve": "SET NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service serve --no-eslint",
|
|
7
7
|
"serve:gaslink": "SET NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service serve --no-eslint --mode gaslink",
|
|
8
8
|
"serve:revenue": "SET NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service serve --no-eslint --mode revenue",
|
|
9
|
+
"serve:his": "SET NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service serve --no-eslint --mode his",
|
|
9
10
|
"mac-serve": "vue-cli-service serve --no-eslint --mode mac",
|
|
10
11
|
"build": "SET NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service build",
|
|
11
12
|
"test:unit": "vue-cli-service test:unit",
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
<script>
|
|
2
|
+
import XAddNativeForm from '@/base-client/components/common/XAddNativeForm/XAddNativeForm.vue'
|
|
3
|
+
import { getConfigByNameAsync } from '@/services/api/common'
|
|
4
|
+
|
|
5
|
+
export default {
|
|
6
|
+
name: 'Demo',
|
|
7
|
+
components: { XAddNativeForm },
|
|
8
|
+
created () {
|
|
9
|
+
getConfigByNameAsync('patientInfoQueryForm', 'af-his').then(res => {
|
|
10
|
+
this.$refs.xAddFrom.init(res)
|
|
11
|
+
})
|
|
12
|
+
},
|
|
13
|
+
methods: {}
|
|
14
|
+
}
|
|
15
|
+
</script>
|
|
16
|
+
|
|
17
|
+
<template>
|
|
18
|
+
<a-card>
|
|
19
|
+
<x-add-native-form ref="xAddFrom"/>
|
|
20
|
+
</a-card>
|
|
21
|
+
</template>
|
|
22
|
+
|
|
23
|
+
<style scoped lang="less">
|
|
24
|
+
|
|
25
|
+
</style>
|
|
@@ -120,6 +120,9 @@ export default {
|
|
|
120
120
|
},
|
|
121
121
|
getSelectedId () {
|
|
122
122
|
if (typeof this.selectedId === 'object') {
|
|
123
|
+
if (this.selectedId.selectedId) {
|
|
124
|
+
return this.selectedId.selectedId
|
|
125
|
+
}
|
|
123
126
|
if (Object.keys(this.selectedId) > 0) {
|
|
124
127
|
return this.selectedId[Object.keys(this.selectedId)[0]]
|
|
125
128
|
}
|
|
@@ -59,11 +59,17 @@
|
|
|
59
59
|
<span class="custom-tree-node" slot-scope="{ node,data }">
|
|
60
60
|
<span :class="{ 'selected': data === selectedNode }" @click="nodeItemClick(data)">
|
|
61
61
|
<a-tooltip placement="right" :title="node.label">
|
|
62
|
-
<
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
62
|
+
<a-space>
|
|
63
|
+
<a-icon
|
|
64
|
+
v-if="data.icon"
|
|
65
|
+
:style="{color: data.iconColor}"
|
|
66
|
+
:type="data.icon"/>
|
|
67
|
+
<span
|
|
68
|
+
v-html="highlightKeyword(node.label, searchInput)"></span>
|
|
69
|
+
<span v-if="countVisible">{{
|
|
70
|
+
data.hasOwnProperty('count') ? ' (' + data.count + ')' : ''
|
|
71
|
+
}}</span>
|
|
72
|
+
</a-space>
|
|
67
73
|
</a-tooltip>
|
|
68
74
|
</span>
|
|
69
75
|
<a-space style="float:right;margin-right: .2rem">
|
|
@@ -83,7 +83,8 @@ routerResource.example = {
|
|
|
83
83
|
{
|
|
84
84
|
path: 'default',
|
|
85
85
|
name: '示例页面',
|
|
86
|
-
component: () => import('@vue2-client/base-client/components/common/
|
|
86
|
+
component: () => import('@vue2-client/base-client/components/common/XAddNativeForm/demo.vue'),
|
|
87
|
+
// component: () => import('@vue2-client/base-client/components/common/XFormTable/demo.vue'),
|
|
87
88
|
// component: () => import('@vue2-client/base-client/components/common/XReportGrid/XReportDemo.vue'),
|
|
88
89
|
// component: () => import('@vue2-client/pages/WorkflowDetail/WorkFlowDemo.vue'),
|
|
89
90
|
meta: {
|