Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
K
kd_app_vue
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
zhanglw
kd_app_vue
Commits
ee5cba85
Commit
ee5cba85
authored
Aug 08, 2023
by
zhanglw
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
铲车改挖机
parent
3a8ad5d9
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
34 additions
and
34 deletions
+34
-34
api.js
src/axios/api.js
+4
-4
Login_.vue
src/views/Login_.vue
+3
-3
index.vue
src/views/MLargeScreen/components/carInformation/index.vue
+1
-1
index.vue
...s/MLargeScreen/components/performanceStatistics/index.vue
+10
-10
index.vue
src/views/MLargeScreen/components/smallWindow/index.vue
+2
-2
index.vue
...ews/MLargeScreen/components/startOrderReceiving/index.vue
+2
-2
index.vue
src/views/MLargeScreen/index.vue
+12
-12
No files found.
src/axios/api.js
View file @
ee5cba85
...
@@ -48,8 +48,8 @@ export const dispatchFinishQuery = '/api/Dispatch/finish'; //获取智能调度
...
@@ -48,8 +48,8 @@ export const dispatchFinishQuery = '/api/Dispatch/finish'; //获取智能调度
export
const
apiCpointQuery
=
'
/api/Cpoint
'
;
//获取关键控制点坐标
export
const
apiCpointQuery
=
'
/api/Cpoint
'
;
//获取关键控制点坐标
export
const
apiPathmapNavigationQuery
=
'
/api/Pathmap/navigation
'
;
//获取关键控制点坐标
export
const
apiPathmapNavigationQuery
=
'
/api/Pathmap/navigation
'
;
//获取关键控制点坐标
export
const
apiManmadesRealCarQuery
=
'
/api/Manmades/RealCar
'
;
//点击车辆小弹框
export
const
apiManmadesRealCarQuery
=
'
/api/Manmades/RealCar
'
;
//点击车辆小弹框
export
const
apiManmadesChanJxQuery
=
'
/api/Manmades/ChanJx
'
;
//
铲车
绩效上面
export
const
apiManmadesChanJxQuery
=
'
/api/Manmades/ChanJx
'
;
//
挖机
绩效上面
export
const
apiManmadesChanCheRealQuery
=
'
/api/Manmades/ChanCheReal
'
;
//
铲车
车辆信息实时数据
export
const
apiManmadesChanCheRealQuery
=
'
/api/Manmades/ChanCheReal
'
;
//
挖机
车辆信息实时数据
export
const
apiEquipmentQuery
=
'
/api/Equipment
'
;
//获取设备表
export
const
apiEquipmentQuery
=
'
/api/Equipment
'
;
//获取设备表
export
const
ajReportModel
=
'
/api/anjian/getAnjianByFormId
'
;
//获取安检项目模板
export
const
ajReportModel
=
'
/api/anjian/getAnjianByFormId
'
;
//获取安检项目模板
export
const
ajReportSubmit
=
'
/api/anjian
'
;
//提交安检报告
export
const
ajReportSubmit
=
'
/api/anjian
'
;
//提交安检报告
...
@@ -60,8 +60,8 @@ export const changeJinJiReadStatus = '/api/Notice/changeJinJiReadStatus'; //终
...
@@ -60,8 +60,8 @@ export const changeJinJiReadStatus = '/api/Notice/changeJinJiReadStatus'; //终
export
const
crossingFence
=
'
/api/crossingFence
'
;
//终端围栏出入消息回传
export
const
crossingFence
=
'
/api/crossingFence
'
;
//终端围栏出入消息回传
export
const
tRealTimeOrder
=
'
/api/tRealTimeOrder
'
;
//获取当前车辆的订单
export
const
tRealTimeOrder
=
'
/api/tRealTimeOrder
'
;
//获取当前车辆的订单
export
const
arriveCaiDian
=
'
/api/tRealTimeOrder/arriveCaiDian
'
;
//判断车辆到达采点后,提供订单id,使进入待装车状态
export
const
arriveCaiDian
=
'
/api/tRealTimeOrder/arriveCaiDian
'
;
//判断车辆到达采点后,提供订单id,使进入待装车状态
export
const
getAllLoadableKC
=
'
/api/tRealTimeOrder/getAllLoadableKC
'
;
//
铲车
界面展示可装车的卡车
export
const
getAllLoadableKC
=
'
/api/tRealTimeOrder/getAllLoadableKC
'
;
//
挖机
界面展示可装车的卡车
export
const
chooseKCZC
=
'
/api/tRealTimeOrder/chooseKCZC
'
;
//
铲车
界面点击给卡车装车
export
const
chooseKCZC
=
'
/api/tRealTimeOrder/chooseKCZC
'
;
//
挖机
界面点击给卡车装车
export
const
completeZC
=
'
/api/tRealTimeOrder/completeZC
'
;
//卡车界面点击完成装车
export
const
completeZC
=
'
/api/tRealTimeOrder/completeZC
'
;
//卡车界面点击完成装车
export
const
crossDB
=
'
/api/tRealTimeOrder/crossDB
'
;
//卡车界面点击到达卸点
export
const
crossDB
=
'
/api/tRealTimeOrder/crossDB
'
;
//卡车界面点击到达卸点
export
const
completeXC
=
'
/api/tRealTimeOrder/completeXC
'
;
//卡车界面点击完成装车
export
const
completeXC
=
'
/api/tRealTimeOrder/completeXC
'
;
//卡车界面点击完成装车
...
...
src/views/Login_.vue
View file @
ee5cba85
...
@@ -57,7 +57,7 @@ export default {
...
@@ -57,7 +57,7 @@ export default {
data
()
{
data
()
{
return
{
return
{
loginForm
:
{
loginForm
:
{
username
:
"
testkc
"
,
username
:
"
111
"
,
password
:
"
123456
"
,
password
:
"
123456
"
,
uuid
:
""
,
uuid
:
""
,
},
},
...
@@ -66,7 +66,7 @@ export default {
...
@@ -66,7 +66,7 @@ export default {
keyboardShowType
:
""
,
keyboardShowType
:
""
,
//设备OAID testkc test999
//设备OAID testkc test999
//testcc deviceOAID: "test888",
//testcc deviceOAID: "test888",
deviceOAID
:
"
test999
"
,
deviceOAID
:
"
1f086401c217bae5
"
,
// deviceOAID: "140945db5f9b8e04",
// deviceOAID: "140945db5f9b8e04",
//判断设备是否与车绑定
//判断设备是否与车绑定
bindingStatus
:
false
,
bindingStatus
:
false
,
...
@@ -615,4 +615,4 @@ export default {
...
@@ -615,4 +615,4 @@ export default {
left
:
0
;
left
:
0
;
z-index
:
100
;
z-index
:
100
;
}
}
</
style
>
</
style
>
\ No newline at end of file
src/views/MLargeScreen/components/carInformation/index.vue
View file @
ee5cba85
...
@@ -99,7 +99,7 @@ export default {
...
@@ -99,7 +99,7 @@ export default {
}
}
}
}
});
});
if
(
carclass
==
'
铲车
'
)
{
if
(
carclass
==
'
挖机
'
)
{
httpGet
(
apiManmadesChanCheRealQuery
,
{
number
:
byValue
}).
then
((
res
)
=>
{
httpGet
(
apiManmadesChanCheRealQuery
,
{
number
:
byValue
}).
then
((
res
)
=>
{
if
(
res
.
code
==
200
&&
res
.
data
.
length
!=
0
)
{
if
(
res
.
code
==
200
&&
res
.
data
.
length
!=
0
)
{
this
.
realTimeData
=
res
.
data
[
0
];
this
.
realTimeData
=
res
.
data
[
0
];
...
...
src/views/MLargeScreen/components/performanceStatistics/index.vue
View file @
ee5cba85
...
@@ -23,7 +23,7 @@
...
@@ -23,7 +23,7 @@
<div
class=
"checkFrom_input"
>
{{
checkFromData
.
startTime
?
checkFromData
.
startTime
:
'
无
'
}}
</div>
<div
class=
"checkFrom_input"
>
{{
checkFromData
.
startTime
?
checkFromData
.
startTime
:
'
无
'
}}
</div>
</div>
</div>
<div
class=
"checkFrom_content"
>
<div
class=
"checkFrom_content"
>
<div>
{{
carclass
!=
'
铲车
'
?
'
今日车数:
'
:
'
今日装车数:
'
}}
</div>
<div>
{{
carclass
!=
'
挖机
'
?
'
今日车数:
'
:
'
今日装车数:
'
}}
</div>
<div
class=
"checkFrom_input"
>
{{
checkFromData
.
carNum
?
checkFromData
.
carNum
+
'
次
'
:
'
无
'
}}
</div>
<div
class=
"checkFrom_input"
>
{{
checkFromData
.
carNum
?
checkFromData
.
carNum
+
'
次
'
:
'
无
'
}}
</div>
</div>
</div>
<div
class=
"checkFrom_content"
>
<div
class=
"checkFrom_content"
>
...
@@ -42,7 +42,7 @@
...
@@ -42,7 +42,7 @@
<div>
已完成单数:
</div>
<div>
已完成单数:
</div>
<div
class=
"checkFrom_input"
>
{{
checkFromData
.
finish
?
checkFromData
.
finish
+
'
单
'
:
'
无
'
}}
</div>
<div
class=
"checkFrom_input"
>
{{
checkFromData
.
finish
?
checkFromData
.
finish
+
'
单
'
:
'
无
'
}}
</div>
</div>
</div>
<div
class=
"checkFrom_content"
v-if=
"carclass != '
铲车
'"
>
<div
class=
"checkFrom_content"
v-if=
"carclass != '
挖机
'"
>
<div>
今日里程数:
</div>
<div>
今日里程数:
</div>
<div
class=
"checkFrom_input"
>
{{
checkFromData
.
odo
?
checkFromData
.
odo
+
'
km
'
:
'
无
'
}}
</div>
<div
class=
"checkFrom_input"
>
{{
checkFromData
.
odo
?
checkFromData
.
odo
+
'
km
'
:
'
无
'
}}
</div>
</div>
</div>
...
@@ -64,7 +64,7 @@
...
@@ -64,7 +64,7 @@
<span>
跑单记录:
</span>
<span>
跑单记录:
</span>
</div>
</div>
<!-- 卡车列表 -->
<!-- 卡车列表 -->
<div
class=
"co-table"
v-if=
"carclass != '
铲车
'"
>
<div
class=
"co-table"
v-if=
"carclass != '
挖机
'"
>
<div
class=
"rolling"
>
<div
class=
"rolling"
>
<div
class=
"table-box"
>
<div
class=
"table-box"
>
<dl>
<dl>
...
@@ -90,8 +90,8 @@
...
@@ -90,8 +90,8 @@
</div>
</div>
</div>
</div>
</div>
</div>
<!--
铲车
列表 -->
<!--
挖机
列表 -->
<div
class=
"co-table"
v-if=
"carclass == '
铲车
'"
>
<div
class=
"co-table"
v-if=
"carclass == '
挖机
'"
>
<div
class=
"rolling"
>
<div
class=
"rolling"
>
<div
class=
"table-box"
>
<div
class=
"table-box"
>
<dl>
<dl>
...
@@ -146,7 +146,7 @@ export default {
...
@@ -146,7 +146,7 @@ export default {
getintelligentDisData
(){
getintelligentDisData
(){
if
(
this
.
carclass
==
''
){
if
(
this
.
carclass
==
''
){
return
return
}
else
if
(
this
.
carclass
==
"
铲车
"
){
}
else
if
(
this
.
carclass
==
"
挖机
"
){
let
query2
=
{};
let
query2
=
{};
query2
.
size
=
50
;
query2
.
size
=
50
;
query2
.
page
=
0
;
query2
.
page
=
0
;
...
@@ -212,7 +212,7 @@ export default {
...
@@ -212,7 +212,7 @@ export default {
var
day
=
date
.
getDate
();
//日 ,从 Date 对象返回一个月中的某一天 (1 ~ 31)
var
day
=
date
.
getDate
();
//日 ,从 Date 对象返回一个月中的某一天 (1 ~ 31)
var
hours
=
date
.
getHours
();
//小时 ,返回 Date 对象的小时 (0 ~ 23)
var
hours
=
date
.
getHours
();
//小时 ,返回 Date 对象的小时 (0 ~ 23)
var
minutes
=
date
.
getMinutes
();
//分钟 ,返回 Date 对象的分钟 (0 ~ 59)
var
minutes
=
date
.
getMinutes
();
//分钟 ,返回 Date 对象的分钟 (0 ~ 59)
var
seconds
=
date
.
getSeconds
();
//秒 ,返回 Date 对象的秒数 (0 ~ 59)
var
seconds
=
date
.
getSeconds
();
//秒 ,返回 Date 对象的秒数 (0 ~ 59)
//修改月份格式
//修改月份格式
if
(
month
>=
1
&&
month
<=
9
)
{
if
(
month
>=
1
&&
month
<=
9
)
{
month
=
"
0
"
+
month
;
month
=
"
0
"
+
month
;
...
@@ -362,7 +362,7 @@ export default {
...
@@ -362,7 +362,7 @@ export default {
word-break
:
break-all
;
word-break
:
break-all
;
}
}
.co-table
{
.co-table
{
text-align
:
center
;
text-align
:
center
;
}
}
.table-box
{
.table-box
{
margin-top
:
0px
;
margin-top
:
0px
;
...
@@ -544,7 +544,7 @@ export default {
...
@@ -544,7 +544,7 @@ export default {
word-break
:
break-all
;
word-break
:
break-all
;
}
}
.co-table
{
.co-table
{
text-align
:
center
;
text-align
:
center
;
}
}
.table-box
{
.table-box
{
margin-top
:
0px
;
margin-top
:
0px
;
...
@@ -606,4 +606,4 @@ export default {
...
@@ -606,4 +606,4 @@ export default {
}
}
}
}
</
style
>
</
style
>
\ No newline at end of file
src/views/MLargeScreen/components/smallWindow/index.vue
View file @
ee5cba85
...
@@ -26,7 +26,7 @@
...
@@ -26,7 +26,7 @@
<div
v-show=
"carclass == '卡车'"
>
<div
v-show=
"carclass == '卡车'"
>
<span>
运载种类:
</span><span
style=
"color: rgb(24,228,240);"
>
{{
carInformationData2
.
arearesources
?
carInformationData2
.
arearesources
:
'
无
'
}}
</span>
<span>
运载种类:
</span><span
style=
"color: rgb(24,228,240);"
>
{{
carInformationData2
.
arearesources
?
carInformationData2
.
arearesources
:
'
无
'
}}
</span>
</div>
</div>
<div
v-show=
"carclass == '
铲车
'"
>
<div
v-show=
"carclass == '
挖机
'"
>
<span>
电铲状态:
</span><span
style=
"color: rgb(24,228,240);"
>
{{
carInformationData2
.
workStatus
==
0
?
'
空闲
'
:
carInformationData2
.
workStatus
==
1
?
'
忙碌
'
:
'
暂无状态
'
}}
</span>
<span>
电铲状态:
</span><span
style=
"color: rgb(24,228,240);"
>
{{
carInformationData2
.
workStatus
==
0
?
'
空闲
'
:
carInformationData2
.
workStatus
==
1
?
'
忙碌
'
:
'
暂无状态
'
}}
</span>
</div>
</div>
</div>
</div>
...
@@ -146,4 +146,4 @@ export default {
...
@@ -146,4 +146,4 @@ export default {
}
}
}
}
</
style
>
</
style
>
\ No newline at end of file
src/views/MLargeScreen/components/startOrderReceiving/index.vue
View file @
ee5cba85
...
@@ -152,7 +152,7 @@ export default {
...
@@ -152,7 +152,7 @@ export default {
if
(
res
.
code
===
200
){
if
(
res
.
code
===
200
){
if
(
res
.
data
>
0
){
if
(
res
.
data
>
0
){
this
.
navStu
=
0
;
this
.
navStu
=
0
;
if
(
this
.
$parent
.
carclass
!=
"
铲车
"
)
{
if
(
this
.
$parent
.
carclass
!=
"
挖机
"
)
{
this
.
audioPlayByUrl
(
ddcd
);
this
.
audioPlayByUrl
(
ddcd
);
}
}
this
.
$parent
.
clearNavigation
();
this
.
$parent
.
clearNavigation
();
...
@@ -164,7 +164,7 @@ export default {
...
@@ -164,7 +164,7 @@ export default {
duration
:
5000
,
duration
:
5000
,
dangerouslyUseHTMLString
:
true
,
dangerouslyUseHTMLString
:
true
,
});
});
if
(
this
.
$parent
.
carclass
!=
"
铲车
"
)
{
if
(
this
.
$parent
.
carclass
!=
"
挖机
"
)
{
this
.
audioPlayByUrl
(
qkjwj
);
this
.
audioPlayByUrl
(
qkjwj
);
}
}
}
}
...
...
src/views/MLargeScreen/index.vue
View file @
ee5cba85
...
@@ -97,8 +97,8 @@
...
@@ -97,8 +97,8 @@
</div>
</div>
<!-- 左下角logo -->
<!-- 左下角logo -->
<!--
<img
src=
"../../assets/images/truckTuPian/maplogo1.jpg"
class=
"mapLogo1"
/>
-->
<!--
<img
src=
"../../assets/images/truckTuPian/maplogo1.jpg"
class=
"mapLogo1"
/>
-->
<!--
铲车
待装车辆列表 -->
<!--
挖机
待装车辆列表 -->
<div
class=
"waitingtrucksView"
v-if=
"kcListView && carclass == '
铲车
'"
>
<div
class=
"waitingtrucksView"
v-if=
"kcListView && carclass == '
挖机
'"
>
<div
class=
"waitingtrucksView_title"
>
待装卡车列表
</div>
<div
class=
"waitingtrucksView_title"
>
待装卡车列表
</div>
<div
class=
"waitingtrucksView_content"
>
<div
class=
"waitingtrucksView_content"
>
<div
v-for=
"(item, index) in daizhangCar"
:key=
"index"
>
<div
v-for=
"(item, index) in daizhangCar"
:key=
"index"
>
...
@@ -264,7 +264,7 @@ export default {
...
@@ -264,7 +264,7 @@ export default {
return
;
return
;
}
}
//判断车辆类型
//判断车辆类型
if
(
this
.
carclass
==
"
铲车
"
)
{
if
(
this
.
carclass
==
"
挖机
"
)
{
this
.
loadData1
();
this
.
loadData1
();
}
}
//获取报警记录
//获取报警记录
...
@@ -284,7 +284,7 @@ export default {
...
@@ -284,7 +284,7 @@ export default {
this
.
notifyPromise
=
this
.
notifyPromise
this
.
notifyPromise
=
this
.
notifyPromise
.
then
(
this
.
$nextTick
)
.
then
(
this
.
$nextTick
)
.
then
(()
=>
{
.
then
(()
=>
{
if
(
this
.
carclass
==
"
铲车
"
&&
item
.
type
!=
3
)
{
if
(
this
.
carclass
==
"
挖机
"
&&
item
.
type
!=
3
)
{
this
.
$notify
({
this
.
$notify
({
title
:
title
:
(
item
.
type
==
1
(
item
.
type
==
1
...
@@ -303,14 +303,14 @@ export default {
...
@@ -303,14 +303,14 @@ export default {
dangerouslyUseHTMLString
:
true
,
dangerouslyUseHTMLString
:
true
,
});
});
this
.
audioBjFn
(
item
.
type
,
item
.
areaName
);
this
.
audioBjFn
(
item
.
type
,
item
.
areaName
);
}
else
if
(
this
.
carclass
!=
"
铲车
"
)
{
}
else
if
(
this
.
carclass
!=
"
挖机
"
)
{
this
.
$notify
({
this
.
$notify
({
title
:
title
:
(
item
.
type
==
1
(
item
.
type
==
1
?
"
限入
"
?
"
限入
"
:
item
.
type
==
2
:
item
.
type
==
2
?
"
限出
"
?
"
限出
"
:
item
.
type
==
3
&&
this
.
carclass
!=
"
铲车
"
:
item
.
type
==
3
&&
this
.
carclass
!=
"
挖机
"
?
"
无故停车
"
?
"
无故停车
"
:
item
.
type
==
4
:
item
.
type
==
4
?
"
防碰撞
"
?
"
防碰撞
"
...
@@ -660,10 +660,10 @@ export default {
...
@@ -660,10 +660,10 @@ export default {
return
;
return
;
}
}
const
cont
=
await
window
.
SerialPort
.
receive
();
const
cont
=
await
window
.
SerialPort
.
receive
();
this
.
$message
({
//
this.$message({
message
:
cont
,
//
message: cont,
type
:
"
warning
"
,
//
type: "warning",
});
//
});
if
(
cont
){
if
(
cont
){
let
strArr
=
cont
.
split
(
'
,
'
);
let
strArr
=
cont
.
split
(
'
,
'
);
// let wgLat = this.dmsTransform(strArr[2]), wgLon = this.dmsTransform(strArr[4]), h = Number(strArr[9] || 0), p = Number(strArr[6]);
// let wgLat = this.dmsTransform(strArr[2]), wgLon = this.dmsTransform(strArr[4]), h = Number(strArr[9] || 0), p = Number(strArr[6]);
...
@@ -781,9 +781,9 @@ export default {
...
@@ -781,9 +781,9 @@ export default {
}).
then
((
res2
)
=>
{
}).
then
((
res2
)
=>
{
});
});
this
.
carclass
=
res1
.
data
.
content
[
0
].
carclass
;
this
.
carclass
=
res1
.
data
.
content
[
0
].
carclass
;
if
(
this
.
carclass
==
"
铲车
"
)
{
if
(
this
.
carclass
==
"
挖机
"
)
{
this
.
loadData1
();
this
.
loadData1
();
this
.
systemTitle
=
"
卡车调度系统
铲车
终端
"
;
this
.
systemTitle
=
"
卡车调度系统
挖机
终端
"
;
}
}
this
.
equipmentName
=
res1
.
data
.
content
[
0
].
equipmentName
;
this
.
equipmentName
=
res1
.
data
.
content
[
0
].
equipmentName
;
//执行获取位置
//执行获取位置
...
...
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