vue2-client 1.4.25 → 1.4.26
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/CHANGELOG.md +401 -401
- package/index.js +30 -30
- package/package.json +78 -78
- package/src/base-client/components/common/AddressSearchCombobox/AddressSearchCombobox.vue +225 -225
- package/src/base-client/components/common/CreateQuery/CreateQuery.vue +595 -595
- package/src/base-client/components/common/CreateQuery/CreateQueryItem.vue +777 -777
- package/src/base-client/components/common/FormGroupQuery/FormGroupQuery.vue +165 -165
- package/src/base-client/components/common/JSONToTree/jsontotree.vue +275 -275
- package/src/base-client/components/common/XAddForm/XAddForm.vue +354 -354
- package/src/base-client/components/common/XAddNativeForm/XAddNativeForm.vue +327 -327
- package/src/base-client/components/common/XCard/XCard.vue +64 -64
- package/src/base-client/components/common/XForm/XForm.vue +274 -274
- package/src/base-client/components/common/XFormTable/index.md +96 -96
- package/src/base-client/components/system/QueryParamsDetailsView/QueryParamsDetailsView.vue +281 -281
- package/src/base-client/components/ticket/TicketDetailsView/TicketDetailsView.vue +807 -807
- package/src/base-client/components/ticket/TicketDetailsView/index.md +29 -29
- package/src/base-client/components/ticket/TicketDetailsView/part/TicketDetailsFlow.vue +260 -260
- package/src/base-client/components/ticket/TicketSubmitSuccessView/TicketSubmitSuccessView.vue +532 -532
- package/src/base-client/components/ticket/TicketSubmitSuccessView/index.md +29 -29
- package/src/base-client/plugins/AppData.js +73 -73
- package/src/base-client/plugins/GetLoginInfoService.js +179 -179
- package/src/base-client/plugins/PagedList.js +177 -177
- package/src/base-client/plugins/compatible/LoginServiceOA.js +20 -20
- package/src/base-client/plugins/i18n-extend.js +32 -32
- package/src/components/Ellipsis/index.md +38 -38
- package/src/components/NumberInfo/index.md +43 -43
- package/src/components/STable/README.md +341 -341
- package/src/components/STable/index.js +318 -318
- package/src/components/Trend/index.md +45 -45
- package/src/components/checkbox/ColorCheckbox.vue +157 -157
- package/src/components/checkbox/ImgCheckbox.vue +163 -163
- package/src/components/form/FormRow.vue +52 -52
- package/src/components/index.js +36 -36
- package/src/components/menu/SideMenu.vue +62 -62
- package/src/components/menu/menu.js +273 -273
- package/src/components/setting/Setting.vue +235 -235
- package/src/components/table/StandardTable.vue +141 -141
- package/src/components/table/advance/ActionColumns.vue +158 -158
- package/src/components/table/advance/SearchArea.vue +355 -355
- package/src/components/tool/AStepItem.vue +60 -60
- package/src/components/tool/AvatarList.vue +68 -68
- package/src/components/tool/Drawer.vue +142 -142
- package/src/components/tool/TagSelect.vue +83 -83
- package/src/components/transition/PageToggleTransition.vue +97 -97
- package/src/config/replacer/resolve.config.js +67 -67
- package/src/layouts/AdminLayout.vue +174 -174
- package/src/layouts/SinglePageView.vue +93 -93
- package/src/layouts/header/AdminHeader.vue +104 -104
- package/src/layouts/header/HeaderNotice.vue +167 -167
- package/src/layouts/header/HeaderSearch.vue +67 -67
- package/src/layouts/header/InstitutionDetail.vue +181 -181
- package/src/layouts/tabs/TabsHead.vue +190 -190
- package/src/layouts/tabs/TabsView.vue +379 -379
- package/src/mock/goods/index.js +108 -108
- package/src/pages/CreateQueryPage.vue +65 -65
- package/src/pages/login/Login.vue +351 -351
- package/src/pages/report/ReportTable.js +124 -124
- package/src/pages/report/ReportTableHome.vue +28 -28
- package/src/pages/resourceManage/orgListManage.vue +98 -98
- package/src/pages/system/dictionary/index.vue +43 -43
- package/src/pages/system/file/index.vue +317 -317
- package/src/pages/system/monitor/loginInfor/index.vue +36 -36
- package/src/pages/system/monitor/operLog/index.vue +36 -36
- package/src/pages/system/queryParams/index.vue +43 -43
- package/src/router/async/config.async.js +27 -27
- package/src/router/async/router.map.js +65 -65
- package/src/router/index.js +27 -27
- package/src/services/api/DictionaryDetailsViewApi.js +6 -6
- package/src/services/api/LogDetailsViewApi.js +10 -10
- package/src/services/api/QueryParamsDetailsViewApi.js +6 -6
- package/src/services/api/TicketDetailsViewApi.js +34 -34
- package/src/services/api/cas.js +70 -64
- package/src/services/api/commonTempTable.js +10 -10
- package/src/services/api/index.js +17 -17
- package/src/services/api/manage.js +8 -8
- package/src/services/apiService.js +14 -14
- package/src/services/user.js +53 -53
- package/src/store/modules/index.js +4 -4
- package/src/theme/default/nprogress.less +76 -76
- package/src/theme/default/style.less +47 -47
- package/src/utils/colors.js +103 -103
- package/src/utils/excel/Blob.js +180 -180
- package/src/utils/excel/Export2Excel.js +141 -141
- package/src/utils/formatter.js +68 -68
- package/src/utils/i18n.js +80 -80
- package/src/utils/routerUtil.js +364 -364
- package/src/utils/theme-color-replacer-extend.js +91 -91
- package/src/utils/themeUtil.js +100 -100
- 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>
|
|
@@ -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
|
package/src/router/index.js
CHANGED
|
@@ -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 }
|
|
@@ -1,34 +1,34 @@
|
|
|
1
|
-
const TicketDetailsViewApi = {
|
|
2
|
-
// 查询:获取工单流转详情
|
|
3
|
-
getTicketWorkFlowDetails: '/api/af-system/logic/getTicketWorkFlowDetails',
|
|
4
|
-
// 查询:获取工单详情
|
|
5
|
-
getTicketDetails: '/api/af-system/logic/getTicketDetails',
|
|
6
|
-
// 手动关闭工单
|
|
7
|
-
manualCloseTicket: '/api/af-system/logic/manualCloseTicket',
|
|
8
|
-
// 转交工单给其他人
|
|
9
|
-
transferTicketToOthers: '/api/af-system/logic/transferTicketToOthers',
|
|
10
|
-
// 确认工单,开始处理
|
|
11
|
-
confirmTicket: '/api/af-system/logic/confirmTicket',
|
|
12
|
-
// 查询:获取订单详情用于订单追踪
|
|
13
|
-
getTicketDetailsForUploader: '/api/af-system/logic/getTicketDetailsForUploader',
|
|
14
|
-
// 更新:将工单优先级增加
|
|
15
|
-
rushTicket: '/api/af-system/logic/rushTicket',
|
|
16
|
-
// 客户手动关闭工单
|
|
17
|
-
manualCloseTicketByCustomer: '/api/af-system/logic/manualCloseTicketByCustomer',
|
|
18
|
-
// 在工单提交页面删除照片
|
|
19
|
-
revocationImage: '/api/af-system/logic/revocationImage',
|
|
20
|
-
// 在工单提交页面删除照片
|
|
21
|
-
getTicketImages: '/api/af-system/logic/getTicketImages',
|
|
22
|
-
// 用户填写附加信息时取消了操作,将已上传的照片清空
|
|
23
|
-
removeAllImages: '/api/af-system/logic/removeAllImages',
|
|
24
|
-
// 提交用户填写附加信息
|
|
25
|
-
AddonDescriptionToTicket: '/api/af-system/logic/AddonDescriptionToTicket',
|
|
26
|
-
// 获取用户填写附加信息
|
|
27
|
-
getAddonDescription: '/api/af-system/logic/getAddonDescription',
|
|
28
|
-
// 发起售后工单流程
|
|
29
|
-
createTicket: '/api/af-system/logic/createTicket',
|
|
30
|
-
// 查询:获取所有员工名,供前端展示备选项
|
|
31
|
-
getAllEmployeeName: '/api/af-system/logic/getAllEmployeeName'
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
export { TicketDetailsViewApi }
|
|
1
|
+
const TicketDetailsViewApi = {
|
|
2
|
+
// 查询:获取工单流转详情
|
|
3
|
+
getTicketWorkFlowDetails: '/api/af-system/logic/getTicketWorkFlowDetails',
|
|
4
|
+
// 查询:获取工单详情
|
|
5
|
+
getTicketDetails: '/api/af-system/logic/getTicketDetails',
|
|
6
|
+
// 手动关闭工单
|
|
7
|
+
manualCloseTicket: '/api/af-system/logic/manualCloseTicket',
|
|
8
|
+
// 转交工单给其他人
|
|
9
|
+
transferTicketToOthers: '/api/af-system/logic/transferTicketToOthers',
|
|
10
|
+
// 确认工单,开始处理
|
|
11
|
+
confirmTicket: '/api/af-system/logic/confirmTicket',
|
|
12
|
+
// 查询:获取订单详情用于订单追踪
|
|
13
|
+
getTicketDetailsForUploader: '/api/af-system/logic/getTicketDetailsForUploader',
|
|
14
|
+
// 更新:将工单优先级增加
|
|
15
|
+
rushTicket: '/api/af-system/logic/rushTicket',
|
|
16
|
+
// 客户手动关闭工单
|
|
17
|
+
manualCloseTicketByCustomer: '/api/af-system/logic/manualCloseTicketByCustomer',
|
|
18
|
+
// 在工单提交页面删除照片
|
|
19
|
+
revocationImage: '/api/af-system/logic/revocationImage',
|
|
20
|
+
// 在工单提交页面删除照片
|
|
21
|
+
getTicketImages: '/api/af-system/logic/getTicketImages',
|
|
22
|
+
// 用户填写附加信息时取消了操作,将已上传的照片清空
|
|
23
|
+
removeAllImages: '/api/af-system/logic/removeAllImages',
|
|
24
|
+
// 提交用户填写附加信息
|
|
25
|
+
AddonDescriptionToTicket: '/api/af-system/logic/AddonDescriptionToTicket',
|
|
26
|
+
// 获取用户填写附加信息
|
|
27
|
+
getAddonDescription: '/api/af-system/logic/getAddonDescription',
|
|
28
|
+
// 发起售后工单流程
|
|
29
|
+
createTicket: '/api/af-system/logic/createTicket',
|
|
30
|
+
// 查询:获取所有员工名,供前端展示备选项
|
|
31
|
+
getAllEmployeeName: '/api/af-system/logic/getAllEmployeeName'
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export { TicketDetailsViewApi }
|