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
1672228f
Commit
1672228f
authored
Aug 19, 2022
by
xxx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
008a552f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
5 deletions
+27
-5
index.vue
src/views/carManagement/carFault/index.vue
+27
-5
No files found.
src/views/carManagement/carFault/index.vue
View file @
1672228f
...
...
@@ -123,10 +123,7 @@ export default {
}
},
mounted
()
{
var
that
=
this
;
this
.
$nextTick
(()
=>
{
this
.
loadData
();
})
this
.
loadData
();
},
methods
:
{
loadData
()
{
...
...
@@ -135,14 +132,32 @@ export default {
param
.
page
=
this
.
page
-
1
;
param
.
size
=
this
.
size
;
param
.
sort
=
sort
;
let
showData
=
[];
this
.
$nextTick
(()
=>
{
//获取故障表
HttpReq
.
truckDispatching
.
carFaultQuery
(
param
).
then
((
res
)
=>
{
if
(
res
.
code
==
200
){
this
.
loading
=
false
;
this
.
tableData
=
res
.
data
.
content
;
this
.
total
=
res
.
data
.
totalElements
;
let
faultCarNumber1
=
[];
res
.
data
.
content
.
forEach
((
item
,
index
)
=>
{
if
(
item
.
status
==
'
1
'
){
faultCarNumber1
.
push
(
item
.
number
);
}
})
let
set1
=
new
Set
();
faultCarNumber1
.
forEach
((
item
)
=>
{
set1
.
add
(
item
);
})
let
lastArray1
=
Array
.
from
(
set1
);
lastArray1
.
forEach
((
item
)
=>
{
HttpReq
.
truckDispatching
.
carInformationQuery
({
number
:
item
}).
then
((
res1
)
=>
{
if
(
res1
.
code
==
200
){
HttpReq
.
truckDispatching
.
carInformationUpdate
({
id
:
res1
.
data
.
content
[
0
].
id
,
status
:
1
}).
then
((
res2
)
=>
{})
}
})
})
}
})
//获取车辆信息
...
...
@@ -261,6 +276,13 @@ export default {
//修改车辆故障
reqUpdateItem
(
form
,
item
){
let
lastData
=
{...
item
};
//修改车辆信息状态数据
HttpReq
.
truckDispatching
.
carInformationQuery
({
number
:
lastData
.
number
}).
then
((
res1
)
=>
{
if
(
res1
.
code
==
200
){
HttpReq
.
truckDispatching
.
carInformationUpdate
({
id
:
res1
.
data
.
content
[
0
].
id
,
status
:
0
}).
then
((
res2
)
=>
{})
}
})
//修改故障表的数据
HttpReq
.
truckDispatching
.
carFaultUpdate
(
lastData
).
then
((
res
)
=>
{
form
.
visible
=
false
;
if
(
res
.
code
==
200
){
...
...
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