vue2-client 1.12.87 → 1.12.88

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,6 +1,6 @@
1
1
  {
2
2
  "name": "vue2-client",
3
- "version": "1.12.87",
3
+ "version": "1.12.88",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "serve": "SET NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service serve --no-eslint",
@@ -2,17 +2,20 @@
2
2
  <div>
3
3
  <a-collapse
4
4
  :activeKey="activeKey"
5
- @change="handleChange">
5
+ @change="handleChange"
6
+ >
6
7
  <a-collapse-panel
7
8
  v-for="(panel, panelIndex) in config.showData"
8
9
  :key="panelIndex.toString()"
9
10
  :show-arrow="false"
10
- :disabled="config.collapsible">
11
+ :disabled="config.collapsible"
12
+ >
11
13
  <template #header>
12
14
  <div class="header-content">
13
15
  <span
14
16
  class="header-text"
15
- :style="config.titleStyle">
17
+ :style="config.titleStyle"
18
+ >
16
19
  {{ panel.title }}
17
20
  </span>
18
21
  <!-- 当有 title2 数据时显示信息项 -->
@@ -21,7 +24,8 @@
21
24
  v-for="(item, headerIndex) in panel.title2"
22
25
  :key="headerIndex"
23
26
  class="info-item"
24
- :style="config.title2Style">
27
+ :style="config.title2Style"
28
+ >
25
29
  <!-- 根据showTitle是否显示键名 -->
26
30
  <span v-if="config.showTitle">{{ item.key }}:</span>
27
31
  <span>{{ item.value }}</span>
@@ -31,7 +35,8 @@
31
35
  <span
32
36
  v-if="panel.title3"
33
37
  class="time-item"
34
- :style="config.title3Style">
38
+ :style="config.title3Style"
39
+ >
35
40
  {{ panel.title3 }}
36
41
  </span>
37
42
  <!-- 修改搜索框的显示条件 -->
@@ -41,7 +46,8 @@
41
46
  :placeholder="panel.searchPlace"
42
47
  class="search-input"
43
48
  @search="(value) => onSearch(value, panelIndex)"
44
- @click.stop/>
49
+ @click.stop
50
+ />
45
51
  </div>
46
52
  </template>
47
53
  <!-- 根据类型显示不同内容 -->
@@ -99,6 +105,11 @@ export default {
99
105
  }
100
106
  },
