vue2-client 1.17.47 → 1.17.48
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
CHANGED
|
@@ -1,113 +1,143 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<a-card :bordered="false">
|
|
3
|
-
<x-form-table
|
|
4
|
-
title="示例表单"
|
|
5
|
-
|
|
6
|
-
:fixedAddForm="fixedAddForm"
|
|
7
|
-
:externalSelectedRowKeys="selectedKeys"
|
|
8
|
-
@action="action"
|
|
9
|
-
@selectRow="selectRow"
|
|
10
|
-
@columnClick="columnClick"
|
|
11
|
-
@ceshi="ceshi"
|
|
12
|
-
serviceName="af-
|
|
13
|
-
ref="xFormTable"
|
|
14
|
-
>
|
|
15
|
-
</x-form-table>
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
//
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
},
|
|
92
|
-
|
|
93
|
-
this.
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
this.$refs.xFormTable.
|
|
100
|
-
},
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
},
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
1
|
+
<template>
|
|
2
|
+
<a-card :bordered="false">
|
|
3
|
+
<x-form-table
|
|
4
|
+
title="示例表单"
|
|
5
|
+
queryParamsName="ceshiCRUD"
|
|
6
|
+
:fixedAddForm="fixedAddForm"
|
|
7
|
+
:externalSelectedRowKeys="selectedKeys"
|
|
8
|
+
@action="action"
|
|
9
|
+
@selectRow="selectRow"
|
|
10
|
+
@columnClick="columnClick"
|
|
11
|
+
@ceshi="ceshi"
|
|
12
|
+
serviceName="af-safecheck"
|
|
13
|
+
ref="xFormTable"
|
|
14
|
+
>
|
|
15
|
+
</x-form-table>
|
|
16
|
+
<a-modal
|
|
17
|
+
v-model="formModalVisible"
|
|
18
|
+
title="工单回访"
|
|
19
|
+
:zIndex="1002"
|
|
20
|
+
width="50vw"
|
|
21
|
+
:destroy-on-close="true"
|
|
22
|
+
@cancel="formModalVisible = false"
|
|
23
|
+
>
|
|
24
|
+
<x-add-native-form
|
|
25
|
+
ref="xForm"
|
|
26
|
+
/>
|
|
27
|
+
</a-modal>
|
|
28
|
+
</a-card>
|
|
29
|
+
</template>
|
|
30
|
+
|
|
31
|
+
<script>
|
|
32
|
+
import XFormTable from '@vue2-client/base-client/components/common/XFormTable/XFormTable.vue'
|
|
33
|
+
import XAddNativeForm from '@vue2-client/base-client/components/common/XAddNativeForm/XAddNativeForm.vue'
|
|
34
|
+
import { microDispatch } from '@vue2-client/utils/microAppUtils'
|
|
35
|
+
import { getConfigByNameAsync } from '@vue2-client/services/api/common'
|
|
36
|
+
|
|
37
|
+
export default {
|
|
38
|
+
name: 'Demo',
|
|
39
|
+
components: {
|
|
40
|
+
XFormTable,
|
|
41
|
+
XAddNativeForm,
|
|
42
|
+
},
|
|
43
|
+
data () {
|
|
44
|
+
return {
|
|
45
|
+
// 查询配置文件名
|
|
46
|
+
queryParamsName: 'ceshiCRUD',
|
|
47
|
+
// 查询配置左侧tree
|
|
48
|
+
xTreeConfigName: 'addressType',
|
|
49
|
+
// 新增表单固定值
|
|
50
|
+
fixedAddForm: {},
|
|
51
|
+
// 是否显示详情抽屉
|
|
52
|
+
detailVisible: false,
|
|
53
|
+
// 当前记录
|
|
54
|
+
record: {},
|
|
55
|
+
// 选中的行keys
|
|
56
|
+
selectedKeys: [],
|
|
57
|
+
selected: {
|
|
58
|
+
keys: [],
|
|
59
|
+
rows: [],
|
|
60
|
+
},
|
|
61
|
+
formModalVisible: false,
|
|
62
|
+
}
|
|
63
|
+
},
|
|
64
|
+
methods: {
|
|
65
|
+
// input框 行編輯參數傳遞
|
|
66
|
+
ceshi (...args) {
|
|
67
|
+
// attr, value, currentRecord, currentIndex, nextRecord, nextIndex
|
|
68
|
+
const [attr, value, currentRecord, currentIndex, nextRecord, nextIndex] =
|
|
69
|
+
args
|
|
70
|
+
console.log(
|
|
71
|
+
'ceshi',
|
|
72
|
+
attr,
|
|
73
|
+
value,
|
|
74
|
+
currentRecord,
|
|
75
|
+
currentIndex,
|
|
76
|
+
nextRecord,
|
|
77
|
+
nextIndex
|
|
78
|
+
)
|
|
79
|
+
// 示例:当按下 Enter 键且有下一行时,跳转到下一行的同一列
|
|
80
|
+
// 可以在这里执行业务逻辑(例如:保存数据)
|
|
81
|
+
console.log('当前行:', currentIndex, '下一行:', nextIndex)
|
|
82
|
+
if (!nextIndex) {
|
|
83
|
+
this.$message.warning('没有下一行')
|
|
84
|
+
return
|
|
85
|
+
}
|
|
86
|
+
// 跳转到下一行的同一列
|
|
87
|
+
this.$refs.xFormTable.$refs.xTable.focusInput(nextIndex, attr.model)
|
|
88
|
+
},
|
|
89
|
+
test () {
|
|
90
|
+
this.$refs.xFormTable.setTableData([])
|
|
91
|
+
},
|
|
92
|
+
defaultF () {
|
|
93
|
+
this.$refs.xFormTable.setTableSize('default')
|
|
94
|
+
},
|
|
95
|
+
middleF () {
|
|
96
|
+
this.$refs.xFormTable.setTableSize('middle')
|
|
97
|
+
},
|
|
98
|
+
smallF () {
|
|
99
|
+
this.$refs.xFormTable.setTableSize('small')
|
|
100
|
+
},
|
|
101
|
+
columnClick (key, value, record) {
|
|
102
|
+
microDispatch({
|
|
103
|
+
type: 'v3route',
|
|
104
|
+
path: '/bingliguanli/dianzibingliluru',
|
|
105
|
+
props: { selected: arguments[0].his_f_admission_id },
|
|
106
|
+
})
|
|
107
|
+
},
|
|
108
|
+
action (record, id, actionType) {
|
|
109
|
+
getConfigByNameAsync('backVisitForm', 'af-telephone').then(config => {
|
|
110
|
+
this.formModalVisible = true
|
|
111
|
+
this.$nextTick(
|
|
112
|
+
() => {
|
|
113
|
+
this.formModalVisible = true
|
|
114
|
+
this.$refs.xForm.init({
|
|
115
|
+
formItems: config.formJson,
|
|
116
|
+
title: '工单回访',
|
|
117
|
+
businessType: '新增',
|
|
118
|
+
...config,
|
|
119
|
+
modifyModelData: { data: { id: 1 } },
|
|
120
|
+
})
|
|
121
|
+
})
|
|
122
|
+
})
|
|
123
|
+
// this.detailVisible = true
|
|
124
|
+
// console.log('触发了详情操作', record, id, actionType)
|
|
125
|
+
},
|
|
126
|
+
onClose () {
|
|
127
|
+
this.detailVisible = false
|
|
128
|
+
// 关闭详情之后重新查询表单
|
|
129
|
+
this.$refs.xFormTable.refreshTable(true)
|
|
130
|
+
},
|
|
131
|
+
selectRow (selectedRowKeys, selectedRows) {
|
|
132
|
+
this.selected = {
|
|
133
|
+
keys: selectedRowKeys,
|
|
134
|
+
rows: selectedRows,
|
|
135
|
+
}
|
|
136
|
+
console.log('selectedDemo', this.selected)
|
|
137
|
+
},
|
|
138
|
+
},
|
|
139
|
+
computed: {},
|
|
140
|
+
}
|
|
141
|
+
</script>
|
|
142
|
+
|
|
143
|
+
<style scoped></style>
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
<a-descriptions-item
|
|
25
25
|
v-for="(item, idx) in formCompletedDataPreview.data"
|
|
26
26
|
:key="item.label || idx"
|
|
27
|
-
v-
|
|
27
|
+
v-if="item.label !== '附件上传' && item.label !== '__expressionRs'"
|
|
28
28
|
>
|
|
29
29
|
<span slot="label" style="color: #000">{{ item.label }}</span>
|
|
30
30
|
<span v-if="(item.type ?? 'default') === 'image'">
|
|
@@ -1,134 +1,134 @@
|
|
|
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 = () => import('@vue2-client/layouts/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
|
-
// 页面编辑器
|
|
47
|
-
routerResource.editablePage = () => import('@vue2-client/pages/lowCode/lowCodeEditor.vue')
|
|
48
|
-
// 数据检索
|
|
49
|
-
routerResource.dynamicStatistics = () => import('@vue2-client/pages/DynamicStatistics')
|
|
50
|
-
// 数据检索(新)
|
|
51
|
-
routerResource.newDynamicStatistics = () => import('@vue2-client/pages/NewDynamicStatistics')
|
|
52
|
-
// 示例页面
|
|
53
|
-
routerResource.example = {
|
|
54
|
-
path: 'example',
|
|
55
|
-
name: '示例主页面',
|
|
56
|
-
// component: () => import('@vue2-client/base-client/components/his/HChart/demo.vue'),
|
|
57
|
-
// component: () => import('@vue2-client/pages/WorkflowDetail/WorkFlowDemo.vue'),
|
|
58
|
-
component: () => import('@vue2-client/base-client/components/common/XFormTable/demo.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/XReportGrid/XReportDemo.vue'),
|
|
66
|
-
// component: () => import('@vue2-client/base-client/components/common/HIS/demo.vue'),
|
|
67
|
-
// component: () => import('@vue2-client/base-client/components/common/XDatePicker/demo.vue'),
|
|
68
|
-
// component: () => import('@vue2-client/base-client/components/common/XTab/XTabDemo.vue'),
|
|
69
|
-
// component: () => import('@vue2-client/base-client/components/common/XRate/demo.vue'),
|
|
70
|
-
// component: () => import('@vue2-client/base-client/components/common/XForm/demo.vue'),
|
|
71
|
-
// component: () => import('@vue2-client/base-client/components/his/XTimeSelect/XTimeSelectDemo.vue'),
|
|
72
|
-
// component: () => import('@vue2-client/base-client/components/his/XImportExcelButton/XFrontImportExcelDemo.vue'),
|
|
73
|
-
// component: () => import('@vue2-client/pages/WorkflowDetail/WorkFlowDemo.vue'),
|
|
74
|
-
// component: () => import('@vue2-client/pages/WorkflowDetail/WorkFlowDemo.vue'),
|
|
75
|
-
// component: () => import('@vue2-client/pages/XPageViewExample/index.vue'),
|
|
76
|
-
// component: () => import('@vue2-client/base-client/components/common/XButtons/XButtonDemo.vue'),
|
|
77
|
-
// component: () => import('@vue2-client/base-client/components/common/XLabelSelect/XLabelSelectDemo.vue'),
|
|
78
|
-
// component: () => import('@vue2-client/base-client/components/common/XCheckList/XCheckList.vue'),
|
|
79
|
-
// component: () => import('@vue2-client/base-client/components/common/XPrint/Demo.vue'),
|
|
80
|
-
// component: () => import('@vue2-client/base-client/components/AI/demo.vue'),
|
|
81
|
-
// component: () => import('@vue2-client/components/g2Charts/demo.vue'),
|
|
82
|
-
// component: () => import('@vue2-client/pages/LogicCallExample/index.vue'),
|
|
83
|
-
// component: () => import('@vue2-client/components/FilePreview/FilePreviewDemo.vue'),
|
|
84
|
-
// component: () => import('@vue2-client/pages/ReportGrid/index.vue'),
|
|
85
|
-
// component: () => import('@vue2-client/base-client/components/common/HIS/demo.vue'),
|
|
86
|
-
}
|
|
87
|
-
// routerResource.example = () =>
|
|
88
|
-
// import('@vue2-client/pages/Example')
|
|
89
|
-
routerResource.XReportView = () => import('@vue2-client/pages/XReportView')
|
|
90
|
-
|
|
91
|
-
routerResource.XReportGrid = () => import('@vue2-client/base-client/components/common/XReportGrid/XReportDemo')
|
|
92
|
-
|
|
93
|
-
routerResource.XTab = () => import('@vue2-client/base-client/components/common/XTab/XTabDemo')
|
|
94
|
-
routerResource.addressManage = () => import('@vue2-client/base-client/components/common/XFormTable/demo.vue')
|
|
95
|
-
// 大屏界面, 放行登录
|
|
96
|
-
routerResource.bigDashboard = () => import('@vue2-client/pages/dashboard/index.vue')
|
|
97
|
-
|
|
98
|
-
// 基础路由组件注册
|
|
99
|
-
const routerMap = {
|
|
100
|
-
login: {
|
|
101
|
-
authority: '*',
|
|
102
|
-
path: '/login',
|
|
103
|
-
component: process.env.VUE_APP_LOGIN_VERSION === 'V3'
|
|
104
|
-
? view.loginv3 : view.login
|
|
105
|
-
},
|
|
106
|
-
root: {
|
|
107
|
-
path: '/',
|
|
108
|
-
name: '首页',
|
|
109
|
-
// 只有在非微前端环境下才进行重定向,或者通过环境变量控制
|
|
110
|
-
redirect: window.__MICRO_APP_ENVIRONMENT__ ? undefined : homePage,
|
|
111
|
-
component: process.env.VUE_APP_SINGLE_PAPER === 'TRUE' ? view.blank : view.tabs,
|
|
112
|
-
},
|
|
113
|
-
exp403: {
|
|
114
|
-
authority: '*',
|
|
115
|
-
name: 'exp403',
|
|
116
|
-
path: '403',
|
|
117
|
-
component: () =>
|
|
118
|
-
import('@vue2-client/pages/exception/403')
|
|
119
|
-
},
|
|
120
|
-
exp404: {
|
|
121
|
-
name: 'exp404',
|
|
122
|
-
path: '404',
|
|
123
|
-
component: () =>
|
|
124
|
-
import('@vue2-client/pages/exception/404')
|
|
125
|
-
},
|
|
126
|
-
exp500: {
|
|
127
|
-
name: 'exp500',
|
|
128
|
-
path: '500',
|
|
129
|
-
component: () =>
|
|
130
|
-
import('@vue2-client/pages/exception/500')
|
|
131
|
-
}
|
|
132
|
-
}
|
|
133
|
-
Object.assign(routerMap, routerResource)
|
|
134
|
-
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 = () => import('@vue2-client/layouts/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
|
+
// 页面编辑器
|
|
47
|
+
routerResource.editablePage = () => import('@vue2-client/pages/lowCode/lowCodeEditor.vue')
|
|
48
|
+
// 数据检索
|
|
49
|
+
routerResource.dynamicStatistics = () => import('@vue2-client/pages/DynamicStatistics')
|
|
50
|
+
// 数据检索(新)
|
|
51
|
+
routerResource.newDynamicStatistics = () => import('@vue2-client/pages/NewDynamicStatistics')
|
|
52
|
+
// 示例页面
|
|
53
|
+
routerResource.example = {
|
|
54
|
+
path: 'example',
|
|
55
|
+
name: '示例主页面',
|
|
56
|
+
// component: () => import('@vue2-client/base-client/components/his/HChart/demo.vue'),
|
|
57
|
+
// component: () => import('@vue2-client/pages/WorkflowDetail/WorkFlowDemo.vue'),
|
|
58
|
+
component: () => import('@vue2-client/base-client/components/common/XFormTable/demo.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/XReportGrid/XReportDemo.vue'),
|
|
66
|
+
// component: () => import('@vue2-client/base-client/components/common/HIS/demo.vue'),
|
|
67
|
+
// component: () => import('@vue2-client/base-client/components/common/XDatePicker/demo.vue'),
|
|
68
|
+
// component: () => import('@vue2-client/base-client/components/common/XTab/XTabDemo.vue'),
|
|
69
|
+
// component: () => import('@vue2-client/base-client/components/common/XRate/demo.vue'),
|
|
70
|
+
// component: () => import('@vue2-client/base-client/components/common/XForm/demo.vue'),
|
|
71
|
+
// component: () => import('@vue2-client/base-client/components/his/XTimeSelect/XTimeSelectDemo.vue'),
|
|
72
|
+
// component: () => import('@vue2-client/base-client/components/his/XImportExcelButton/XFrontImportExcelDemo.vue'),
|
|
73
|
+
// component: () => import('@vue2-client/pages/WorkflowDetail/WorkFlowDemo.vue'),
|
|
74
|
+
// component: () => import('@vue2-client/pages/WorkflowDetail/WorkFlowDemo.vue'),
|
|
75
|
+
// component: () => import('@vue2-client/pages/XPageViewExample/index.vue'),
|
|
76
|
+
// component: () => import('@vue2-client/base-client/components/common/XButtons/XButtonDemo.vue'),
|
|
77
|
+
// component: () => import('@vue2-client/base-client/components/common/XLabelSelect/XLabelSelectDemo.vue'),
|
|
78
|
+
// component: () => import('@vue2-client/base-client/components/common/XCheckList/XCheckList.vue'),
|
|
79
|
+
// component: () => import('@vue2-client/base-client/components/common/XPrint/Demo.vue'),
|
|
80
|
+
// component: () => import('@vue2-client/base-client/components/AI/demo.vue'),
|
|
81
|
+
// component: () => import('@vue2-client/components/g2Charts/demo.vue'),
|
|
82
|
+
// component: () => import('@vue2-client/pages/LogicCallExample/index.vue'),
|
|
83
|
+
// component: () => import('@vue2-client/components/FilePreview/FilePreviewDemo.vue'),
|
|
84
|
+
// component: () => import('@vue2-client/pages/ReportGrid/index.vue'),
|
|
85
|
+
// component: () => import('@vue2-client/base-client/components/common/HIS/demo.vue'),
|
|
86
|
+
}
|
|
87
|
+
// routerResource.example = () =>
|
|
88
|
+
// import('@vue2-client/pages/Example')
|
|
89
|
+
routerResource.XReportView = () => import('@vue2-client/pages/XReportView')
|
|
90
|
+
|
|
91
|
+
routerResource.XReportGrid = () => import('@vue2-client/base-client/components/common/XReportGrid/XReportDemo')
|
|
92
|
+
|
|
93
|
+
routerResource.XTab = () => import('@vue2-client/base-client/components/common/XTab/XTabDemo')
|
|
94
|
+
routerResource.addressManage = () => import('@vue2-client/base-client/components/common/XFormTable/demo.vue')
|
|
95
|
+
// 大屏界面, 放行登录
|
|
96
|
+
routerResource.bigDashboard = () => import('@vue2-client/pages/dashboard/index.vue')
|
|
97
|
+
|
|
98
|
+
// 基础路由组件注册
|
|
99
|
+
const routerMap = {
|
|
100
|
+
login: {
|
|
101
|
+
authority: '*',
|
|
102
|
+
path: '/login',
|
|
103
|
+
component: process.env.VUE_APP_LOGIN_VERSION === 'V3'
|
|
104
|
+
? view.loginv3 : view.login
|
|
105
|
+
},
|
|
106
|
+
root: {
|
|
107
|
+
path: '/',
|
|
108
|
+
name: '首页',
|
|
109
|
+
// 只有在非微前端环境下才进行重定向,或者通过环境变量控制
|
|
110
|
+
redirect: window.__MICRO_APP_ENVIRONMENT__ ? undefined : homePage,
|
|
111
|
+
component: process.env.VUE_APP_SINGLE_PAPER === 'TRUE' ? view.blank : view.tabs,
|
|
112
|
+
},
|
|
113
|
+
exp403: {
|
|
114
|
+
authority: '*',
|
|
115
|
+
name: 'exp403',
|
|
116
|
+
path: '403',
|
|
117
|
+
component: () =>
|
|
118
|
+
import('@vue2-client/pages/exception/403')
|
|
119
|
+
},
|
|
120
|
+
exp404: {
|
|
121
|
+
name: 'exp404',
|
|
122
|
+
path: '404',
|
|
123
|
+
component: () =>
|
|
124
|
+
import('@vue2-client/pages/exception/404')
|
|
125
|
+
},
|
|
126
|
+
exp500: {
|
|
127
|
+
name: 'exp500',
|
|
128
|
+
path: '500',
|
|
129
|
+
component: () =>
|
|
130
|
+
import('@vue2-client/pages/exception/500')
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
Object.assign(routerMap, routerResource)
|
|
134
|
+
export default routerMap
|