qj-common 4.3.0 → 4.3.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/.babelrc +12 -12
- package/.eslintrc.js +25 -25
- package/.idea/common.iml +11 -11
- package/.idea/modules.xml +7 -7
- package/.idea/vcs.xml +5 -5
- package/.postcssrc.js +9 -9
- package/.prettierrc.js +7 -7
- package/.project +37 -37
- package/README.md +2 -2
- package/gulpfile.js +20 -20
- package/package.json +18 -18
- package/src/api/apimanage.js +146 -146
- package/src/api/common/index.js +192 -192
- package/src/api/login.js +160 -160
- package/src/api/shopFbu.js +515 -515
- package/src/api/upload.js +8 -8
- package/src/components/Bounced/index.vue +145 -145
- package/src/components/Breadcrumb/index.vue +71 -71
- package/src/components/Checkbox/index.vue +53 -53
- package/src/components/Hamburger/index.vue +48 -48
- package/src/components/Logistics/logic.vue +186 -186
- package/src/components/ScrollBar/index.vue +60 -60
- package/src/components/Sticky/index.vue +76 -76
- package/src/components/SvgIcon/index.vue +42 -42
- package/src/components/ThemePicker/index.vue +243 -243
- package/src/components/Tinymce/components/editorImage.vue +94 -94
- package/src/components/Tinymce/index.vue +166 -166
- package/src/components/Tinymce/plugins.js +7 -7
- package/src/components/Tinymce/toolbar.js +6 -6
- package/src/components/TreeTable/customEval.js +44 -44
- package/src/components/TreeTable/eval.js +29 -29
- package/src/components/TreeTable/index.vue +124 -124
- package/src/components/TreeTable/readme.md +89 -89
- package/src/components/TreeTableApi/customEval.js +49 -49
- package/src/components/TreeTableApi/eval.js +29 -29
- package/src/components/TreeTableApi/index.vue +124 -124
- package/src/components/TreeTableApi/readme.md +89 -89
- package/src/components/Upload/singleImage.vue +123 -123
- package/src/components/Upload/singleImage2.vue +118 -118
- package/src/components/Upload/singleImage3.vue +138 -138
- package/src/components/Upload/upload.vue +295 -295
- package/src/components/workOrderList/index.vue +158 -158
- package/src/dependencies.js +119 -119
- package/src/iconShop/demo.css +539 -539
- package/src/iconShop/demo_index.html +8445 -8445
- package/src/iconShop/iconfont.css +1451 -1451
- package/src/iconShop/iconfont.json +2522 -2522
- package/src/iconShop/iconfont.svg +1070 -1070
- package/src/iconfont/demo.css +539 -539
- package/src/iconfont/demo_index.html +5276 -5276
- package/src/iconfont/iconfont.css +905 -905
- package/src/iconfont/iconfont.json +1563 -1563
- package/src/iconfont/iconfont.svg +692 -692
- package/src/icons/index.js +9 -9
- package/src/lang/e.js +48 -48
- package/src/lang/en.js +48 -48
- package/src/lang/zh.js +48 -48
- package/src/main.js +62 -62
- package/src/permission.js +283 -283
- package/src/permissionForMall.backup.js +375 -375
- package/src/permissionForMall.js +375 -375
- package/src/preset.js +67 -67
- package/src/router/_import_common.js +1 -1
- package/src/router/_import_development.js +1 -1
- package/src/router/_import_production.js +1 -1
- package/src/store/getters.js +39 -39
- package/src/store/index.js +18 -18
- package/src/store/modules/app.js +34 -30
- package/src/store/modules/menu.js +82 -82
- package/src/store/modules/user.js +227 -227
- package/src/styles/element-ui.scss +1368 -1368
- package/src/styles/index.scss +166 -166
- package/src/styles/mixin.scss +27 -27
- package/src/styles/pc-ui.scss +1031 -1031
- package/src/styles/scrollBar.scss +21 -21
- package/src/styles/sidebar.scss +123 -123
- package/src/styles/transition.scss +32 -32
- package/src/styles/variables.scss +44 -44
- package/src/styles/wf-ui.scss +86 -86
- package/src/utils/auth.js +57 -57
- package/src/utils/dom.js +12 -12
- package/src/utils/getQueryString.js +5 -5
- package/src/utils/import.js +5 -5
- package/src/utils/index.js +355 -355
- package/src/utils/interceptor.js +34 -34
- package/src/utils/menu.js +116 -116
- package/src/utils/proapp.js +35 -35
- package/src/utils/query.js +26 -26
- package/src/utils/request.js +366 -366
- package/src/utils/routeMapping.js +39 -39
- package/src/utils/routeMapping.json +310 -310
- package/src/utils/utils.js +84 -84
- package/src/utils/validate.js +102 -102
- package/src/views/404.vue +72 -72
- package/src/views/Layout.vue +106 -106
- package/src/views/imgSwiper/index.vue +34 -34
- package/src/views/layout/Layout.vue +181 -170
- package/src/views/layout/components/AppMain.vue +20 -20
- package/src/views/layout/components/Footer.vue +22 -22
- package/src/views/layout/components/LeftNavbar.vue +318 -310
- package/src/views/layout/components/NavMenu.vue +15 -15
- package/src/views/layout/components/Navbar.vue +664 -661
- package/src/views/layout/components/Sidebar/SidebarItem.vue +116 -113
- package/src/views/layout/components/Sidebar/index.vue +203 -193
- package/src/views/layout/components/index.js +19 -19
- package/src/views/layout/theme/darkBlue/Layout.vue +140 -140
- package/src/views/layout/theme/darkBlue/components/AppMain.vue +38 -38
- package/src/views/layout/theme/darkBlue/components/Footer.vue +147 -147
- package/src/views/layout/theme/darkBlue/components/LeftNavbar(/345/261/225/347/244/272/345/205/250/351/203/250/350/217/234/345/215/225).vue +448 -448
- package/src/views/layout/theme/darkBlue/components/LeftNavbar.3.vue +191 -191
- package/src/views/layout/theme/darkBlue/components/LeftNavbar.vue +466 -466
- package/src/views/layout/theme/darkBlue/components/Navbar.vue +200 -200
- package/src/views/layout/theme/darkBlue/components/Sidebar/SidebarItem.vue +71 -71
- package/src/views/layout/theme/darkBlue/components/Sidebar/index.vue +49 -49
- package/src/views/layout/theme/darkBlue/components/index.js +15 -15
- package/src/views/layout-default/Layout.vue +134 -134
- package/src/views/layout-default/components/AppMain.vue +19 -19
- package/src/views/layout-default/components/Footer.vue +22 -22
- package/src/views/layout-default/components/LeftNavbar.vue +164 -164
- package/src/views/layout-default/components/Navbar.vue +295 -295
- package/src/views/layout-default/components/Sidebar/SidebarItem.vue +67 -67
- package/src/views/layout-default/components/Sidebar/index.vue +59 -59
- package/src/views/layout-default/components/index.js +4 -4
- package/src/views/layout-default/theme/darkBlue/Layout.vue +140 -140
- package/src/views/layout-default/theme/darkBlue/components/AppMain.vue +38 -38
- package/src/views/layout-default/theme/darkBlue/components/Footer.vue +147 -147
- package/src/views/layout-default/theme/darkBlue/components/LeftNavbar.vue +465 -465
- package/src/views/layout-default/theme/darkBlue/components/Navbar.vue +200 -200
- package/src/views/layout-default/theme/darkBlue/components/Sidebar/SidebarItem.vue +69 -69
- package/src/views/layout-default/theme/darkBlue/components/Sidebar/index.vue +49 -49
- package/src/views/layout-default/theme/darkBlue/components/index.js +15 -15
- package/src/views/pc/Internationalization.vue +80 -80
- package/src/views/pc/default/Layout.vue +442 -442
- package/src/views/pc/default/LayoutCard.vue +424 -424
- package/src/views/pc/default/assets/flex.scss +99 -99
- package/src/views/pc/default/footer-modules/DgFooter/index.vue +179 -179
- package/src/views/pc/default/footer-modules/DgFooter/indexSDX.vue +187 -187
- package/src/views/pc/default/footer-modules/footer.vue +171 -171
- package/src/views/pc/default/footer-modules/footerAns.vue +167 -167
- package/src/views/pc/default/footer-modules/footerBulk.vue +169 -169
- package/src/views/pc/default/footer-modules/footerDM.vue +254 -254
- package/src/views/pc/default/footer-modules/footerDefault.vue +267 -267
- package/src/views/pc/default/footer-modules/footerDefaultA.vue +270 -270
- package/src/views/pc/default/footer-modules/footerDefaultNew.vue +201 -201
- package/src/views/pc/default/footer-modules/footerHDB.vue +153 -153
- package/src/views/pc/default/footer-modules/footerHy.vue +63 -63
- package/src/views/pc/default/footer-modules/footerKYW.vue +163 -163
- package/src/views/pc/default/footer-modules/footerMh.vue +30 -30
- package/src/views/pc/default/footer-modules/footerNew.vue +116 -116
- package/src/views/pc/default/footer-modules/footer_yzj.vue +169 -169
- package/src/views/pc/default/footer-modules/footerayd.vue +85 -85
- package/src/views/pc/default/footer-modules/ymFooter.vue +154 -154
- package/src/views/pc/default/footer-modules/zgl.vue +250 -250
- package/src/views/pc/default/header-modules/DgHeader/Logo.vue +57 -57
- package/src/views/pc/default/header-modules/DgHeader/Search.vue +135 -135
- package/src/views/pc/default/header-modules/DgHeader/Settleup.vue +46 -46
- package/src/views/pc/default/header-modules/DgHeader/index.vue +38 -38
- package/src/views/pc/default/header-modules/active.vue +177 -177
- package/src/views/pc/default/header-modules/header.vue +97 -97
- package/src/views/pc/default/header-modules/headerA.vue +142 -142
- package/src/views/pc/default/header-modules/headerFLPT.vue +157 -157
- package/src/views/pc/default/header-modules/headerMh.vue +187 -187
- package/src/views/pc/default/header-modules/headerNew.vue +121 -121
- package/src/views/pc/default/header-modules/headerSDX.vue +304 -304
- package/src/views/pc/default/header-modules/headerStyle2.vue +173 -173
- package/src/views/pc/default/header-modules/headerStyle3.vue +190 -190
- package/src/views/pc/default/header-modules/headerStyle4.vue +163 -163
- package/src/views/pc/default/header-modules/headerStyleAns.vue +400 -400
- package/src/views/pc/default/header-modules/headerStyleBulk.vue +427 -427
- package/src/views/pc/default/header-modules/headerStyleDefalut.vue +209 -209
- package/src/views/pc/default/header-modules/headerStyleKYW.vue +435 -435
- package/src/views/pc/default/header-modules/headerStyle_yzj.vue +427 -427
- package/src/views/pc/default/header-modules/headerayd.vue +187 -187
- package/src/views/pc/default/header-modules/index.vue +466 -466
- package/src/views/pc/default/header-modules/ymHeader.vue +292 -292
- package/src/views/pc/default/header-modules/ysHeader.vue +248 -248
- package/src/views/pc/default/header-modules/zgl.vue +855 -855
- package/src/views/pc/default/leftMenu-modules/leftMenu-logo.vue +194 -194
- package/src/views/pc/default/leftMenu-modules/leftMenu-style2.vue +206 -206
- package/src/views/pc/default/leftMenu-modules/leftMenu-style3.vue +207 -207
- package/src/views/pc/default/leftMenu-modules/leftMenu-style4.vue +192 -192
- package/src/views/pc/default/leftMenu-modules/leftMenu.vue +183 -183
- package/src/views/pc/default/leftMenu-modules/leftMenuDefault.vue +212 -212
- package/src/views/pc/default/leftMenu-modules/leftMenuDefaultEn.vue +214 -214
- package/src/views/pc/default/leftMenu-modules/leftMenuDefaultFLPT.vue +220 -220
- package/src/views/pc/default/leftMenu-modules/leftMenuDefaultayd.vue +220 -220
- package/src/views/pc/default/nav-modules/nav.vue +52 -52
- package/src/views/pc/default/nav-modules/navAns.vue +60 -60
- package/src/views/pc/default/nav-modules/navBulk.vue +60 -60
- package/src/views/pc/default/top-modules/DgTopShortcut/index.vue +177 -177
- package/src/views/pc/default/top-modules/Toplg.vue +280 -280
- package/src/views/pc/default/top-modules/topA.vue +136 -136
- package/src/views/pc/default/top-modules/topAns.vue +261 -261
- package/src/views/pc/default/top-modules/topAns_yzj.vue +282 -282
- package/src/views/pc/default/top-modules/topBar.vue +304 -304
- package/src/views/pc/default/top-modules/topBulk.vue +280 -280
- package/src/views/pc/default/top-modules/topDefault.vue +244 -244
- package/src/views/pc/default/top-modules/topDefaultDM.vue +197 -197
- package/src/views/pc/default/top-modules/topDefaultNew.vue +271 -271
- package/src/views/pc/default/top-modules/topFLPT.vue +197 -197
- package/src/views/pc/default/top-modules/topHDB.vue +479 -479
- package/src/views/pc/default/top-modules/topKYW.vue +258 -258
- package/src/views/pc/default/top-modules/topMh.vue +174 -174
- package/src/views/pc/default/top-modules/topNew.vue +97 -97
- package/src/views/pc/default/top-modules/topSDX.vue +298 -298
- package/src/views/pc/default/top-modules/topSimple.vue +247 -247
- package/src/views/pc/default/top-modules/topSimpleHy.vue +256 -256
- package/src/views/pc/default/top-modules/topUcc.vue +264 -264
- package/src/views/pc/default/top-modules/topayd.vue +170 -170
- package/src/views/pc/default/top-modules/ymTop.vue +299 -299
- package/src/views/pc/default/top-modules/zgltop.vue +499 -499
- package/src/views/routerView.vue +9 -9
- package/src/views/templates/components/temp-select.vue +80 -80
- package/src/views/templates/components/temp-upload.vue +233 -233
- package/src/views/templates/readme.md +2 -2
- package/src/views/templates/templateInput.vue +421 -421
- package/src/views/templates/templateReadme.html +588 -588
- package/src/views/templates/templateReadme.md +619 -619
- package/src/views/templates/templateTable.vue +2243 -2243
- package/src/views/templates/templateTableData.vue +1883 -1883
- package/src/views/templates/templateUi/templateTableContent.vue +187 -187
- package/src/views/treeTemplate/index.vue +559 -559
- package/src/views/treeTemplate/treeTemplate.md +274 -274
- package/src/views/uploadDialog/index copy.vue +352 -352
- package/src/views/uploadDialog/index.vue +558 -558
- package/src/views/uploadDialog/indexOlay.vue +582 -582
- package/src/views/uploadDialog/indexPM.vue +578 -578
- package/src/views/uploadDialog/indexUpload.vue +543 -543
- package/src/views/uploadDialog/readme.md +45 -45
|
@@ -1,67 +1,67 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="menu-wrapper el-menu-custom">
|
|
3
|
-
<template v-for="item in routes[0].children" v-if="!item.hidden&&item.meta">
|
|
4
|
-
<el-submenu v-if="item.children" :index="item.name||item.path" :key="item.name">
|
|
5
|
-
<template slot="title">
|
|
6
|
-
<span v-if="item.meta&&item.meta.title && !item.hidden">{{item.meta.title}}</span>
|
|
7
|
-
</template>
|
|
8
|
-
|
|
9
|
-
<template v-for="child in item.children" v-if="item.children">
|
|
10
|
-
<sidebar-item
|
|
11
|
-
:is-nest="true"
|
|
12
|
-
class="nest-menu"
|
|
13
|
-
v-if="child.children&&child.children.length>0"
|
|
14
|
-
:routes="[child]"
|
|
15
|
-
:key="child.path"
|
|
16
|
-
></sidebar-item>
|
|
17
|
-
|
|
18
|
-
<router-link v-else :to="item.path+'/'+child.path" :key="child.name">
|
|
19
|
-
<el-menu-item :index="item.path+'/'+child.path">
|
|
20
|
-
<span v-if="child.meta&&child.meta.title">{{child.meta.title}}</span>
|
|
21
|
-
</el-menu-item>
|
|
22
|
-
</router-link>
|
|
23
|
-
</template>
|
|
24
|
-
</el-submenu>
|
|
25
|
-
<el-menu-item v-else :index="'/'+ item.path ">
|
|
26
|
-
<router-link :to=" '/'+ item.path " :key="item.path">
|
|
27
|
-
<span v-if="item.meta&&item.meta.title&& !item.hidden">{{item.meta.title}}</span>
|
|
28
|
-
</router-link>
|
|
29
|
-
</el-menu-item>
|
|
30
|
-
</template>
|
|
31
|
-
</div>
|
|
32
|
-
</template>
|
|
33
|
-
|
|
34
|
-
<script>
|
|
35
|
-
export default {
|
|
36
|
-
name: "SidebarItem",
|
|
37
|
-
props: {
|
|
38
|
-
routes: {
|
|
39
|
-
type: Array
|
|
40
|
-
},
|
|
41
|
-
isNest: {
|
|
42
|
-
type: Boolean,
|
|
43
|
-
default: false
|
|
44
|
-
}
|
|
45
|
-
},
|
|
46
|
-
mounted() {
|
|
47
|
-
console.log(this.routes, "=====++++==");
|
|
48
|
-
// this.loadData();
|
|
49
|
-
}
|
|
50
|
-
};
|
|
51
|
-
</script>
|
|
52
|
-
<style rel="stylesheet" scoped>
|
|
53
|
-
.menu-wrapper li.el-menu-item:focus,
|
|
54
|
-
.menu-wrapper li.el-menu-item:hover,
|
|
55
|
-
.menu-wrapper li.el-menu-item.is-active {
|
|
56
|
-
background-color: #fff !important;
|
|
57
|
-
}
|
|
58
|
-
.menu-wrapper li.el-menu-item {
|
|
59
|
-
height: 48px;
|
|
60
|
-
line-height: 44px;
|
|
61
|
-
}
|
|
62
|
-
</style>
|
|
63
|
-
<style>
|
|
64
|
-
.menu-wrapper {
|
|
65
|
-
font-size: 12px !important;
|
|
66
|
-
}
|
|
67
|
-
</style>
|
|
1
|
+
<template>
|
|
2
|
+
<div class="menu-wrapper el-menu-custom">
|
|
3
|
+
<template v-for="item in routes[0].children" v-if="!item.hidden&&item.meta">
|
|
4
|
+
<el-submenu v-if="item.children" :index="item.name||item.path" :key="item.name">
|
|
5
|
+
<template slot="title">
|
|
6
|
+
<span v-if="item.meta&&item.meta.title && !item.hidden">{{item.meta.title}}</span>
|
|
7
|
+
</template>
|
|
8
|
+
|
|
9
|
+
<template v-for="child in item.children" v-if="item.children">
|
|
10
|
+
<sidebar-item
|
|
11
|
+
:is-nest="true"
|
|
12
|
+
class="nest-menu"
|
|
13
|
+
v-if="child.children&&child.children.length>0"
|
|
14
|
+
:routes="[child]"
|
|
15
|
+
:key="child.path"
|
|
16
|
+
></sidebar-item>
|
|
17
|
+
|
|
18
|
+
<router-link v-else :to="item.path+'/'+child.path" :key="child.name">
|
|
19
|
+
<el-menu-item :index="item.path+'/'+child.path">
|
|
20
|
+
<span v-if="child.meta&&child.meta.title">{{child.meta.title}}</span>
|
|
21
|
+
</el-menu-item>
|
|
22
|
+
</router-link>
|
|
23
|
+
</template>
|
|
24
|
+
</el-submenu>
|
|
25
|
+
<el-menu-item v-else :index="'/'+ item.path ">
|
|
26
|
+
<router-link :to=" '/'+ item.path " :key="item.path">
|
|
27
|
+
<span v-if="item.meta&&item.meta.title&& !item.hidden">{{item.meta.title}}</span>
|
|
28
|
+
</router-link>
|
|
29
|
+
</el-menu-item>
|
|
30
|
+
</template>
|
|
31
|
+
</div>
|
|
32
|
+
</template>
|
|
33
|
+
|
|
34
|
+
<script>
|
|
35
|
+
export default {
|
|
36
|
+
name: "SidebarItem",
|
|
37
|
+
props: {
|
|
38
|
+
routes: {
|
|
39
|
+
type: Array
|
|
40
|
+
},
|
|
41
|
+
isNest: {
|
|
42
|
+
type: Boolean,
|
|
43
|
+
default: false
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
mounted() {
|
|
47
|
+
console.log(this.routes, "=====++++==");
|
|
48
|
+
// this.loadData();
|
|
49
|
+
}
|
|
50
|
+
};
|
|
51
|
+
</script>
|
|
52
|
+
<style rel="stylesheet" scoped>
|
|
53
|
+
.menu-wrapper li.el-menu-item:focus,
|
|
54
|
+
.menu-wrapper li.el-menu-item:hover,
|
|
55
|
+
.menu-wrapper li.el-menu-item.is-active {
|
|
56
|
+
background-color: #fff !important;
|
|
57
|
+
}
|
|
58
|
+
.menu-wrapper li.el-menu-item {
|
|
59
|
+
height: 48px;
|
|
60
|
+
line-height: 44px;
|
|
61
|
+
}
|
|
62
|
+
</style>
|
|
63
|
+
<style>
|
|
64
|
+
.menu-wrapper {
|
|
65
|
+
font-size: 12px !important;
|
|
66
|
+
}
|
|
67
|
+
</style>
|
|
@@ -1,59 +1,59 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div style="background:rgb(234, 237, 241)">
|
|
3
|
-
<div class="app-title">{{appList.name}}</div>
|
|
4
|
-
<scroll-bar>
|
|
5
|
-
<el-menu
|
|
6
|
-
mode="vertical"
|
|
7
|
-
class="el-menu-vertical-demo"
|
|
8
|
-
:default-active="$route.path"
|
|
9
|
-
background-color="#eaedf1"
|
|
10
|
-
@select="handleSelect"
|
|
11
|
-
>
|
|
12
|
-
<sidebar-item :routes="routes"></sidebar-item>
|
|
13
|
-
</el-menu>
|
|
14
|
-
</scroll-bar>
|
|
15
|
-
</div>
|
|
16
|
-
</template>
|
|
17
|
-
|
|
18
|
-
<script>
|
|
19
|
-
import { mapGetters } from "vuex";
|
|
20
|
-
import SidebarItem from "./SidebarItem";
|
|
21
|
-
import ScrollBar from "#/components/ScrollBar";
|
|
22
|
-
|
|
23
|
-
export default {
|
|
24
|
-
components: { SidebarItem, ScrollBar },
|
|
25
|
-
methods: {
|
|
26
|
-
handleSelect(key, keyPath) {
|
|
27
|
-
console.log(key, keyPath);
|
|
28
|
-
}
|
|
29
|
-
},
|
|
30
|
-
computed: {
|
|
31
|
-
...mapGetters(["appList"]),
|
|
32
|
-
routes() {
|
|
33
|
-
return this.$router.options.routes;
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
};
|
|
37
|
-
</script>
|
|
38
|
-
<style rel="stylesheet/scss" lang="scss" scoped>
|
|
39
|
-
.sidebar-container {
|
|
40
|
-
}
|
|
41
|
-
.el-menu-vertical-demo {
|
|
42
|
-
padding-top: 48px;
|
|
43
|
-
}
|
|
44
|
-
.app-title {
|
|
45
|
-
height: 47px;
|
|
46
|
-
line-height: 48px;
|
|
47
|
-
text-align: center;
|
|
48
|
-
color: #333;
|
|
49
|
-
font-weight: bold;
|
|
50
|
-
position: absolute;
|
|
51
|
-
width: 100%;
|
|
52
|
-
z-index: 1;
|
|
53
|
-
background: #fff;
|
|
54
|
-
font-size: 14px;
|
|
55
|
-
border-bottom: solid 1px #e5e5e5;
|
|
56
|
-
background: #f3f3f3;
|
|
57
|
-
}
|
|
58
|
-
</style>
|
|
59
|
-
|
|
1
|
+
<template>
|
|
2
|
+
<div style="background:rgb(234, 237, 241)">
|
|
3
|
+
<div class="app-title">{{appList.name}}</div>
|
|
4
|
+
<scroll-bar>
|
|
5
|
+
<el-menu
|
|
6
|
+
mode="vertical"
|
|
7
|
+
class="el-menu-vertical-demo"
|
|
8
|
+
:default-active="$route.path"
|
|
9
|
+
background-color="#eaedf1"
|
|
10
|
+
@select="handleSelect"
|
|
11
|
+
>
|
|
12
|
+
<sidebar-item :routes="routes"></sidebar-item>
|
|
13
|
+
</el-menu>
|
|
14
|
+
</scroll-bar>
|
|
15
|
+
</div>
|
|
16
|
+
</template>
|
|
17
|
+
|
|
18
|
+
<script>
|
|
19
|
+
import { mapGetters } from "vuex";
|
|
20
|
+
import SidebarItem from "./SidebarItem";
|
|
21
|
+
import ScrollBar from "#/components/ScrollBar";
|
|
22
|
+
|
|
23
|
+
export default {
|
|
24
|
+
components: { SidebarItem, ScrollBar },
|
|
25
|
+
methods: {
|
|
26
|
+
handleSelect(key, keyPath) {
|
|
27
|
+
console.log(key, keyPath);
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
computed: {
|
|
31
|
+
...mapGetters(["appList"]),
|
|
32
|
+
routes() {
|
|
33
|
+
return this.$router.options.routes;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
};
|
|
37
|
+
</script>
|
|
38
|
+
<style rel="stylesheet/scss" lang="scss" scoped>
|
|
39
|
+
.sidebar-container {
|
|
40
|
+
}
|
|
41
|
+
.el-menu-vertical-demo {
|
|
42
|
+
padding-top: 48px;
|
|
43
|
+
}
|
|
44
|
+
.app-title {
|
|
45
|
+
height: 47px;
|
|
46
|
+
line-height: 48px;
|
|
47
|
+
text-align: center;
|
|
48
|
+
color: #333;
|
|
49
|
+
font-weight: bold;
|
|
50
|
+
position: absolute;
|
|
51
|
+
width: 100%;
|
|
52
|
+
z-index: 1;
|
|
53
|
+
background: #fff;
|
|
54
|
+
font-size: 14px;
|
|
55
|
+
border-bottom: solid 1px #e5e5e5;
|
|
56
|
+
background: #f3f3f3;
|
|
57
|
+
}
|
|
58
|
+
</style>
|
|
59
|
+
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { default as Navbar } from './Navbar'
|
|
2
|
-
export { default as Sidebar } from './Sidebar'
|
|
3
|
-
export { default as AppMain } from './AppMain'
|
|
4
|
-
export { default as AppFooter } from './Footer'
|
|
1
|
+
export { default as Navbar } from './Navbar'
|
|
2
|
+
export { default as Sidebar } from './Sidebar'
|
|
3
|
+
export { default as AppMain } from './AppMain'
|
|
4
|
+
export { default as AppFooter } from './Footer'
|
|
@@ -1,140 +1,140 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div style="background:#ebeff2" :class="[customColor]">
|
|
3
|
-
<navbar></navbar>
|
|
4
|
-
<el-container class="theme-main-center">
|
|
5
|
-
<left-nav @toggle="toggleCollapse"></left-nav>
|
|
6
|
-
<el-container>
|
|
7
|
-
<app-main></app-main>
|
|
8
|
-
</el-container>
|
|
9
|
-
</el-container>
|
|
10
|
-
<app-footer></app-footer>
|
|
11
|
-
</div>
|
|
12
|
-
</template>
|
|
13
|
-
|
|
14
|
-
<script>
|
|
15
|
-
import "#/iconShop/iconfont.css";
|
|
16
|
-
import { mapGetters } from "vuex";
|
|
17
|
-
import LeftNav from "./components/LeftNavbar";
|
|
18
|
-
import { Navbar, Sidebar, AppMain, AppFooter } from "./components";
|
|
19
|
-
import Breadcrumb from "#/components/Breadcrumb";
|
|
20
|
-
|
|
21
|
-
export default {
|
|
22
|
-
name: "layout",
|
|
23
|
-
components: {
|
|
24
|
-
Navbar,
|
|
25
|
-
Sidebar,
|
|
26
|
-
AppMain,
|
|
27
|
-
AppFooter,
|
|
28
|
-
LeftNav,
|
|
29
|
-
Breadcrumb
|
|
30
|
-
},
|
|
31
|
-
data() {
|
|
32
|
-
return {
|
|
33
|
-
isIndex: false,
|
|
34
|
-
isCollapse: false,
|
|
35
|
-
height: "auto",
|
|
36
|
-
customColor: "custom-2c4158"
|
|
37
|
-
};
|
|
38
|
-
},
|
|
39
|
-
computed: {
|
|
40
|
-
...mapGetters(["sidebar"])
|
|
41
|
-
},
|
|
42
|
-
mounted() {
|
|
43
|
-
if (process.env.APP_PATH === "index") {
|
|
44
|
-
if (!this.sidebar.opened) {
|
|
45
|
-
this.$store.dispatch("ToggleSideBar");
|
|
46
|
-
}
|
|
47
|
-
this.isIndex = true;
|
|
48
|
-
}
|
|
49
|
-
window.addEventListener("resize", this.heightChange);
|
|
50
|
-
this.$store.dispatch("GetInfo");
|
|
51
|
-
},
|
|
52
|
-
methods: {
|
|
53
|
-
toggleSideBar() {
|
|
54
|
-
this.$store.dispatch("ToggleSideBar");
|
|
55
|
-
},
|
|
56
|
-
heightChange(val) {
|
|
57
|
-
this.height = document.documentElement.clientHeight - 58 - 40;
|
|
58
|
-
},
|
|
59
|
-
toggleCollapse(val) {
|
|
60
|
-
this.isCollapse = val;
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
};
|
|
64
|
-
</script>
|
|
65
|
-
|
|
66
|
-
<style rel="stylesheet/scss" lang="scss" scoped>
|
|
67
|
-
@import "~#/styles/mixin.scss";
|
|
68
|
-
.theme-main-center {
|
|
69
|
-
max-width: 1200px;
|
|
70
|
-
width: 100%;
|
|
71
|
-
margin: 0 auto;
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
.app-main {
|
|
75
|
-
min-height: inherit;
|
|
76
|
-
background: inherit !important;
|
|
77
|
-
}
|
|
78
|
-
</style>
|
|
79
|
-
<style rel="stylesheet/scss" lang="scss">
|
|
80
|
-
@import "~#/styles/wf-ui.scss";
|
|
81
|
-
/* .btn-inner{float: right;width: 78px;height:30px;font-size: 12px;margin: 8px;line-height: 6px;}
|
|
82
|
-
.btn-outer{width:84px;height:38px;font-size: 14px;}
|
|
83
|
-
.btn-del{background-color: rgb(229, 98, 34);}
|
|
84
|
-
.last-table{border-right: 2px solid #eee;}*/
|
|
85
|
-
//盒模型
|
|
86
|
-
html,
|
|
87
|
-
body,
|
|
88
|
-
#app {
|
|
89
|
-
height: 100%;
|
|
90
|
-
overflow: auto;
|
|
91
|
-
}
|
|
92
|
-
body {
|
|
93
|
-
font-family: MicrosoftYaHei;
|
|
94
|
-
}
|
|
95
|
-
.t-box {
|
|
96
|
-
display: flex;
|
|
97
|
-
}
|
|
98
|
-
.t-box-flex1 {
|
|
99
|
-
-moz-box-flex: 1;
|
|
100
|
-
-webkit-box-flex: 1;
|
|
101
|
-
box-flex: 1;
|
|
102
|
-
width:auto
|
|
103
|
-
}
|
|
104
|
-
.t-box-flex2 {
|
|
105
|
-
-moz-box-flex: 2;
|
|
106
|
-
-webkit-box-flex: 2;
|
|
107
|
-
box-flex: 2;
|
|
108
|
-
width: auto;
|
|
109
|
-
}
|
|
110
|
-
.t-box-flex3 {
|
|
111
|
-
-moz-box-flex: 3;
|
|
112
|
-
-webkit-box-flex: 3;
|
|
113
|
-
box-flex: 3;
|
|
114
|
-
width: auto;
|
|
115
|
-
}
|
|
116
|
-
.t-box-center {
|
|
117
|
-
box-align: center;
|
|
118
|
-
}
|
|
119
|
-
.t-center {
|
|
120
|
-
text-align: center;
|
|
121
|
-
}
|
|
122
|
-
.t-right {
|
|
123
|
-
text-align: right;
|
|
124
|
-
}
|
|
125
|
-
.vertical-horizontal {
|
|
126
|
-
display: flex;
|
|
127
|
-
align-items: center;
|
|
128
|
-
justify-content: center;
|
|
129
|
-
}
|
|
130
|
-
.vertical {
|
|
131
|
-
display: flex;
|
|
132
|
-
align-items: center;
|
|
133
|
-
}
|
|
134
|
-
.w1200 {
|
|
135
|
-
width: 1200px;
|
|
136
|
-
}
|
|
137
|
-
.m0a {
|
|
138
|
-
margin: 0 auto;
|
|
139
|
-
}
|
|
140
|
-
</style>
|
|
1
|
+
<template>
|
|
2
|
+
<div style="background:#ebeff2" :class="[customColor]">
|
|
3
|
+
<navbar></navbar>
|
|
4
|
+
<el-container class="theme-main-center">
|
|
5
|
+
<left-nav @toggle="toggleCollapse"></left-nav>
|
|
6
|
+
<el-container>
|
|
7
|
+
<app-main></app-main>
|
|
8
|
+
</el-container>
|
|
9
|
+
</el-container>
|
|
10
|
+
<app-footer></app-footer>
|
|
11
|
+
</div>
|
|
12
|
+
</template>
|
|
13
|
+
|
|
14
|
+
<script>
|
|
15
|
+
import "#/iconShop/iconfont.css";
|
|
16
|
+
import { mapGetters } from "vuex";
|
|
17
|
+
import LeftNav from "./components/LeftNavbar";
|
|
18
|
+
import { Navbar, Sidebar, AppMain, AppFooter } from "./components";
|
|
19
|
+
import Breadcrumb from "#/components/Breadcrumb";
|
|
20
|
+
|
|
21
|
+
export default {
|
|
22
|
+
name: "layout",
|
|
23
|
+
components: {
|
|
24
|
+
Navbar,
|
|
25
|
+
Sidebar,
|
|
26
|
+
AppMain,
|
|
27
|
+
AppFooter,
|
|
28
|
+
LeftNav,
|
|
29
|
+
Breadcrumb
|
|
30
|
+
},
|
|
31
|
+
data() {
|
|
32
|
+
return {
|
|
33
|
+
isIndex: false,
|
|
34
|
+
isCollapse: false,
|
|
35
|
+
height: "auto",
|
|
36
|
+
customColor: "custom-2c4158"
|
|
37
|
+
};
|
|
38
|
+
},
|
|
39
|
+
computed: {
|
|
40
|
+
...mapGetters(["sidebar"])
|
|
41
|
+
},
|
|
42
|
+
mounted() {
|
|
43
|
+
if (process.env.APP_PATH === "index") {
|
|
44
|
+
if (!this.sidebar.opened) {
|
|
45
|
+
this.$store.dispatch("ToggleSideBar");
|
|
46
|
+
}
|
|
47
|
+
this.isIndex = true;
|
|
48
|
+
}
|
|
49
|
+
window.addEventListener("resize", this.heightChange);
|
|
50
|
+
this.$store.dispatch("GetInfo");
|
|
51
|
+
},
|
|
52
|
+
methods: {
|
|
53
|
+
toggleSideBar() {
|
|
54
|
+
this.$store.dispatch("ToggleSideBar");
|
|
55
|
+
},
|
|
56
|
+
heightChange(val) {
|
|
57
|
+
this.height = document.documentElement.clientHeight - 58 - 40;
|
|
58
|
+
},
|
|
59
|
+
toggleCollapse(val) {
|
|
60
|
+
this.isCollapse = val;
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
};
|
|
64
|
+
</script>
|
|
65
|
+
|
|
66
|
+
<style rel="stylesheet/scss" lang="scss" scoped>
|
|
67
|
+
@import "~#/styles/mixin.scss";
|
|
68
|
+
.theme-main-center {
|
|
69
|
+
max-width: 1200px;
|
|
70
|
+
width: 100%;
|
|
71
|
+
margin: 0 auto;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.app-main {
|
|
75
|
+
min-height: inherit;
|
|
76
|
+
background: inherit !important;
|
|
77
|
+
}
|
|
78
|
+
</style>
|
|
79
|
+
<style rel="stylesheet/scss" lang="scss">
|
|
80
|
+
@import "~#/styles/wf-ui.scss";
|
|
81
|
+
/* .btn-inner{float: right;width: 78px;height:30px;font-size: 12px;margin: 8px;line-height: 6px;}
|
|
82
|
+
.btn-outer{width:84px;height:38px;font-size: 14px;}
|
|
83
|
+
.btn-del{background-color: rgb(229, 98, 34);}
|
|
84
|
+
.last-table{border-right: 2px solid #eee;}*/
|
|
85
|
+
//盒模型
|
|
86
|
+
html,
|
|
87
|
+
body,
|
|
88
|
+
#app {
|
|
89
|
+
height: 100%;
|
|
90
|
+
overflow: auto;
|
|
91
|
+
}
|
|
92
|
+
body {
|
|
93
|
+
font-family: MicrosoftYaHei;
|
|
94
|
+
}
|
|
95
|
+
.t-box {
|
|
96
|
+
display: flex;
|
|
97
|
+
}
|
|
98
|
+
.t-box-flex1 {
|
|
99
|
+
-moz-box-flex: 1;
|
|
100
|
+
-webkit-box-flex: 1;
|
|
101
|
+
box-flex: 1;
|
|
102
|
+
width:auto
|
|
103
|
+
}
|
|
104
|
+
.t-box-flex2 {
|
|
105
|
+
-moz-box-flex: 2;
|
|
106
|
+
-webkit-box-flex: 2;
|
|
107
|
+
box-flex: 2;
|
|
108
|
+
width: auto;
|
|
109
|
+
}
|
|
110
|
+
.t-box-flex3 {
|
|
111
|
+
-moz-box-flex: 3;
|
|
112
|
+
-webkit-box-flex: 3;
|
|
113
|
+
box-flex: 3;
|
|
114
|
+
width: auto;
|
|
115
|
+
}
|
|
116
|
+
.t-box-center {
|
|
117
|
+
box-align: center;
|
|
118
|
+
}
|
|
119
|
+
.t-center {
|
|
120
|
+
text-align: center;
|
|
121
|
+
}
|
|
122
|
+
.t-right {
|
|
123
|
+
text-align: right;
|
|
124
|
+
}
|
|
125
|
+
.vertical-horizontal {
|
|
126
|
+
display: flex;
|
|
127
|
+
align-items: center;
|
|
128
|
+
justify-content: center;
|
|
129
|
+
}
|
|
130
|
+
.vertical {
|
|
131
|
+
display: flex;
|
|
132
|
+
align-items: center;
|
|
133
|
+
}
|
|
134
|
+
.w1200 {
|
|
135
|
+
width: 1200px;
|
|
136
|
+
}
|
|
137
|
+
.m0a {
|
|
138
|
+
margin: 0 auto;
|
|
139
|
+
}
|
|
140
|
+
</style>
|
|
@@ -1,38 +1,38 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<section class="app-main">
|
|
3
|
-
<el-container class="top-position">当前位置:<breadcrumb></breadcrumb></el-container>
|
|
4
|
-
<transition name="fade" mode="out-in">
|
|
5
|
-
<router-view></router-view>
|
|
6
|
-
</transition>
|
|
7
|
-
</section>
|
|
8
|
-
</template>
|
|
9
|
-
|
|
10
|
-
<script>
|
|
11
|
-
import Breadcrumb from "#/components/Breadcrumb";
|
|
12
|
-
export default {
|
|
13
|
-
components: {
|
|
14
|
-
Breadcrumb
|
|
15
|
-
},
|
|
16
|
-
name: "AppMain",
|
|
17
|
-
computed: {
|
|
18
|
-
// key() {
|
|
19
|
-
// return this.$route.name !== undefined ? this.$route.name + +new Date() : this.$route + +new Date()
|
|
20
|
-
// }
|
|
21
|
-
}
|
|
22
|
-
};
|
|
23
|
-
</script>
|
|
24
|
-
<style scoped>
|
|
25
|
-
.app-main {
|
|
26
|
-
width: 100%;
|
|
27
|
-
}
|
|
28
|
-
.top-position {
|
|
29
|
-
height: 60px;
|
|
30
|
-
line-height: 60px;
|
|
31
|
-
background: #fff;
|
|
32
|
-
font-size: 14px;
|
|
33
|
-
color: #666;
|
|
34
|
-
padding-left: 35px;
|
|
35
|
-
margin-bottom: 10px;
|
|
36
|
-
}
|
|
37
|
-
</style>
|
|
38
|
-
|
|
1
|
+
<template>
|
|
2
|
+
<section class="app-main">
|
|
3
|
+
<el-container class="top-position">当前位置:<breadcrumb></breadcrumb></el-container>
|
|
4
|
+
<transition name="fade" mode="out-in">
|
|
5
|
+
<router-view></router-view>
|
|
6
|
+
</transition>
|
|
7
|
+
</section>
|
|
8
|
+
</template>
|
|
9
|
+
|
|
10
|
+
<script>
|
|
11
|
+
import Breadcrumb from "#/components/Breadcrumb";
|
|
12
|
+
export default {
|
|
13
|
+
components: {
|
|
14
|
+
Breadcrumb
|
|
15
|
+
},
|
|
16
|
+
name: "AppMain",
|
|
17
|
+
computed: {
|
|
18
|
+
// key() {
|
|
19
|
+
// return this.$route.name !== undefined ? this.$route.name + +new Date() : this.$route + +new Date()
|
|
20
|
+
// }
|
|
21
|
+
}
|
|
22
|
+
};
|
|
23
|
+
</script>
|
|
24
|
+
<style scoped>
|
|
25
|
+
.app-main {
|
|
26
|
+
width: 100%;
|
|
27
|
+
}
|
|
28
|
+
.top-position {
|
|
29
|
+
height: 60px;
|
|
30
|
+
line-height: 60px;
|
|
31
|
+
background: #fff;
|
|
32
|
+
font-size: 14px;
|
|
33
|
+
color: #666;
|
|
34
|
+
padding-left: 35px;
|
|
35
|
+
margin-bottom: 10px;
|
|
36
|
+
}
|
|
37
|
+
</style>
|
|
38
|
+
|