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 706edb46
authored
Apr 23, 2026
by
zhangxw
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
替换查博士字段修改
1 parent
28084f35
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
2 deletions
aus-front/admin/src/views/vehicle/inventory/VehicleForm.vue
aus-front/admin/src/views/vehicle/inventory/VehicleForm.vue
View file @
706edb4
...
@@ -467,7 +467,7 @@ export default class VehicleForm extends FormComponent<Vehicle> {
...
@@ -467,7 +467,7 @@ export default class VehicleForm extends FormComponent<Vehicle> {
this
.
formState
.
coreSpecs
.
displacement
=
carModelData
.
base
?.
displacement
||
this
.
formState
.
coreSpecs
.
displacement
;
this
.
formState
.
coreSpecs
.
displacement
=
carModelData
.
base
?.
displacement
||
this
.
formState
.
coreSpecs
.
displacement
;
// 排放标准映射(国3/国4/国5/国6 -> 3/4/5/6)
// 排放标准映射(国3/国4/国5/国6 -> 3/4/5/6)
const
emissionStandardText
=
carModelData
.
base
?.
e
mission
Standard
;
const
emissionStandardText
=
carModelData
.
base
?.
e
ffluent
Standard
;
if
(
emissionStandardText
)
{
if
(
emissionStandardText
)
{
const
emissionMap
:
Record
<
string
,
number
>
=
{
const
emissionMap
:
Record
<
string
,
number
>
=
{
'国3'
:
3
,
'国4'
:
4
,
'国5'
:
5
,
'国6'
:
6
,
'国3'
:
3
,
'国4'
:
4
,
'国5'
:
5
,
'国6'
:
6
,
...
@@ -485,7 +485,18 @@ export default class VehicleForm extends FormComponent<Vehicle> {
...
@@ -485,7 +485,18 @@ export default class VehicleForm extends FormComponent<Vehicle> {
this
.
setDropdownValue
(
'rlxs'
,
carModelData
.
engine
?.
rlxs
,
[
'汽油'
,
'柴油'
,
'纯电'
,
'混动'
]);
this
.
setDropdownValue
(
'rlxs'
,
carModelData
.
engine
?.
rlxs
,
[
'汽油'
,
'柴油'
,
'纯电'
,
'混动'
]);
// 车辆配置相关
// 车辆配置相关
this
.
setDropdownValue
(
'bxslx'
,
carModelData
.
base
?.
gearboxType
,
[
'自动'
,
'手动'
,
'双离合'
,
'手自一体'
]);
const
bxslxText
=
carModelData
.
base
?.
gearboxType
if
(
bxslxText
)
{
const
bxslxMap
:
Record
<
string
,
string
>
=
{
'自动'
:
'自动'
,
'手动'
:
'手动'
,
'双离合'
:
'双离合'
,
'手自一体'
:
'手自一体'
,
'自动档'
:
'自动'
,
'手动档'
:
'手动'
}
console
.
log
(
bxslxText
)
const
mappedValue
=
bxslxMap
[
bxslxText
];
if
(
mappedValue
&&
[
'自动'
,
'手动'
,
'双离合'
,
'手自一体'
].
includes
(
mappedValue
))
{
this
.
formState
.
coreSpecs
.
bxslx
=
mappedValue
;
}
}
this
.
setDropdownValue
(
'qdfs'
,
carModelData
.
base
?.
drivenType
,
[
'前驱'
,
'后驱'
,
'四驱'
]);
this
.
setDropdownValue
(
'qdfs'
,
carModelData
.
base
?.
drivenType
,
[
'前驱'
,
'后驱'
,
'四驱'
]);
this
.
setDropdownValue
(
'vehicleClass'
,
carModelData
.
base
?.
vehicleClass
,
[
'中型车'
,
'紧凑型轿车'
,
'SUV'
]);
this
.
setDropdownValue
(
'vehicleClass'
,
carModelData
.
base
?.
vehicleClass
,
[
'中型车'
,
'紧凑型轿车'
,
'SUV'
]);
this
.
formState
.
coreSpecs
.
seat
=
carModelData
.
base
?.
seat
||
this
.
formState
.
coreSpecs
.
seat
;
this
.
formState
.
coreSpecs
.
seat
=
carModelData
.
base
?.
seat
||
this
.
formState
.
coreSpecs
.
seat
;
...
...
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