vue2-client 1.17.29 → 1.17.31

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.
@@ -1,159 +1,159 @@
1
- <template>
2
- <div>
3
- <div class="filter-bar">
4
- <a-date-picker v-model="upload_date" placeholder="上传日期" @change="selfSearch" />
5
- <a-select
6
- style="width: 200px;"
7
- v-model="fusetype"
8
- :options="fusetypes"
9
- placeholder="分类"
10
- @change="selfSearch"
11
- allow-clear />
12
- <a-button type="primary" @click="selfSearch">查询</a-button>
13
- </div>
14
- <a-list bordered>
15
- <a-list-item v-for="item in files" :key="item.days">
16
- <div class="file-group">
17
- <h4>{{ item.days }}</h4>
18
- <div class="file-items">
19
- <div v-for="file in item.arrays" :key="file.id" class="file-card">
20
- <img :src="getFileUrl(file.f_downloadpath)" class="file-image" v-if="file.f_filetype.includes('jpg') || file.f_filetype.includes('png')" @click="openPreview(file.f_downloadpath)" style="cursor:pointer" />
21
- <p>上传时间: {{ file.f_uploaddate }}</p>
22
- <p>操作员: {{ file.f_username }}</p>
23
- <p>分类: {{ file.fusetype }}</p>
24
- <p>说明: {{ file.fremarks }}</p>
25
- <a :href="getFileUrl(file.f_downloadpath)" target="_blank">预览</a>
26
- <a-button v-if="isDelete === '1'" @click="delet(file.id)">删除</a-button>
27
- </div>
28
- </div>
29
- </div>
30
- </a-list-item>
31
- </a-list>
32
- <ImagePreview :src="previewImg" :visible="previewVisible" @close="previewVisible = false" />
33
- </div>
34
- </template>
35
-
36
- <script>
37
- import { post } from '@vue2-client/services/api'
38
- import { del } from '@vue2-client/services/api/restTools'
39
- import ImagePreview from './ImagePreview.vue'
40
- export default {
41
- props: {
42
- currUserInfo: {
43
- type: Object,
44
- default: () => undefined
45
- }
46
- },
47
- components: { ImagePreview },
48
- data () {
49
- return {
50
- upload_date: null,
51
- fusetype: null,
52
- files: [],
53
- fusetypes: [],
54
- isDelete: '0',
55
- previewVisible: false,
56
- previewImg: ''
57
- }
58
- },
59
- methods: {
60
- async getfusetypes () {
61
- this.fusetypes = [{ label: '全部', value: '' }]
62
- const res = await post('/api/af-revenue/logic/getFileUseType', {})
63
- this.fusetypes.push(...res.map(item => ({ label: item.fusetype, value: item.fusetype })))
64
- },
65
- async getFiles () {
66
- if (!this.currUserInfo) return
67
- this.files = []
68
- let condition = `f_blobid = '${this.currUserInfo.f_userinfo_id}'`
69
- if (this.upload_date) {
70
- condition += ` and CONVERT(VARCHAR(100), f_uploaddate, 23) = '${this.upload_date}'`
71
- }
72
- if (this.fusetype) {
73
- condition += ` and fusetype = '${this.fusetype}'`
74
- }
75
- const res = await post('/api/af-revenue/logic/getAllFiles', { data: { condition } })
76
- this.files = res.days.map(day => ({
77
- days: day.uploadday,
78
- arrays: res.array.filter(file => file.uploadday === day.uploadday)
79
- }))
80
- },
81
- async delet (fileId) {
82
- await del('api/af-revenue/entity/save/t_files', { id: fileId }, { resolveMsg: '删除成功', rejectMsg: '删除失败' })
83
- this.getFiles()
84
- },
85
- selfSearch () {
86
- this.getFiles()
87
- },
88
- openPreview (src) {
89
- this.previewImg = this.getFileUrl(src)
90
- this.previewVisible = true
91
- },
92
- getFileUrl (path) {
93
- if (!path) return ''
94
-
95
- console.log('原始路径:', path)
96
-
97
- // 获取当前域名和端口
98
- const baseUrl = `${window.location.protocol}//${window.location.host}`
99
-
100
- // 如果是本地文件路径,转换为新的转发路径
101
- if (path.match(/^[A-Za-z]:[\/\\]/)) {
102
- // 提取文件名
103
- const fileName = path.split(/[/\\]/).pop()
104
- const newUrl = `${baseUrl}/rs/image/file/${fileName}`
105
- console.log('转换后路径:', newUrl)
106
- return newUrl
107
- }
108
- // 如果已经是HTTP路径,直接返回
109
- if (path.startsWith('http')) {
110
- console.log('HTTP路径,直接返回:', path)
111
- return path
112
- }
113
- // 如果是相对路径,添加域名前缀
114
- if (path.startsWith('/resource/')) {
115
- const newUrl = `${baseUrl}${path}`
116
- console.log('相对路径转换:', newUrl)
117
- return newUrl
118
- }
119
- console.log('其他路径,直接返回:', path)
120
- return path
121
- }
122
- },
123
- mounted () {
124
- if (this.$login.r.includes('上传附件删除')) {
125
- this.isDelete = '1'
126
- }
127
- this.getFiles()
128
- this.getfusetypes()
129
- }
130
- }
131
- </script>
132
-
133
- <style scoped>
134
- .filter-bar {
135
- display: flex;
136
- gap: 10px;
137
- margin-bottom: 15px;
138
- }
139
- .file-group {
140
- margin-bottom: 15px;
141
- }
142
- .file-items {
143
- display: flex;
144
- flex-wrap: wrap;
145
- gap: 10px;
146
- }
147
- .file-card {
148
- border: 1px solid #ddd;
149
- padding: 10px;
150
- border-radius: 5px;
151
- width: 200px;
152
- }
153
- .file-image {
154
- width: 100%; /* 让图片填充整个容器 */
155
- height: 150px; /* 调整高度 */
156
- object-fit: cover; /* 保持图片比例,填充整个区域 */
157
- border-radius: 5px; /* 圆角边框 */
158
- }
159
- </style>
1
+ <template>
2
+ <div>
3
+ <div class="filter-bar">
4
+ <a-date-picker v-model="upload_date" placeholder="上传日期" @change="selfSearch" />
5
+ <a-select
6
+ style="width: 200px;"
7
+ v-model="fusetype"
8
+ :options="fusetypes"
9
+ placeholder="分类"
10
+ @change="selfSearch"
11
+ allow-clear />
12
+ <a-button type="primary" @click="selfSearch">查询</a-button>
13
+ </div>
14
+ <a-list bordered>
15
+ <a-list-item v-for="item in files" :key="item.days">
16
+ <div class="file-group">
17
+ <h4>{{ item.days }}</h4>
18
+ <div class="file-items">
19
+ <div v-for="file in item.arrays" :key="file.id" class="file-card">
20
+ <img :src="getFileUrl(file.f_downloadpath)" class="file-image" v-if="file.f_filetype.includes('jpg') || file.f_filetype.includes('png')" @click="openPreview(file.f_downloadpath)" style="cursor:pointer" />
21
+ <p>上传时间: {{ file.f_uploaddate }}</p>
22
+ <p>操作员: {{ file.f_username }}</p>
23
+ <p>分类: {{ file.fusetype }}</p>
24
+ <p>说明: {{ file.fremarks }}</p>
25
+ <a :href="getFileUrl(file.f_downloadpath)" target="_blank">预览</a>
26
+ <a-button v-if="isDelete === '1'" @click="delet(file.id)">删除</a-button>
27
+ </div>
28
+ </div>
29
+ </div>
30
+ </a-list-item>
31
+ </a-list>
32
+ <ImagePreview :src="previewImg" :visible="previewVisible" @close="previewVisible = false" />
33
+ </div>
34
+ </template>
35
+
36
+ <script>
37
+ import { post } from '@vue2-client/services/api'
38
+ import { del } from '@vue2-client/services/api/restTools'
39
+ import ImagePreview from './ImagePreview.vue'
40
+ export default {
41
+ props: {
42
+ currUserInfo: {
43
+ type: Object,
44
+ default: () => undefined
45
+ }
46
+ },
47
+ components: { ImagePreview },
48
+ data () {
49
+ return {
50
+ upload_date: null,
51
+ fusetype: null,
52
+ files: [],
53
+ fusetypes: [],
54
+ isDelete: '0',
55
+ previewVisible: false,
56
+ previewImg: ''
57
+ }
58
+ },
59
+ methods: {
60
+ async getfusetypes () {
61
+ this.fusetypes = [{ label: '全部', value: '' }]
62
+ const res = await post('/api/af-revenue/logic/getFileUseType', {})
63
+ this.fusetypes.push(...res.map(item => ({ label: item.fusetype, value: item.fusetype })))
64
+ },
65
+ async getFiles () {
66
+ if (!this.currUserInfo) return
67
+ this.files = []
68
+ let condition = `f_blobid = '${this.currUserInfo.f_userinfo_id}'`
69
+ if (this.upload_date) {
70
+ condition += ` and CONVERT(VARCHAR(100), f_uploaddate, 23) = '${this.upload_date}'`
71
+ }
72
+ if (this.fusetype) {
73
+ condition += ` and fusetype = '${this.fusetype}'`
74
+ }
75
+ const res = await post('/api/af-revenue/logic/getAllFiles', { data: { condition } })
76
+ this.files = res.days.map(day => ({
77
+ days: day.uploadday,
78
+ arrays: res.array.filter(file => file.uploadday === day.uploadday)
79
+ }))
80
+ },
81
+ async delet (fileId) {
82
+ await del('api/af-revenue/entity/save/t_files', { id: fileId }, { resolveMsg: '删除成功', rejectMsg: '删除失败' })
83
+ this.getFiles()
84
+ },
85
+ selfSearch () {
86
+ this.getFiles()
87
+ },
88
+ openPreview (src) {
89
+ this.previewImg = this.getFileUrl(src)
90
+ this.previewVisible = true
91
+ },
92
+ getFileUrl (path) {
93
+ if (!path) return ''
94
+
95
+ console.log('原始路径:', path)
96
+
97
+ // 获取当前域名和端口
98
+ const baseUrl = `${window.location.protocol}//${window.location.host}`
99
+
100
+ // 如果是本地文件路径,转换为新的转发路径
101
+ if (path.match(/^[A-Za-z]:[\/\\]/)) {
102
+ // 提取文件名
103
+ const fileName = path.split(/[/\\]/).pop()
104
+ const newUrl = `${baseUrl}/rs/image/file/${fileName}`
105
+ console.log('转换后路径:', newUrl)
106
+ return newUrl
107
+ }
108
+ // 如果已经是HTTP路径,直接返回
109
+ if (path.startsWith('http')) {
110
+ console.log('HTTP路径,直接返回:', path)
111
+ return path
112
+ }
113
+ // 如果是相对路径,添加域名前缀
114
+ if (path.startsWith('/resource/')) {
115
+ const newUrl = `${baseUrl}${path}`
116
+ console.log('相对路径转换:', newUrl)
117
+ return newUrl
118
+ }
119
+ console.log('其他路径,直接返回:', path)
120
+ return path
121
+ }
122
+ },
123
+ mounted () {
124
+ if (this.$login.r.includes('上传附件删除')) {
125
+ this.isDelete = '1'
126
+ }
127
+ this.getFiles()
128
+ this.getfusetypes()
129
+ }
130
+ }
131
+ </script>
132
+
133
+ <style scoped>
134
+ .filter-bar {
135
+ display: flex;
136
+ gap: 10px;
137
+ margin-bottom: 15px;
138
+ }
139
+ .file-group {
140
+ margin-bottom: 15px;
141
+ }
142
+ .file-items {
143
+ display: flex;
144
+ flex-wrap: wrap;
145
+ gap: 10px;
146
+ }
147
+ .file-card {
148
+ border: 1px solid #ddd;
149
+ padding: 10px;
150
+ border-radius: 5px;
151
+ width: 200px;
152
+ }
153
+ .file-image {
154
+ width: 100%; /* 让图片填充整个容器 */
155
+ height: 150px; /* 调整高度 */
156
+ object-fit: cover; /* 保持图片比例,填充整个区域 */
157
+ border-radius: 5px; /* 圆角边框 */
158
+ }
159
+ </style>
@@ -1,133 +1,133 @@
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/pages/WorkflowDetail/WorkFlowDemo.vue'),
57
- // component: () => import('@vue2-client/base-client/components/common/XFormTable/demo.vue'),
58
- // component: () => import('@vue2-client/pages/WorkflowDetail/WorkFlowDemo.vue'),
59
- // component: () => import('@vue2-client/pages/addressSelect/addressDemo.vue'),
60
- // component: () => import('@vue2-client/base-client/components/common/XDescriptions/demo.vue'),
61
- // component: () => import('@vue2-client/base-client/components/common/XAddNativeForm/demo.vue'),
62
- // component: () => import('@vue2-client/base-client/components/common/XFormGroup/demo.vue'),
63
- // component: () => import('@vue2-client/base-client/components/common/XReport/XReportDemo.vue'),
64
- // component: () => import('@vue2-client/base-client/components/common/XReportGrid/XReportDemo.vue'),
65
- // component: () => import('@vue2-client/base-client/components/common/HIS/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/base-client/components/his/XImportExcelButton/XFrontImportExcelDemo.vue'),
72
- // component: () => import('@vue2-client/pages/WorkflowDetail/WorkFlowDemo.vue'),
73
- // component: () => import('@vue2-client/pages/WorkflowDetail/WorkFlowDemo.vue'),
74
- // component: () => import('@vue2-client/pages/XPageViewExample/index.vue'),
75
- // component: () => import('@vue2-client/base-client/components/common/XButtons/XButtonDemo.vue'),
76
- // component: () => import('@vue2-client/base-client/components/common/XLabelSelect/XLabelSelectDemo.vue'),
77
- // component: () => import('@vue2-client/base-client/components/common/XCheckList/XCheckList.vue'),
78
- // component: () => import('@vue2-client/base-client/components/common/XPrint/Demo.vue'),
79
- // component: () => import('@vue2-client/base-client/components/AI/demo.vue'),
80
- // component: () => import('@vue2-client/components/g2Charts/demo.vue'),
81
- // component: () => import('@vue2-client/pages/LogicCallExample/index.vue'),
82
- // component: () => import('@vue2-client/components/FilePreview/FilePreviewDemo.vue'),
83
- // component: () => import('@vue2-client/pages/ReportGrid/index.vue'),
84
- // component: () => import('@vue2-client/base-client/components/common/HIS/demo.vue'),
85
- }
86
- // routerResource.example = () =>
87
- // import('@vue2-client/pages/Example')
88
- routerResource.XReportView = () => import('@vue2-client/pages/XReportView')
89
-
90
- routerResource.XReportGrid = () => import('@vue2-client/base-client/components/common/XReportGrid/XReportDemo')
91
-
92
- routerResource.XTab = () => import('@vue2-client/base-client/components/common/XTab/XTabDemo')
93
- routerResource.addressManage = () => import('@vue2-client/base-client/components/common/XFormTable/demo.vue')
94
- // 大屏界面, 放行登录
95
- routerResource.bigDashboard = () => import('@vue2-client/pages/dashboard/index.vue')
96
-
97
- // 基础路由组件注册
98
- const routerMap = {
99
- login: {
100
- authority: '*',
101
- path: '/login',
102
- component: process.env.VUE_APP_LOGIN_VERSION === 'V3'
103
- ? view.loginv3 : view.login
104
- },
105
- root: {
106
- path: '/',
107
- name: '首页',
108
- // 只有在非微前端环境下才进行重定向,或者通过环境变量控制
109
- redirect: window.__MICRO_APP_ENVIRONMENT__ ? undefined : homePage,
110
- component: process.env.VUE_APP_SINGLE_PAPER === 'TRUE' ? view.blank : view.tabs,
111
- },
112
- exp403: {
113
- authority: '*',
114
- name: 'exp403',
115
- path: '403',
116
- component: () =>
117
- import('@vue2-client/pages/exception/403')
118
- },
119
- exp404: {
120
- name: 'exp404',
121
- path: '404',
122
- component: () =>
123
- import('@vue2-client/pages/exception/404')
124
- },
125
- exp500: {
126
- name: 'exp500',
127
- path: '500',
128
- component: () =>
129
- import('@vue2-client/pages/exception/500')
130
- }
131
- }
132
- Object.assign(routerMap, routerResource)
133
- 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/pages/WorkflowDetail/WorkFlowDemo.vue'),
57
+ component: () => import('@vue2-client/base-client/components/common/XFormTable/demo.vue'),
58
+ // component: () => import('@vue2-client/pages/WorkflowDetail/WorkFlowDemo.vue'),
59
+ // component: () => import('@vue2-client/pages/addressSelect/addressDemo.vue'),
60
+ // component: () => import('@vue2-client/base-client/components/common/XDescriptions/demo.vue'),
61
+ // component: () => import('@vue2-client/base-client/components/common/XAddNativeForm/demo.vue'),
62
+ // component: () => import('@vue2-client/base-client/components/common/XFormGroup/demo.vue'),
63
+ // component: () => import('@vue2-client/base-client/components/common/XReport/XReportDemo.vue'),
64
+ // component: () => import('@vue2-client/base-client/components/common/XReportGrid/XReportDemo.vue'),
65
+ // component: () => import('@vue2-client/base-client/components/common/HIS/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/base-client/components/his/XImportExcelButton/XFrontImportExcelDemo.vue'),
72
+ // component: () => import('@vue2-client/pages/WorkflowDetail/WorkFlowDemo.vue'),
73
+ // component: () => import('@vue2-client/pages/WorkflowDetail/WorkFlowDemo.vue'),
74
+ // component: () => import('@vue2-client/pages/XPageViewExample/index.vue'),
75
+ // component: () => import('@vue2-client/base-client/components/common/XButtons/XButtonDemo.vue'),
76
+ // component: () => import('@vue2-client/base-client/components/common/XLabelSelect/XLabelSelectDemo.vue'),
77
+ // component: () => import('@vue2-client/base-client/components/common/XCheckList/XCheckList.vue'),
78
+ // component: () => import('@vue2-client/base-client/components/common/XPrint/Demo.vue'),
79
+ // component: () => import('@vue2-client/base-client/components/AI/demo.vue'),
80
+ // component: () => import('@vue2-client/components/g2Charts/demo.vue'),
81
+ // component: () => import('@vue2-client/pages/LogicCallExample/index.vue'),
82
+ // component: () => import('@vue2-client/components/FilePreview/FilePreviewDemo.vue'),
83
+ // component: () => import('@vue2-client/pages/ReportGrid/index.vue'),
84
+ // component: () => import('@vue2-client/base-client/components/common/HIS/demo.vue'),
85
+ }
86
+ // routerResource.example = () =>
87
+ // import('@vue2-client/pages/Example')
88
+ routerResource.XReportView = () => import('@vue2-client/pages/XReportView')
89
+
90
+ routerResource.XReportGrid = () => import('@vue2-client/base-client/components/common/XReportGrid/XReportDemo')
91
+
92
+ routerResource.XTab = () => import('@vue2-client/base-client/components/common/XTab/XTabDemo')
93
+ routerResource.addressManage = () => import('@vue2-client/base-client/components/common/XFormTable/demo.vue')
94
+ // 大屏界面, 放行登录
95
+ routerResource.bigDashboard = () => import('@vue2-client/pages/dashboard/index.vue')
96
+
97
+ // 基础路由组件注册
98
+ const routerMap = {
99
+ login: {
100
+ authority: '*',
101
+ path: '/login',
102
+ component: process.env.VUE_APP_LOGIN_VERSION === 'V3'
103
+ ? view.loginv3 : view.login
104
+ },
105
+ root: {
106
+ path: '/',
107
+ name: '首页',
108
+ // 只有在非微前端环境下才进行重定向,或者通过环境变量控制
109
+ redirect: window.__MICRO_APP_ENVIRONMENT__ ? undefined : homePage,
110
+ component: process.env.VUE_APP_SINGLE_PAPER === 'TRUE' ? view.blank : view.tabs,
111
+ },
112
+ exp403: {
113
+ authority: '*',
114
+ name: 'exp403',
115
+ path: '403',
116
+ component: () =>
117
+ import('@vue2-client/pages/exception/403')
118
+ },
119
+ exp404: {
120
+ name: 'exp404',
121
+ path: '404',
122
+ component: () =>
123
+ import('@vue2-client/pages/exception/404')
124
+ },
125
+ exp500: {
126
+ name: 'exp500',
127
+ path: '500',
128
+ component: () =>
129
+ import('@vue2-client/pages/exception/500')
130
+ }
131
+ }
132
+ Object.assign(routerMap, routerResource)
133
+ export default routerMap