Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
卡
卡车调度系统
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
caicaicai
卡车调度系统
Commits
e629ab40
Commit
e629ab40
authored
Aug 18, 2022
by
xxx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
33de5778
Changes
16
Hide whitespace changes
Inline
Side-by-side
Showing
16 changed files
with
16 additions
and
78 deletions
+16
-78
.env.development
.env.development
+3
-3
#logo.png
src/assets/images/#logo.png
+0
-0
examplePic12.png
src/assets/images/cutGraph/examplePic12.png
+0
-0
wallhaven-4x3j3l.jpg
src/assets/images/cutGraph/wallhaven-4x3j3l.jpg
+0
-0
top.png
src/assets/images/layout/top.png
+0
-0
top_daping.png
src/assets/images/layout/top_daping.png
+0
-0
leifeng.png
src/assets/images/leifeng.png
+0
-0
login_bg.png
src/assets/images/login_bg.png
+0
-0
logo1.png
src/assets/images/logo1.png
+0
-0
logo3.png
src/assets/images/logo3.png
+0
-0
zhiwu.png
src/assets/images/zhiwu.png
+0
-0
index.js
src/router/index.js
+1
-1
routers.js
src/router/routers.js
+8
-14
index.vue
src/views/MLargeScreen/index.vue
+0
-2
login.vue
src/views/login.vue
+4
-5
selectSystem.vue
src/views/selectSystem.vue
+0
-53
No files found.
.env.development
View file @
e629ab40
...
@@ -2,10 +2,10 @@ ENV = 'development'
...
@@ -2,10 +2,10 @@ ENV = 'development'
# 接口地址
# 接口地址
#VUE_APP_BASE_API = 'http://localhost:8000'
#VUE_APP_BASE_API = 'http://localhost:8000'
VUE_APP_BASE_API = 'http://
192.168.0.108:8001
'
VUE_APP_BASE_API = 'http://
8.143.203.103:9090
'
VUE_APP_WS_API = 'ws://8.143.203.103:9090/webSocket'
VUE_APP_WS_API = 'ws://8.143.203.103:9090/webSocket'
VUE_APP_LOCAL_API = 'http://
192.168.0.108:8001
'
VUE_APP_LOCAL_API = 'http://
8.143.203.103:9090
'
VUE_APP_LOCAL_API2 = 'http://
192.168.0.108:8001
'
VUE_APP_LOCAL_API2 = 'http://
8.143.203.103:9090
'
# 是否启用 babel-plugin-dynamic-import-node插件
# 是否启用 babel-plugin-dynamic-import-node插件
VUE_CLI_BABEL_TRANSPILE_MODULES = true
VUE_CLI_BABEL_TRANSPILE_MODULES = true
src/assets/images/#logo.png
deleted
100644 → 0
View file @
33de5778
6.52 KB
src/assets/images/cutGraph/examplePic12.png
deleted
100644 → 0
View file @
33de5778
This diff is collapsed.
Click to expand it.
src/assets/images/cutGraph/wallhaven-4x3j3l.jpg
deleted
100644 → 0
View file @
33de5778
508 KB
src/assets/images/layout/top.png
deleted
100644 → 0
View file @
33de5778
14.6 KB
src/assets/images/layout/top_daping.png
deleted
100644 → 0
View file @
33de5778
14.6 KB
src/assets/images/leifeng.png
deleted
100644 → 0
View file @
33de5778
199 KB
src/assets/images/login_bg.png
deleted
100644 → 0
View file @
33de5778
459 KB
src/assets/images/logo1.png
deleted
100644 → 0
View file @
33de5778
7.49 KB
src/assets/images/logo3.png
deleted
100644 → 0
View file @
33de5778
3.9 KB
src/assets/images/zhiwu.png
deleted
100644 → 0
View file @
33de5778
102 KB
src/router/index.js
View file @
e629ab40
...
@@ -9,7 +9,7 @@ import { filterAsyncRouter } from '@/store/modules/permission'
...
@@ -9,7 +9,7 @@ import { filterAsyncRouter } from '@/store/modules/permission'
NProgress
.
configure
({
showSpinner
:
false
})
// NProgress Configuration
NProgress
.
configure
({
showSpinner
:
false
})
// NProgress Configuration
const
whiteList
=
[
'
/login
'
,
'
/register
'
,
'
/selectSystem
'
]
// no redirect whitelist
const
whiteList
=
[
'
/login
'
,
'
/register
'
]
// no redirect whitelist
router
.
beforeEach
((
to
,
from
,
next
)
=>
{
router
.
beforeEach
((
to
,
from
,
next
)
=>
{
if
(
to
.
meta
.
title
)
{
if
(
to
.
meta
.
title
)
{
...
...
src/router/routers.js
View file @
e629ab40
...
@@ -6,12 +6,6 @@ import HomeLayout from "../layout/home";
...
@@ -6,12 +6,6 @@ import HomeLayout from "../layout/home";
Vue
.
use
(
Router
);
Vue
.
use
(
Router
);
export
const
constantRouterMap
=
[
export
const
constantRouterMap
=
[
{
path
:
"
/selectSystem
"
,
meta
:
{
title
:
"
选择系统
"
,
noCache
:
true
},
component
:
resolve
=>
require
([
"
@/views/selectSystem
"
],
resolve
),
hidden
:
true
},
{
{
path
:
"
/login
"
,
path
:
"
/login
"
,
meta
:
{
title
:
"
登录
"
,
noCache
:
true
},
meta
:
{
title
:
"
登录
"
,
noCache
:
true
},
...
@@ -53,16 +47,16 @@ export const constantRouterMap = [
...
@@ -53,16 +47,16 @@ export const constantRouterMap = [
children
:
[
children
:
[
{
{
path
:
"
dashboard
"
,
path
:
"
dashboard
"
,
//component: (resolve) => require(['@/views/hom
e'], resolve),
component
:
(
resolve
)
=>
require
([
'
@/views/home_manag
e
'
],
resolve
),
name
:
"
Dashboard
"
,
name
:
"
Dashboard
"
,
meta
:
{
title
:
"
首页
"
,
icon
:
"
index
"
,
affix
:
true
,
noCache
:
true
},
meta
:
{
title
:
"
首页
"
,
icon
:
"
index
"
,
affix
:
true
,
noCache
:
true
},
component
:
()
=>
{
//
component: () => {
if
(
Vue
.
$state
.
state
.
user
.
user
.
username
===
"
admin
"
)
{
//
if (Vue.$state.state.user.user.username === "admin") {
return
import
(
"
@/views/home_manage
"
);
//
return import("@/views/home_manage");
}
else
{
//
} else {
return
import
(
"
@/views/home_user
"
);
//
return import("@/views/home_user");
}
//
}
},
//
},
hidden
:
true
hidden
:
true
}
}
]
]
...
...
src/views/MLargeScreen/index.vue
View file @
e629ab40
...
@@ -341,8 +341,6 @@ export default {
...
@@ -341,8 +341,6 @@ export default {
width
:
100vw
;
width
:
100vw
;
height
:
100vh
;
height
:
100vh
;
overflow
:
hidden
;
overflow
:
hidden
;
/* background:no-repeat center center url('~@/assets/images/cutGraph/wallhaven-4x3j3l.jpg');
background-size:100% 100%; */
}
}
.top_title
{
.top_title
{
width
:
100%
;
width
:
100%
;
...
...
src/views/login.vue
View file @
e629ab40
...
@@ -29,10 +29,9 @@
...
@@ -29,10 +29,9 @@
<div
style=
"flex:1;"
>
<div
style=
"flex:1;"
>
<el-checkbox
v-model=
"loginForm.rememberMe"
style=
"margin:0 0 25px 0;"
>
记住我
</el-checkbox>
<el-checkbox
v-model=
"loginForm.rememberMe"
style=
"margin:0 0 25px 0;"
>
记住我
</el-checkbox>
</div>
</div>
<div
style=
"flex:1;text-align:right;color:#01d6fe;"
>
<!--
<div
style=
"flex:1;text-align:right;color:#01d6fe;"
>
<!--
<a
href=
"/register"
>
去注册
</a>
-->
<router-link
:to=
"
{path:'/register'}">去注册
</router-link>
<router-link
:to=
"
{path:'/register'}">去注册
</router-link>
</div>
</div>
-->
</div>
</div>
<el-form-item
style=
"width:100%;"
>
<el-form-item
style=
"width:100%;"
>
<el-button
:loading=
"loading"
size=
"medium"
type=
"primary"
style=
"width:100%;"
@
click.native.prevent=
"handleLogin"
>
<el-button
:loading=
"loading"
size=
"medium"
type=
"primary"
style=
"width:100%;"
@
click.native.prevent=
"handleLogin"
>
...
@@ -154,8 +153,8 @@ export default {
...
@@ -154,8 +153,8 @@ export default {
Cookies
.
remove
(
'
rememberMe
'
)
Cookies
.
remove
(
'
rememberMe
'
)
}
}
this
.
$store
.
dispatch
(
'
Login
'
,
user
).
then
((
res
)
=>
{
this
.
$store
.
dispatch
(
'
Login
'
,
user
).
then
((
res
)
=>
{
this
.
loading
=
false
this
.
loading
=
false
;
this
.
$router
.
push
({
path
:
this
.
redirect
||
'
/
'
})
this
.
$router
.
push
({
path
:
this
.
redirect
||
'
/
MLargeScreen/index
'
})
}).
catch
((
err
)
=>
{
}).
catch
((
err
)
=>
{
this
.
loading
=
false
this
.
loading
=
false
console
.
log
(
err
);
console
.
log
(
err
);
...
...
src/views/selectSystem.vue
deleted
100644 → 0
View file @
33de5778
<
template
>
<div
class=
"mainView"
>
<div
class=
"selectBox"
>
<a
href=
"http://www.wheccloud.com/login?redirect=%2Fdashboard"
style=
'text-decoration:none;'
>
<div
class=
"selectChild selectChild1"
></div>
</a>
<router-link
to=
'/login?redirect=%2Fdashboard'
>
<div
class=
"selectChild selectChild2"
></div>
</router-link>
<!--
<a
href=
"http://www.wheccloud.com:8003/login?redirect=%2Fdashboard"
style=
'text-decoration:none;'
>
<div
class=
"selectChild selectChild2"
></div>
</a>
-->
</div>
</div>
</
template
>
<
script
>
export
default
{
}
</
script
>
<
style
>
*
{
margin
:
0
;
padding
:
0
;
}
.mainView
{
width
:
100vw
;
height
:
100vh
;
background-image
:
url('../assets/images/login_bg.png')
;
}
.selectBox
{
width
:
900px
;
position
:
absolute
;
right
:
150px
;
top
:
280px
;
display
:
flex
;
justify-content
:
space-between
;
}
.selectChild
{
width
:
410px
;
height
:
450px
;
}
.selectChild1
{
background-image
:
url('../assets/images/leifeng.png')
;
background-size
:
100%
100%
;
}
.selectChild2
{
background-image
:
url('../assets/images/zhiwu.png')
;
background-size
:
100%
100%
;
}
</
style
>
\ No newline at end of file
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