需求变更

This commit is contained in:
JenniferW 2025-07-03 17:09:49 +08:00
parent 6940b2fa6a
commit 98509d1d39
2 changed files with 40 additions and 35 deletions

View File

@ -19,23 +19,23 @@ export const customerOptions = {
};
export const carTypeOptions = [
// {
// label: "最常选择",
// options: [
// {
// value: "CR400AF",
// label: "CR400AF",
// description: "中国标准动车组最高运营速度350km/h",
// specifications: {
// "最高运营速度": "350km/h",
// "编组方式": "8辆编组",
// "定员": "556人",
// "轴重": "≤17t"
// },
// image: "/images/cars/CR400AF.jpg"
// }
// ]
// },
{
label: "最常选择",
options: [
{
value: "CR400AF",
label: "CR400AF",
description: "中国标准动车组最高运营速度350km/h",
specifications: {
"最高运营速度": "350km/h",
"编组方式": "8辆编组",
"定员": "556人",
"轴重": "≤17t"
},
image: "/images/cars/CR400AF.jpg"
}
]
},
{
label: "高速动车组",
options: [

View File

@ -3,25 +3,30 @@
<div class="main-row">
<div class="right-content">
<div>
<!-- 车型横向单选区 -->
<div class="search-row">
<span class="search-label">车型</span>
<div class="car-type-text-list">
<span
v-for="option in carTypeOptions.flatMap((group) => group.options)"
:key="option.value"
:class="['car-type-text', selectedCarTypeProxy === option.value ? 'active' : '']"
@click="selectCarType(option.value)"
>
{{ option.label }}
</span>
</div>
</div>
<div class="search-divider"></div>
<!-- 其它参数分组标题 -->
<div class="param-group-title">其它参数</div>
<!-- 参数项区 -->
<!-- 查询条件区车型车轴齿轮箱车轮制动盘 -->
<div class="param-form-row">
<div class="param-form-item">
<span class="param-label">车型</span>
<el-select
v-model="selectedCarTypeProxy"
placeholder="请选择车型"
filterable
class="param-input"
>
<el-option-group
v-for="group in carTypeOptions"
:key="group.label"
:label="group.label"
>
<el-option
v-for="option in group.options"
:key="option.value"
:label="option.label"
:value="option.value"
/>
</el-option-group>
</el-select>
</div>
<div class="param-form-item">
<span class="param-label">车轴</span>
<el-input v-model="paramAxle" placeholder="不限" class="param-input" />