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
1e86a8f2
Commit
1e86a8f2
authored
May 09, 2022
by
caicaicai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
e04d6258
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
17 additions
and
11 deletions
+17
-11
.env.development
.env.development
+3
-3
common.js
src/assets/js/common.js
+8
-0
index.js
src/router/index.js
+2
-1
settings.js
src/settings.js
+1
-1
index.vue
src/views/carManagement/carInformation/index.vue
+3
-6
No files found.
.env.development
View file @
1e86a8f2
...
@@ -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://
8.143.203.103:9090
'
VUE_APP_BASE_API = 'http://
192.168.0.110:8001
'
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://
8.143.203.103:9090
'
VUE_APP_LOCAL_API = 'http://
192.168.0.110:8001
'
VUE_APP_LOCAL_API2 = 'http://
8.143.203.103:9090
'
VUE_APP_LOCAL_API2 = 'http://
192.168.0.110:8001
'
# 是否启用 babel-plugin-dynamic-import-node插件
# 是否启用 babel-plugin-dynamic-import-node插件
VUE_CLI_BABEL_TRANSPILE_MODULES = true
VUE_CLI_BABEL_TRANSPILE_MODULES = true
src/assets/js/common.js
View file @
1e86a8f2
...
@@ -396,6 +396,14 @@ var HttpReq = function(){
...
@@ -396,6 +396,14 @@ var HttpReq = function(){
params
:
param
,
params
:
param
,
})
})
},
},
//车辆管理——选择配对的终端设备
selectZhongDuanDeviceQuery
:
function
(
param
){
return
request
({
url
:
'
/api/Equipment/use
'
,
method
:
'
get
'
,
params
:
param
,
})
},
//车辆管理——故障类型管理
//车辆管理——故障类型管理
carFaultTypeQuery
:
function
(
param
){
carFaultTypeQuery
:
function
(
param
){
return
request
({
return
request
({
...
...
src/router/index.js
View file @
1e86a8f2
...
@@ -13,7 +13,8 @@ const whiteList = ['/login', '/register','/selectSystem'] // no redirect whiteli
...
@@ -13,7 +13,8 @@ const whiteList = ['/login', '/register','/selectSystem'] // no redirect whiteli
router
.
beforeEach
((
to
,
from
,
next
)
=>
{
router
.
beforeEach
((
to
,
from
,
next
)
=>
{
if
(
to
.
meta
.
title
)
{
if
(
to
.
meta
.
title
)
{
document
.
title
=
to
.
meta
.
title
+
'
-
'
+
Config
.
title
//document.title = to.meta.title + ' - ' + Config.title
document
.
title
=
to
.
meta
.
title
}
}
NProgress
.
start
()
NProgress
.
start
()
if
(
getToken
())
{
if
(
getToken
())
{
...
...
src/settings.js
View file @
1e86a8f2
...
@@ -2,7 +2,7 @@ module.exports = {
...
@@ -2,7 +2,7 @@ module.exports = {
/**
/**
* @description 网站标题
* @description 网站标题
*/
*/
title
:
'
EL-ADMIN
'
,
title
:
'
卡车调度系统
'
,
/**
/**
* @description 是否显示 tagsView
* @description 是否显示 tagsView
*/
*/
...
...
src/views/carManagement/carInformation/index.vue
View file @
1e86a8f2
...
@@ -106,7 +106,7 @@
...
@@ -106,7 +106,7 @@
<el-date-picker
v-model=
"form.item.time"
type=
"date"
placeholder=
"选择日期"
style=
"width:160px;"
></el-date-picker>
<el-date-picker
v-model=
"form.item.time"
type=
"date"
placeholder=
"选择日期"
style=
"width:160px;"
></el-date-picker>
</el-form-item>
</el-form-item>
<el-form-item
label=
"终端设备名称"
prop=
"equipmentName"
>
<el-form-item
label=
"终端设备名称"
prop=
"equipmentName"
>
<el-select
v-model=
"form.item.equipmentName"
placeholder=
"请选择终端设备"
style=
"width:
16
0px;"
>
<el-select
v-model=
"form.item.equipmentName"
placeholder=
"请选择终端设备"
style=
"width:
20
0px;"
>
<el-option
v-for=
"(obj,index) in terminalList"
:label=
"obj.name"
:value=
"obj.name"
:key=
"index"
></el-option>
<el-option
v-for=
"(obj,index) in terminalList"
:label=
"obj.name"
:value=
"obj.name"
:key=
"index"
></el-option>
</el-select>
</el-select>
</el-form-item>
</el-form-item>
...
@@ -156,7 +156,6 @@ export default {
...
@@ -156,7 +156,6 @@ export default {
}
}
},
},
mounted
()
{
mounted
()
{
var
that
=
this
;
this
.
$nextTick
(()
=>
{
this
.
$nextTick
(()
=>
{
this
.
loadData
();
this
.
loadData
();
})
})
...
@@ -185,10 +184,8 @@ export default {
...
@@ -185,10 +184,8 @@ export default {
}
}
})
})
//获取终端信息
//获取终端信息
HttpReq
.
truckDispatching
.
deviceManagementQuery
({
size
:
9999
}).
then
((
res
)
=>
{
HttpReq
.
truckDispatching
.
selectZhongDuanDeviceQuery
({
size
:
9999
}).
then
((
res
)
=>
{
if
(
res
.
code
==
200
){
this
.
terminalList
=
res
;
this
.
terminalList
=
res
.
data
.
content
;
}
})
})
//获取车辆类型
//获取车辆类型
HttpReq
.
truckDispatching
.
carTypeQuery
({
size
:
9999
}).
then
((
res
)
=>
{
HttpReq
.
truckDispatching
.
carTypeQuery
({
size
:
9999
}).
then
((
res
)
=>
{
...
...
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