Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
dcxy-manage-shell
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
姜雷
dcxy-manage-shell
Commits
02322dea
Commit
02322dea
authored
May 10, 2019
by
姜雷
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'develop' into 'test'
Develop See merge request
!103
parents
690e02f7
9ae290f4
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
20 additions
and
20 deletions
+20
-20
.env
.env
+1
-0
index.html
public/index.html
+10
-10
index.vue
src/containers/login/index.vue
+7
-8
main.js
src/lib/main.js
+1
-1
main.js
src/main.js
+1
-1
No files found.
.env
View file @
02322dea
VUE_APP_BASE_URL=/
VUE_APP_BASE_URL=/
VUE_APP_DEV_LIB_URL=
VUE_APP_CUSTOMER_MENU_CODE=0001
VUE_APP_CUSTOMER_MENU_CODE=0001
VUE_APP_BASE_MENU_CODE=0002
VUE_APP_BASE_MENU_CODE=0002
VUE_APP_SYSTEM_MENU_CODE=0003
VUE_APP_SYSTEM_MENU_CODE=0003
...
...
public/index.html
View file @
02322dea
...
@@ -9,16 +9,7 @@
...
@@ -9,16 +9,7 @@
<script
src=
"https://unpkg.com/vue@2.6.10/dist/vue.js"
></script>
<script
src=
"https://unpkg.com/vue@2.6.10/dist/vue.js"
></script>
<script
src=
"https://unpkg.com/vuex@3.1.0/dist/vuex.js"
></script>
<script
src=
"https://unpkg.com/vuex@3.1.0/dist/vuex.js"
></script>
<script
src=
"https://unpkg.com/vue-router@3.0.1/dist/vue-router.js"
></script>
<script
src=
"https://unpkg.com/vue-router@3.0.1/dist/vue-router.js"
></script>
<script
src=
"/lib/manageShell.umd.min.js"
></script>
<link
rel=
"stylesheet"
href=
"<%= VUE_APP_DEV_LIB_URL %>/lib/manageShell.css"
/>
<script
src=
"<%= VUE_APP_SUBSYSTEM %>/customerManage/lib/customerManage.umd.min.js"
></script>
<script
src=
"<%= VUE_APP_SUBSYSTEM %>/baseManage/lib/baseManage.umd.min.js"
></script>
<script
src=
"<%= VUE_APP_SUBSYSTEM %>/systemManage/lib/systemManage.umd.min.js"
></script>
<script
src=
"<%= VUE_APP_SUBSYSTEM %>/operateManage/lib/operateManage.umd.min.js"
></script>
<script
src=
"<%= VUE_APP_SUBSYSTEM %>/statisticsManage/lib/statisticsManage.umd.min.js"
></script>
<script
src=
"<%= VUE_APP_SUBSYSTEM %>/deviceManage/lib/deviceManage.umd.min.js"
></script>
<script
src=
"<%= VUE_APP_SUBSYSTEM %>/smaproManage/lib/smaproManage.umd.min.js"
></script>
<link
rel=
"stylesheet"
href=
"/lib/manageShell.css"
/>
<title>
多彩综合管理系统
</title>
<title>
多彩综合管理系统
</title>
</head>
</head>
...
@@ -30,6 +21,15 @@
...
@@ -30,6 +21,15 @@
<div
id=
"app"
></div>
<div
id=
"app"
></div>
<script
src=
"https://webapi.amap.com/maps?v=1.4.12&key=dd6103c90f2f17310a8711f2d330a0a6"
></script>
<script
src=
"https://webapi.amap.com/maps?v=1.4.12&key=dd6103c90f2f17310a8711f2d330a0a6"
></script>
<script
src=
"https://webapi.amap.com/ui/1.0/main.js?v=1.0.11"
></script>
<script
src=
"https://webapi.amap.com/ui/1.0/main.js?v=1.0.11"
></script>
<script
src=
"<%= VUE_APP_DEV_LIB_URL %>/lib/manageShell.umd.min.js"
></script>
<script
src=
"<%= VUE_APP_SUBSYSTEM %>/customerManage/lib/customerManage.umd.min.js"
></script>
<script
src=
"<%= VUE_APP_SUBSYSTEM %>/baseManage/lib/baseManage.umd.min.js"
></script>
<script
src=
"<%= VUE_APP_SUBSYSTEM %>/systemManage/lib/systemManage.umd.min.js"
></script>
<script
src=
"<%= VUE_APP_SUBSYSTEM %>/operateManage/lib/operateManage.umd.min.js"
></script>
<script
src=
"<%= VUE_APP_SUBSYSTEM %>/statisticsManage/lib/statisticsManage.umd.min.js"
></script>
<script
src=
"<%= VUE_APP_SUBSYSTEM %>/deviceManage/lib/deviceManage.umd.min.js"
></script>
<script
src=
"<%= VUE_APP_SUBSYSTEM %>/smaproManage/lib/smaproManage.umd.min.js"
></script>
<!-- built files will be auto injected -->
<!-- built files will be auto injected -->
</body>
</body>
...
...
src/containers/login/index.vue
View file @
02322dea
...
@@ -148,15 +148,14 @@ export default {
...
@@ -148,15 +148,14 @@ export default {
console
.
log
(
'login done'
);
console
.
log
(
'login done'
);
this
.
loading
=
false
;
this
.
loading
=
false
;
if
(
let
dashboardPage
=
userRoles
.
find
(
userRoles
.
find
(
item
=>
item
.
menuCode
===
process
.
env
.
VUE_APP_DASHBOARD_CODE
item
=>
item
.
menuCode
===
process
.
env
.
VUE_APP_DASHBOARD_CODE
);
)
&&
if
(
dashboardPage
&&
this
.
$router
.
options
.
base
===
'/'
)
{
this
.
$router
.
options
.
base
===
'/'
window
.
location
.
href
=
)
{
location
.
origin
+
'/'
+
dashboardPage
.
menuLink
;
this
.
$router
.
push
({
name
:
'dashboard'
});
}
else
{
}
else
{
this
.
$router
.
push
({
path
:
'/'
})
;
window
.
location
.
href
=
location
.
origin
;
}
}
})
})
.
catch
(
err
=>
{
.
catch
(
err
=>
{
...
...
src/lib/main.js
View file @
02322dea
...
@@ -23,6 +23,7 @@ class SystemShell {
...
@@ -23,6 +23,7 @@ class SystemShell {
this
.
storeModule
=
storeModule
;
this
.
storeModule
=
storeModule
;
this
.
mixinModule
=
mixinModule
;
this
.
mixinModule
=
mixinModule
;
this
.
utils
=
utilsModule
;
this
.
utils
=
utilsModule
;
this
.
createBaseFetch
=
createBaseFetch
;
}
}
createSystem
=
({
createSystem
=
({
basePath
=
'/'
,
basePath
=
'/'
,
...
@@ -71,6 +72,5 @@ class SystemShell {
...
@@ -71,6 +72,5 @@ class SystemShell {
});
});
return
app
;
return
app
;
};
};
createBaseFetch
=
createBaseFetch
;
}
}
export
default
new
SystemShell
();
export
default
new
SystemShell
();
src/main.js
View file @
02322dea
...
@@ -21,7 +21,7 @@ routeNameList.map(name => {
...
@@ -21,7 +21,7 @@ routeNameList.map(name => {
const
System
=
manageShell
.
default
;
const
System
=
manageShell
.
default
;
System
.
createSystem
({
export
default
System
.
createSystem
({
basePath
:
process
.
env
.
VUE_APP_BASE_URL
,
basePath
:
process
.
env
.
VUE_APP_BASE_URL
,
routers
:
allAasyncRouterMap
,
routers
:
allAasyncRouterMap
,
routeFilter
:
(
routes
,
allRoute
)
=>
{
routeFilter
:
(
routes
,
allRoute
)
=>
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment