vue2-client 1.4.36 → 1.4.38

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.
Files changed (97) hide show
  1. package/CHANGELOG.md +442 -434
  2. package/index.js +30 -30
  3. package/package.json +78 -78
  4. package/src/base-client/components/common/AddressSearchCombobox/AddressSearchCombobox.vue +225 -225
  5. package/src/base-client/components/common/CreateQuery/CreateQueryItem.vue +777 -777
  6. package/src/base-client/components/common/FormGroupQuery/FormGroupQuery.vue +165 -165
  7. package/src/base-client/components/common/JSONToTree/jsontotree.vue +275 -275
  8. package/src/base-client/components/common/XAddForm/XAddForm.vue +354 -354
  9. package/src/base-client/components/common/XAddNativeForm/XAddNativeForm.vue +327 -327
  10. package/src/base-client/components/common/XCard/XCard.vue +64 -64
  11. package/src/base-client/components/common/XForm/XForm.vue +274 -274
  12. package/src/base-client/components/common/XFormTable/index.md +96 -96
  13. package/src/base-client/components/system/QueryParamsDetailsView/QueryParamsDetailsView.vue +281 -281
  14. package/src/base-client/components/ticket/TicketDetailsView/TicketDetailsView.vue +807 -807
  15. package/src/base-client/components/ticket/TicketDetailsView/index.md +29 -29
  16. package/src/base-client/components/ticket/TicketDetailsView/part/TicketDetailsFlow.vue +260 -260
  17. package/src/base-client/components/ticket/TicketSubmitSuccessView/TicketSubmitSuccessView.vue +532 -532
  18. package/src/base-client/components/ticket/TicketSubmitSuccessView/index.md +29 -29
  19. package/src/base-client/plugins/AppData.js +73 -73
  20. package/src/base-client/plugins/GetLoginInfoService.js +179 -179
  21. package/src/base-client/plugins/PagedList.js +177 -177
  22. package/src/base-client/plugins/compatible/LoginServiceOA.js +20 -20
  23. package/src/base-client/plugins/i18n-extend.js +32 -32
  24. package/src/components/Ellipsis/index.md +38 -38
  25. package/src/components/FileImageItem/FileItem.vue +60 -0
  26. package/src/components/FileImageItem/ImageItem.vue +78 -0
  27. package/src/components/FileImageItem/index.js +4 -0
  28. package/src/components/FilePreview/FilePreview.vue +110 -0
  29. package/src/components/FilePreview/index.js +3 -0
  30. package/src/components/NumberInfo/index.md +43 -43
  31. package/src/components/STable/README.md +341 -341
  32. package/src/components/STable/index.js +318 -318
  33. package/src/components/Trend/index.md +45 -45
  34. package/src/components/checkbox/ColorCheckbox.vue +157 -157
  35. package/src/components/checkbox/ImgCheckbox.vue +163 -163
  36. package/src/components/form/FormRow.vue +52 -52
  37. package/src/components/index.js +36 -36
  38. package/src/components/menu/SideMenu.vue +62 -62
  39. package/src/components/menu/menu.js +273 -273
  40. package/src/components/page/header/index.less +40 -40
  41. package/src/components/setting/Setting.vue +235 -235
  42. package/src/components/table/StandardTable.vue +141 -141
  43. package/src/components/table/advance/ActionColumns.vue +158 -158
  44. package/src/components/table/advance/SearchArea.vue +355 -355
  45. package/src/components/tool/AStepItem.vue +60 -60
  46. package/src/components/tool/AvatarList.vue +68 -68
  47. package/src/components/tool/Drawer.vue +142 -142
  48. package/src/components/tool/TagSelect.vue +83 -83
  49. package/src/components/transition/PageToggleTransition.vue +97 -97
  50. package/src/config/replacer/resolve.config.js +67 -67
  51. package/src/layouts/AdminLayout.vue +174 -174
  52. package/src/layouts/PageLayout.vue +151 -151
  53. package/src/layouts/SinglePageView.vue +105 -105
  54. package/src/layouts/header/AdminHeader.vue +104 -104
  55. package/src/layouts/header/HeaderNotice.vue +167 -167
  56. package/src/layouts/header/HeaderSearch.vue +67 -67
  57. package/src/layouts/header/InstitutionDetail.vue +181 -181
  58. package/src/layouts/header/index.less +92 -92
  59. package/src/layouts/tabs/TabsHead.vue +190 -190
  60. package/src/layouts/tabs/TabsView.vue +379 -379
  61. package/src/mock/goods/index.js +108 -108
  62. package/src/pages/CreateQueryPage.vue +65 -65
  63. package/src/pages/login/Login.vue +345 -345
  64. package/src/pages/report/ReportTable.js +124 -124
  65. package/src/pages/report/ReportTableHome.vue +28 -28
  66. package/src/pages/resourceManage/orgListManage.vue +98 -98
  67. package/src/pages/system/dictionary/index.vue +43 -43
  68. package/src/pages/system/file/index.vue +317 -317
  69. package/src/pages/system/monitor/loginInfor/index.vue +36 -36
  70. package/src/pages/system/monitor/operLog/index.vue +36 -36
  71. package/src/pages/system/queryParams/index.vue +43 -43
  72. package/src/pages/system/ticket/submitTicketSuccess.vue +46 -3
  73. package/src/router/async/config.async.js +27 -27
  74. package/src/router/async/router.map.js +65 -65
  75. package/src/router/index.js +27 -27
  76. package/src/services/api/DictionaryDetailsViewApi.js +6 -6
  77. package/src/services/api/LogDetailsViewApi.js +10 -10
  78. package/src/services/api/QueryParamsDetailsViewApi.js +6 -6
  79. package/src/services/api/TicketDetailsViewApi.js +34 -34
  80. package/src/services/api/cas.js +79 -79
  81. package/src/services/api/commonTempTable.js +10 -10
  82. package/src/services/api/index.js +17 -17
  83. package/src/services/api/manage.js +8 -8
  84. package/src/services/apiService.js +13 -13
  85. package/src/services/user.js +53 -53
  86. package/src/store/modules/index.js +4 -4
  87. package/src/theme/default/nprogress.less +76 -76
  88. package/src/theme/default/style.less +47 -47
  89. package/src/utils/colors.js +103 -103
  90. package/src/utils/excel/Blob.js +180 -180
  91. package/src/utils/excel/Export2Excel.js +141 -141
  92. package/src/utils/formatter.js +68 -68
  93. package/src/utils/i18n.js +80 -80
  94. package/src/utils/routerUtil.js +364 -364
  95. package/src/utils/theme-color-replacer-extend.js +91 -91
  96. package/src/utils/themeUtil.js +100 -100
  97. package/src/utils/util.js +230 -230
@@ -1,36 +1,36 @@
1
- <template>
2
- <a-card :bordered="false">
3
- <x-form-table
4
- title="登录日志"
5
- :queryParamsName="queryParamsName"
6
- @action="toDetail">
7
- </x-form-table>
8
- </a-card>
9
- </template>
10
-
11
- <script>
12
- import XFormTable from '@vue2-client/base-client/components/common/XFormTable/XFormTable'
13
-
14
- export default {
15
- name: 'loginInfor',
16
- components: {
17
- XFormTable
18
- },
19
- data () {
20
- return {
21
- // 选中的编号
22
- selectNo: undefined,
23
- // 查询配置文件名
24
- queryParamsName: 'loginInforQueryParams',
25
- // 是否显示详情抽屉
26
- detailVisible: false
27
- }
28
- },
29
- methods: {
30
- toDetail (record, id) {
31
- this.selectNo = id + ''
32
- this.detailVisible = true
33
- }
34
- }
35
- }
36
- </script>
1
+ <template>
2
+ <a-card :bordered="false">
3
+ <x-form-table
4
+ title="登录日志"
5
+ :queryParamsName="queryParamsName"
6
+ @action="toDetail">
7
+ </x-form-table>
8
+ </a-card>
9
+ </template>
10
+
11
+ <script>
12
+ import XFormTable from '@vue2-client/base-client/components/common/XFormTable/XFormTable'
13
+
14
+ export default {
15
+ name: 'loginInfor',
16
+ components: {
17
+ XFormTable
18
+ },
19
+ data () {
20
+ return {
21
+ // 选中的编号
22
+ selectNo: undefined,
23
+ // 查询配置文件名
24
+ queryParamsName: 'loginInforQueryParams',
25
+ // 是否显示详情抽屉
26
+ detailVisible: false
27
+ }
28
+ },
29
+ methods: {
30
+ toDetail (record, id) {
31
+ this.selectNo = id + ''
32
+ this.detailVisible = true
33
+ }
34
+ }
35
+ }
36
+ </script>
@@ -1,36 +1,36 @@
1
- <template>
2
- <a-card :bordered="false">
3
- <x-form-table
4
- title="操作日志"
5
- :queryParamsName="queryParamsName"
6
- @action="toDetail">
7
- </x-form-table>
8
- </a-card>
9
- </template>
10
-
11
- <script>
12
- import XFormTable from '@vue2-client/base-client/components/common/XFormTable/XFormTable'
13
-
14
- export default {
15
- name: 'operLog',
16
- components: {
17
- XFormTable
18
- },
19
- data () {
20
- return {
21
- // 选中的编号
22
- selectNo: undefined,
23
- // 查询配置文件名
24
- queryParamsName: 'operLogQueryParams',
25
- // 是否显示详情抽屉
26
- detailVisible: false
27
- }
28
- },
29
- methods: {
30
- toDetail (record, id) {
31
- this.selectNo = id + ''
32
- this.detailVisible = true
33
- }
34
- }
35
- }
36
- </script>
1
+ <template>
2
+ <a-card :bordered="false">
3
+ <x-form-table
4
+ title="操作日志"
5
+ :queryParamsName="queryParamsName"
6
+ @action="toDetail">
7
+ </x-form-table>
8
+ </a-card>
9
+ </template>
10
+
11
+ <script>
12
+ import XFormTable from '@vue2-client/base-client/components/common/XFormTable/XFormTable'
13
+
14
+ export default {
15
+ name: 'operLog',
16
+ components: {
17
+ XFormTable
18
+ },
19
+ data () {
20
+ return {
21
+ // 选中的编号
22
+ selectNo: undefined,
23
+ // 查询配置文件名
24
+ queryParamsName: 'operLogQueryParams',
25
+ // 是否显示详情抽屉
26
+ detailVisible: false
27
+ }
28
+ },
29
+ methods: {
30
+ toDetail (record, id) {
31
+ this.selectNo = id + ''
32
+ this.detailVisible = true
33
+ }
34
+ }
35
+ }
36
+ </script>
@@ -1,43 +1,43 @@
1
- <template>
2
- <a-card :bordered="false">
3
- <query-params-details-view
4
- v-if="selectId"
5
- :id="selectId"
6
- :visible.sync="detailVisible"
7
- />
8
- <x-form-table
9
- :queryParamsName="queryParamsName"
10
- title="查询配置"
11
- @action="toDetail">
12
- </x-form-table>
13
- </a-card>
14
- </template>
15
-
16
- <script>
17
- import XFormTable from '@vue2-client/base-client/components/common/XFormTable/XFormTable'
18
- import QueryParamsDetailsView from '@vue2-client/base-client/components/system/QueryParamsDetailsView'
19
-
20
- export default {
21
- name: 'QueryParams',
22
- components: {
23
- XFormTable,
24
- QueryParamsDetailsView
25
- },
26
- data () {
27
- return {
28
- // 选中的编号
29
- selectId: undefined,
30
- // 查询配置文件名
31
- queryParamsName: 'queryParams',
32
- // 是否显示详情抽屉
33
- detailVisible: false
34
- }
35
- },
36
- methods: {
37
- toDetail (record, id) {
38
- this.selectId = id + ''
39
- this.detailVisible = true
40
- }
41
- }
42
- }
43
- </script>
1
+ <template>
2
+ <a-card :bordered="false">
3
+ <query-params-details-view
4
+ v-if="selectId"
5
+ :id="selectId"
6
+ :visible.sync="detailVisible"
7
+ />
8
+ <x-form-table
9
+ :queryParamsName="queryParamsName"
10
+ title="查询配置"
11
+ @action="toDetail">
12
+ </x-form-table>
13
+ </a-card>
14
+ </template>
15
+
16
+ <script>
17
+ import XFormTable from '@vue2-client/base-client/components/common/XFormTable/XFormTable'
18
+ import QueryParamsDetailsView from '@vue2-client/base-client/components/system/QueryParamsDetailsView'
19
+
20
+ export default {
21
+ name: 'QueryParams',
22
+ components: {
23
+ XFormTable,
24
+ QueryParamsDetailsView
25
+ },
26
+ data () {
27
+ return {
28
+ // 选中的编号
29
+ selectId: undefined,
30
+ // 查询配置文件名
31
+ queryParamsName: 'queryParams',
32
+ // 是否显示详情抽屉
33
+ detailVisible: false
34
+ }
35
+ },
36
+ methods: {
37
+ toDetail (record, id) {
38
+ this.selectId = id + ''
39
+ this.detailVisible = true
40
+ }
41
+ }
42
+ }
43
+ </script>
@@ -44,6 +44,23 @@
44
44
  </a-steps>
