vue2-client 1.1.0 → 1.2.2
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/.eslintrc.js +81 -81
- package/README.md +65 -63
- package/babel.config.js +15 -14
- package/docs/index.md +29 -29
- package/docs/notice.md +22 -0
- package/index.js +28 -0
- package/jest.config.js +3 -3
- package/package.json +1 -1
- package/public/index.html +27 -27
- package/src/App.vue +2 -2
- package/src/assets/img/SunClientDownload.png +0 -0
- package/src/assets/img/SunClientManual/1.png +0 -0
- package/src/assets/img/SunClientManual/2.png +0 -0
- package/src/assets/img/SunClientManual/3.png +0 -0
- package/src/assets/img/SunClientManual/4.png +0 -0
- package/src/assets/img/ToDeskDownload.png +0 -0
- package/src/assets/img/ToDeskManual/1.png +0 -0
- package/src/assets/img/ToDeskManual/2.png +0 -0
- package/src/assets/img/ToDeskManual/3.png +0 -0
- package/src/assets/img/ToDeskManual/4.png +0 -0
- package/src/assets/sound/newNote.mp3 +0 -0
- package/src/base-client/all.js +57 -57
- package/src/base-client/components/common/CreateQuery/CreateQuery.vue +1157 -1159
- package/src/base-client/components/common/CreateQuery/index.md +1 -1
- package/src/base-client/components/common/CreateSimpleFormQuery/CreateSimpleFormQuery.vue +540 -540
- package/src/base-client/components/common/CreateSimpleFormQuery/index.md +1 -1
- package/src/base-client/components/common/CustomColumnsDrawer/index.md +1 -1
- package/src/base-client/components/common/FormGroupEdit/FormGroupEdit.vue +150 -150
- package/src/base-client/components/common/FormGroupEdit/index.md +1 -1
- package/src/base-client/components/common/FormGroupQuery/index.md +1 -1
- package/src/base-client/components/common/XAddForm/XAddForm.vue +323 -323
- package/src/base-client/components/common/XAddForm/index.md +1 -1
- package/src/base-client/components/common/XBadge/index.md +1 -1
- package/src/base-client/components/common/XCard/index.md +1 -1
- package/src/base-client/components/common/XForm/XForm.vue +275 -275
- package/src/base-client/components/common/XForm/XFormItem.vue +217 -217
- package/src/base-client/components/common/XForm/index.md +196 -196
- package/src/base-client/components/common/XFormCol/index.md +1 -1
- package/src/base-client/components/common/XFormTable/XFormTable.vue +407 -405
- package/src/base-client/components/common/XFormTable/index.md +3 -3
- package/src/base-client/components/common/XTable/XTable.vue +262 -262
- package/src/base-client/components/common/XTable/index.md +255 -255
- package/src/base-client/components/common/XTreeOne/XTreeOne.vue +1 -1
- package/src/base-client/components/iot/CustomerDetailsView/CustomerDetailsView.vue +226 -226
- package/src/base-client/components/iot/CustomerDetailsView/index.md +2 -2
- package/src/base-client/components/iot/DataAnalysisUser/DataAnalysisUser.vue +1 -1
- package/src/base-client/components/iot/DataAnalysisViewGD/DataAnalysisViewGD.vue +548 -548
- package/src/base-client/components/iot/DeviceBrandDetailsView/DeviceBrandDetailsView.vue +453 -453
- package/src/base-client/components/iot/DeviceDetailsView/DeviceDetailsView.vue +231 -231
- package/src/base-client/components/iot/DeviceDetailsView/index.md +1 -1
- package/src/base-client/components/iot/DeviceDetailsView/part/DeviceDetailsCount.vue +330 -330
- package/src/base-client/components/iot/DeviceDetailsView/part/DeviceDetailsException.vue +1 -1
- package/src/base-client/components/iot/DeviceDetailsView/part/DeviceDetailsInstruct.vue +3 -3
- package/src/base-client/components/iot/DeviceDetailsView/part/DeviceDetailsInstructOperate.vue +122 -122
- package/src/base-client/components/iot/DeviceDetailsView/part/DeviceDetailsMain.vue +1 -1
- package/src/base-client/components/iot/DeviceDetailsView/part/DeviceDetailsRead.vue +3 -3
- package/src/base-client/components/iot/DeviceTypeDetailsView/DeviceTypeDetailsView.vue +277 -277
- package/src/base-client/components/iot/InstructDetailsView/InstructDetailsView.vue +472 -472
- package/src/base-client/components/iot/InstructDetailsView/index.md +1 -1
- package/src/base-client/components/iot/LogDetailsView/LogDetailsView.vue +380 -380
- package/src/base-client/components/iot/LogDetailsView/index.md +1 -1
- package/src/base-client/components/iot/MeterDetailsView/MeterDetailsView.vue +360 -360
- package/src/base-client/components/iot/MeterDetailsView/index.md +1 -1
- package/src/base-client/components/iot/MeterDetailsView/part/MeterDetailsCount.vue +335 -335
- package/src/base-client/components/iot/MeterDetailsView/part/MeterDetailsException.vue +185 -185
- package/src/base-client/components/iot/MeterDetailsView/part/MeterDetailsHandPlan.vue +292 -292
- package/src/base-client/components/iot/MeterDetailsView/part/MeterDetailsInstruct.vue +237 -237
- package/src/base-client/components/iot/MeterDetailsView/part/MeterDetailsMain.vue +257 -257
- package/src/base-client/components/iot/MeterDetailsView/part/MeterDetailsSellGas.vue +190 -190
- package/src/base-client/components/iot/WebmeterAnalysisView/WebmeterAnalysisView.vue +723 -723
- package/src/base-client/components/iot/WebmeterAnalysisView/index.md +1 -1
- package/src/base-client/components/system/DictionaryDetailsView/DictionaryDetailsView.vue +232 -232
- package/src/base-client/components/system/DictionaryDetailsView/index.md +1 -1
- package/src/base-client/components/system/QueryParamsDetailsView/QueryParamsDetailsView.vue +248 -248
- package/src/base-client/components/ticket/EmployeeDetailsView/EmployeeDetailsView.vue +371 -406
- package/src/base-client/components/ticket/TicketDetailsView/TicketDetailsView.vue +838 -486
- package/src/base-client/components/ticket/TicketDetailsView/part/TicketDetailsFlow.vue +261 -184
- package/src/base-client/components/ticket/TicketSubmitSuccessView/TicketSubmitSuccessView.vue +528 -303
- package/src/base-client/plugins/AppData.js +69 -69
- package/src/base-client/plugins/GetLoginInfoService.js +221 -221
- package/src/base-client/plugins/index.js +21 -21
- package/src/bootstrap.js +27 -27
- package/src/components/Ellipsis/Ellipsis.vue +1 -1
- package/src/components/Ellipsis/index.md +2 -2
- package/src/components/NumberInfo/index.md +1 -1
- package/src/components/STable/README.md +3 -3
- package/src/components/Trend/index.md +1 -1
- package/src/components/cache/AKeepAlive.js +1 -1
- package/src/components/checkbox/index.js +2 -2
- package/src/components/index.js +15 -15
- package/src/components/menu/menu.js +1 -1
- package/src/components/setting/Setting.vue +4 -4
- package/src/components/table/advance/AdvanceTable.vue +3 -3
- package/src/components/transition/PageToggleTransition.vue +1 -1
- package/src/config/default/setting.config.js +33 -33
- package/src/layouts/CommonLayout.vue +1 -1
- package/src/layouts/ComponentLayoutOne.vue +47 -47
- package/src/layouts/PageLayout.vue +2 -2
- package/src/layouts/SinglePageView.vue +1 -1
- package/src/layouts/header/AdminHeader.vue +2 -2
- package/src/layouts/header/HeaderAvatar.vue +1 -1
- package/src/layouts/header/HeaderNotice.vue +97 -97
- package/src/layouts/tabs/TabsHead.vue +1 -1
- package/src/layouts/tabs/TabsView.vue +6 -6
- package/src/main.js +20 -20
- package/src/mock/common/reportData.js +20 -20
- package/src/mock/goods/index.js +2 -2
- package/src/mock/index.js +6 -6
- package/src/mock/project/index.js +1 -1
- package/src/mock/user/current.js +1 -1
- package/src/mock/user/login.js +1 -1
- package/src/mock/user/routes.js +61 -61
- package/src/mock/workplace/index.js +1 -1
- package/src/pages/exception/403.vue +25 -25
- package/src/pages/exception/404.vue +25 -25
- package/src/pages/exception/500.vue +25 -25
- package/src/pages/login/Login.vue +194 -194
- package/src/pages/report/ReportTable.js +125 -125
- package/src/pages/report/ReportTableHome.vue +28 -28
- package/src/pages/resourceManage/resourceManageMain.vue +55 -55
- package/src/pages/system/applyInstallView/Core.vue +1 -1
- package/src/pages/system/applyInstallView/index.vue +1 -1
- package/src/pages/system/dictionary/index.vue +1 -1
- package/src/pages/system/queryParams/index.vue +1 -1
- package/src/router/async/config.async.js +1 -1
- package/src/router/async/router.map.js +59 -59
- package/src/router/guards.js +3 -3
- package/src/router/index.js +27 -27
- package/src/services/api/EmployeeDetailsViewApi.js +3 -1
- package/src/services/api/TicketDetailsViewApi.js +9 -1
- package/src/services/api/common.js +37 -39
- package/src/services/api/restTools.js +23 -23
- package/src/services/dataSource.js +1 -1
- package/src/services/user.js +2 -2
- package/src/store/index.js +5 -5
- package/src/store/modules/setting.js +5 -5
- package/src/theme/index.less +5 -5
- package/src/theme/reportTable.less +58 -58
- package/src/utils/i18n.js +2 -2
- package/src/utils/indexedDB.js +146 -146
- package/src/utils/request.js +197 -197
- package/src/utils/routerUtil.js +18 -5
- package/tests/unit/ReportTable.spec.js +15 -15
- package/vue.config.js +153 -152
- package/webpack.config.js +12 -12
- package/src/index.js +0 -28
- package/src/router/config.js +0 -23
|
@@ -27,13 +27,13 @@
|
|
|
27
27
|
</template>
|
|
28
28
|
|
|
29
29
|
<script>
|
|
30
|
-
import AdminLayout from '
|
|
31
|
-
import Contextmenu from '
|
|
32
|
-
import PageToggleTransition from '
|
|
30
|
+
import AdminLayout from '@vue2-client/layouts/AdminLayout'
|
|
31
|
+
import Contextmenu from '@vue2-client/components/menu/Contextmenu'
|
|
32
|
+
import PageToggleTransition from '@vue2-client/components/transition/PageToggleTransition'
|
|
33
33
|
import { mapState, mapMutations } from 'vuex'
|
|
34
|
-
import { getI18nKey } from '
|
|
35
|
-
import AKeepAlive from '
|
|
36
|
-
import TabsHead from '
|
|
34
|
+
import { getI18nKey } from '@vue2-client/utils/routerUtil'
|
|
35
|
+
import AKeepAlive from '@vue2-client/components/cache/AKeepAlive'
|
|
36
|
+
import TabsHead from '@vue2-client/layouts/tabs/TabsHead'
|
|
37
37
|
import SinglePageView from '../SinglePageView'
|
|
38
38
|
|
|
39
39
|
export default {
|
package/src/main.js
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import Vue from 'vue'
|
|
2
|
-
import App from './App.vue'
|
|
3
|
-
import Router from 'vue-router'
|
|
4
|
-
import Vuex from 'vuex'
|
|
5
|
-
import '
|
|
6
|
-
import { routerOptions, modules, i18n, message, bootstrap } from '
|
|
7
|
-
|
|
8
|
-
Vue.use(Router)
|
|
9
|
-
Vue.use(Vuex)
|
|
10
|
-
// 创建router store
|
|
11
|
-
const store = new Vuex.Store({ modules })
|
|
12
|
-
const router = new Router(routerOptions)
|
|
13
|
-
|
|
14
|
-
bootstrap({ router, store, i18n, message })
|
|
15
|
-
new Vue({
|
|
16
|
-
router,
|
|
17
|
-
store,
|
|
18
|
-
i18n,
|
|
19
|
-
render: h => h(App)
|
|
20
|
-
}).$mount('#app')
|
|
1
|
+
import Vue from 'vue'
|
|
2
|
+
import App from './App.vue'
|
|
3
|
+
import Router from 'vue-router'
|
|
4
|
+
import Vuex from 'vuex'
|
|
5
|
+
import '@vue2-client/mock'
|
|
6
|
+
import { routerOptions, modules, i18n, message, bootstrap } from '../index'
|
|
7
|
+
|
|
8
|
+
Vue.use(Router)
|
|
9
|
+
Vue.use(Vuex)
|
|
10
|
+
// 创建router store
|
|
11
|
+
const store = new Vuex.Store({ modules })
|
|
12
|
+
const router = new Router(routerOptions)
|
|
13
|
+
|
|
14
|
+
bootstrap({ router, store, i18n, message })
|
|
15
|
+
new Vue({
|
|
16
|
+
router,
|
|
17
|
+
store,
|
|
18
|
+
i18n,
|
|
19
|
+
render: h => h(App)
|
|
20
|
+
}).$mount('#app')
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
const reportData = [
|
|
2
|
-
{ '气费': { 'span': 8 } },
|
|
3
|
-
['付款方式', '用户类型', '用气性质', '笔数', '气量', '应收金额', '实收金额', '滞纳金'],
|
|
4
|
-
{
|
|
5
|
-
'刷卡': {
|
|
6
|
-
'非民用': {
|
|
7
|
-
'公服用气': [3, 2777, 6998.04, 7000, 0],
|
|
8
|
-
'商业用气': [17, 28720, 83811.50, 83806.70, 0]
|
|
9
|
-
},
|
|
10
|
-
'民用': {
|
|
11
|
-
'居民用气': [255, 19310, 44219.70, 44345.50, 0]
|
|
12
|
-
},
|
|
13
|
-
'合计': { 'span': 2, 'value': [275, 50807, 135029.24, 135152.20, 0] }
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
]
|
|
17
|
-
|
|
18
|
-
export {
|
|
19
|
-
reportData
|
|
20
|
-
}
|
|
1
|
+
const reportData = [
|
|
2
|
+
{ '气费': { 'span': 8 } },
|
|
3
|
+
['付款方式', '用户类型', '用气性质', '笔数', '气量', '应收金额', '实收金额', '滞纳金'],
|
|
4
|
+
{
|
|
5
|
+
'刷卡': {
|
|
6
|
+
'非民用': {
|
|
7
|
+
'公服用气': [3, 2777, 6998.04, 7000, 0],
|
|
8
|
+
'商业用气': [17, 28720, 83811.50, 83806.70, 0]
|
|
9
|
+
},
|
|
10
|
+
'民用': {
|
|
11
|
+
'居民用气': [255, 19310, 44219.70, 44345.50, 0]
|
|
12
|
+
},
|
|
13
|
+
'合计': { 'span': 2, 'value': [275, 50807, 135029.24, 135152.20, 0] }
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
]
|
|
17
|
+
|
|
18
|
+
export {
|
|
19
|
+
reportData
|
|
20
|
+
}
|
package/src/mock/goods/index.js
CHANGED
package/src/mock/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import Mock from 'mockjs'
|
|
2
|
-
import '
|
|
3
|
-
import '
|
|
4
|
-
import '
|
|
5
|
-
import '
|
|
6
|
-
import '
|
|
7
|
-
import '
|
|
2
|
+
import '@vue2-client/mock/user/current'
|
|
3
|
+
import '@vue2-client/mock/project'
|
|
4
|
+
import '@vue2-client/mock/user/login'
|
|
5
|
+
import '@vue2-client/mock/workplace'
|
|
6
|
+
import '@vue2-client/mock/user/routes'
|
|
7
|
+
import '@vue2-client/mock/goods'
|
|
8
8
|
|
|
9
9
|
// 设置全局延时
|
|
10
10
|
Mock.setup({
|
package/src/mock/user/current.js
CHANGED
package/src/mock/user/login.js
CHANGED
package/src/mock/user/routes.js
CHANGED
|
@@ -1,61 +1,61 @@
|
|
|
1
|
-
import Mock from 'mockjs'
|
|
2
|
-
|
|
3
|
-
const router = [{
|
|
4
|
-
router: 'root',
|
|
5
|
-
children: [
|
|
6
|
-
{
|
|
7
|
-
router: 'dashboard',
|
|
8
|
-
icon: 'dashboard',
|
|
9
|
-
name: '仪表盘',
|
|
10
|
-
children: [
|
|
11
|
-
{
|
|
12
|
-
router: 'workplace',
|
|
13
|
-
name: '工作台'
|
|
14
|
-
},
|
|
15
|
-
{
|
|
16
|
-
router: 'analysis',
|
|
17
|
-
name: '分析页'
|
|
18
|
-
}
|
|
19
|
-
]
|
|
20
|
-
},
|
|
21
|
-
// {
|
|
22
|
-
// router: 'webmeter',
|
|
23
|
-
// children: ['userFilesManage', 'gasAnalysisManage', 'handAnalysisManage', 'exceptionManage']
|
|
24
|
-
// },
|
|
25
|
-
// {
|
|
26
|
-
// router: 'iot',
|
|
27
|
-
// children: ['iotDeviceType', 'iotDeviceBrand', 'iotDevice', 'iotSetDeviceParams', 'instructManage', 'reportedDataQuery', 'deviceException', 'deviceManage']
|
|
28
|
-
// },
|
|
29
|
-
// {
|
|
30
|
-
// router: 'dataAnalyze',
|
|
31
|
-
// children: ['DataAnalysisView']
|
|
32
|
-
// },
|
|
33
|
-
// {
|
|
34
|
-
// router: 'system',
|
|
35
|
-
// children: ['dictionaryManage', 'queryParamsManage', 'customerManage', 'safeguardSearchLog', 'runtime', 'createQuery']
|
|
36
|
-
// },
|
|
37
|
-
{
|
|
38
|
-
router: 'antdv',
|
|
39
|
-
path: 'antdv',
|
|
40
|
-
name: 'Ant Design Vue',
|
|
41
|
-
icon: 'ant-design',
|
|
42
|
-
link: 'https://www.antdv.com/docs/vue/introduce-cn/'
|
|
43
|
-
},
|
|
44
|
-
{
|
|
45
|
-
router: 'document',
|
|
46
|
-
path: 'document',
|
|
47
|
-
name: '使用文档',
|
|
48
|
-
icon: 'file-word',
|
|
49
|
-
link: 'https://iczer.gitee.io/vue-antd-admin-docs/'
|
|
50
|
-
}
|
|
51
|
-
]
|
|
52
|
-
}]
|
|
53
|
-
|
|
54
|
-
Mock.mock(`${process.env.VUE_APP_API_BASE_URL}/routes`, 'get', () => {
|
|
55
|
-
const result = {}
|
|
56
|
-
result.code = 0
|
|
57
|
-
result.data = router
|
|
58
|
-
return result
|
|
59
|
-
})
|
|
60
|
-
|
|
61
|
-
export { router }
|
|
1
|
+
import Mock from 'mockjs'
|
|
2
|
+
|
|
3
|
+
const router = [{
|
|
4
|
+
router: 'root',
|
|
5
|
+
children: [
|
|
6
|
+
{
|
|
7
|
+
router: 'dashboard',
|
|
8
|
+
icon: 'dashboard',
|
|
9
|
+
name: '仪表盘',
|
|
10
|
+
children: [
|
|
11
|
+
{
|
|
12
|
+
router: 'workplace',
|
|
13
|
+
name: '工作台'
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
router: 'analysis',
|
|
17
|
+
name: '分析页'
|
|
18
|
+
}
|
|
19
|
+
]
|
|
20
|
+
},
|
|
21
|
+
// {
|
|
22
|
+
// router: 'webmeter',
|
|
23
|
+
// children: ['userFilesManage', 'gasAnalysisManage', 'handAnalysisManage', 'exceptionManage']
|
|
24
|
+
// },
|
|
25
|
+
// {
|
|
26
|
+
// router: 'iot',
|
|
27
|
+
// children: ['iotDeviceType', 'iotDeviceBrand', 'iotDevice', 'iotSetDeviceParams', 'instructManage', 'reportedDataQuery', 'deviceException', 'deviceManage']
|
|
28
|
+
// },
|
|
29
|
+
// {
|
|
30
|
+
// router: 'dataAnalyze',
|
|
31
|
+
// children: ['DataAnalysisView']
|
|
32
|
+
// },
|
|
33
|
+
// {
|
|
34
|
+
// router: 'system',
|
|
35
|
+
// children: ['dictionaryManage', 'queryParamsManage', 'customerManage', 'safeguardSearchLog', 'runtime', 'createQuery']
|
|
36
|
+
// },
|
|
37
|
+
{
|
|
38
|
+
router: 'antdv',
|
|
39
|
+
path: 'antdv',
|
|
40
|
+
name: 'Ant Design Vue',
|
|
41
|
+
icon: 'ant-design',
|
|
42
|
+
link: 'https://www.antdv.com/docs/vue/introduce-cn/'
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
router: 'document',
|
|
46
|
+
path: 'document',
|
|
47
|
+
name: '使用文档',
|
|
48
|
+
icon: 'file-word',
|
|
49
|
+
link: 'https://iczer.gitee.io/vue-antd-admin-docs/'
|
|
50
|
+
}
|
|
51
|
+
]
|
|
52
|
+
}]
|
|
53
|
+
|
|
54
|
+
Mock.mock(`${process.env.VUE_APP_API_BASE_URL}/routes`, 'get', () => {
|
|
55
|
+
const result = {}
|
|
56
|
+
result.code = 0
|
|
57
|
+
result.data = router
|
|
58
|
+
return result
|
|
59
|
+
})
|
|
60
|
+
|
|
61
|
+
export { router }
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import Mock from 'mockjs'
|
|
2
2
|
import { activities, templates } from '../common/activityData'
|
|
3
|
-
import { teams } from '
|
|
3
|
+
import { teams } from '@vue2-client/mock/common'
|
|
4
4
|
|
|
5
5
|
activities.forEach(item => {
|
|
6
6
|
item.template = templates[item.activity.type](item.user, item.activity)
|
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<exception-page :home-route="homePage" :style="`min-height: ${minHeight}`" type="403" />
|
|
3
|
-
</template>
|
|
4
|
-
|
|
5
|
-
<script>
|
|
6
|
-
import ExceptionPage from '
|
|
7
|
-
import { mapState } from 'vuex'
|
|
8
|
-
const { homePage } = require('
|
|
9
|
-
export default {
|
|
10
|
-
name: 'Exp403',
|
|
11
|
-
components: { ExceptionPage },
|
|
12
|
-
computed: {
|
|
13
|
-
homePage () {
|
|
14
|
-
return homePage
|
|
15
|
-
},
|
|
16
|
-
...mapState('setting', ['pageMinHeight']),
|
|
17
|
-
minHeight () {
|
|
18
|
-
return this.pageMinHeight ? this.pageMinHeight + 'px' : '100vh'
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
</script>
|
|
23
|
-
|
|
24
|
-
<style scoped lang="less">
|
|
25
|
-
</style>
|
|
1
|
+
<template>
|
|
2
|
+
<exception-page :home-route="homePage" :style="`min-height: ${minHeight}`" type="403" />
|
|
3
|
+
</template>
|
|
4
|
+
|
|
5
|
+
<script>
|
|
6
|
+
import ExceptionPage from '@vue2-client/components/exception/ExceptionPage'
|
|
7
|
+
import { mapState } from 'vuex'
|
|
8
|
+
const { homePage } = require('@vue2-client/config')
|
|
9
|
+
export default {
|
|
10
|
+
name: 'Exp403',
|
|
11
|
+
components: { ExceptionPage },
|
|
12
|
+
computed: {
|
|
13
|
+
homePage () {
|
|
14
|
+
return homePage
|
|
15
|
+
},
|
|
16
|
+
...mapState('setting', ['pageMinHeight']),
|
|
17
|
+
minHeight () {
|
|
18
|
+
return this.pageMinHeight ? this.pageMinHeight + 'px' : '100vh'
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
</script>
|
|
23
|
+
|
|
24
|
+
<style scoped lang="less">
|
|
25
|
+
</style>
|
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<exception-page :home-route="homePage" :style="`min-height: ${minHeight}`" type="404" />
|
|
3
|
-
</template>
|
|
4
|
-
|
|
5
|
-
<script>
|
|
6
|
-
import ExceptionPage from '
|
|
7
|
-
import { mapState } from 'vuex'
|
|
8
|
-
const { homePage } = require('
|
|
9
|
-
export default {
|
|
10
|
-
name: 'Exp404',
|
|
11
|
-
components: { ExceptionPage },
|
|
12
|
-
computed: {
|
|
13
|
-
homePage () {
|
|
14
|
-
return homePage
|
|
15
|
-
},
|
|
16
|
-
...mapState('setting', ['pageMinHeight']),
|
|
17
|
-
minHeight () {
|
|
18
|
-
return this.pageMinHeight ? this.pageMinHeight + 'px' : '100vh'
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
</script>
|
|
23
|
-
|
|
24
|
-
<style scoped lang="less">
|
|
25
|
-
</style>
|
|
1
|
+
<template>
|
|
2
|
+
<exception-page :home-route="homePage" :style="`min-height: ${minHeight}`" type="404" />
|
|
3
|
+
</template>
|
|
4
|
+
|
|
5
|
+
<script>
|
|
6
|
+
import ExceptionPage from '@vue2-client/components/exception/ExceptionPage'
|
|
7
|
+
import { mapState } from 'vuex'
|
|
8
|
+
const { homePage } = require('@vue2-client/config')
|
|
9
|
+
export default {
|
|
10
|
+
name: 'Exp404',
|
|
11
|
+
components: { ExceptionPage },
|
|
12
|
+
computed: {
|
|
13
|
+
homePage () {
|
|
14
|
+
return homePage
|
|
15
|
+
},
|
|
16
|
+
...mapState('setting', ['pageMinHeight']),
|
|
17
|
+
minHeight () {
|
|
18
|
+
return this.pageMinHeight ? this.pageMinHeight + 'px' : '100vh'
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
</script>
|
|
23
|
+
|
|
24
|
+
<style scoped lang="less">
|
|
25
|
+
</style>
|
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<exception-page :home-route="homePage" :style="`min-height: ${minHeight}`" type="500" />
|
|
3
|
-
</template>
|
|
4
|
-
|
|
5
|
-
<script>
|
|
6
|
-
import ExceptionPage from '
|
|
7
|
-
import { mapState } from 'vuex'
|
|
8
|
-
const { homePage } = require('
|
|
9
|
-
export default {
|
|
10
|
-
name: 'Exp500',
|
|
11
|
-
components: { ExceptionPage },
|
|
12
|
-
computed: {
|
|
13
|
-
homePage () {
|
|
14
|
-
return homePage
|
|
15
|
-
},
|
|
16
|
-
...mapState('setting', ['pageMinHeight']),
|
|
17
|
-
minHeight () {
|
|
18
|
-
return this.pageMinHeight ? this.pageMinHeight + 'px' : '100vh'
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
</script>
|
|
23
|
-
|
|
24
|
-
<style scoped lang="less">
|
|
25
|
-
</style>
|
|
1
|
+
<template>
|
|
2
|
+
<exception-page :home-route="homePage" :style="`min-height: ${minHeight}`" type="500" />
|
|
3
|
+
</template>
|
|
4
|
+
|
|
5
|
+
<script>
|
|
6
|
+
import ExceptionPage from '@vue2-client/components/exception/ExceptionPage'
|
|
7
|
+
import { mapState } from 'vuex'
|
|
8
|
+
const { homePage } = require('@vue2-client/config')
|
|
9
|
+
export default {
|
|
10
|
+
name: 'Exp500',
|
|
11
|
+
components: { ExceptionPage },
|
|
12
|
+
computed: {
|
|
13
|
+
homePage () {
|
|
14
|
+
return homePage
|
|
15
|
+
},
|
|
16
|
+
...mapState('setting', ['pageMinHeight']),
|
|
17
|
+
minHeight () {
|
|
18
|
+
return this.pageMinHeight ? this.pageMinHeight + 'px' : '100vh'
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
</script>
|
|
23
|
+
|
|
24
|
+
<style scoped lang="less">
|
|
25
|
+
</style>
|