Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
NewTruckTerminalSyetem
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
SQL_Mou
NewTruckTerminalSyetem
Commits
e5a4f52f
Commit
e5a4f52f
authored
Apr 21, 2022
by
caicaicai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
97a770e9
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
108 additions
and
34 deletions
+108
-34
index.html
public/index.html
+1
-1
api.js
src/axios/api.js
+7
-0
EZUIKitJs.vue
src/components/ezuikit/EZUIKitJs.vue
+1
-1
index.js
src/store/index.js
+2
-2
index.vue
...iews/MLargeScreen/components/failureDeclaration/index.vue
+87
-20
index.vue
src/views/MLargeScreen/components/voiceApplication/index.vue
+9
-9
index.vue
src/views/MLargeScreen/index.vue
+1
-1
No files found.
public/index.html
View file @
e5a4f52f
...
...
@@ -9,7 +9,7 @@
<!-- <title><%= htmlWebpackPlugin.options.title %></title> -->
<title>
鑫海数字矿山后台管理系统
</title>
<title>
卡车调度系统终端平台
</title>
<script>
window
.
basePathUrl
=
'
<%= BASE_URL %>
'
//标识config、widgets所在的目录
...
...
src/axios/api.js
View file @
e5a4f52f
...
...
@@ -21,3 +21,10 @@ export const intelligentDispatchQuery = '/api/Manmades'; //获取绩效统计—
export
const
updatePass
=
'
/api/users/updatePass
'
;
//修改个人信息密码
export
const
carFleetQuery
=
'
/api/CarRoad
'
;
//获取语音申请车队
export
const
carsInforQuery
=
'
/api/CarBreak
'
;
//获取语音申请车辆
export
const
faultInforQuery
=
'
/api/BreakClass
'
;
//获取车辆故障类型
export
const
carRealTimeLocationQuery1
=
'
/gps/all
'
;
//获取车辆实时位置
export
const
carRealTimeLocationQuery2
=
'
/gps
'
;
//获取一个车辆位置
export
const
faultDayAdd
=
'
/api/Fault
'
;
//添加故障日报
export
const
faultMonthAdd
=
'
/api/FaultMonth
'
;
//添加故障月报
export
const
faultYearAdd
=
'
/api/FaultYear
'
;
//添加故障年报
export
const
waitingtrucksQuery
=
'
/api/Dispatch/waitingtrucks
'
;
//获取待装车卡车列表
src/components/ezuikit/EZUIKitJs.vue
View file @
e5a4f52f
...
...
@@ -2,7 +2,7 @@
<div
style=
"background: white"
>
<el-container>
<el-header
style=
"font-size: 20px; font-weight: bold"
>
鑫海矿业
监控视频
</el-header
>
卡车调度系统终端平台
监控视频
</el-header
>
<el-container>
...
...
src/store/index.js
View file @
e5a4f52f
...
...
@@ -40,8 +40,8 @@ const automation = {
//默认vuex
export
default
new
Vuex
.
Store
({
state
:
{
projectName
:
"
鑫海数字矿山后台管理系统
"
,
platformName
:
"
鑫海数字矿山后台管理
平台
"
,
projectName
:
"
卡车调度系统终端平台
"
,
platformName
:
"
卡车调度系统终端
平台
"
,
},
mutations
:
{
...
...
src/views/MLargeScreen/components/failureDeclaration/index.vue
View file @
e5a4f52f
...
...
@@ -12,17 +12,17 @@
<el-radio
v-model=
"from.car"
label=
"其他车辆故障"
border
>
其他车辆故障
</el-radio>
</div>
</div>
<div>
<span>
车辆名称:
</span>
<el-input
v-model=
"from.carname"
placeholder=
"请输入车辆名称"
style=
"width:18vw;font-size:18px;"
></el-input>
</div>
<div>
<span>
车辆号码:
</span>
<el-input
v-model=
"from.carcode"
placeholder=
"请输入车辆号码"
style=
"width:18vw;font-size:18px;"
></el-input>
<el-select
v-model=
"from.carcode"
placeholder=
"请选择车辆号码"
style=
"width:18vw;"
>
<el-option
v-for=
"(obj,index) in carInforData"
:label=
"obj.number"
:value=
"obj.number"
:key=
"index"
></el-option>
</el-select>
</div>
<div>
<span>
司机名称:
</span>
<el-input
v-model=
"from.name"
placeholder=
"请输入司机名称"
style=
"width:18vw;font-size:18px;"
></el-input>
<el-select
v-model=
"from.name"
placeholder=
"请选择司机名称"
style=
"width:18vw;"
>
<el-option
v-for=
"(obj,index) in peopleInforData"
:label=
"obj.name"
:value=
"obj.name"
:key=
"index"
></el-option>
</el-select>
</div>
<div
style=
"display:flex;"
>
<span>
车辆位置:
</span>
...
...
@@ -30,13 +30,12 @@
<img
src=
"../../../../assets/images/truckTuPian/dingwei1.png"
height=
"20"
>
<span
style=
"color: rgb(24,228,240);font-size:18px;margin-top:-10px;text-decoration:underline;"
>
{{
getLocationText
}}
</span>
</div>
<span
style=
"margin-left:10px;"
v-if=
"zuobiaoShow"
>
坐标:
{{
parseFloat
(
from
.
lat
).
toFixed
(
2
)
}}
,
{{
parseFloat
(
from
.
lon
).
toFixed
(
2
)
}}
</span>
</div>
<div>
<span>
故障类型:
</span>
<el-select
v-model=
"from.fault"
placeholder=
"请选择故障类型"
style=
"width:18vw;"
>
<el-option
label=
"车辆碰撞"
value=
"车辆碰撞"
style=
"font-size:18px;"
></el-option>
<el-option
label=
"爆胎"
value=
"爆胎"
style=
"font-size:18px;"
></el-option>
<el-option
label=
"缺油"
value=
"缺油"
style=
"font-size:18px;"
></el-option>
<el-option
v-for=
"(obj,index) in faultInforData"
:label=
"obj.breakclass"
:value=
"obj.breakclass"
:key=
"index"
></el-option>
</el-select>
</div>
<div>
...
...
@@ -59,31 +58,56 @@
<
script
>
import
{
httpGet
,
httpPostForJson
,
putForJson
,
httpDelForJson
}
from
"
@/common/httpBean.js
"
import
{
failureDeclarationAdd
}
from
"
@/axios/api.js
"
import
{
failureDeclarationAdd
,
vehicleInformationQuery
,
personalCenterInforQuery
,
faultInforQuery
,
carRealTimeLocationQuery2
,
faultDayAdd
,
faultMonthAdd
,
faultYearAdd
}
from
"
@/axios/api.js
"
export
default
{
data
()
{
return
{
showDecide
:
false
,
from
:{
car
code
:
''
},
from
:{
car
:
''
,
carcode
:
''
,
name
:
''
,
fault
:
''
,
problem
:
''
,
lat
:
''
,
lon
:
''
},
getLocationText
:
'
点击获取车辆位置
'
,
submitLoading
:
false
,
carnumber
:
''
,
personName
:
''
,
carInforData
:[],
peopleInforData
:[],
faultInforData
:[],
zuobiaoShow
:
false
,
}
},
mounted
()
{
},
methods
:
{
loadData
(
valu
e
)
{
loadData
(
carnumber
,
personNam
e
)
{
this
.
showDecide
=
true
;
this
.
from
=
{
carcode
:
''
};
this
.
carnumber
=
carnumber
;
this
.
personName
=
personName
;
this
.
from
=
{
car
:
''
,
carcode
:
''
,
name
:
''
,
fault
:
''
,
problem
:
''
,
lat
:
''
,
lon
:
''
};
this
.
getLocationText
=
'
点击获取车辆位置
'
;
httpGet
(
vehicleInformationQuery
,{
size
:
9999
}).
then
((
res
)
=>
{
if
(
res
.
code
==
200
){
this
.
carInforData
=
res
.
data
.
content
;
}
});
httpGet
(
personalCenterInforQuery
,{
size
:
9999
}).
then
((
res
)
=>
{
if
(
res
.
code
==
200
){
this
.
peopleInforData
=
res
.
data
.
content
;
}
});
httpGet
(
faultInforQuery
,{
size
:
9999
}).
then
((
res
)
=>
{
if
(
res
.
code
==
200
){
this
.
faultInforData
=
res
.
data
.
content
;
}
});
},
failureDeCloseFn
(){
this
.
showDecide
=
false
;
this
.
from
=
{
carcode
:
''
};
this
.
zuobiaoShow
=
false
;
this
.
from
=
{
car
:
''
,
carcode
:
''
,
name
:
''
,
fault
:
''
,
problem
:
''
,
lat
:
''
,
lon
:
''
};
this
.
getLocationText
=
'
点击获取车辆位置
'
;
},
//获取车辆位置
getLocationFn
(){
let
that
=
this
;
if
(
this
.
from
.
carcode
==
''
){
this
.
$notify
({
title
:
'
请输入车辆号码!
'
,
...
...
@@ -91,14 +115,39 @@ export default {
duration
:
2500
})
}
else
{
this
.
getLocationText
=
'
已获取车辆位置
'
;
this
.
from
.
adr
=
'
13.545,36.252
'
;
httpGet
(
vehicleInformationQuery
,{
number
:
this
.
from
.
carcode
}).
then
((
res
)
=>
{
if
(
res
.
code
==
200
){
if
(
res
.
data
.
content
[
0
].
equipmentName
==
''
||
!
res
.
data
.
content
[
0
].
equipmentName
){
this
.
$notify
({
title
:
'
暂无车辆位置!
'
,
type
:
'
error
'
,
duration
:
2500
})
}
else
{
httpGet
(
carRealTimeLocationQuery2
,{
name
:
res
.
data
.
content
[
0
].
equipmentName
}).
then
((
res1
)
=>
{
if
(
res1
.
code
==
200
){
that
.
from
.
lat
=
res1
.
data
.
lat
;
that
.
from
.
lon
=
res1
.
data
.
lon
;
that
.
zuobiaoShow
=
true
;
this
.
$notify
({
title
:
'
获取成功!
'
,
type
:
'
success
'
,
duration
:
2500
})
}
});
}
}
});
}
},
//提交申报
submitDeFn
(){
this
.
submitLoading
=
true
;
httpPostForJson
(
faultDayAdd
,
this
.
from
).
then
((
res
)
=>
{});
httpPostForJson
(
faultMonthAdd
,
this
.
from
).
then
((
res
)
=>
{});
httpPostForJson
(
faultYearAdd
,
this
.
from
).
then
((
res
)
=>
{});
httpPostForJson
(
failureDeclarationAdd
,
this
.
from
).
then
((
res
)
=>
{
if
(
res
.
code
==
200
){
if
(
res
.
code
==
200
){
...
...
@@ -107,27 +156,45 @@ export default {
type
:
'
success
'
,
duration
:
2500
});
this
.
from
=
{
car
code
:
''
};
this
.
from
=
{
car
:
''
,
carcode
:
''
,
name
:
''
,
fault
:
''
,
problem
:
''
,
lat
:
''
,
lon
:
''
};
this
.
getLocationText
=
'
点击获取车辆位置
'
;
this
.
submitLoading
=
false
;
this
.
zuobiaoShow
=
false
;
}
else
{
this
.
$notify
({
title
:
res
.
head
.
message
,
type
:
'
error
'
,
duration
:
2500
})
this
.
from
=
{
car
code
:
''
};
this
.
from
=
{
car
:
''
,
carcode
:
''
,
name
:
''
,
fault
:
''
,
problem
:
''
,
lat
:
''
,
lon
:
''
};
this
.
getLocationText
=
'
点击获取车辆位置
'
;
this
.
submitLoading
=
false
;
this
.
zuobiaoShow
=
false
;
}
}
});
}
}
},
},
watch
:{
'
from.car
'
:
function
(){
if
(
this
.
from
.
car
==
'
当前车辆故障
'
){
this
.
from
.
carcode
=
this
.
carnumber
;
this
.
from
.
name
=
this
.
personName
;
}
else
{
this
.
from
.
carcode
=
''
;
this
.
from
.
name
=
''
;
}
},
},
}
</
script
>
<
style
scope
>
.el-select-dropdown__item
{
font-size
:
20px
;
height
:
45px
;
line-height
:
45px
;
}
.failureDeMainViews
{
position
:
absolute
;
z-index
:
1
;
...
...
src/views/MLargeScreen/components/voiceApplication/index.vue
View file @
e5a4f52f
...
...
@@ -14,16 +14,12 @@
<div
class=
"voiceAppContent_2"
>
<div>
<div
class=
"voiceAppContent_2_title"
>
<div>
车辆名称
</div>
<div>
车牌号
</div>
<!--
<div>
终端设备
</div>
-->
</div>
<div
class=
"voiceAppContent_2_content"
>
<el-checkbox-group
v-model=
"selectCarRadioArray"
>
<el-checkbox
v-for=
"(item,index) in carsInforData"
:label=
"item"
:key=
"index"
style=
"margin-top:10px;"
>
<div
style=
"width:14vw"
>
{{
item
.
name
}}
</div>
<div
style=
"width:7.5vw"
>
{{
item
.
number
}}
</div>
<!--
<div>
{{
item
.
equipmentName
}}
</div>
-->
<div
style=
"width:20vw;text-align: center;"
>
{{
item
.
number
}}
</div>
</el-checkbox>
</el-checkbox-group>
</div>
...
...
@@ -34,7 +30,6 @@
</div>
<div
class=
"voiceAppContent_2_3_content"
>
<div
v-for=
"(item,index) in selectCarRadioArray"
:key=
"index"
class=
"voiceAppContent_2_content_selectCar"
>
<div>
车辆名称:
{{
item
.
name
}}
</div>
<div>
车牌号:
{{
item
.
number
}}
</div>
<div
style=
"width:27px;height:27px;background-color: rgb(4,112,171);text-align: center;font-size:40px;"
@
click=
"cancelSelect(index)"
>
<span>
×
</span>
...
...
@@ -119,7 +114,7 @@
<
script
>
import
{
httpGet
,
httpPostForJson
,
putForJson
,
httpDelForJson
}
from
"
@/common/httpBean.js
"
import
{
carFleetQuery
,
carsInforQuery
}
from
"
@/axios/api.js
"
import
{
carFleetQuery
,
carsInforQuery
,
vehicleInformationQuery
}
from
"
@/axios/api.js
"
import
situationPic1
from
'
../../../../assets/images/truckTuPian/tonghuazhong1.png
'
import
situationPic2
from
'
../../../../assets/images/truckTuPian/tonghuazhong2.png
'
//加载必须要的core,demo简化起见采用的直接加载类库,实际使用时应当采用异步按需加载
...
...
@@ -187,7 +182,7 @@ export default {
this
.
selectCarRadioArray
=
[];
this
.
situationWhich
=
10000
;
this
.
userName1
=
value
;
//this.recOpen()
this
.
recOpen
();
//车队
httpGet
(
carFleetQuery
,{
size
:
9999
,
page
:
0
}).
then
((
res
)
=>
{
if
(
res
.
code
==
200
){
...
...
@@ -208,7 +203,7 @@ export default {
query
.
number
=
this
.
searchText
;
query
.
road
=
this
.
selectCarFleet
;
//车辆
httpGet
(
carsInfor
Query
,
query
).
then
((
res
)
=>
{
httpGet
(
vehicleInformation
Query
,
query
).
then
((
res
)
=>
{
if
(
res
.
code
==
200
){
this
.
carsInforData
=
res
.
data
.
content
;
}
...
...
@@ -407,6 +402,7 @@ export default {
});
this
.
tonghua1
=
'
开始通话
'
;
this
.
tonghuadisabled
=
false
;
this
.
recOpen
();
},
...
...
@@ -479,6 +475,7 @@ export default {
type
:
'
success
'
,
duration
:
2500
});
}
else
if
(
This
.
websocket
.
readyState
===
0
)
{
// 表示正在连接,设置300ms后发送信息
setTimeout
(
function
()
{
This
.
websocketsend
(
`{"toUserId":"
${
This
.
carAllNumberString
}
","contentText":"
${
postData
}
","fromUserId":"
${
This
.
userName1
}
"}`
);
...
...
@@ -700,6 +697,9 @@ export default {
width
:
200px
;
height
:
50px
;
}
.el-input__inner
{
font-size
:
18px
;
}
.voiceAppMainViews
{
position
:
absolute
;
z-index
:
1
;
...
...
src/views/MLargeScreen/index.vue
View file @
e5a4f52f
...
...
@@ -185,7 +185,7 @@ export default {
this
.
$refs
.
personalCenterMethod
.
personalCenCloseFn
();
this
.
$refs
.
smallWindowMethod
.
carInCloseFn
();
let
byValue
=
this
.
carName
;
this
.
$refs
.
failureDeclarationMethod
.
loadData
(
byValu
e
);
this
.
$refs
.
failureDeclarationMethod
.
loadData
(
this
.
carnumber
,
this
.
personalNam
e
);
}
else
{
this
.
selectFunction
=
0
;
this
.
$refs
.
voiceApplicationMethod
.
voiceAppCloseFn
();
...
...
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