Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
usedCarAuction
/
aus
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 51b1a70b
authored
Aug 14, 2026
by
zhangxw
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
参拍车辆管理tab数量修复
1 parent
c2219ba8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
5 deletions
aus-front/admin/src/api/VehicleController.ts
aus-front/admin/src/views/vehicle/auction/AuctionVehiclePage.vue
aus-front/admin/src/api/VehicleController.ts
View file @
51b1a70
...
...
@@ -89,6 +89,13 @@ export class VehicleController{
return
axios
.
post
(
'vehicle/vehicleStateCount'
,
params
);
}
/**
* 参拍车辆管理tab统计数据
*/
static
getVehicleAllStateCount
(
axios
:
AxiosStatic
,
params
:
any
):
Promise
<
AxiosResponse
<
any
>>
{
return
axios
.
post
(
'vehicle/vehicleAllStateCount'
,
params
);
}
/**
*/
static
getVehicleCountByStateAndDateRange
(
axios
:
AxiosStatic
,
startDate
:
Dayjs
|
string
,
endDate
:
Dayjs
|
string
):
Promise
<
AxiosResponse
<
any
>>
{
...
...
aus-front/admin/src/views/vehicle/auction/AuctionVehiclePage.vue
View file @
51b1a70
...
...
@@ -114,12 +114,11 @@ export default class AuctionVehiclePage extends PaginationComponent<Vehicle> {
get
tabs
()
{
let
total
=
0
;
for
(
const
vehicleState
of
this
.
vehicleStates
)
{
total
=
total
+
(
this
.
vehicleCount
[
vehicleState
]
??
0
);
total
=
total
+
(
this
.
vehicleCount
?.
stateCountMap
[
vehicleState
]
??
0
);
}
const
tabs
=
[{
key
:
''
,
tab
:
`全部(
${
total
}
)`
}];
this
.
vehicleStates
.
forEach
(
item
=>
{
tabs
.
push
({
key
:
item
,
tab
:
this
.
$t
(
'enum.vehicle.vehicleState.'
+
item
)
+
`(
${
this
.
vehicleCount
[
item
]
??
0
})
`});
tabs
.
push
({
key
:
item
,
tab
:
this
.
$t
(
'enum.vehicle.vehicleState.'
+
item
)
+
`(
${
this
.
vehicleCount
?.
stateCountMap
[
item
]
??
0
})
`});
});
return tabs;
}
...
...
@@ -139,8 +138,9 @@ export default class AuctionVehiclePage extends PaginationComponent<Vehicle> {
}
loadVehicleCount() {
VehicleController.getVehicleCountByState(this.axios).then(res => {
this.vehicleCount = res.data;
VehicleController.getVehicleAllStateCount(this.axios, this.pagination.requestParams).then(res => {
console.log(res.data?.data)
this.vehicleCount = res.data.data;
});
}
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment