|
@@ -53,9 +53,6 @@
|
|
|
<template #energy>
|
|
|
<el-option v-for="i in energyList" :key="i._id" :label="i.label" :value="i.value"></el-option>
|
|
|
</template>
|
|
|
- <template #displacement>
|
|
|
- <el-option v-for="i in displacementList" :key="i._id" :label="i.label" :value="i.value"></el-option>
|
|
|
- </template>
|
|
|
<template #set>
|
|
|
<el-option v-for="i in setList" :key="i._id" :label="i.label" :value="i.value"></el-option>
|
|
|
</template>
|
|
@@ -112,7 +109,6 @@ const boxTypeList: Ref<any> = ref([]);
|
|
|
const structureList: Ref<any> = ref([]);
|
|
|
const emissionList: Ref<any> = ref([]);
|
|
|
const energyList: Ref<any> = ref([]);
|
|
|
-const displacementList: Ref<any> = ref([]);
|
|
|
const setList: Ref<any> = ref([]);
|
|
|
const levelList: Ref<any> = ref([]);
|
|
|
const driveList: Ref<any> = ref([]);
|
|
@@ -143,9 +139,6 @@ const searchOther = async () => {
|
|
|
// 能源类型
|
|
|
res = await dictDataStore.query({ code: 'energy', is_use: '0' });
|
|
|
if ($checkRes(res)) energyList.value = res.data;
|
|
|
- // 排量
|
|
|
- res = await dictDataStore.query({ code: 'displacement', is_use: '0' });
|
|
|
- if ($checkRes(res)) displacementList.value = res.data;
|
|
|
// 座椅
|
|
|
res = await dictDataStore.query({ code: 'set', is_use: '0' });
|
|
|
if ($checkRes(res)) setList.value = res.data;
|
|
@@ -206,8 +199,8 @@ let fields: Ref<any[]> = ref([
|
|
|
{ label: '车款', model: 'style', isSearch: true },
|
|
|
{ label: '新车价格', model: 'price' },
|
|
|
{ label: '实付价格', model: 'real_pay' },
|
|
|
- { label: '车龄', model: 'age' },
|
|
|
- { label: '过户次数', model: 'number' },
|
|
|
+ { label: '车龄', model: 'age', isSearch: true },
|
|
|
+ { label: '过户次数', model: 'number', isSearch: true },
|
|
|
{ label: '状态', model: 'status', format: (i) => getDict(i, 'status'), isSearch: true, type: 'select' }
|
|
|
]);
|
|
|
// 操作
|
|
@@ -307,7 +300,7 @@ const formFieldsForCreate = [
|
|
|
{ label: '车身结构', model: 'structure', type: 'select' },
|
|
|
{ label: '排放标准', model: 'emission', type: 'select' },
|
|
|
{ label: '能源类型', model: 'energy', type: 'select' },
|
|
|
- { label: '排量', model: 'displacement', type: 'select' },
|
|
|
+ { label: '排量', model: 'displacement' },
|
|
|
{ label: '座椅', model: 'set', type: 'select' },
|
|
|
{ label: '车辆级别', model: 'level', type: 'select' },
|
|
|
{ label: '驱动方式', model: 'drive', type: 'select' },
|
|
@@ -343,7 +336,7 @@ const formFieldsForUpdate = [
|
|
|
{ label: '车身结构', model: 'structure', type: 'select' },
|
|
|
{ label: '排放标准', model: 'emission', type: 'select' },
|
|
|
{ label: '能源类型', model: 'energy', type: 'select' },
|
|
|
- { label: '排量', model: 'displacement', type: 'select' },
|
|
|
+ { label: '排量', model: 'displacement' },
|
|
|
{ label: '座椅', model: 'set', type: 'select' },
|
|
|
{ label: '车辆级别', model: 'level', type: 'select' },
|
|
|
{ label: '驱动方式', model: 'drive', type: 'select' },
|