Commit 5115205e by zhangxw

四级车型回显bug修复

1 parent 90bfecec
......@@ -17,7 +17,7 @@
</el-select>
</template>
<template slot="vehicleSeriesId" slot-scope="scope">
<el-select v-model="editForm.vehicle.vehicleSeriesId" filterable placeholder="请选择车系" @change="getCarTypeList(editForm.vehicle.vehicleSeriesId)" style="width: 136px" :disabled="scope.scope.isDisabled">
<el-select v-model="editForm.vehicle.vehicleSeriesId" filterable placeholder="请选择车系" @change="getCarTypeList(false)" style="width: 136px" :disabled="scope.scope.isDisabled">
<el-option v-for="item in baseData.carSeriesOptions" :key="item.id" :value="item.id" :label="item.name" />
</el-select>
</template>
......@@ -2295,10 +2295,9 @@ export default {
// 获取车型
getCarTypeList(isRecovery = false) {
if (!isRecovery) {
this.editForm.vehicle.vehicleShapeId = ''
this.baseData.carTypeOptions = []
}
// 将车型清空
this.editForm.vehicle.vehicleShapeId = ''
const params = {
carSeriesId: this.editForm.vehicle.vehicleSeriesId
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!