45
45
  </div>
46
46
  </result>
47
+ <div class="ticket-detail">
48
+ <a-row class="item">
49
+ <a-col :span="3"><span class="title">问题描述</span></a-col>
50
+ <a-col :span="17"><span>{{ details.description }}</span></a-col>
51
+ </a-row>
52
+ <a-row class="item">
53
+ <a-col :span="3"><span class="title">问题截图</span></a-col>
54
+ <a-col :span="21"><image-item :images="details.images" :width="120" @preview="handleFilePreview" /></a-col>
55
+ </a-row>
56
+ <a-row v-if="details.files.length" class="item">
57
+ <a-col :span="3"><span class="title">附件</span></a-col>
58
+ <a-col :span="21"><file-item :files="details.files" :downloadable="false" @preview="handleFilePreview" /></a-col>
59
+ </a-row>
60
+ </div>
61
+ <a-modal v-model="filePreviewVisible" :footer="null" :dialog-style="{ top: '30px' }" width="80%" :z-index="1001">
62
+ <file-preview :path="filePath" />
63
+ </a-modal>
47
64
  </a-card>
48
65
  </template>
49
66
 
@@ -53,13 +70,15 @@ import DetailList from '@vue2-client/components/tool/DetailList'
53
70
  import AStepItem from '@vue2-client/components/tool/AStepItem'
