|
@@ -15,7 +15,7 @@
|
|
|
/>
|
|
|
</template>
|
|
|
<template #houseType="{ record }">
|
|
|
- {{ renderHouseType(record.houseType) }}
|
|
|
+ {{ renderHouseType(Number(record.type)) }}
|
|
|
</template>
|
|
|
|
|
|
<template #action="{ record }">
|
|
@@ -98,7 +98,7 @@
|
|
|
},
|
|
|
{
|
|
|
title: t('common.type'),
|
|
|
- dataIndex: 'houseType',
|
|
|
+ dataIndex: 'type',
|
|
|
slots: { customRender: 'houseType' },
|
|
|
width: 100,
|
|
|
},
|
|
@@ -178,7 +178,7 @@
|
|
|
api: brandTypeListApi,
|
|
|
resultField: 'list',
|
|
|
labelField: 'name',
|
|
|
- valueField: 'id',
|
|
|
+ valueField: 'brandType',
|
|
|
params: {
|
|
|
page: 1,
|
|
|
limit: 1000,
|
|
@@ -215,16 +215,19 @@
|
|
|
},
|
|
|
],
|
|
|
};
|
|
|
+
|
|
|
function renderHouseType(type: number): string {
|
|
|
switch (type) {
|
|
|
case 0:
|
|
|
- return t(`routes.scenes.houseType.0`);
|
|
|
+ return '新房';
|
|
|
case 1:
|
|
|
- return t(`routes.scenes.houseType.1`);
|
|
|
+ return '二手房';
|
|
|
case 2:
|
|
|
- return t(`routes.scenes.houseType.2`);
|
|
|
+ return '公寓';
|
|
|
case 3:
|
|
|
- return t(`routes.scenes.houseType.3`);
|
|
|
+ return '民宿';
|
|
|
+ case 4:
|
|
|
+ return '装修';
|
|
|
default:
|
|
|
return t(`routes.scenes.houseType.9`);
|
|
|
}
|