vue2-client 1.4.20 → 1.4.22
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 +392 -388
- 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/CreateSimpleFormQuery/CreateSimpleFormQueryItem.vue +553 -553
- 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/XForm/XFormItem.vue +430 -365
- 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/CreateQueryConfig.js +4 -4
- package/src/config/replacer/resolve.config.js +67 -67
- package/src/layouts/AdminLayout.vue +174 -174
- package/src/layouts/SinglePageView.vue +88 -88
- 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 -342
- 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/pages/system/ticket/index.vue +26 -50
- 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/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>
|
|
@@ -138,7 +138,7 @@
|
|
|
138
138
|
</a-modal>
|
|
139
139
|
<a-card>
|
|
140
140
|
<div style="text-align: right">
|
|
141
|
-
<p>欢迎您!{{ currUser.
|
|
141
|
+
<p>欢迎您!{{ currUser.orgName }}</p>
|
|
142
142
|
</div>
|
|
143
143
|
<div class="submitTicketTitle">
|
|
144
144
|
<span>售后问题反馈平台</span>
|
|
@@ -150,19 +150,19 @@
|
|
|
150
150
|
<a-col :span="18">
|
|
151
151
|
<a-form :label-col="{ span: 5 }" :wrapper-col="{ span: 12 }">
|
|
152
152
|
<!-- 客户名称输入 -->
|
|
153
|
-
<a-form-item v-if="!currUser.
|
|
154
|
-
<a-input v-model="
|
|
155
|
-
<strong v-show="showCustomerNameAlert" style="color: red"
|
|
153
|
+
<a-form-item v-if="!currUser.orgName" label="公司名称">
|
|
154
|
+
<a-input v-model="form.name" placeholder="请输入公司名称(总公司名+分公司名)"/>
|
|
155
|
+
<strong v-show="showCustomerNameAlert" style="color: red">公司名称不能为空!</strong>
|
|
156
156
|
</a-form-item>
|
|
157
157
|
<!-- 联系人 -->
|
|
158
|
-
<a-form-item label="联系人">
|
|
159
|
-
<a-input v-model="form.contact"></a-input>
|
|
158
|
+
<a-form-item v-if="!currUser.contact" label="联系人">
|
|
159
|
+
<a-input v-model="form.contact" placeholder="请输入联系人姓名"></a-input>
|
|
160
160
|
<strong v-show="showContactAlert" style="color: red">请填写联系人!</strong>
|
|
161
161
|
</a-form-item>
|
|
162
162
|
<!-- 联系方式 -->
|
|
163
|
-
<a-form-item label="联系方式">
|
|
164
|
-
<a-input v-model="form.phone"></a-input>
|
|
165
|
-
<strong v-show="showPhoneAlert" style="color: red"
|
|
163
|
+
<a-form-item v-if="!currUser.phone" label="联系方式">
|
|
164
|
+
<a-input v-model="form.phone" placeholder="请输入联系方式"></a-input>
|
|
165
|
+
<strong v-show="showPhoneAlert" style="color: red">请填写联系方式!</strong>
|
|
166
166
|
</a-form-item>
|
|
167
167
|
<!-- 问题描述框 -->
|
|
168
168
|
<a-form-item label="问题详情描述">
|
|
@@ -191,7 +191,7 @@
|
|
|
191
191
|
</a-form-item>
|
|
192
192
|
<!-- 表单底部按钮 -->
|
|
193
193
|
<a-form-item :wrapper-col="{ span: 12, offset: 5 }">
|
|
194
|
-
<a-button :disabled="showPhoneAlert ||
|
|
194
|
+
<a-button :disabled="showPhoneAlert || showCustomerNameAlert || showContactAlert || showDescAlert || !imageList.length" style="margin-right: 20px" type="primary" @click="onSubmit">
|
|
195
195
|
提交
|
|
196
196
|
</a-button>
|
|
197
197
|
</a-form-item>
|
|
@@ -299,13 +299,13 @@ export default {
|
|
|
299
299
|
fixedQueryForm: {},
|
|
300
300
|
// 用户信息
|
|
301
301
|
currUser: {
|
|
302
|
-
|
|
302
|
+
orgName: '',
|
|
303
|
+
contact: '',
|
|
304
|
+
phone: ''
|
|
303
305
|
},
|
|
304
306
|
tabActiveKey: 'workSubmit',
|
|
305
307
|
imageUploadModel,
|
|
306
308
|
fileUploadModel,
|
|
307
|
-
// 客户名称
|
|
308
|
-
customerName: undefined,
|
|
309
309
|
// 未传入客户名称手动输入联系方式
|
|
310
310
|
infoFormVisible: false,
|
|
311
311
|
infoForm: {
|
|
@@ -314,27 +314,15 @@ export default {
|
|
|
314
314
|
uploadVisible: true
|
|
315
315
|
}
|
|
316
316
|
},
|
|
317
|
-
computed: {
|
|
318
|
-
// 检查客户名称是否为空
|
|
319
|
-
validCustomerName () {
|
|
320
|
-
if (this.currUser.ename || this.customerName) {
|
|
321
|
-
return true
|
|
322
|
-
}
|
|
323
|
-
return false
|
|
324
|
-
}
|
|
325
|
-
},
|
|
326
317
|
created () {
|
|
327
318
|
document.title = '售后问题反馈平台'
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
}
|
|
336
|
-
this.currUser.ename = customerName
|
|
337
|
-
this.fixedQueryForm['t_uploader'] = this.currUser.ename
|
|
319
|
+
this.currUser.orgName = this.$route.query.orgName
|
|
320
|
+
this.currUser.contact = this.$route.query.contact
|
|
321
|
+
this.currUser.phone = this.$route.query.phone
|
|
322
|
+
this.form.name = this.$route.query.orgName
|
|
323
|
+
this.form.contact = this.$route.query.contact
|
|
324
|
+
this.form.phone = this.$route.query.phone
|
|
325
|
+
this.fixedQueryForm['t_uploader'] = this.currUser.orgName
|
|
338
326
|
},
|
|
339
327
|
methods: {
|
|
340
328
|
toDetail (record, id) {
|
|
@@ -368,22 +356,14 @@ export default {
|
|
|
368
356
|
},
|
|
369
357
|
// 提交按钮逻辑
|
|
370
358
|
onSubmit () {
|
|
371
|
-
let customerName = this.currUser.ename
|
|
372
|
-
if (!customerName) {
|
|
373
|
-
customerName = this.customerName
|
|
374
|
-
}
|
|
375
359
|
const form = {
|
|
376
|
-
customerName,
|
|
360
|
+
customerName: this.form.name,
|
|
377
361
|
contact: this.form.contact,
|
|
378
362
|
phone: this.form.phone,
|
|
379
363
|
problemDetail: this.form.desc,
|
|
380
364
|
Images: this.imageList,
|
|
381
365
|
FilesId: this.fileList
|
|
382
366
|
}
|
|
383
|
-
if (form.customerName.length > 100) {
|
|
384
|
-
this.$message.error('客户名称长度超出限制')
|
|
385
|
-
return
|
|
386
|
-
}
|
|
387
367
|
if (form.problemDetail.length > 300) {
|
|
388
368
|
this.$message.error('问题详情长度超出限制')
|
|
389
369
|
return
|
|
@@ -396,14 +376,11 @@ export default {
|
|
|
396
376
|
this.serialNumber = res
|
|
397
377
|
this.successVisible = true
|
|
398
378
|
this.$message.success('创建成功')
|
|
399
|
-
this.customerName = ''
|
|
400
|
-
this.form.contact = ''
|
|
401
|
-
this.form.phone = ''
|
|
402
379
|
this.form.desc = ''
|
|
403
380
|
this.imageList = []
|
|
404
381
|
this.fileList = []
|
|
405
382
|
this.uploadVisible = false
|
|
406
|
-
if (!this.currUser.
|
|
383
|
+
if (!this.currUser.orgName) {
|
|
407
384
|
this.fixedQueryForm.t_uploader_phone = form.phone
|
|
408
385
|
this.infoForm.phone = form.phone
|
|
409
386
|
}
|
|
@@ -443,17 +420,16 @@ export default {
|
|
|
443
420
|
watch: {
|
|
444
421
|
// 监控类别的改变,当类别改变,校验通过
|
|
445
422
|
'form.contact' (newVal) {
|
|
446
|
-
this.showContactAlert = newVal.trim().length === 0
|
|
423
|
+
this.showContactAlert = !newVal || newVal.trim().length === 0
|
|
447
424
|
},
|
|
448
425
|
'form.phone' (newVal) {
|
|
449
|
-
|
|
450
|
-
this.showPhoneAlert = !numReg.test(newVal)
|
|
426
|
+
this.showPhoneAlert = !newVal || newVal.trim().length === 0
|
|
451
427
|
},
|
|
452
428
|
'form.desc' (newVal) {
|
|
453
429
|
this.showDescAlert = newVal.trim().length === 0
|
|
454
430
|
},
|
|
455
|
-
'
|
|
456
|
-
this.showCustomerNameAlert = !newVal
|
|
431
|
+
'form.name' (newVal) {
|
|
432
|
+
this.showCustomerNameAlert = !newVal || newVal.trim().length === 0
|
|
457
433
|
}
|
|
458
434
|
}
|
|
459
435
|
}
|
|
@@ -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 }
|