54
71
  import { TicketDetailsViewApi, post } from '@vue2-client/services/api'
55
72
  import { formatDate } from '@vue2-client/utils/util'
73
+ import { FileItem, ImageItem } from '@vue2-client/components/FileImageItem'
74
+ import FilePreview from '@vue2-client/components/FilePreview'
56
75
 
57
76
  const AStepItemGroup = AStepItem.Group
58
77
  const DetailListItem = DetailList.Item
59
78
 
60
79
  export default {
61
80
  name: 'submitTicketSuccess',
62
- components: { AStepItemGroup, AStepItem, DetailListItem, DetailList, Result },
81
+ components: { AStepItemGroup, AStepItem, DetailListItem, DetailList, Result, FileItem, ImageItem, FilePreview },
63
82
  props: {
64
83
  // 工单序列号
65
84
  serialNumber: {
@@ -80,7 +99,10 @@ export default {
80
99
  phone: '',
81
100
  createdTime: '',
82
101
  confirmTime: '',
83
- finishedTime: ''
102
+ finishedTime: '',
103
+ description: '',
104
+ files: [],
105
+ images: []
84
106
  },
85
107
  // 控制加急按钮
86
108
  urgentAccess: true,
@@ -91,7 +113,10 @@ export default {
91
113
  // 取消工单确认框可见性
92
114
  closeVisible: false,
93
115
  // 控制页面大图标
94
- icon: true
116
+ icon: true,
117
+ // 文件预览
118
+ filePreviewVisible: false,
119
+ filePath: ''
95
120
  }
96
121
  },
97
122
  mounted () {
@@ -175,10 +200,17 @@ export default {
175
200
  this.details.createdTime = this.format(res.createdtime, 'yyyy-MM-dd hh:mm:ss')
176
201
  this.details.status = res.status
177
202
  this.details.phone = res.phone
203
+ this.details.description = res.description
204
+ this.details.files = res.files
205
+ this.details.images = res.images
178
206
  }, err => {
179
207
  console.log(err)
180
208
  })
181
209
  },
210
+ handleFilePreview (path) {
211
+ this.filePath = path
212
+ this.filePreviewVisible = true
213
+ }
182
214
  },
