vue2-client 1.5.24 → 1.6.0
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 +533 -525
- 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 +672 -667
- package/src/base-client/components/common/CreateSimpleFormQuery/CreateSimpleFormQueryItem.vue +508 -508
- package/src/base-client/components/common/FormGroupEdit/FormGroupEdit.vue +140 -140
- 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 +328 -324
- package/src/base-client/components/common/XCard/XCard.vue +64 -64
- package/src/base-client/components/common/XForm/XForm.vue +190 -194
- package/src/base-client/components/common/XForm/XFormItem.vue +520 -512
- package/src/base-client/components/common/XFormTable/XFormTable.vue +289 -333
- package/src/base-client/components/common/XFormTable/index.md +105 -97
- package/src/base-client/components/common/XImportExcel/XImportExcel.vue +132 -131
- package/src/base-client/components/common/XTable/XTable.vue +505 -505
- package/src/base-client/components/common/XTreeOne/XTreeOne.vue +109 -109
- package/src/base-client/components/system/DictionaryDetailsView/DictionaryDetailsView.vue +229 -231
- 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 +76 -76
- 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/Ellipsis.vue +65 -65
- 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/exception/ExceptionPage.vue +70 -70
- 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/page/header/index.less +40 -40
- 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/default/admin.config.js +18 -18
- package/src/config/default/setting.config.js +44 -44
- package/src/config/replacer/resolve.config.js +67 -67
- package/src/layouts/AdminLayout.vue +174 -174
- package/src/layouts/CommonLayout.vue +42 -42
- package/src/layouts/ComponentLayoutOne.vue +47 -47
- package/src/layouts/PageLayout.vue +151 -151
- package/src/layouts/SinglePageView.vue +111 -111
- package/src/layouts/footer/PageFooter.vue +49 -49
- package/src/layouts/header/AdminHeader.vue +104 -104
- package/src/layouts/header/HeaderAvatar.vue +64 -64
- package/src/layouts/header/HeaderNotice.vue +176 -176
- package/src/layouts/header/HeaderSearch.vue +67 -67
- package/src/layouts/header/InstitutionDetail.vue +181 -181
- package/src/layouts/header/index.less +92 -92
- 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/exception/404.vue +25 -25
- package/src/pages/login/Login.vue +363 -363
- 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 +46 -43
- package/src/pages/system/file/index.vue +317 -317
- package/src/pages/system/monitor/loginInfor/index.vue +39 -36
- package/src/pages/system/monitor/operLog/index.vue +38 -36
- package/src/pages/system/queryParams/index.vue +46 -43
- package/src/pages/system/settings/index.vue +126 -126
- package/src/pages/system/settings/modifyPassword.vue +109 -109
- package/src/pages/system/ticket/index.vue +453 -450
- package/src/router/async/config.async.js +28 -28
- package/src/router/async/router.map.js +68 -68
- 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 +79 -79
- package/src/services/api/commonTempTable.js +10 -10
- package/src/services/api/index.js +17 -17
- package/src/services/api/logininfor/index.js +6 -6
- package/src/services/api/manage.js +8 -8
- package/src/services/apiService.js +14 -14
- package/src/services/user.js +64 -64
- 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 +107 -107
- 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/theme-color-replacer-extend.js +91 -91
- package/src/utils/themeUtil.js +100 -100
- package/src/utils/util.js +230 -230
- package/vue.config.js +106 -106
|
@@ -1,174 +1,174 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<a-layout :class="['admin-layout', 'beauty-scroll']">
|
|
3
|
-
<drawer v-if="isMobile" v-model="drawerOpen">
|
|
4
|
-
<side-menu :theme="theme.mode" :menuData="menuData" :collapsed="false" :collapsible="false" @menuSelect="onMenuSelect"/>
|
|
5
|
-
</drawer>
|
|
6
|
-
<side-menu
|
|
7
|
-
:class="[fixedSideBar ? 'fixed-side' : '']"
|
|
8
|
-
:theme="theme.mode"
|
|
9
|
-
v-else-if="layout === 'side' || layout === 'mix'"
|
|
10
|
-
:menuData="sideMenuData"
|
|
11
|
-
:collapsed="collapsed"
|
|
12
|
-
:collapsible="true" />
|
|
13
|
-
<div v-if="fixedSideBar && !isMobile" :style="`width: ${sideMenuWidth}; min-width: ${sideMenuWidth};max-width: ${sideMenuWidth};`" class="virtual-side"></div>
|
|
14
|
-
<drawer v-if="!hideSetting" v-model="showSetting" placement="right">
|
|
15
|
-
<div class="setting" slot="handler">
|
|
16
|
-
<a-icon :type="showSetting ? 'close' : 'setting'"/>
|
|
17
|
-
</div>
|
|
18
|
-
<setting />
|
|
19
|
-
</drawer>
|
|
20
|
-
<a-layout class="admin-layout-main beauty-scroll">
|
|
21
|
-
<admin-header :class="[{'fixed-tabs': fixedTabs, 'fixed-header': fixedHeader, 'multi-page': multiPage}]" :style="headerStyle" :menuData="headMenuData" :collapsed="collapsed" @toggleCollapse="toggleCollapse"/>
|
|
22
|
-
<a-layout-header :class="['virtual-header', {'fixed-tabs' : fixedTabs, 'fixed-header': fixedHeader, 'multi-page': multiPage}]" v-show="fixedHeader"></a-layout-header>
|
|
23
|
-
<a-layout-content class="admin-layout-content" :style="`min-height: ${minHeight}px;`">
|
|
24
|
-
<div style="position: relative">
|
|
25
|
-
<slot></slot>
|
|
26
|
-
</div>
|
|
27
|
-
</a-layout-content>
|
|
28
|
-
<a-layout-footer style="padding: 0">
|
|
29
|
-
<page-footer :link-list="footerLinks" :copyright="copyright" />
|
|
30
|
-
</a-layout-footer>
|
|
31
|
-
</a-layout>
|
|
32
|
-
</a-layout>
|
|
33
|
-
</template>
|
|
34
|
-
|
|
35
|
-
<script>
|
|
36
|
-
import AdminHeader from './header/AdminHeader'
|
|
37
|
-
import PageFooter from './footer/PageFooter'
|
|
38
|
-
import Drawer from '../components/tool/Drawer'
|
|
39
|
-
import SideMenu from '../components/menu/SideMenu'
|
|
40
|
-
import Setting from '../components/setting/Setting'
|
|
41
|
-
import { mapState, mapMutations, mapGetters } from 'vuex'
|
|
42
|
-
|
|
43
|
-
// const minHeight = window.innerHeight - 64 - 122
|
|
44
|
-
|
|
45
|
-
export default {
|
|
46
|
-
name: 'AdminLayout',
|
|
47
|
-
components: { Setting, SideMenu, Drawer, PageFooter, AdminHeader },
|
|
48
|
-
data () {
|
|
49
|
-
return {
|
|
50
|
-
minHeight: window.innerHeight - 64 - 1,
|
|
51
|
-
collapsed: false,
|
|
52
|
-
showSetting: false,
|
|
53
|
-
drawerOpen: false
|
|
54
|
-
}
|
|
55
|
-
},
|
|
56
|
-
provide () {
|
|
57
|
-
return {
|
|
58
|
-
adminLayout: this
|
|
59
|
-
}
|
|
60
|
-
},
|
|
61
|
-
watch: {
|
|
62
|
-
$route (val) {
|
|
63
|
-
this.setActivated(val)
|
|
64
|
-
},
|
|
65
|
-
layout () {
|
|
66
|
-
this.setActivated(this.$route)
|
|
67
|
-
},
|
|
68
|
-
isMobile (val) {
|
|
69
|
-
if (!val) {
|
|
70
|
-
this.drawerOpen = false
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
},
|
|
74
|
-
computed: {
|
|
75
|
-
...mapState('setting', ['isMobile', 'theme', 'layout', 'footerLinks', 'copyright', 'fixedHeader', 'fixedSideBar',
|
|
76
|
-
'fixedTabs', 'hideSetting', 'multiPage']),
|
|
77
|
-
...mapGetters('setting', ['firstMenu', 'subMenu', 'menuData']),
|
|
78
|
-
sideMenuWidth () {
|
|
79
|
-
return this.collapsed ? '80px' : '256px'
|
|
80
|
-
},
|
|
81
|
-
headerStyle () {
|
|
82
|
-
const width = (this.fixedHeader && this.layout !== 'head' && !this.isMobile) ? `calc(100% - ${this.sideMenuWidth})` : '100%'
|
|
83
|
-
const position = this.fixedHeader ? 'fixed' : 'static'
|
|
84
|
-
return `width: ${width}; position: ${position};`
|
|
85
|
-
},
|
|
86
|
-
headMenuData () {
|
|
87
|
-
const { layout, menuData, firstMenu } = this
|
|
88
|
-
return layout === 'mix' ? firstMenu : menuData
|
|
89
|
-
},
|
|
90
|
-
sideMenuData () {
|
|
91
|
-
const { layout, menuData, subMenu } = this
|
|
92
|
-
return layout === 'mix' ? subMenu : menuData
|
|
93
|
-
}
|
|
94
|
-
},
|
|
95
|
-
methods: {
|
|
96
|
-
...mapMutations('setting', ['correctPageMinHeight', 'setActivatedFirst']),
|
|
97
|
-
toggleCollapse () {
|
|
98
|
-
this.collapsed = !this.collapsed
|
|
99
|
-
},
|
|
100
|
-
onMenuSelect () {
|
|
101
|
-
this.toggleCollapse()
|
|
102
|
-
},
|
|
103
|
-
setActivated (route) {
|
|
104
|
-
if (this.layout === 'mix') {
|
|
105
|
-
let matched = route.matched
|
|
106
|
-
matched = matched.slice(0, matched.length - 1)
|
|
107
|
-
const { firstMenu } = this
|
|
108
|
-
for (const menu of firstMenu) {
|
|
109
|
-
if (matched.findIndex(item => item.path === menu.fullPath) !== -1) {
|
|
110
|
-
this.setActivatedFirst(menu.fullPath)
|
|
111
|
-
break
|
|
112
|
-
}
|
|
113
|
-
}
|
|
114
|
-
}
|
|
115
|
-
}
|
|
116
|
-
},
|
|
117
|
-
created () {
|
|
118
|
-
this.correctPageMinHeight(this.minHeight - 24)
|
|
119
|
-
this.setActivated(this.$route)
|
|
120
|
-
},
|
|
121
|
-
beforeDestroy () {
|
|
122
|
-
this.correctPageMinHeight(-this.minHeight + 24)
|
|
123
|
-
}
|
|
124
|
-
}
|
|
125
|
-
</script>
|
|
126
|
-
|
|
127
|
-
<style lang="less" scoped>
|
|
128
|
-
.admin-layout{
|
|
129
|
-
.side-menu{
|
|
130
|
-
&.fixed-side{
|
|
131
|
-
position: fixed;
|
|
132
|
-
height: 100vh;
|
|
133
|
-
left: 0;
|
|
134
|
-
top: 0;
|
|
135
|
-
}
|
|
136
|
-
}
|
|
137
|
-
.virtual-side{
|
|
138
|
-
transition: all 0.2s;
|
|
139
|
-
}
|
|
140
|
-
.virtual-header{
|
|
141
|
-
transition: all 0.2s;
|
|
142
|
-
opacity: 0;
|
|
143
|
-
&.fixed-tabs.multi-page:not(.fixed-header){
|
|
144
|
-
height: 0;
|
|
145
|
-
}
|
|
146
|
-
}
|
|
147
|
-
.admin-layout-main{
|
|
148
|
-
.admin-header{
|
|
149
|
-
top: 0;
|
|
150
|
-
right: 0;
|
|
151
|
-
overflow: hidden;
|
|
152
|
-
transition: all 0.2s;
|
|
153
|
-
&.fixed-tabs.multi-page:not(.fixed-header){
|
|
154
|
-
height: 0;
|
|
155
|
-
}
|
|
156
|
-
}
|
|
157
|
-
}
|
|
158
|
-
.admin-layout-content{
|
|
159
|
-
padding: 24px;
|
|
160
|
-
/*overflow-x: hidden;*/
|
|
161
|
-
/*min-height: calc(100vh - 64px - 122px);*/
|
|
162
|
-
}
|
|
163
|
-
.setting{
|
|
164
|
-
background-color: @primary-color;
|
|
165
|
-
color: @base-bg-color;
|
|
166
|
-
border-radius: 5px 0 0 5px;
|
|
167
|
-
line-height: 40px;
|
|
168
|
-
font-size: 22px;
|
|
169
|
-
width: 40px;
|
|
170
|
-
height: 40px;
|
|
171
|
-
box-shadow: -2px 0 8px @shadow-color;
|
|
172
|
-
}
|
|
173
|
-
}
|
|
174
|
-
</style>
|
|
1
|
+
<template>
|
|
2
|
+
<a-layout :class="['admin-layout', 'beauty-scroll']">
|
|
3
|
+
<drawer v-if="isMobile" v-model="drawerOpen">
|
|
4
|
+
<side-menu :theme="theme.mode" :menuData="menuData" :collapsed="false" :collapsible="false" @menuSelect="onMenuSelect"/>
|
|
5
|
+
</drawer>
|
|
6
|
+
<side-menu
|
|
7
|
+
:class="[fixedSideBar ? 'fixed-side' : '']"
|
|
8
|
+
:theme="theme.mode"
|
|
9
|
+
v-else-if="layout === 'side' || layout === 'mix'"
|
|
10
|
+
:menuData="sideMenuData"
|
|
11
|
+
:collapsed="collapsed"
|
|
12
|
+
:collapsible="true" />
|
|
13
|
+
<div v-if="fixedSideBar && !isMobile" :style="`width: ${sideMenuWidth}; min-width: ${sideMenuWidth};max-width: ${sideMenuWidth};`" class="virtual-side"></div>
|
|
14
|
+
<drawer v-if="!hideSetting" v-model="showSetting" placement="right">
|
|
15
|
+
<div class="setting" slot="handler">
|
|
16
|
+
<a-icon :type="showSetting ? 'close' : 'setting'"/>
|
|
17
|
+
</div>
|
|
18
|
+
<setting />
|
|
19
|
+
</drawer>
|
|
20
|
+
<a-layout class="admin-layout-main beauty-scroll">
|
|
21
|
+
<admin-header :class="[{'fixed-tabs': fixedTabs, 'fixed-header': fixedHeader, 'multi-page': multiPage}]" :style="headerStyle" :menuData="headMenuData" :collapsed="collapsed" @toggleCollapse="toggleCollapse"/>
|
|
22
|
+
<a-layout-header :class="['virtual-header', {'fixed-tabs' : fixedTabs, 'fixed-header': fixedHeader, 'multi-page': multiPage}]" v-show="fixedHeader"></a-layout-header>
|
|
23
|
+
<a-layout-content class="admin-layout-content" :style="`min-height: ${minHeight}px;`">
|
|
24
|
+
<div style="position: relative">
|
|
25
|
+
<slot></slot>
|
|
26
|
+
</div>
|
|
27
|
+
</a-layout-content>
|
|
28
|
+
<a-layout-footer style="padding: 0">
|
|
29
|
+
<page-footer :link-list="footerLinks" :copyright="copyright" />
|
|
30
|
+
</a-layout-footer>
|
|
31
|
+
</a-layout>
|
|
32
|
+
</a-layout>
|
|
33
|
+
</template>
|
|
34
|
+
|
|
35
|
+
<script>
|
|
36
|
+
import AdminHeader from './header/AdminHeader'
|
|
37
|
+
import PageFooter from './footer/PageFooter'
|
|
38
|
+
import Drawer from '../components/tool/Drawer'
|
|
39
|
+
import SideMenu from '../components/menu/SideMenu'
|
|
40
|
+
import Setting from '../components/setting/Setting'
|
|
41
|
+
import { mapState, mapMutations, mapGetters } from 'vuex'
|
|
42
|
+
|
|
43
|
+
// const minHeight = window.innerHeight - 64 - 122
|
|
44
|
+
|
|
45
|
+
export default {
|
|
46
|
+
name: 'AdminLayout',
|
|
47
|
+
components: { Setting, SideMenu, Drawer, PageFooter, AdminHeader },
|
|
48
|
+
data () {
|
|
49
|
+
return {
|
|
50
|
+
minHeight: window.innerHeight - 64 - 1,
|
|
51
|
+
collapsed: false,
|
|
52
|
+
showSetting: false,
|
|
53
|
+
drawerOpen: false
|
|
54
|
+
}
|
|
55
|
+
},
|
|
56
|
+
provide () {
|
|
57
|
+
return {
|
|
58
|
+
adminLayout: this
|
|
59
|
+
}
|
|
60
|
+
},
|
|
61
|
+
watch: {
|
|
62
|
+
$route (val) {
|
|
63
|
+
this.setActivated(val)
|
|
64
|
+
},
|
|
65
|
+
layout () {
|
|
66
|
+
this.setActivated(this.$route)
|
|
67
|
+
},
|
|
68
|
+
isMobile (val) {
|
|
69
|
+
if (!val) {
|
|
70
|
+
this.drawerOpen = false
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
},
|
|
74
|
+
computed: {
|
|
75
|
+
...mapState('setting', ['isMobile', 'theme', 'layout', 'footerLinks', 'copyright', 'fixedHeader', 'fixedSideBar',
|
|
76
|
+
'fixedTabs', 'hideSetting', 'multiPage']),
|
|
77
|
+
...mapGetters('setting', ['firstMenu', 'subMenu', 'menuData']),
|
|
78
|
+
sideMenuWidth () {
|
|
79
|
+
return this.collapsed ? '80px' : '256px'
|
|
80
|
+
},
|
|
81
|
+
headerStyle () {
|
|
82
|
+
const width = (this.fixedHeader && this.layout !== 'head' && !this.isMobile) ? `calc(100% - ${this.sideMenuWidth})` : '100%'
|
|
83
|
+
const position = this.fixedHeader ? 'fixed' : 'static'
|
|
84
|
+
return `width: ${width}; position: ${position};`
|
|
85
|
+
},
|
|
86
|
+
headMenuData () {
|
|
87
|
+
const { layout, menuData, firstMenu } = this
|
|
88
|
+
return layout === 'mix' ? firstMenu : menuData
|
|
89
|
+
},
|
|
90
|
+
sideMenuData () {
|
|
91
|
+
const { layout, menuData, subMenu } = this
|
|
92
|
+
return layout === 'mix' ? subMenu : menuData
|
|
93
|
+
}
|
|
94
|
+
},
|
|
95
|
+
methods: {
|
|
96
|
+
...mapMutations('setting', ['correctPageMinHeight', 'setActivatedFirst']),
|
|
97
|
+
toggleCollapse () {
|
|
98
|
+
this.collapsed = !this.collapsed
|
|
99
|
+
},
|
|
100
|
+
onMenuSelect () {
|
|
101
|
+
this.toggleCollapse()
|
|
102
|
+
},
|
|
103
|
+
setActivated (route) {
|
|
104
|
+
if (this.layout === 'mix') {
|
|
105
|
+
let matched = route.matched
|
|
106
|
+
matched = matched.slice(0, matched.length - 1)
|
|
107
|
+
const { firstMenu } = this
|
|
108
|
+
for (const menu of firstMenu) {
|
|
109
|
+
if (matched.findIndex(item => item.path === menu.fullPath) !== -1) {
|
|
110
|
+
this.setActivatedFirst(menu.fullPath)
|
|
111
|
+
break
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
},
|
|
117
|
+
created () {
|
|
118
|
+
this.correctPageMinHeight(this.minHeight - 24)
|
|
119
|
+
this.setActivated(this.$route)
|
|
120
|
+
},
|
|
121
|
+
beforeDestroy () {
|
|
122
|
+
this.correctPageMinHeight(-this.minHeight + 24)
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
</script>
|
|
126
|
+
|
|
127
|
+
<style lang="less" scoped>
|
|
128
|
+
.admin-layout{
|
|
129
|
+
.side-menu{
|
|
130
|
+
&.fixed-side{
|
|
131
|
+
position: fixed;
|
|
132
|
+
height: 100vh;
|
|
133
|
+
left: 0;
|
|
134
|
+
top: 0;
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
.virtual-side{
|
|
138
|
+
transition: all 0.2s;
|
|
139
|
+
}
|
|
140
|
+
.virtual-header{
|
|
141
|
+
transition: all 0.2s;
|
|
142
|
+
opacity: 0;
|
|
143
|
+
&.fixed-tabs.multi-page:not(.fixed-header){
|
|
144
|
+
height: 0;
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
.admin-layout-main{
|
|
148
|
+
.admin-header{
|
|
149
|
+
top: 0;
|
|
150
|
+
right: 0;
|
|
151
|
+
overflow: hidden;
|
|
152
|
+
transition: all 0.2s;
|
|
153
|
+
&.fixed-tabs.multi-page:not(.fixed-header){
|
|
154
|
+
height: 0;
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
.admin-layout-content{
|
|
159
|
+
padding: 24px;
|
|
160
|
+
/*overflow-x: hidden;*/
|
|
161
|
+
/*min-height: calc(100vh - 64px - 122px);*/
|
|
162
|
+
}
|
|
163
|
+
.setting{
|
|
164
|
+
background-color: @primary-color;
|
|
165
|
+
color: @base-bg-color;
|
|
166
|
+
border-radius: 5px 0 0 5px;
|
|
167
|
+
line-height: 40px;
|
|
168
|
+
font-size: 22px;
|
|
169
|
+
width: 40px;
|
|
170
|
+
height: 40px;
|
|
171
|
+
box-shadow: -2px 0 8px @shadow-color;
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
</style>
|
|
@@ -1,42 +1,42 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="common-layout">
|
|
3
|
-
<div class="content"><slot></slot></div>
|
|
4
|
-
<page-footer :link-list="footerLinks" :copyright="copyright" :copyrightStyle="copyrightStyle"></page-footer>
|
|
5
|
-
</div>
|
|
6
|
-
</template>
|
|
7
|
-
|
|
8
|
-
<script>
|
|
9
|
-
import PageFooter from '@vue2-client/layouts/footer/PageFooter'
|
|
10
|
-
import { mapState } from 'vuex'
|
|
11
|
-
|
|
12
|
-
export default {
|
|
13
|
-
name: 'CommonLayout',
|
|
14
|
-
components: { PageFooter },
|
|
15
|
-
computed: {
|
|
16
|
-
...mapState('setting', ['footerLinks', 'copyright', 'copyrightStyle'])
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
</script>
|
|
20
|
-
|
|
21
|
-
<style scoped lang="less">
|
|
22
|
-
.common-layout{
|
|
23
|
-
display: flex;
|
|
24
|
-
flex-direction: column;
|
|
25
|
-
height: 100vh;
|
|
26
|
-
overflow: auto;
|
|
27
|
-
background-color: @layout-body-background;
|
|
28
|
-
background-image: url('https://gw.alipayobjects.com/zos/rmsportal/TVYTbAXWheQpRcWDaDMu.svg');
|
|
29
|
-
background-repeat: no-repeat;
|
|
30
|
-
background-position-x: center;
|
|
31
|
-
background-position-y: 110px;
|
|
32
|
-
background-size: 100%;
|
|
33
|
-
.content{
|
|
34
|
-
padding: 32px 0;
|
|
35
|
-
flex: 1;
|
|
36
|
-
@media (min-width: 768px){
|
|
37
|
-
|
|
38
|
-
padding: 112px 0 24px;
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
</style>
|
|
1
|
+
<template>
|
|
2
|
+
<div class="common-layout">
|
|
3
|
+
<div class="content"><slot></slot></div>
|
|
4
|
+
<page-footer :link-list="footerLinks" :copyright="copyright" :copyrightStyle="copyrightStyle"></page-footer>
|
|
5
|
+
</div>
|
|
6
|
+
</template>
|
|
7
|
+
|
|
8
|
+
<script>
|
|
9
|
+
import PageFooter from '@vue2-client/layouts/footer/PageFooter'
|
|
10
|
+
import { mapState } from 'vuex'
|
|
11
|
+
|
|
12
|
+
export default {
|
|
13
|
+
name: 'CommonLayout',
|
|
14
|
+
components: { PageFooter },
|
|
15
|
+
computed: {
|
|
16
|
+
...mapState('setting', ['footerLinks', 'copyright', 'copyrightStyle'])
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
</script>
|
|
20
|
+
|
|
21
|
+
<style scoped lang="less">
|
|
22
|
+
.common-layout{
|
|
23
|
+
display: flex;
|
|
24
|
+
flex-direction: column;
|
|
25
|
+
height: 100vh;
|
|
26
|
+
overflow: auto;
|
|
27
|
+
background-color: @layout-body-background;
|
|
28
|
+
background-image: url('https://gw.alipayobjects.com/zos/rmsportal/TVYTbAXWheQpRcWDaDMu.svg');
|
|
29
|
+
background-repeat: no-repeat;
|
|
30
|
+
background-position-x: center;
|
|
31
|
+
background-position-y: 110px;
|
|
32
|
+
background-size: 100%;
|
|
33
|
+
.content{
|
|
34
|
+
padding: 32px 0;
|
|
35
|
+
flex: 1;
|
|
36
|
+
@media (min-width: 768px){
|
|
37
|
+
|
|
38
|
+
padding: 112px 0 24px;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
</style>
|
|
@@ -1,47 +1,47 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div id="ComponentLayoutOne">
|
|
3
|
-
<a-layout>
|
|
4
|
-
<a-layout-sider v-bind="siderProps">
|
|
5
|
-
<slot name="left"></slot>
|
|
6
|
-
</a-layout-sider>
|
|
7
|
-
<a-layout>
|
|
8
|
-
<slot></slot>
|
|
9
|
-
</a-layout>
|
|
10
|
-
</a-layout>
|
|
11
|
-
</div>
|
|
12
|
-
</template>
|
|
13
|
-
|
|
14
|
-
<script>
|
|
15
|
-
export default {
|
|
16
|
-
name: 'ComponentLayoutOne',
|
|
17
|
-
props: {
|
|
18
|
-
// Layout.Sider props对象
|
|
19
|
-
siderProps: {
|
|
20
|
-
type: Object,
|
|
21
|
-
default: () => {
|
|
22
|
-
return {}
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
},
|
|
26
|
-
data () {
|
|
27
|
-
return {}
|
|
28
|
-
},
|
|
29
|
-
created () {
|
|
30
|
-
},
|
|
31
|
-
mounted () {
|
|
32
|
-
},
|
|
33
|
-
methods: {}
|
|
34
|
-
}
|
|
35
|
-
</script>
|
|
36
|
-
|
|
37
|
-
<style lang="less">
|
|
38
|
-
#ComponentLayoutOne {
|
|
39
|
-
.ant-layout-sider {
|
|
40
|
-
.ant-layout-sider-zero-width-trigger {
|
|
41
|
-
top: 50%;
|
|
42
|
-
background-color: @shadow-color;
|
|
43
|
-
z-index: 2;
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
</style>
|
|
1
|
+
<template>
|
|
2
|
+
<div id="ComponentLayoutOne">
|
|
3
|
+
<a-layout>
|
|
4
|
+
<a-layout-sider v-bind="siderProps">
|
|
5
|
+
<slot name="left"></slot>
|
|
6
|
+
</a-layout-sider>
|
|
7
|
+
<a-layout>
|
|
8
|
+
<slot></slot>
|
|
9
|
+
</a-layout>
|
|
10
|
+
</a-layout>
|
|
11
|
+
</div>
|
|
12
|
+
</template>
|
|
13
|
+
|
|
14
|
+
<script>
|
|
15
|
+
export default {
|
|
16
|
+
name: 'ComponentLayoutOne',
|
|
17
|
+
props: {
|
|
18
|
+
// Layout.Sider props对象
|
|
19
|
+
siderProps: {
|
|
20
|
+
type: Object,
|
|
21
|
+
default: () => {
|
|
22
|
+
return {}
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
data () {
|
|
27
|
+
return {}
|
|
28
|
+
},
|
|
29
|
+
created () {
|
|
30
|
+
},
|
|
31
|
+
mounted () {
|
|
32
|
+
},
|
|
33
|
+
methods: {}
|
|
34
|
+
}
|
|
35
|
+
</script>
|
|
36
|
+
|
|
37
|
+
<style lang="less">
|
|
38
|
+
#ComponentLayoutOne {
|
|
39
|
+
.ant-layout-sider {
|
|
40
|
+
.ant-layout-sider-zero-width-trigger {
|
|
41
|
+
top: 50%;
|
|
42
|
+
background-color: @shadow-color;
|
|
43
|
+
z-index: 2;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
</style>
|