diff --git a/.env.development b/.env.development index b8ccd8b..fbcc74b 100644 --- a/.env.development +++ b/.env.development @@ -1,5 +1,5 @@ VITE_APP_NAME=后台管理(开发环境) -#VITE_API_URL=http://127.0.0.1:9200/api +VITE_API_URL=http://127.0.0.1:9200/api #VITE_SERVER_API_URL=http://127.0.0.1:8000/api diff --git a/src/api/house/houseInfo/model/index.ts b/src/api/house/houseInfo/model/index.ts index 9ccc06f..3d95588 100644 --- a/src/api/house/houseInfo/model/index.ts +++ b/src/api/house/houseInfo/model/index.ts @@ -18,14 +18,20 @@ export interface HouseInfo { leaseMethod?: string; // 租金 rent?: string; + // 租金单位 + rentUnit?: string; // 月租金 monthlyRent?: string; + // 月租金单位 + monthlyRentUnit?: string; // 佣金 commission?: string; // 物业费 propertyFees?: string; // 面积 extent?: string; + // 面积单位 + extentUnit?: string; // 楼层 floor?: string; // 房号 diff --git a/src/views/house/maimai/components/info-edit.vue b/src/views/house/maimai/components/info-edit.vue index 7391738..5ea2cc3 100644 --- a/src/views/house/maimai/components/info-edit.vue +++ b/src/views/house/maimai/components/info-edit.vue @@ -50,30 +50,47 @@ {{ form.phone }} - + + + + {{ form.extent }} - + + + + {{ form.rent }} - + + + + {{ form.monthlyRent }} @@ -120,7 +137,7 @@ @@ -396,8 +413,11 @@ import {ref, reactive, watch, computed} from 'vue'; houseType: undefined, leaseMethod: undefined, rent: undefined, + rentUnit: '泰铢', monthlyRent: undefined, + monthlyRentUnit: undefined, extent: undefined, + extentUnit: '泰铢/菜', floor: undefined, roomNumber: undefined, realName: undefined, @@ -673,7 +693,7 @@ import {ref, reactive, watch, computed} from 'vue'; content: content.value, files: JSON.stringify(files.value), houseLabel: JSON.stringify(houseLabelData.value), - monthlyRent: monthlyRent.value, + monthlyRent: form.rent, type: props.type }; const saveOrUpdate = isUpdate.value ? updateHouseInfo : addHouseInfo;