183
215
  computed: {
184
216
  // 用于进度条,进度显示控制
@@ -205,4 +237,15 @@ export default {
205
237
  margin-bottom: 20px;
206
238
  }
207
239
  }
240
+ .ticket-detail {
241
+ width: 72%;
242
+ margin: 0 auto;
243
+ .item {
244
+ margin-bottom: 14px;
245
+ }
246
+ .title {
247
+ font-size: 14px;
248
+ font-weight: 600;
249
+ }
250
+ }
208
251
  </style>
@@ -1,27 +1,27 @@
1
- import routerMap from './router.map'
2
- import { parseRoutes } from '@vue2-client/utils/routerUtil'
3
-
4
- // 异步路由配置
5
- const routesConfig = [
6
- 'login',
7
- 'submitTicket',
8
- 'root',
9
- {
10
- router: 'exp404',
11
- path: '*',
12
- name: '404'
13
- },
14
- {
15
- router: 'exp403',
16
- path: '/403',
17
- name: '403'
18
- }
19
- ]
20
-
21
- const options = {
22
- mode: 'history',
23
- routes: parseRoutes(routesConfig, routerMap),
24
- config: routesConfig
25
- }
26
-
27
- export default options
1
+ import routerMap from './router.map'
2
+ import { parseRoutes } from '@vue2-client/utils/routerUtil'
3
+
4
+ // 异步路由配置
5
+ const routesConfig = [
6
+ 'login',
7
+ 'submitTicket',
8
+ 'root',
9
+ {
10
+ router: 'exp404',
11
+ path: '*',
12
+ name: '404'
13
+ },
14
+ {
15
+ router: 'exp403',
16
+ path: '/403',
17
+ name: '403'
18
+ }
19
+ ]
20
+
21
+ const options = {
22
+ mode: 'history',
23
+ routes: parseRoutes(routesConfig, routerMap),
24
+ config: routesConfig
25
+ }
26
+
27
+ export default options
@@ -1,65 +1,65 @@
1
- // 视图组件
2
- const view = {
3
- tabs: () => import('@vue2-client/layouts/tabs'),
4
- blank: () => import('@vue2-client/layouts/BlankView'),
5
- page: () => import('@vue2-client/layouts/PageView')
6
- }
7
- // 动态路由对象定义
8
- const routerResource = {}
9
- // --------------------------------------基本视图组件--------------------------------------
10
- // 空白视图
11
- routerResource.blank = view.blank
12
- // 单页面视图
13
- routerResource.singlePage = view.blank
14
-
15
- // --------------------------------------仪表盘--------------------------------------
16
- routerResource.dashboard = view.blank
17
- // 工作台
18
- routerResource.workplace = () => import('@vue2-client/pages/dashboard/workplace')
19
- // --------------------------------------系统配置--------------------------------------
20
- routerResource.system = view.blank
21
- // 字典管理
22
- routerResource.dictionaryManage = () => import(/* webpackChunkName: "dictionary" */ '@vue2-client/pages/system/dictionary')
23
- // 查询配置管理
24
- routerResource.queryParamsManage = () => import(/* webpackChunkName: "queryParams" */ '@vue2-client/pages/system/queryParams')
25
- // 文件管理
26
- routerResource.fileManager = () => import('@vue2-client/pages/system/file')
27
- // 登录日志
28
- routerResource.loginInfor = () => import('@vue2-client/pages/system/monitor/loginInfor')
29
- // 操作日志
30
- routerResource.operLog = () => import('@vue2-client/pages/system/monitor/operLog')
31
- // 系统问题反馈工单
32
- routerResource.submitTicket = () => import(/* webpackChunkName: "submitTicket" */ '@vue2-client/pages/system/ticket')
33
-
34
- // 基础路由组件注册
35
- const routerMap = {
36
- login: {
37
- authority: '*',
38
- path: '/login',
39
- component: () => import('@vue2-client/pages/login')
40
- },
41
- root: {
42
- path: '/',
43
- name: '首页',
44
- redirect: '/login',
45
- component: view.tabs
46
- },
47
- exp403: {
48
- authority: '*',
49
- name: 'exp403',
50
- path: '403',
51
- component: () => import('@vue2-client/pages/exception/403')
52
- },
53
- exp404: {
54
- name: 'exp404',
55
- path: '404',
56
- component: () => import('@vue2-client/pages/exception/404')
57
- },
58
- exp500: {
59
- name: 'exp500',
60
- path: '500',
61
- component: () => import('@vue2-client/pages/exception/500')
62
- }
63
- }
64
- Object.assign(routerMap, routerResource)
65
- export default routerMap
1
+ // 视图组件
2
+ const view = {
3
+ tabs: () => import('@vue2-client/layouts/tabs'),
4
+ blank: () => import('@vue2-client/layouts/BlankView'),
5
+ page: () => import('@vue2-client/layouts/PageView')
6
+ }
7
+ // 动态路由对象定义
8
+ const routerResource = {}
9
+ // --------------------------------------基本视图组件--------------------------------------
10
+ // 空白视图
11
+ routerResource.blank = view.blank
12
+ // 单页面视图
13
+ routerResource.singlePage = view.blank
14
+
15
+ // --------------------------------------仪表盘--------------------------------------
16
+ routerResource.dashboard = view.blank
17
+ // 工作台
18
+ routerResource.workplace = () => import('@vue2-client/pages/dashboard/workplace')
19
+ // --------------------------------------系统配置--------------------------------------
20
+ routerResource.system = view.blank
21
+ // 字典管理
22
+ routerResource.dictionaryManage = () => import(/* webpackChunkName: "dictionary" */ '@vue2-client/pages/system/dictionary')
23
+ // 查询配置管理
24
+ routerResource.queryParamsManage = () => import(/* webpackChunkName: "queryParams" */ '@vue2-client/pages/system/queryParams')
25
+ // 文件管理
26
+ routerResource.fileManager = () => import('@vue2-client/pages/system/file')
27
+ // 登录日志
28
+ routerResource.loginInfor = () => import('@vue2-client/pages/system/monitor/loginInfor')
29
+ // 操作日志
30
+ routerResource.operLog = () => import('@vue2-client/pages/system/monitor/operLog')
31
+ // 系统问题反馈工单
32
+ routerResource.submitTicket = () => import(/* webpackChunkName: "submitTicket" */ '@vue2-client/pages/system/ticket')
33
+
34
+ // 基础路由组件注册
35
+ const routerMap = {
36
+ login: {
37
+ authority: '*',
38
+ path: '/login',
39
+ component: () => import('@vue2-client/pages/login')
40
+ },
41
+ root: {
42
+ path: '/',
43
+ name: '首页',
44
+ redirect: '/login',
45
+ component: view.tabs
46
+ },
47
+ exp403: {
48
+ authority: '*',
49
+ name: 'exp403',
50
+ path: '403',
51
+ component: () => import('@vue2-client/pages/exception/403')
52
+ },
53
+ exp404: {
54
+ name: 'exp404',
55
+ path: '404',
56
+ component: () => import('@vue2-client/pages/exception/404')
57
+ },
58
+ exp500: {
59
+ name: 'exp500',
60
+ path: '500',
61
+ component: () => import('@vue2-client/pages/exception/500')
62
+ }
63
+ }
64
+ Object.assign(routerMap, routerResource)
65
+ export default routerMap
@@ -1,27 +1,27 @@
1
- import { formatRoutes } from '@vue2-client/utils/routerUtil'
2
-
3
- // 不需要登录拦截的路由配置
4
- const loginIgnore = {
5
- names: ['404', '403'], // 根据路由名称匹配
6
- paths: ['/login', '/submitTicket'], // 根据路由fullPath匹配
7
- /**
8
- * 判断路由是否包含在该配置中
9
- * @param route vue-router 的 route 对象
10
- * @returns {boolean}
11
- */
12
- includes (route) {
13
- return this.names.includes(route.name) || this.paths.includes(route.path)
14
- }
15
- }
16
-
17
- /**
18
- * 初始化路由实例
19
- * @param isAsync 是否异步路由模式
20
- * @returns {RouterOptions}
21
- */
22
- function initRouter (isAsync) {
23
- const options = require('./async/config.async').default
24
- formatRoutes(options.routes)
25
- return options
26
- }
27
- export { loginIgnore, initRouter }
1
+ import { formatRoutes } from '@vue2-client/utils/routerUtil'
2
+
3
+ // 不需要登录拦截的路由配置
4
+ const loginIgnore = {
5
+ names: ['404', '403'], // 根据路由名称匹配
6
+ paths: ['/login', '/submitTicket'], // 根据路由fullPath匹配
7
+ /**
8
+ * 判断路由是否包含在该配置中
9
+ * @param route vue-router 的 route 对象
10
+ * @returns {boolean}
11
+ */
12
+ includes (route) {
13
+ return this.names.includes(route.name) || this.paths.includes(route.path)
14
+ }
15
+ }
16
+
17
+ /**
18
+ * 初始化路由实例
19
+ * @param isAsync 是否异步路由模式
20
+ * @returns {RouterOptions}
21
+ */
22
+ function initRouter (isAsync) {
23
+ const options = require('./async/config.async').default
24
+ formatRoutes(options.routes)
25
+ return options
26
+ }
27
+ export { loginIgnore, initRouter }
@@ -1,6 +1,6 @@
1
- const DictionaryDetailsViewApi = {
2
- // 查询:获取字典详情
3
- getDictionaryDetails: '/api/af-system/logic/getDictionaryDetails'
4
- }
5
-
6
- export { DictionaryDetailsViewApi }
1
+ const DictionaryDetailsViewApi = {
2
+ // 查询:获取字典详情
3
+ getDictionaryDetails: '/api/af-system/logic/getDictionaryDetails'
4
+ }
5
+
6
+ export { DictionaryDetailsViewApi }
@@ -1,10 +1,10 @@
1
- const LogDetailsViewApi = {
2
- // 查询:获取日志详情
3
- getLogDetails: '/api/af-system/logic/foreignaidGetLogDetails',
4
- // 查询:获取日志维护记录
5
- getLogRecordList: '/api/af-system/logic/foreignaidGetRecordList',
6
- // 操作:更新日志状态
7
- updateLogStatusData: '/api/af-system/logic/foreignaidUpdateLogStatus'
8
- }
9
-
10
- export { LogDetailsViewApi }
1
+ const LogDetailsViewApi = {
2
+ // 查询:获取日志详情
3
+ getLogDetails: '/api/af-system/logic/foreignaidGetLogDetails',
4
+ // 查询:获取日志维护记录
5
+ getLogRecordList: '/api/af-system/logic/foreignaidGetRecordList',
6
+ // 操作:更新日志状态
7
+ updateLogStatusData: '/api/af-system/logic/foreignaidUpdateLogStatus'
8
+ }
9
+
10
+ export { LogDetailsViewApi }
@@ -1,6 +1,6 @@
1
- const QueryParamsDetailsViewApi = {
2
- // 查询:获取查询配置详情
3
- getQueryParamsDetails: '/api/af-system/logic/getQueryParamsDetails'
4
- }
5
-
6
- export { QueryParamsDetailsViewApi }
1
+ const QueryParamsDetailsViewApi = {
2
+ // 查询:获取查询配置详情
3
+ getQueryParamsDetails: '/api/af-system/logic/getQueryParamsDetails'
4
+ }
5
+
6
+ export { QueryParamsDetailsViewApi }