101
107
  props: {
108
+ // 环境
109
+ env: {
110
+ type: String,
111
+ default: 'prod'
112
+ },
102
113
  // json名
103
114
  queryParamsName: {
104
115
  type: Object,
@@ -106,6 +117,9 @@ export default {
106
117
  },
107
118
  parameter: {
108
119
  type: Object,
120
+ default: () => {
121
+ return {}
122
+ }
109
123
  }
110
124
  },
111
125
  created () {
@@ -114,6 +128,16 @@ export default {
114
128
  beforeDestroy () {
115
129
  },
116
130
  methods: {
131
+ getComponentName(componentName) {
132
+ return componentName
133
+ },
134
+ listClick (data) {
135
+ this.$emit('listClick', data)
136
+ },
137
+ getConfigByName (componentName) {
138
+ const refKey = `dynamicComponent_${componentName}`
139
+ return this.$refs[refKey]
140
+ },
117
141
  async getData (config) {
118
142
  this.configName = config
119
143
  getConfigByName(config, 'af-his', res => {
@@ -151,7 +175,7 @@ export default {
151
175
  this.activeKey = keys
152
176
  },
153
177
  onSearch (value, panelIndex) {
154
- console.log('搜索内容:', value, '面板索引:', panelIndex)
178
+ console.log('搜索内容:', value, '面板索引:', panelIndex)
155
179
  },
156
180
  },
157
181
  watch: {
@@ -1,44 +1,44 @@
1
- <template>
2
- <div id="test">
3
- <a-card :bordered="false">
4
- <XReport
5
- ref="main"
6
- :use-oss-for-img="false"
7
- config-name="openPrescriptionCover"
8
- server-name="af-his"
9
- :show-img-in-cell="true"
10
- :display-only="true"
11
- :edit-mode="false"
12
- :dont-format="true"/>
13
- </a-card>
14
- </div>
15
- </template>
16
-
17
- <script>
18
- import XReport from './XReport'
19
- import XAddReport from '../XAddReport/XAddReport.vue'
20
- // eslint-disable-next-line no-unused-vars
21
-
22
- export default {
23
- name: 'XReportDemo',
24
- components: {
25
- XReport, XAddReport
26
- },
27
- mounted () {
28
- // this.$refs.xAddReport.init({
29
- // configName: 'skinTestExecuActionCover',
30
- // selectedId: '11111',
31
- // mixinData: {}
32
- // })
33
- },
34
- data () {
35
- return {
36
- }
37
- },
38
- methods: {
39
- }
40
- }
41
- </script>
42
- <style scoped>
43
-
44
- </style>
1
+ <template>
2
+ <div id="test">
3
+ <a-card :bordered="false">
4
+ <XReport
5
+ ref="main"
6
+ :use-oss-for-img="false"
7
+ config-name="openPrescriptionCover"
8
+ server-name="af-his"
9
+ :show-img-in-cell="true"
10
+ :display-only="true"
11
+ :edit-mode="false"
12
+ :dont-format="true"/>
13
+ </a-card>
14
+ </div>
15
+ </template>
16
+
17
+ <script>
18
+ import XReport from './XReport'
19
+ import XAddReport from '../XAddReport/XAddReport.vue'
20
+ // eslint-disable-next-line no-unused-vars
21
+
22
+ export default {
23
+ name: 'XReportDemo',
24
+ components: {
25
+ XReport, XAddReport
26
+ },
27
+ mounted () {
28
+ // this.$refs.xAddReport.init({
29
+ // configName: 'skinTestExecuActionCover',
30
+ // selectedId: '11111',
31
+ // mixinData: {}
32
+ // })
33
+ },
34
+ data () {
35
+ return {
36
+ }
37
+ },
38
+ methods: {
39
+ }
40
+ }
41
+ </script>
42
+ <style scoped>
43
+
44
+ </style>
@@ -1,126 +1,126 @@
1
- import { manageApi, post } from '@vue2-client/services/api'
2
- import { handleTree } from '@vue2-client/utils/util'
3
- import { indexedDB } from '@vue2-client/utils/indexedDB'
4
- import { getConfigByName } from '@vue2-client/services/api/common'
5
-
6
- const GetAppDataService = {
7
- install (Vue) {
8
- // 给vue增添对话框显示方法
9
- Vue.$appdata = Vue.prototype.$appdata = GetAppDataService
10
- },
11
- async load () {
12
- const params = {}
13
- await post(manageApi.getDictionaryValue, {}).then((res) => {
14
- Object.assign(params, res)
15
- const badgeItemArray = {}
16
- for (const key of Object.keys(params)) {
17
- badgeItemArray[key] = {}
18
- for (const item of params[key]) {
19
- let status
20
- if (!item.status) {
21
- status = 'none'
22
- } else {
23
- status = item.status
24
- }
25
- badgeItemArray[key][item.value] = {
26
- status: status,
27
- text: item.text
28
- }
29
- }
30
- }
31
- // 追加参数
32
- localStorage.setItem(process.env.VUE_APP_DICTIONARY_KEY, JSON.stringify(params))
33
- localStorage.setItem(process.env.VUE_APP_BADGE_KEY, JSON.stringify(badgeItemArray))
34
- })
35
- },
36
- // 返回树形省市区
37
- async getDivisionsOhChinaForTree () {
38
- // 获取省市区数据
39
- return new Promise((resolve, reject) => {
40
- try {
41
- indexedDB.getByWeb('divisionsOhChina', manageApi.getDivisionsOhChina, {}, res => {
42
- resolve(res)
43
- }, processRes => {
44
- return handleTree(processRes, 'code', 'parentcode')
45
- })
46
- } catch (e) {
47
- reject(e)
48
- }
49
- })
50
- },
51
- // 旧版获取配置中心字典
52
- getDictionaryList (key) {
53
- const str = localStorage.getItem(process.env.VUE_APP_DICTIONARY_KEY)
54
- const object = JSON.parse(str)
55
- return object[key]
56
- },
57
- async getDictValue (dictKey, value, func, isDev = false, serviceName = process.env.VUE_APP_SYSTEM_NAME) {
58
- const processResult = (result) => {
59
- if (!result.value) {
60
- return {
61
- status: 'none',
62
- text: value
63
- }
64
- }
65
- const item = result.value.find(item => item.value == value)
66
- if (item) {
67
- return {
68
- status: item.status || 'none',
69
- text: item.label
70
- }
71
- }
72
- return {
73
- status: 'none',
74
- text: value
75
- }
76
- }
77
- if (func) {
78
- getConfigByName(dictKey, serviceName, result => {
79
- func(processResult(result))
80
- }, isDev)
81
- } else {
82
- const result = await new Promise((resolve) => {
83
- getConfigByName(dictKey, serviceName, resolve, isDev)
84
- })
85
- return processResult(result)
86
- }
87
- },
88
- // 新版获取配置中心字典推荐使用 服务名默认为当前服务
89
- getDictByKey (dictKey, serviceName = process.env.VUE_APP_SYSTEM_NAME, callback, isDev) {
90
- getConfigByName(dictKey, undefined, result => {
91
- callback(result.value)
92
- }, isDev)
93
- },
94
- getParam (key, value, callback) {
95
- const str = localStorage.getItem(process.env.VUE_APP_BADGE_KEY)
96
- const object = JSON.parse(str)
97
- if (object && object[key]) {
98
- const result = object[key]
99
- if (Object.prototype.hasOwnProperty.call(result, value)) {
100
- return result[value]
101
- } else {
102
- return { status: 'none', text: value }
103
- }
104
- }
105
- return null
106
- },
107
- getParams () {
108
- const str = localStorage.getItem(process.env.VUE_APP_DICTIONARY_KEY)
109
- return JSON.parse(str)
110
- },
111
- getSingleValues () {
112
- const str = localStorage.getItem(process.env.VUE_APP_BADGE_KEY)
113
- return JSON.parse(str)
114
- },
115
- getWebConfigByKey (key) {
116
- const str = localStorage.getItem(process.env.VUE_APP_WEB_CONFIG_KEY)
117
- const object = JSON.parse(str)
118
- return object[key]
119
- },
120
- getStylesByKey (key) {
121
- const str = localStorage.getItem(process.env.VUE_APP_WEB_STYLES_KEY)
122
- const object = JSON.parse(str)
123
- return object[key]
124
- },
125
- }
126
- export default GetAppDataService
1
+ import { manageApi, post } from '@vue2-client/services/api'
2
+ import { handleTree } from '@vue2-client/utils/util'
3
+ import { indexedDB } from '@vue2-client/utils/indexedDB'
4
+ import { getConfigByName } from '@vue2-client/services/api/common'
5
+
6
+ const GetAppDataService = {
7
+ install (Vue) {
8
+ // 给vue增添对话框显示方法
9
+ Vue.$appdata = Vue.prototype.$appdata = GetAppDataService
10
+ },
11
+ async load () {
12
+ const params = {}
13
+ await post(manageApi.getDictionaryValue, {}).then((res) => {
14
+ Object.assign(params, res)
15
+ const badgeItemArray = {}
16
+ for (const key of Object.keys(params)) {
17
+ badgeItemArray[key] = {}
18
+ for (const item of params[key]) {
19
+ let status
20
+ if (!item.status) {
21
+ status = 'none'
22
+ } else {
23
+ status = item.status
24
+ }
25
+ badgeItemArray[key][item.value] = {
26
+ status: status,
27
+ text: item.text
28
+ }
29
+ }
30
+ }
31
+ // 追加参数
32
+ localStorage.setItem(process.env.VUE_APP_DICTIONARY_KEY, JSON.stringify(params))
33
+ localStorage.setItem(process.env.VUE_APP_BADGE_KEY, JSON.stringify(badgeItemArray))
34
+ })
35
+ },
36
+ // 返回树形省市区
37
+ async getDivisionsOhChinaForTree () {
38
+ // 获取省市区数据
39
+ return new Promise((resolve, reject) => {
40
+ try {
41
+ indexedDB.getByWeb('divisionsOhChina', manageApi.getDivisionsOhChina, {}, res => {
42
+ resolve(res)
43
+ }, processRes => {
44
+ return handleTree(processRes, 'code', 'parentcode')
45
+ })
46
+ } catch (e) {
47
+ reject(e)
48
+ }
49
+ })
50
+ },
51
+ // 旧版获取配置中心字典
52
+ getDictionaryList (key) {
53
+ const str = localStorage.getItem(process.env.VUE_APP_DICTIONARY_KEY)
54
+ const object = JSON.parse(str)
55
+ return object[key]
56
+ },
57
+ async getDictValue (dictKey, value, func, isDev = false, serviceName = process.env.VUE_APP_SYSTEM_NAME) {
58
+ const processResult = (result) => {
59
+ if (!result.value) {
60
+ return {
61
+ status: 'none',
62
+ text: value
63
+ }
64
+ }
65
+ const item = result.value.find(item => item.value == value)
66
+ if (item) {
67
+ return {
68
+ status: item.status || 'none',
69
+ text: item.label
70
+ }
71
+ }
72
+ return {
73
+ status: 'none',
74
+ text: value
75
+ }
76
+ }
77
+ if (func) {
78
+ getConfigByName(dictKey, serviceName, result => {
79
+ func(processResult(result))
80
+ }, isDev)
81
+ } else {
82
+ const result = await new Promise((resolve) => {
83
+ getConfigByName(dictKey, serviceName, resolve, isDev)
84
+ })
85
+ return processResult(result)
86
+ }
87
+ },
88
+ // 新版获取配置中心字典推荐使用 服务名默认为当前服务
89
+ getDictByKey (dictKey, serviceName = process.env.VUE_APP_SYSTEM_NAME, callback, isDev) {
90
+ getConfigByName(dictKey, undefined, result => {
91
+ callback(result.value)
92
+ }, isDev)
93
+ },
94
+ getParam (key, value, callback) {
95
+ const str = localStorage.getItem(process.env.VUE_APP_BADGE_KEY)
96
+ const object = JSON.parse(str)
97
+ if (object && object[key]) {
98
+ const result = object[key]
99
+ if (Object.prototype.hasOwnProperty.call(result, value)) {
100
+ return result[value]
101
+ } else {
102
+ return { status: 'none', text: value }
103
+ }
104
+ }
105
+ return null
106
+ },
107
+ getParams () {
108
+ const str = localStorage.getItem(process.env.VUE_APP_DICTIONARY_KEY)
109
+ return JSON.parse(str)
110
+ },
111
+ getSingleValues () {
112
+ const str = localStorage.getItem(process.env.VUE_APP_BADGE_KEY)
113
+ return JSON.parse(str)
114
+ },
115
+ getWebConfigByKey (key) {
116
+ const str = localStorage.getItem(process.env.VUE_APP_WEB_CONFIG_KEY)
117
+ const object = JSON.parse(str)
118
+ return object[key]
119
+ },
120
+ getStylesByKey (key) {
121
+ const str = localStorage.getItem(process.env.VUE_APP_WEB_STYLES_KEY)
122
+ const object = JSON.parse(str)
123
+ return object[key]
124
+ },
125
+ }
126
+ export default GetAppDataService
@@ -1,76 +1,76 @@
1
- <template>
2
- <div id="test" v-if="showReport">
3
- <XReport
4
- @updateImg="updateImg"
5
- ref="main"
6
- :use-oss-for-img="false"
7
- config-name="outpatientWait"
8
- server-name="af-his"
9
- :show-img-in-cell="true"
10
- :display-only="displayOnly"
11
- :edit-mode="false"
12
- :show-save-button="false"
13
- :dont-format="true"/>
14
- </div>
15
- </template>
16
-
17
- <script>
18
- import XReport from '@vue2-client/base-client/components/common/XReportGrid/XReport'
19
- // eslint-disable-next-line no-unused-vars
20
- import { exportHTMLNodeToPDF } from '@vue2-client/utils/htmlToPDFApi'
21
-
22
- export default {
23
- name: 'Example',
24
- components: {
25
- XReport
26
- },
27
- mounted () {
28
- console.log(this.$route)
29
- },
30
- data () {
31
- return {
32
- test: {
33
- title: {
34
- type: 'titleKey',
35
- value: 'f_type'
36
- },
37
- designMode: 'json',
38
- },
39
- total: 1,
40
- registerMap: [],
41
- displayOnly: true,
42
- showReport: true
43
- }
44
- },
45
- methods: {
46
- updateImg (data) {
47
- console.warn('demo', data)
48
- },
49
- testExport () {
50
- this.showReport = false
51
- this.displayOnly = true
52
- this.$nextTick(() => {
53
- this.showReport = true
54
- setTimeout(() => {
55
- exportHTMLNodeToPDF('123', '#test')
56
- this.showReport = false
57
- this.displayOnly = false
58
- this.$nextTick(() => {
59
- this.showReport = true
60
- })
61
- }, 500)
62
- })
63
- },
64
- testSave () {
65
- const result = []
66
- this.registerMap.forEach(item => {
67
- result.push(item.exportData())
68
- })
69
- console.warn('save', result)
70
- }
71
- }
72
- }
73
- </script>
74
- <style scoped>
75
-
76
- </style>
1
+ <template>
2
+ <div id="test" v-if="showReport">
3
+ <XReport
4
+ @updateImg="updateImg"
5
+ ref="main"
6
+ :use-oss-for-img="false"
7
+ config-name="outpatientWait"
8
+ server-name="af-his"
9
+ :show-img-in-cell="true"
10
+ :display-only="displayOnly"
11
+ :edit-mode="false"
12
+ :show-save-button="false"
13
+ :dont-format="true"/>
14
+ </div>
15
+ </template>
16
+
17
+ <script>
18
+ import XReport from '@vue2-client/base-client/components/common/XReportGrid/XReport'
19
+ // eslint-disable-next-line no-unused-vars
20
+ import { exportHTMLNodeToPDF } from '@vue2-client/utils/htmlToPDFApi'
21
+
22
+ export default {
23
+ name: 'Example',
24
+ components: {
25
+ XReport
26
+ },
27
+ mounted () {
28
+ console.log(this.$route)
29
+ },
30
+ data () {
31
+ return {
32
+ test: {
33
+ title: {
34
+ type: 'titleKey',
35
+ value: 'f_type'
36
+ },
37
+ designMode: 'json',
38
+ },
39
+ total: 1,
40
+ registerMap: [],
41
+ displayOnly: true,
42
+ showReport: true
43
+ }
44
+ },
45
+ methods: {
46
+ updateImg (data) {
47
+ console.warn('demo', data)
48
+ },
49
+ testExport () {
50
+ this.showReport = false
51
+ this.displayOnly = true
52
+ this.$nextTick(() => {
53
+ this.showReport = true
54
+ setTimeout(() => {
55
+ exportHTMLNodeToPDF('123', '#test')
56
+ this.showReport = false
57
+ this.displayOnly = false
58
+ this.$nextTick(() => {
59
+ this.showReport = true
60
+ })
61
+ }, 500)
62
+ })
63
+ },
64
+ testSave () {
65
+ const result = []
66
+ this.registerMap.forEach(item => {
67
+ result.push(item.exportData())
68
+ })
69
+ console.warn('save', result)
70
+ }
71
+ }
72
+ }
73
+ </script>
74
+ <style scoped>
75
+
76
+ </style>
@@ -1,123 +1,119 @@
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/his/XRadio/XRadio.vue'),
56
- // component: () => import('@vue2-client/base-client/components/his/XList/XList.vue'),
57
- component: () => import('@vue2-client/base-client/components/common/XCollapse/XCollapse.vue'),
58
- // component: () => import('@vue2-client/base-client/components/common/XDataCard/XDataCard.vue'),
59
- // component: () => import('@vue2-client/base-client/components/common/XDescriptions/demo.vue'),
60
- // component: () => import('@vue2-client/base-client/components/common/XAddNativeForm/demo.vue'),
61
- // component: () => import('@vue2-client/base-client/components/common/XFormGroup/demo.vue'),
62
- // component: () => import('@vue2-client/base-client/components/common/XReport/XReportDemo.vue'),
63
- // component: () => import('@vue2-client/base-client/components/common/XFormTable/demo.vue'),
64
- // component: () => import('@vue2-client/base-client/components/common/XDatePicker/demo.vue'),
65
- // component: () => import('@vue2-client/base-client/components/common/XTab/XTabDemo.vue'),
66
- // component: () => import('@vue2-client/base-client/components/common/XRate/demo.vue'),
67
- // component: () => import('@vue2-client/base-client/components/common/XForm/demo.vue'),
68
- // component: () => import('@vue2-client/pages/WorkflowDetail/WorkFlowDemo.vue'),
69
- // component: () => import('@vue2-client/base-client/components/common/XConversation/XConversationDemo.vue'),
70
- // component: () => import('@vue2-client/base-client/components/common/XButtons/XButtonDemo.vue'),
71
- // component: () => import('@vue2-client/base-client/components/common/XLabelSelect/XLabelSelectDemo.vue'),
72
- // component: () => import('@vue2-client/base-client/components/common/XCheckList/XCheckList.vue'),
73
- // component: () => import('@vue2-client/base-client/components/common/XPrint/Demo.vue'),
74
- // component: () => import('@vue2-client/base-client/components/AI/demo.vue'),
75
- // component: () => import('@vue2-client/components/g2Charts/demo.vue'),
76
- // component: () => import('@vue2-client/pages/LogicCallExample/index.vue'),
77
- // component: () => import('@vue2-client/components/FilePreview/FilePreviewDemo.vue'),
78
- // component: () => import('@vue2-client/pages/ReportGrid/index.vue')
79
- }
80
- // routerResource.example = () =>
81
- // import('@vue2-client/pages/Example')
82
- routerResource.XReportView = () => import('@vue2-client/pages/XReportView')
83
-
84
- routerResource.XReportGrid = () => import('@vue2-client/base-client/components/common/XReportGrid/XReportDemo')
85
-
86
- routerResource.XTab = () => import('@vue2-client/base-client/components/common/XTab/XTabDemo')
87
-
88
- // 基础路由组件注册
89
- const routerMap = {
90
- login: {
91
- authority: '*',
92
- path: '/login',
93
- component: process.env.VUE_APP_LOGIN_VERSION === 'V3'
94
- ? view.loginv3 : view.login
95
- },
96
- root: {
97
- path: '/',
98
- name: '首页',
99
- redirect: homePage,
100
- component: process.env.VUE_APP_SINGLE_PAPER === 'TRUE' ? view.blank : view.tabs,
101
- },
102
- exp403: {
103
- authority: '*',
104
- name: 'exp403',
105
- path: '403',
106
- component: () =>
107
- import('@vue2-client/pages/exception/403')
108
- },
109
- exp404: {
110
- name: 'exp404',
111
- path: '404',
112
- component: () =>
113
- import('@vue2-client/pages/exception/404')
114
- },
115
- exp500: {
116
- name: 'exp500',
117
- path: '500',
118
- component: () =>
119
- import('@vue2-client/pages/exception/500')
120
- }
121
- }
122
- Object.assign(routerMap, routerResource)
123
- 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/XRate/demo.vue'),
63
+ // component: () => import('@vue2-client/base-client/components/common/XForm/demo.vue'),
64
+ // component: () => import('@vue2-client/pages/WorkflowDetail/WorkFlowDemo.vue'),
65
+ // component: () => import('@vue2-client/base-client/components/common/XConversation/XConversationDemo.vue'),
66
+ // component: () => import('@vue2-client/base-client/components/common/XButtons/XButtonDemo.vue'),
67
+ // component: () => import('@vue2-client/base-client/components/common/XLabelSelect/XLabelSelectDemo.vue'),
68
+ // component: () => import('@vue2-client/base-client/components/common/XCheckList/XCheckList.vue'),
69
+ // component: () => import('@vue2-client/base-client/components/common/XPrint/Demo.vue'),
70
+ // component: () => import('@vue2-client/base-client/components/AI/demo.vue'),
71
+ // component: () => import('@vue2-client/components/g2Charts/demo.vue'),
72
+ // component: () => import('@vue2-client/pages/LogicCallExample/index.vue'),
73
+ // component: () => import('@vue2-client/components/FilePreview/FilePreviewDemo.vue'),
74
+ // component: () => import('@vue2-client/pages/ReportGrid/index.vue'),
75
+ }
76
+ // routerResource.example = () =>
77
+ // import('@vue2-client/pages/Example')
78
+ routerResource.XReportView = () => import('@vue2-client/pages/XReportView')
79
+
80
+ routerResource.XReportGrid = () => import('@vue2-client/base-client/components/common/XReportGrid/XReportDemo')
81
+
82
+ routerResource.XTab = () => import('@vue2-client/base-client/components/common/XTab/XTabDemo')
83
+
84
+ // 基础路由组件注册
85
+ const routerMap = {
86
+ login: {
87
+ authority: '*',
88
+ path: '/login',
89
+ component: process.env.VUE_APP_LOGIN_VERSION === 'V3'
90
+ ? view.loginv3 : view.login
91
+ },
92
+ root: {
93
+ path: '/',
94
+ name: '首页',
95
+ redirect: homePage,
96
+ component: process.env.VUE_APP_SINGLE_PAPER === 'TRUE' ? view.blank : view.tabs,
97
+ },
98
+ exp403: {
99
+ authority: '*',
100
+ name: 'exp403',
101
+ path: '403',
102
+ component: () =>
103
+ import('@vue2-client/pages/exception/403')
104
+ },
105
+ exp404: {
106
+ name: 'exp404',
107
+ path: '404',
108
+ component: () =>
109
+ import('@vue2-client/pages/exception/404')
110
+ },
111
+ exp500: {
112
+ name: 'exp500',
113
+ path: '500',
114
+ component: () =>
115
+ import('@vue2-client/pages/exception/500')
116
+ }
117
+ }
118
+ Object.assign(routerMap, routerResource)
119
+ 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>