vue2-client 1.12.52 → 1.12.53
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/package.json +1 -1
- package/src/base-client/components/common/XCollapse/XCollapse.vue +154 -154
- package/src/base-client/components/common/XConversation/XConversation.vue +20 -20
- package/src/base-client/components/his/XSidebar/XSidebar.vue +20 -16
- package/src/router/async/router.map.js +116 -118
- package/src/base-client/components/common/XCollapse/XCollapseDemo.vue +0 -15
package/package.json
CHANGED
|
@@ -1,154 +1,154 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div>
|
|
3
|
-
<a-collapse
|
|
4
|
-
:activeKey="activeKey"
|
|
5
|
-
@change="handleChange"
|
|
6
|
-
>
|
|
7
|
-
<a-collapse-panel
|
|
8
|
-
v-for="(panel, panelIndex) in config.showData"
|
|
9
|
-
:key="panelIndex.toString()"
|
|
10
|
-
:show-arrow="false"
|
|
11
|
-
>
|
|
12
|
-
<template #header>
|
|
13
|
-
<div class="header-content">
|
|
14
|
-
<span
|
|
15
|
-
class="header-text"
|
|
16
|
-
:style="config.titleStyle"
|
|
17
|
-
>
|
|
18
|
-
{{ panel.title }}
|
|
19
|
-
</span>
|
|
20
|
-
<span
|
|
21
|
-
v-for="(item, headerIndex) in panel.title2 || []"
|
|
22
|
-
:key="headerIndex"
|
|
23
|
-
class="info-item"
|
|
24
|
-
:style="config.title2Style"
|
|
25
|
-
>
|
|
26
|
-
<span>{{ item.key }}:</span>
|
|
27
|
-
<span>{{ item.value }}</span>
|
|
28
|
-
</span>
|
|
29
|
-
<span
|
|
30
|
-
class="time-item"
|
|
31
|
-
:style="config.title3Style"
|
|
32
|
-
>
|
|
33
|
-
{{ panel.title3 }}
|
|
34
|
-
</span>
|
|
35
|
-
</div>
|
|
36
|
-
</template>
|
|
37
|
-
<!-- 根据类型显示不同内容 -->
|
|
38
|
-
<template v-if="panel.type === 'picture'">
|
|
39
|
-
<img :src="panel.configName" alt="图片" style="width: 100%; max-width: 500px;"/>
|
|
40
|
-
</template>
|
|
41
|
-
<template v-else-if="panel.type === 'cover'">
|
|
42
|
-
<x-report
|
|
43
|
-
:use-oss-for-img="false"
|
|
44
|
-
:config-name="panel.configName"
|
|
45
|
-
server-name="af-his"
|
|
46
|
-
:show-img-in-cell="true"
|
|
47
|
-
:display-only="true"
|
|
48
|
-
:edit-mode="false"
|
|
49
|
-
:show-save-button="false"
|
|
50
|
-
:no-padding="true"
|
|
51
|
-
:dont-format="true">
|
|
52
|
-
</x-report>
|
|
53
|
-
</template>
|
|
54
|
-
</a-collapse-panel>
|
|
55
|
-
</a-collapse>
|
|
56
|
-
</div>
|
|
57
|
-
</template>
|
|
58
|
-
|
|
59
|
-
<script>
|
|
60
|
-
import XReport from '@vue2-client/base-client/components/common/XReportGrid'
|
|
61
|
-
import { getConfigByName, runLogic } from '@vue2-client/services/api/common'
|
|
62
|
-
|
|
63
|
-
export default {
|
|
64
|
-
name: 'XCollapse',
|
|
65
|
-
components: {
|
|
66
|
-
XReport
|
|
67
|
-
},
|
|
68
|
-
inject: ['getConfigByName'],
|
|
69
|
-
data () {
|
|
70
|
-
return {
|
|
71
|
-
activeKey: [],
|
|
72
|
-
config: {}
|
|
73
|
-
}
|
|
74
|
-
},
|
|
75
|
-
props: {
|
|
76
|
-
// json名
|
|
77
|
-
queryParamsName: {
|
|
78
|
-
type: Object,
|
|
79
|
-
default: 'openPrescriptionConfig'
|
|
80
|
-
},
|
|
81
|
-
},
|
|
82
|
-
created () {
|
|
83
|
-
this.getData(this.queryParamsName)
|
|
84
|
-
},
|
|
85
|
-
methods: {
|
|
86
|
-
async getData (config) {
|
|
87
|
-
getConfigByName(config, 'af-his', res => {
|
|
88
|
-
this.config = res
|
|
89
|
-
runLogic(res.mainLogic, {}, 'af-his').then(result => {
|
|
90
|
-
console.log(result)
|
|
91
|
-
this.config.showData = result
|
|
92
|
-
this.activeKey = this.config.showData.map((_, panelIndex) => panelIndex.toString())
|
|
93
|
-
})
|
|
94
|
-
})
|
|
95
|
-
},
|
|
96
|
-
handleChange (keys) {
|
|
97
|
-
this.activeKey = keys
|
|
98
|
-
},
|
|
99
|
-
},
|
|
100
|
-
watch: {
|
|
101
|
-
queryParamsName: {
|
|
102
|
-
handler (newValue) {
|
|
103
|
-
console.log(newValue)
|
|
104
|
-
this.getData(newValue)
|
|
105
|
-
},
|
|
106
|
-
deep: true
|
|
107
|
-
}
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
|
-
</script>
|
|
111
|
-
|
|
112
|
-
<style scoped>
|
|
113
|
-
.header-content {
|
|
114
|
-
display: flex;
|
|
115
|
-
align-items: center;
|
|
116
|
-
gap: 24px;
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
.header-text {
|
|
120
|
-
margin-right: 16px;
|
|
121
|
-
font-size: 16px;
|
|
122
|
-
font-weight: 800; /* 默认加粗 */
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
.info-item {
|
|
126
|
-
display: inline-flex;
|
|
127
|
-
align-items: center;
|
|
128
|
-
gap: 4px;
|
|
129
|
-
font-size: 12px;
|
|
130
|
-
color: #888888;
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
.time-item {
|
|
134
|
-
margin-left: auto;
|
|
135
|
-
text-align: right;
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
/* 覆盖 ant-design-vue 的默认样式 */
|
|
139
|
-
:deep(.ant-collapse-header) {
|
|
140
|
-
align-items: center !important;
|
|
141
|
-
}
|
|
142
|
-
|
|
143
|
-
:deep(.ant-collapse-header-text) {
|
|
144
|
-
flex: 1;
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
:deep(.ant-collapse-content > .ant-collapse-content-box) {
|
|
148
|
-
padding: 0;
|
|
149
|
-
}
|
|
150
|
-
|
|
151
|
-
:deep(.ant-card-body) {
|
|
152
|
-
padding: 8px;
|
|
153
|
-
}
|
|
154
|
-
</style>
|
|
1
|
+
<template>
|
|
2
|
+
<div>
|
|
3
|
+
<a-collapse
|
|
4
|
+
:activeKey="activeKey"
|
|
5
|
+
@change="handleChange"
|
|
6
|
+
>
|
|
7
|
+
<a-collapse-panel
|
|
8
|
+
v-for="(panel, panelIndex) in config.showData"
|
|
9
|
+
:key="panelIndex.toString()"
|
|
10
|
+
:show-arrow="false"
|
|
11
|
+
>
|
|
12
|
+
<template #header>
|
|
13
|
+
<div class="header-content">
|
|
14
|
+
<span
|
|
15
|
+
class="header-text"
|
|
16
|
+
:style="config.titleStyle"
|
|
17
|
+
>
|
|
18
|
+
{{ panel.title }}
|
|
19
|
+
</span>
|
|
20
|
+
<span
|
|
21
|
+
v-for="(item, headerIndex) in panel.title2 || []"
|
|
22
|
+
:key="headerIndex"
|
|
23
|
+
class="info-item"
|
|
24
|
+
:style="config.title2Style"
|
|
25
|
+
>
|
|
26
|
+
<span>{{ item.key }}:</span>
|
|
27
|
+
<span>{{ item.value }}</span>
|
|
28
|
+
</span>
|
|
29
|
+
<span
|
|
30
|
+
class="time-item"
|
|
31
|
+
:style="config.title3Style"
|
|
32
|
+
>
|
|
33
|
+
{{ panel.title3 }}
|
|
34
|
+
</span>
|
|
35
|
+
</div>
|
|
36
|
+
</template>
|
|
37
|
+
<!-- 根据类型显示不同内容 -->
|
|
38
|
+
<template v-if="panel.type === 'picture'">
|
|
39
|
+
<img :src="panel.configName" alt="图片" style="width: 100%; max-width: 500px;"/>
|
|
40
|
+
</template>
|
|
41
|
+
<template v-else-if="panel.type === 'cover'">
|
|
42
|
+
<x-report
|
|
43
|
+
:use-oss-for-img="false"
|
|
44
|
+
:config-name="panel.configName"
|
|
45
|
+
server-name="af-his"
|
|
46
|
+
:show-img-in-cell="true"
|
|
47
|
+
:display-only="true"
|
|
48
|
+
:edit-mode="false"
|
|
49
|
+
:show-save-button="false"
|
|
50
|
+
:no-padding="true"
|
|
51
|
+
:dont-format="true">
|
|
52
|
+
</x-report>
|
|
53
|
+
</template>
|
|
54
|
+
</a-collapse-panel>
|
|
55
|
+
</a-collapse>
|
|
56
|
+
</div>
|
|
57
|
+
</template>
|
|
58
|
+
|
|
59
|
+
<script>
|
|
60
|
+
import XReport from '@vue2-client/base-client/components/common/XReportGrid'
|
|
61
|
+
import { getConfigByName, runLogic } from '@vue2-client/services/api/common'
|
|
62
|
+
|
|
63
|
+
export default {
|
|
64
|
+
name: 'XCollapse',
|
|
65
|
+
components: {
|
|
66
|
+
XReport
|
|
67
|
+
},
|
|
68
|
+
inject: ['getConfigByName'],
|
|
69
|
+
data () {
|
|
70
|
+
return {
|
|
71
|
+
activeKey: [],
|
|
72
|
+
config: {}
|
|
73
|
+
}
|
|
74
|
+
},
|
|
75
|
+
props: {
|
|
76
|
+
// json名
|
|
77
|
+
queryParamsName: {
|
|
78
|
+
type: Object,
|
|
79
|
+
default: 'openPrescriptionConfig'
|
|
80
|
+
},
|
|
81
|
+
},
|
|
82
|
+
created () {
|
|
83
|
+
this.getData(this.queryParamsName)
|
|
84
|
+
},
|
|
85
|
+
methods: {
|
|
86
|
+
async getData (config) {
|
|
87
|
+
getConfigByName(config, 'af-his', res => {
|
|
88
|
+
this.config = res
|
|
89
|
+
runLogic(res.mainLogic, {}, 'af-his').then(result => {
|
|
90
|
+
console.log(result)
|
|
91
|
+
this.config.showData = result
|
|
92
|
+
this.activeKey = this.config.showData.map((_, panelIndex) => panelIndex.toString())
|
|
93
|
+
})
|
|
94
|
+
})
|
|
95
|
+
},
|
|
96
|
+
handleChange (keys) {
|
|
97
|
+
this.activeKey = keys
|
|
98
|
+
},
|
|
99
|
+
},
|
|
100
|
+
watch: {
|
|
101
|
+
queryParamsName: {
|
|
102
|
+
handler (newValue) {
|
|
103
|
+
console.log(newValue)
|
|
104
|
+
this.getData(newValue)
|
|
105
|
+
},
|
|
106
|
+
deep: true
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
</script>
|
|
111
|
+
|
|
112
|
+
<style scoped>
|
|
113
|
+
.header-content {
|
|
114
|
+
display: flex;
|
|
115
|
+
align-items: center;
|
|
116
|
+
gap: 24px;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
.header-text {
|
|
120
|
+
margin-right: 16px;
|
|
121
|
+
font-size: 16px;
|
|
122
|
+
font-weight: 800; /* 默认加粗 */
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
.info-item {
|
|
126
|
+
display: inline-flex;
|
|
127
|
+
align-items: center;
|
|
128
|
+
gap: 4px;
|
|
129
|
+
font-size: 12px;
|
|
130
|
+
color: #888888;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
.time-item {
|
|
134
|
+
margin-left: auto;
|
|
135
|
+
text-align: right;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
/* 覆盖 ant-design-vue 的默认样式 */
|
|
139
|
+
:deep(.ant-collapse-header) {
|
|
140
|
+
align-items: center !important;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
:deep(.ant-collapse-header-text) {
|
|
144
|
+
flex: 1;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
:deep(.ant-collapse-content > .ant-collapse-content-box) {
|
|
148
|
+
padding: 0;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
:deep(.ant-card-body) {
|
|
152
|
+
padding: 8px;
|
|
153
|
+
}
|
|
154
|
+
</style>
|
|
@@ -149,7 +149,7 @@ export default {
|
|
|
149
149
|
},
|
|
150
150
|
async sendMessage () {
|
|
151
151
|
if (this.renderConfig.type === 'AI') {
|
|
152
|
-
//
|
|
152
|
+
// 验证 chatId 和 aiModel
|
|
153
153
|
if (!this.renderConfig.chatId || !this.renderConfig.aiModel) {
|
|
154
154
|
this.$message.error('chatId 和 aiModel 不能为空,请检查调用逻辑')
|
|
155
155
|
return
|
|
@@ -157,27 +157,27 @@ export default {
|
|
|
157
157
|
}
|
|
158
158
|
if (!this.inputMessage.trim()) return
|
|
159
159
|
|
|
160
|
-
|
|
161
|
-
|
|
160
|
+
// 添加用户消息
|
|
161
|
+
this.messages.push({ type: 'user', text: this.inputMessage })
|
|
162
162
|
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
163
|
+
// 清空输入框
|
|
164
|
+
const userMessage = this.inputMessage
|
|
165
|
+
this.inputMessage = ''
|
|
166
|
+
// 模拟机器人的回复
|
|
167
|
+
// 通过logic获取消息
|
|
168
|
+
if (this.renderConfig.logicName) {
|
|
169
|
+
const response = await runLogic(this.renderConfig.logicName, {
|
|
170
|
+
question: userMessage,
|
|
171
|
+
additionalInfo: this.additionalInfo
|
|
172
|
+
}, this.serviceName)
|
|
173
173
|
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
174
|
+
// 遍历并保存 additionalInfo
|
|
175
|
+
console.log(response)
|
|
176
|
+
if (response.additionalInfo) {
|
|
177
|
+
Object.entries(response.additionalInfo).forEach(([key, value]) => {
|
|
178
|
+
// 如果值是字符串类型,尝试转换为数字
|
|
179
|
+
if (typeof value === 'string' && !isNaN(value)) {
|
|
180
|
+
const numberValue = Number(value)
|
|
181
181
|
// 检查转换后的值是否是有限数字
|
|
182
182
|
if (isFinite(numberValue)) {
|
|
183
183
|
this.additionalInfo[key] = numberValue
|
|
@@ -49,7 +49,7 @@ export default {
|
|
|
49
49
|
return {
|
|
50
50
|
isOpen: true,
|
|
51
51
|
// 定义主内容区域的最大和最小宽度百分比
|
|
52
|
-
mainWithData: [{ max:
|
|
52
|
+
mainWithData: [{ max: 80, min: 56 }]
|
|
53
53
|
}
|
|
54
54
|
},
|
|
55
55
|
mounted () {
|
|
@@ -82,9 +82,7 @@ export default {
|
|
|
82
82
|
return []
|
|
83
83
|
}
|
|
84
84
|
// 获取a-row中的所有a-col
|
|
85
|
-
const
|
|
86
|
-
const allCol2 = Array.from(row.querySelectorAll('.ant-col-14'))
|
|
87
|
-
const allCols = [...allCol1, ...allCol2]
|
|
85
|
+
const allCols = Array.from(row.querySelectorAll('.ant-col-14'))
|
|
88
86
|
// 过滤掉当前a-col,返回其他所有a-col
|
|
89
87
|
return allCols.filter(col => col !== currentCol)
|
|
90
88
|
} catch (error) {
|
|
@@ -97,10 +95,7 @@ export default {
|
|
|
97
95
|
try {
|
|
98
96
|
// 获取所有同级a-col
|
|
99
97
|
const otherCols = this.getSiblingCols()
|
|
100
|
-
console.log('otherCols =', otherCols)
|
|
101
|
-
// 如果找到同级列,调整它们的宽度
|
|
102
98
|
if (otherCols.length > 0) {
|
|
103
|
-
// 获取当前组件所在的a-col
|
|
104
99
|
let currentCol = this.$el.parentNode
|
|
105
100
|
while (currentCol && !currentCol.className.includes('ant-col')) {
|
|
106
101
|
currentCol = currentCol.parentNode
|
|
@@ -108,20 +103,29 @@ export default {
|
|
|
108
103
|
if (currentCol) {
|
|
109
104
|
// 更新当前列的宽度
|
|
110
105
|
const drawerWidth = isOpen ? 25 : 2
|
|
111
|
-
|
|
112
|
-
currentCol.style.
|
|
113
|
-
|
|
106
|
+
// 强制更新样式
|
|
107
|
+
currentCol.style.cssText = `
|
|
108
|
+
flex: 0 0 ${drawerWidth}% !important;
|
|
109
|
+
max-width: ${drawerWidth}% !important;
|
|
110
|
+
transition: all 0.3s;`
|
|
111
|
+
// 触发XTab组件重新计算宽度
|
|
112
|
+
this.$nextTick(() => {
|
|
113
|
+
const tabComponent = this.$el.querySelector('.ant-tabs')
|
|
114
|
+
if (tabComponent) {
|
|
115
|
+
tabComponent.style.width = '100%'
|
|
116
|
+
window.dispatchEvent(new Event('resize'))
|
|
117
|
+
}
|
|
118
|
+
})
|
|
119
|
+
// 更新其他列宽度
|
|
114
120
|
otherCols.forEach((col, index) => {
|
|
115
|
-
// 确保不超出mainWithData数组范围
|
|
116
121
|
if (index < this.mainWithData.length) {
|
|
117
|
-
// 抽屉打开用min值,关闭用max值
|
|
118
122
|
const widthValue = isOpen ? this.mainWithData[index].min : this.mainWithData[index].max
|
|
119
|
-
col.style.
|
|
120
|
-
|
|
123
|
+
col.style.cssText = `
|
|
124
|
+
flex: 0 0 ${widthValue}% !important;
|
|
125
|
+
max-width: ${widthValue}% !important;
|
|
126
|
+
transition: all 0.3s;`
|
|
121
127
|
}
|
|
122
128
|
})
|
|
123
|
-
// 触发重新计算
|
|
124
|
-
window.dispatchEvent(new Event('resize'))
|
|
125
129
|
}
|
|
126
130
|
}
|
|
127
131
|
} catch (error) {
|
|
@@ -1,118 +1,116 @@
|
|
|
1
|
-
const { homePage } = require('../../config')
|
|
2
|
-
// 视图组件
|
|
3
|
-
const view = {
|
|
4
|
-
tabs: () => import('@vue2-client/layouts/tabs'),
|
|
5
|
-
blank: () => import('@vue2-client/layouts/BlankView'),
|
|
6
|
-
page: () => import('@vue2-client/layouts/PageView'),
|
|
7
|
-
// his-web$ceshiGrid?type=GridView&configName=RxPreparedMed
|
|
8
|
-
gridView: () => import('@vue2-client/layouts/GridView'),
|
|
9
|
-
login: () => import('@vue2-client/pages/login/Login'),
|
|
10
|
-
loginv3: () => import('@vue2-client/pages/login/LoginV3')
|
|
11
|
-
}
|
|
12
|
-
// 动态路由对象定义
|
|
13
|
-
const routerResource = {}
|
|
14
|
-
// --------------------------------------基本视图组件--------------------------------------
|
|
15
|
-
// 空白视图
|
|
16
|
-
routerResource.blank = view.blank
|
|
17
|
-
// 单页面视图
|
|
18
|
-
routerResource.singlePage = view.blank
|
|
19
|
-
// 栅格配置视图
|
|
20
|
-
routerResource.gridView = view.gridView
|
|
21
|
-
|
|
22
|
-
// --------------------------------------仪表盘--------------------------------------
|
|
23
|
-
routerResource.dashboard = view.blank
|
|
24
|
-
// 工作台
|
|
25
|
-
routerResource.workplace = () =>
|
|
26
|
-
import('@vue2-client/pages/dashboard/workplace')
|
|
27
|
-
// --------------------------------------系统配置--------------------------------------
|
|
28
|
-
routerResource.system = view.blank
|
|
29
|
-
// 字典管理
|
|
30
|
-
routerResource.dictionaryManage = () => import('@vue2-client/pages/system/dictionary')
|
|
31
|
-
// 文件管理
|
|
32
|
-
routerResource.fileManager = () => import('@vue2-client/pages/system/file')
|
|
33
|
-
// 登录日志
|
|
34
|
-
routerResource.loginInfor = () => import('@vue2-client/pages/system/monitor/loginInfor')
|
|
35
|
-
// 操作日志
|
|
36
|
-
routerResource.operLog = () => import('@vue2-client/pages/system/monitor/operLog')
|
|
37
|
-
// 系统问题反馈工单
|
|
38
|
-
routerResource.submitTicket = () => import('@vue2-client/pages/system/ticket')
|
|
39
|
-
// 通用服务评价
|
|
40
|
-
routerResource.ServiceReview = () => import('@vue2-client/pages/ServiceReview')
|
|
41
|
-
// 系统设置
|
|
42
|
-
routerResource.settings = () => import('@vue2-client/pages/system/settings')
|
|
43
|
-
// AMIS示例页面
|
|
44
|
-
routerResource.amisDemo = () => import('@vue2-client/pages/AMisDemo/AMisDemo')
|
|
45
|
-
// 页面编辑器
|
|
46
|
-
routerResource.editablePage = () => import('@vue2-client/pages/lowCode/lowCodeEditor.vue')
|
|
47
|
-
// 数据检索
|
|
48
|
-
routerResource.dynamicStatistics = () => import('@vue2-client/pages/DynamicStatistics')
|
|
49
|
-
// 数据检索(新)
|
|
50
|
-
routerResource.newDynamicStatistics = () => import('@vue2-client/pages/NewDynamicStatistics')
|
|
51
|
-
// 示例页面
|
|
52
|
-
routerResource.example = {
|
|
53
|
-
path: 'example',
|
|
54
|
-
name: '示例主页面',
|
|
55
|
-
// component: () => import('@vue2-client/base-client/components/common/
|
|
56
|
-
component: () => import('@vue2-client/base-client/components/common/
|
|
57
|
-
// component: () => import('@vue2-client/base-client/components/common/
|
|
58
|
-
// component: () => import('@vue2-client/base-client/components/common/
|
|
59
|
-
// component: () => import('@vue2-client/base-client/components/common/
|
|
60
|
-
// component: () => import('@vue2-client/base-client/components/common/
|
|
61
|
-
// component: () => import('@vue2-client/base-client/components/common/
|
|
62
|
-
|
|
63
|
-
// component: () => import('@vue2-client/
|
|
64
|
-
// component: () => import('@vue2-client/base-client/components/common/
|
|
65
|
-
// component: () => import('@vue2-client/
|
|
66
|
-
// component: () => import('@vue2-client/base-client/components/common/
|
|
67
|
-
// component: () => import('@vue2-client/base-client/components/common/
|
|
68
|
-
// component: () => import('@vue2-client/base-client/components/common/
|
|
69
|
-
// component: () => import('@vue2-client/base-client/components/
|
|
70
|
-
// component: () => import('@vue2-client/
|
|
71
|
-
// component: () => import('@vue2-client/
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
routerResource.
|
|
78
|
-
|
|
79
|
-
routerResource.
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
Object.assign(routerMap, routerResource)
|
|
118
|
-
export default routerMap
|
|
1
|
+
const { homePage } = require('../../config')
|
|
2
|
+
// 视图组件
|
|
3
|
+
const view = {
|
|
4
|
+
tabs: () => import('@vue2-client/layouts/tabs'),
|
|
5
|
+
blank: () => import('@vue2-client/layouts/BlankView'),
|
|
6
|
+
page: () => import('@vue2-client/layouts/PageView'),
|
|
7
|
+
// his-web$ceshiGrid?type=GridView&configName=RxPreparedMed
|
|
8
|
+
gridView: () => import('@vue2-client/layouts/GridView'),
|
|
9
|
+
login: () => import('@vue2-client/pages/login/Login'),
|
|
10
|
+
loginv3: () => import('@vue2-client/pages/login/LoginV3')
|
|
11
|
+
}
|
|
12
|
+
// 动态路由对象定义
|
|
13
|
+
const routerResource = {}
|
|
14
|
+
// --------------------------------------基本视图组件--------------------------------------
|
|
15
|
+
// 空白视图
|
|
16
|
+
routerResource.blank = view.blank
|
|
17
|
+
// 单页面视图
|
|
18
|
+
routerResource.singlePage = view.blank
|
|
19
|
+
// 栅格配置视图
|
|
20
|
+
routerResource.gridView = view.gridView
|
|
21
|
+
|
|
22
|
+
// --------------------------------------仪表盘--------------------------------------
|
|
23
|
+
routerResource.dashboard = view.blank
|
|
24
|
+
// 工作台
|
|
25
|
+
routerResource.workplace = () =>
|
|
26
|
+
import('@vue2-client/pages/dashboard/workplace')
|
|
27
|
+
// --------------------------------------系统配置--------------------------------------
|
|
28
|
+
routerResource.system = view.blank
|
|
29
|
+
// 字典管理
|
|
30
|
+
routerResource.dictionaryManage = () => import('@vue2-client/pages/system/dictionary')
|
|
31
|
+
// 文件管理
|
|
32
|
+
routerResource.fileManager = () => import('@vue2-client/pages/system/file')
|
|
33
|
+
// 登录日志
|
|
34
|
+
routerResource.loginInfor = () => import('@vue2-client/pages/system/monitor/loginInfor')
|
|
35
|
+
// 操作日志
|
|
36
|
+
routerResource.operLog = () => import('@vue2-client/pages/system/monitor/operLog')
|
|
37
|
+
// 系统问题反馈工单
|
|
38
|
+
routerResource.submitTicket = () => import('@vue2-client/pages/system/ticket')
|
|
39
|
+
// 通用服务评价
|
|
40
|
+
routerResource.ServiceReview = () => import('@vue2-client/pages/ServiceReview')
|
|
41
|
+
// 系统设置
|
|
42
|
+
routerResource.settings = () => import('@vue2-client/pages/system/settings')
|
|
43
|
+
// AMIS示例页面
|
|
44
|
+
routerResource.amisDemo = () => import('@vue2-client/pages/AMisDemo/AMisDemo')
|
|
45
|
+
// 页面编辑器
|
|
46
|
+
routerResource.editablePage = () => import('@vue2-client/pages/lowCode/lowCodeEditor.vue')
|
|
47
|
+
// 数据检索
|
|
48
|
+
routerResource.dynamicStatistics = () => import('@vue2-client/pages/DynamicStatistics')
|
|
49
|
+
// 数据检索(新)
|
|
50
|
+
routerResource.newDynamicStatistics = () => import('@vue2-client/pages/NewDynamicStatistics')
|
|
51
|
+
// 示例页面
|
|
52
|
+
routerResource.example = {
|
|
53
|
+
path: 'example',
|
|
54
|
+
name: '示例主页面',
|
|
55
|
+
// component: () => import('@vue2-client/base-client/components/common/XDescriptions/demo.vue'),
|
|
56
|
+
// component: () => import('@vue2-client/base-client/components/common/XAddNativeForm/demo.vue'),
|
|
57
|
+
// component: () => import('@vue2-client/base-client/components/common/XFormGroup/demo.vue'),
|
|
58
|
+
// component: () => import('@vue2-client/base-client/components/common/XReport/XReportDemo.vue'),
|
|
59
|
+
// component: () => import('@vue2-client/base-client/components/common/XFormTable/demo.vue'),
|
|
60
|
+
// component: () => import('@vue2-client/base-client/components/common/XDatePicker/demo.vue'),
|
|
61
|
+
// component: () => import('@vue2-client/base-client/components/common/XTab/XTabDemo.vue'),
|
|
62
|
+
component: () => import('@vue2-client/base-client/components/common/XReportGrid/XReportDemo.vue'),
|
|
63
|
+
// component: () => import('@vue2-client/pages/WorkflowDetail/WorkFlowDemo.vue'),
|
|
64
|
+
// component: () => import('@vue2-client/base-client/components/common/XConversation/XConversationDemo.vue'),
|
|
65
|
+
// component: () => import('@vue2-client/base-client/components/common/XButtons/XButtonDemo.vue'),
|
|
66
|
+
// component: () => import('@vue2-client/base-client/components/common/XLabelSelect/XLabelSelectDemo.vue'),
|
|
67
|
+
// component: () => import('@vue2-client/base-client/components/common/XCheckList/XCheckList.vue'),
|
|
68
|
+
// component: () => import('@vue2-client/base-client/components/common/XPrint/Demo.vue'),
|
|
69
|
+
// component: () => import('@vue2-client/base-client/components/AI/demo.vue'),
|
|
70
|
+
// component: () => import('@vue2-client/components/g2Charts/demo.vue'),
|
|
71
|
+
// component: () => import('@vue2-client/pages/LogicCallExample/index.vue'),
|
|
72
|
+
}
|
|
73
|
+
// routerResource.example = () =>
|
|
74
|
+
// import('@vue2-client/pages/Example')
|
|
75
|
+
routerResource.XReportView = () => import('@vue2-client/pages/XReportView')
|
|
76
|
+
|
|
77
|
+
routerResource.XReportGrid = () => import('@vue2-client/base-client/components/common/XReportGrid/XReportDemo')
|
|
78
|
+
|
|
79
|
+
routerResource.XTab = () => import('@vue2-client/base-client/components/common/XTab/XTabDemo')
|
|
80
|
+
|
|
81
|
+
// 基础路由组件注册
|
|
82
|
+
const routerMap = {
|
|
83
|
+
login: {
|
|
84
|
+
authority: '*',
|
|
85
|
+
path: '/login',
|
|
86
|
+
component: process.env.VUE_APP_LOGIN_VERSION === 'V3'
|
|
87
|
+
? view.loginv3 : view.login
|
|
88
|
+
},
|
|
89
|
+
root: {
|
|
90
|
+
path: '/',
|
|
91
|
+
name: '首页',
|
|
92
|
+
redirect: homePage,
|
|
93
|
+
component: process.env.VUE_APP_SINGLE_PAPER === 'TRUE' ? view.blank : view.tabs,
|
|
94
|
+
},
|
|
95
|
+
exp403: {
|
|
96
|
+
authority: '*',
|
|
97
|
+
name: 'exp403',
|
|
98
|
+
path: '403',
|
|
99
|
+
component: () =>
|
|
100
|
+
import('@vue2-client/pages/exception/403')
|
|
101
|
+
},
|
|
102
|
+
exp404: {
|
|
103
|
+
name: 'exp404',
|
|
104
|
+
path: '404',
|
|
105
|
+
component: () =>
|
|
106
|
+
import('@vue2-client/pages/exception/404')
|
|
107
|
+
},
|
|
108
|
+
exp500: {
|
|
109
|
+
name: 'exp500',
|
|
110
|
+
path: '500',
|
|
111
|
+
component: () =>
|
|
112
|
+
import('@vue2-client/pages/exception/500')
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
Object.assign(routerMap, routerResource)
|
|
116
|
+
export default routerMap
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<x-collapse :query-params-name="openPrescriptionConfig" />
|
|
3
|
-
</template>
|
|
4
|
-
|
|
5
|
-
<script>
|
|
6
|
-
import XCollapse from '@vue2-client/base-client/components/common/XCollapse/XCollapse.vue'
|
|
7
|
-
export default {
|
|
8
|
-
name: 'Demo',
|
|
9
|
-
components: { XCollapse }
|
|
10
|
-
}
|
|
11
|
-
</script>
|
|
12
|
-
|
|
13
|
-
<style scoped>
|
|
14
|
-
|
|
15
|
-
</style>
|