vue2-client 1.14.99 → 1.15.1
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.message +19 -19
- package/package.json +109 -109
- package/src/base-client/components/common/XFormTable/demo.vue +86 -86
- package/src/base-client/components/common/XTable/XTable.vue +1587 -1571
- package/src/base-client/components/his/XQuestionnaire/XQuestionnaire.vue +8 -6
- package/src/base-client/components/his/XQuestionnaire/XQuestionnaireItem.vue +23 -47
- package/src/pages/addressSelect/addressDemo.vue +24 -24
- package/src/router/async/router.map.js +127 -127
- package/vue.config.js +220 -220
@@ -32,8 +32,8 @@ export default {
|
|
32
32
|
},
|
33
33
|
methods: {
|
34
34
|
// 获取配置
|
35
|
-
async getData (conditionData) {
|
36
|
-
getConfigByName(
|
35
|
+
async getData (queryParamsName, conditionData) {
|
36
|
+
getConfigByName(queryParamsName, 'af-his', res => {
|
37
37
|
// 清空旧数据
|
38
38
|
this.configs = []
|
39
39
|
this.conditionsMap = { ...this.conditionsMap }
|
@@ -70,15 +70,17 @@ export default {
|
|
70
70
|
this.questionnaireItemRefs.delete(config.tmp_key) // 组件卸载时清理
|
71
71
|
}
|
72
72
|
},
|
73
|
-
async init () { // 接收完整条件对象
|
74
|
-
this.$emit('init')
|
73
|
+
async init (conditionData) { // 接收完整条件对象
|
74
|
+
// this.$emit('init')
|
75
|
+
console.log('conditionData===>', conditionData)
|
76
|
+
await this.getData(this.queryParamsName, conditionData)
|
75
77
|
},
|
76
78
|
|
77
79
|
refreshList (tmpKey, condition) {
|
78
80
|
// 更新条件映射
|
79
81
|
this.$set(this.conditionsMap, tmpKey, condition)
|
80
|
-
// 调用子组件刷新
|
81
|
-
this.questionnaireItemRefs.get(tmpKey)?.refreshList(condition)
|
82
|
+
// // 调用子组件刷新
|
83
|
+
// this.questionnaireItemRefs.get(tmpKey)?.refreshList(condition)
|
82
84
|
},
|
83
85
|
},
|
84
86
|
}
|
@@ -111,38 +111,34 @@ export default {
|
|
111
111
|
// 获取配置
|
112
112
|
async getData (config, param) {
|
113
113
|
const that = this
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
114
|
+
that.config = { ...that.config, ...config }
|
115
|
+
console.log(param)
|
116
|
+
runLogic(config.data, param, 'af-his').then(res => {
|
117
|
+
that.data = res || []
|
118
|
+
that.results = {}
|
119
|
+
// 将又返回值的数据创建到results
|
120
|
+
for (let i = 0; i < res.length; i++) {
|
121
|
+
const fields = res[i]
|
122
|
+
if (!fields.columns) {
|
123
|
+
continue
|
124
|
+
}
|
125
|
+
console.log('2', fields)
|
126
|
+
for (let j = 0; j < fields.columns.length; j++) {
|
127
|
+
const field = fields.columns[j]
|
128
|
+
console.log('3', field)
|
129
|
+
if (this.results[field.config_id]) {
|
130
|
+
console.error(`Config_id 冲突: ${field.config_id} 重复,同一个模板中不能有形同的配置项`)
|
131
|
+
return
|
126
132
|
}
|
127
|
-
|
128
|
-
|
129
|
-
const field = fields.columns[j]
|
130
|
-
console.log('3', field)
|
131
|
-
if (this.results[field.config_id]) {
|
132
|
-
console.error(`Config_id 冲突: ${field.config_id} 重复,同一个模板中不能有形同的配置项`)
|
133
|
-
return
|
134
|
-
}
|
135
|
-
if (field.type === 'selectionBox' || field.type === 'input' || field.type === 'radio' || field.type === 'time') {
|
136
|
-
this.results[field.config_id] = { value: field.value, data_id: field.data_id }
|
137
|
-
}
|
138
|
-
console.log(this.results)
|
133
|
+
if (field.type === 'selectionBox' || field.type === 'input' || field.type === 'radio' || field.type === 'time') {
|
134
|
+
this.results[field.config_id] = { value: field.value, data_id: field.data_id }
|
139
135
|
}
|
136
|
+
console.log(this.results)
|
140
137
|
}
|
141
|
-
}
|
138
|
+
}
|
139
|
+
})
|
142
140
|
},
|
143
141
|
refreshList (param) {
|
144
|
-
this.data = []
|
145
|
-
this.results = {}
|
146
142
|
this.getData(this.queryParamsName, param)
|
147
143
|
},
|
148
144
|
// 行数据排量方式
|
@@ -190,26 +186,6 @@ export default {
|
|
190
186
|
.list-container {
|
191
187
|
width: 100%;
|
192
188
|
}
|
193
|
-
|
194
|
-
/** 自定义滚动条样式
|
195
|
-
.list-wrapper {
|
196
|
-
max-height: 240px;
|
197
|
-
overflow-y: auto;
|
198
|
-
padding-right: 2px;
|
199
|
-
}
|
200
|
-
.list-wrapper::-webkit-scrollbar {
|
201
|
-
width: 6px;
|
202
|
-
}
|
203
|
-
|
204
|
-
.list-wrapper::-webkit-scrollbar-thumb {
|
205
|
-
background-color: #d9d9d9;
|
206
|
-
border-radius: 3px;
|
207
|
-
}
|
208
|
-
|
209
|
-
.list-wrapper::-webkit-scrollbar-track {
|
210
|
-
background-color: #f0f0f0;
|
211
|
-
}
|
212
|
-
*/
|
213
189
|
/* header样式 */
|
214
190
|
.list-wrapper ::v-deep .ant-list-header {
|
215
191
|
background-color: #F4F4F4; /* 自定义背景色 */
|
@@ -1,24 +1,24 @@
|
|
1
|
-
<template>
|
2
|
-
<!-- 测试界面——测试地址选择新增组件-->
|
3
|
-
<div>
|
4
|
-
<a-button @click="open">打开选择地址弹窗</a-button>
|
5
|
-
<address-select :addressShow="showDialog"/>
|
6
|
-
</div>
|
7
|
-
</template>
|
8
|
-
|
9
|
-
<script>
|
10
|
-
import AddressSelect from '@/pages/addressSelect'
|
11
|
-
|
12
|
-
export default {
|
13
|
-
components: { AddressSelect },
|
14
|
-
data: () => ({
|
15
|
-
showDialog: false
|
16
|
-
}),
|
17
|
-
methods: {
|
18
|
-
open () {
|
19
|
-
console.log('打开选择地址弹窗')
|
20
|
-
this.showDialog = true
|
21
|
-
}
|
22
|
-
}
|
23
|
-
}
|
24
|
-
</script>
|
1
|
+
<template>
|
2
|
+
<!-- 测试界面——测试地址选择新增组件-->
|
3
|
+
<div>
|
4
|
+
<a-button @click="open">打开选择地址弹窗</a-button>
|
5
|
+
<address-select :addressShow="showDialog"/>
|
6
|
+
</div>
|
7
|
+
</template>
|
8
|
+
|
9
|
+
<script>
|
10
|
+
import AddressSelect from '@/pages/addressSelect'
|
11
|
+
|
12
|
+
export default {
|
13
|
+
components: { AddressSelect },
|
14
|
+
data: () => ({
|
15
|
+
showDialog: false
|
16
|
+
}),
|
17
|
+
methods: {
|
18
|
+
open () {
|
19
|
+
console.log('打开选择地址弹窗')
|
20
|
+
this.showDialog = true
|
21
|
+
}
|
22
|
+
}
|
23
|
+
}
|
24
|
+
</script>
|
@@ -1,127 +1,127 @@
|
|
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
|
-
routerResource.businessQuery = view.blank
|
23
|
-
// 业务查询 - 收费查询
|
24
|
-
routerResource.chargeQuery = () => import('@vue2-client/base-client/components/common/XFormTable/demo.vue')
|
25
|
-
// --------------------------------------仪表盘--------------------------------------
|
26
|
-
routerResource.dashboard = view.blank
|
27
|
-
// 工作台
|
28
|
-
routerResource.workplace = () =>
|
29
|
-
import('@vue2-client/pages/dashboard/workplace')
|
30
|
-
// --------------------------------------系统配置--------------------------------------
|
31
|
-
routerResource.system = view.blank
|
32
|
-
// 字典管理
|
33
|
-
routerResource.dictionaryManage = () => import('@vue2-client/pages/system/dictionary')
|
34
|
-
// 文件管理
|
35
|
-
routerResource.fileManager = () => import('@vue2-client/pages/system/file')
|
36
|
-
// 登录日志
|
37
|
-
routerResource.loginInfor = () => import('@vue2-client/pages/system/monitor/loginInfor')
|
38
|
-
// 操作日志
|
39
|
-
routerResource.operLog = () => import('@vue2-client/pages/system/monitor/operLog')
|
40
|
-
// 系统问题反馈工单
|
41
|
-
routerResource.submitTicket = () => import('@vue2-client/pages/system/ticket')
|
42
|
-
// 通用服务评价
|
43
|
-
routerResource.ServiceReview = () => import('@vue2-client/pages/ServiceReview')
|
44
|
-
// 系统设置
|
45
|
-
routerResource.settings = () => import('@vue2-client/pages/system/settings')
|
46
|
-
// AMIS示例页面
|
47
|
-
routerResource.amisDemo = () => import('@vue2-client/pages/AMisDemo/AMisDemo')
|
48
|
-
// 页面编辑器
|
49
|
-
routerResource.editablePage = () => import('@vue2-client/pages/lowCode/lowCodeEditor.vue')
|
50
|
-
// 数据检索
|
51
|
-
routerResource.dynamicStatistics = () => import('@vue2-client/pages/DynamicStatistics')
|
52
|
-
// 数据检索(新)
|
53
|
-
routerResource.newDynamicStatistics = () => import('@vue2-client/pages/NewDynamicStatistics')
|
54
|
-
// 示例页面
|
55
|
-
routerResource.example = {
|
56
|
-
path: 'example',
|
57
|
-
name: '示例主页面',
|
58
|
-
component: () => import('@vue2-client/pages/WorkflowDetail/WorkFlowDemo2.vue'),
|
59
|
-
// component: () => import('@vue2-client/pages/WorkflowDetail/WorkFlowDemo.vue'),
|
60
|
-
// component: () => import('@vue2-client/pages/addressSelect/addressDemo.vue'),
|
61
|
-
// component: () => import('@vue2-client/base-client/components/common/XDescriptions/demo.vue'),
|
62
|
-
// component: () => import('@vue2-client/base-client/components/common/XAddNativeForm/demo.vue'),
|
63
|
-
// component: () => import('@vue2-client/base-client/components/common/XFormGroup/demo.vue'),
|
64
|
-
// component: () => import('@vue2-client/base-client/components/common/XReport/XReportDemo.vue'),
|
65
|
-
|
66
|
-
// component: () => import('@vue2-client/base-client/components/common/XDatePicker/demo.vue'),
|
67
|
-
// component: () => import('@vue2-client/base-client/components/common/XTab/XTabDemo.vue'),
|
68
|
-
// component: () => import('@vue2-client/base-client/components/common/XRate/demo.vue'),
|
69
|
-
// component: () => import('@vue2-client/base-client/components/common/XForm/demo.vue'),
|
70
|
-
// component: () => import('@vue2-client/base-client/components/his/XTimeSelect/XTimeSelectDemo.vue'),
|
71
|
-
// component: () => import('@vue2-client/pages/WorkflowDetail/WorkFlowDemo.vue'),
|
72
|
-
// component: () => import('@vue2-client/pages/WorkflowDetail/WorkFlowDemo.vue'),
|
73
|
-
// component: () => import('@vue2-client/pages/XPageViewExample/index.vue'),
|
74
|
-
// component: () => import('@vue2-client/base-client/components/common/XButtons/XButtonDemo.vue'),
|
75
|
-
// component: () => import('@vue2-client/base-client/components/common/XLabelSelect/XLabelSelectDemo.vue'),
|
76
|
-
// component: () => import('@vue2-client/base-client/components/common/XCheckList/XCheckList.vue'),
|
77
|
-
// component: () => import('@vue2-client/base-client/components/common/XPrint/Demo.vue'),
|
78
|
-
// component: () => import('@vue2-client/base-client/components/AI/demo.vue'),
|
79
|
-
// component: () => import('@vue2-client/components/g2Charts/demo.vue'),
|
80
|
-
// component: () => import('@vue2-client/pages/LogicCallExample/index.vue'),
|
81
|
-
// component: () => import('@vue2-client/components/FilePreview/FilePreviewDemo.vue'),
|
82
|
-
// component: () => import('@vue2-client/pages/ReportGrid/index.vue'),
|
83
|
-
}
|
84
|
-
// routerResource.example = () =>
|
85
|
-
// import('@vue2-client/pages/Example')
|
86
|
-
routerResource.XReportView = () => import('@vue2-client/pages/XReportView')
|
87
|
-
|
88
|
-
routerResource.XReportGrid = () => import('@vue2-client/base-client/components/common/XReportGrid/XReportDemo')
|
89
|
-
|
90
|
-
routerResource.XTab = () => import('@vue2-client/base-client/components/common/XTab/XTabDemo')
|
91
|
-
|
92
|
-
// 基础路由组件注册
|
93
|
-
const routerMap = {
|
94
|
-
login: {
|
95
|
-
authority: '*',
|
96
|
-
path: '/login',
|
97
|
-
component: process.env.VUE_APP_LOGIN_VERSION === 'V3'
|
98
|
-
? view.loginv3 : view.login
|
99
|
-
},
|
100
|
-
root: {
|
101
|
-
path: '/',
|
102
|
-
name: '首页',
|
103
|
-
redirect: homePage,
|
104
|
-
component: process.env.VUE_APP_SINGLE_PAPER === 'TRUE' ? view.blank : view.tabs,
|
105
|
-
},
|
106
|
-
exp403: {
|
107
|
-
authority: '*',
|
108
|
-
name: 'exp403',
|
109
|
-
path: '403',
|
110
|
-
component: () =>
|
111
|
-
import('@vue2-client/pages/exception/403')
|
112
|
-
},
|
113
|
-
exp404: {
|
114
|
-
name: 'exp404',
|
115
|
-
path: '404',
|
116
|
-
component: () =>
|
117
|
-
import('@vue2-client/pages/exception/404')
|
118
|
-
},
|
119
|
-
exp500: {
|
120
|
-
name: 'exp500',
|
121
|
-
path: '500',
|
122
|
-
component: () =>
|
123
|
-
import('@vue2-client/pages/exception/500')
|
124
|
-
}
|
125
|
-
}
|
126
|
-
Object.assign(routerMap, routerResource)
|
127
|
-
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
|
+
routerResource.businessQuery = view.blank
|
23
|
+
// 业务查询 - 收费查询
|
24
|
+
routerResource.chargeQuery = () => import('@vue2-client/base-client/components/common/XFormTable/demo.vue')
|
25
|
+
// --------------------------------------仪表盘--------------------------------------
|
26
|
+
routerResource.dashboard = view.blank
|
27
|
+
// 工作台
|
28
|
+
routerResource.workplace = () =>
|
29
|
+
import('@vue2-client/pages/dashboard/workplace')
|
30
|
+
// --------------------------------------系统配置--------------------------------------
|
31
|
+
routerResource.system = view.blank
|
32
|
+
// 字典管理
|
33
|
+
routerResource.dictionaryManage = () => import('@vue2-client/pages/system/dictionary')
|
34
|
+
// 文件管理
|
35
|
+
routerResource.fileManager = () => import('@vue2-client/pages/system/file')
|
36
|
+
// 登录日志
|
37
|
+
routerResource.loginInfor = () => import('@vue2-client/pages/system/monitor/loginInfor')
|
38
|
+
// 操作日志
|
39
|
+
routerResource.operLog = () => import('@vue2-client/pages/system/monitor/operLog')
|
40
|
+
// 系统问题反馈工单
|
41
|
+
routerResource.submitTicket = () => import('@vue2-client/pages/system/ticket')
|
42
|
+
// 通用服务评价
|
43
|
+
routerResource.ServiceReview = () => import('@vue2-client/pages/ServiceReview')
|
44
|
+
// 系统设置
|
45
|
+
routerResource.settings = () => import('@vue2-client/pages/system/settings')
|
46
|
+
// AMIS示例页面
|
47
|
+
routerResource.amisDemo = () => import('@vue2-client/pages/AMisDemo/AMisDemo')
|
48
|
+
// 页面编辑器
|
49
|
+
routerResource.editablePage = () => import('@vue2-client/pages/lowCode/lowCodeEditor.vue')
|
50
|
+
// 数据检索
|
51
|
+
routerResource.dynamicStatistics = () => import('@vue2-client/pages/DynamicStatistics')
|
52
|
+
// 数据检索(新)
|
53
|
+
routerResource.newDynamicStatistics = () => import('@vue2-client/pages/NewDynamicStatistics')
|
54
|
+
// 示例页面
|
55
|
+
routerResource.example = {
|
56
|
+
path: 'example',
|
57
|
+
name: '示例主页面',
|
58
|
+
// component: () => import('@vue2-client/pages/WorkflowDetail/WorkFlowDemo2.vue'),
|
59
|
+
// component: () => import('@vue2-client/pages/WorkflowDetail/WorkFlowDemo.vue'),
|
60
|
+
// component: () => import('@vue2-client/pages/addressSelect/addressDemo.vue'),
|
61
|
+
// component: () => import('@vue2-client/base-client/components/common/XDescriptions/demo.vue'),
|
62
|
+
// component: () => import('@vue2-client/base-client/components/common/XAddNativeForm/demo.vue'),
|
63
|
+
// component: () => import('@vue2-client/base-client/components/common/XFormGroup/demo.vue'),
|
64
|
+
// component: () => import('@vue2-client/base-client/components/common/XReport/XReportDemo.vue'),
|
65
|
+
component: () => import('@vue2-client/base-client/components/common/XFormTable/demo.vue'),
|
66
|
+
// component: () => import('@vue2-client/base-client/components/common/XDatePicker/demo.vue'),
|
67
|
+
// component: () => import('@vue2-client/base-client/components/common/XTab/XTabDemo.vue'),
|
68
|
+
// component: () => import('@vue2-client/base-client/components/common/XRate/demo.vue'),
|
69
|
+
// component: () => import('@vue2-client/base-client/components/common/XForm/demo.vue'),
|
70
|
+
// component: () => import('@vue2-client/base-client/components/his/XTimeSelect/XTimeSelectDemo.vue'),
|
71
|
+
// component: () => import('@vue2-client/pages/WorkflowDetail/WorkFlowDemo.vue'),
|
72
|
+
// component: () => import('@vue2-client/pages/WorkflowDetail/WorkFlowDemo.vue'),
|
73
|
+
// component: () => import('@vue2-client/pages/XPageViewExample/index.vue'),
|
74
|
+
// component: () => import('@vue2-client/base-client/components/common/XButtons/XButtonDemo.vue'),
|
75
|
+
// component: () => import('@vue2-client/base-client/components/common/XLabelSelect/XLabelSelectDemo.vue'),
|
76
|
+
// component: () => import('@vue2-client/base-client/components/common/XCheckList/XCheckList.vue'),
|
77
|
+
// component: () => import('@vue2-client/base-client/components/common/XPrint/Demo.vue'),
|
78
|
+
// component: () => import('@vue2-client/base-client/components/AI/demo.vue'),
|
79
|
+
// component: () => import('@vue2-client/components/g2Charts/demo.vue'),
|
80
|
+
// component: () => import('@vue2-client/pages/LogicCallExample/index.vue'),
|
81
|
+
// component: () => import('@vue2-client/components/FilePreview/FilePreviewDemo.vue'),
|
82
|
+
// component: () => import('@vue2-client/pages/ReportGrid/index.vue'),
|
83
|
+
}
|
84
|
+
// routerResource.example = () =>
|
85
|
+
// import('@vue2-client/pages/Example')
|
86
|
+
routerResource.XReportView = () => import('@vue2-client/pages/XReportView')
|
87
|
+
|
88
|
+
routerResource.XReportGrid = () => import('@vue2-client/base-client/components/common/XReportGrid/XReportDemo')
|
89
|
+
|
90
|
+
routerResource.XTab = () => import('@vue2-client/base-client/components/common/XTab/XTabDemo')
|
91
|
+
|
92
|
+
// 基础路由组件注册
|
93
|
+
const routerMap = {
|
94
|
+
login: {
|
95
|
+
authority: '*',
|
96
|
+
path: '/login',
|
97
|
+
component: process.env.VUE_APP_LOGIN_VERSION === 'V3'
|
98
|
+
? view.loginv3 : view.login
|
99
|
+
},
|
100
|
+
root: {
|
101
|
+
path: '/',
|
102
|
+
name: '首页',
|
103
|
+
redirect: homePage,
|
104
|
+
component: process.env.VUE_APP_SINGLE_PAPER === 'TRUE' ? view.blank : view.tabs,
|
105
|
+
},
|
106
|
+
exp403: {
|
107
|
+
authority: '*',
|
108
|
+
name: 'exp403',
|
109
|
+
path: '403',
|
110
|
+
component: () =>
|
111
|
+
import('@vue2-client/pages/exception/403')
|
112
|
+
},
|
113
|
+
exp404: {
|
114
|
+
name: 'exp404',
|
115
|
+
path: '404',
|
116
|
+
component: () =>
|
117
|
+
import('@vue2-client/pages/exception/404')
|
118
|
+
},
|
119
|
+
exp500: {
|
120
|
+
name: 'exp500',
|
121
|
+
path: '500',
|
122
|
+
component: () =>
|
123
|
+
import('@vue2-client/pages/exception/500')
|
124
|
+
}
|
125
|
+
}
|
126
|
+
Object.assign(routerMap, routerResource)
|
127
|
+
export default routerMap
|