Browse Source

style:物业专版,信息类型传参修改

zhangsiya 1 year ago
parent
commit
0f1a981f53

+ 1 - 1
apps/bigmember_pc/src/views/search/bidding/constant/search-filters-bi.js

@@ -140,7 +140,7 @@ function createBiSearchBidMoreSchema() {
       }
     },
     {
-      key: 'subType',
+      key: 'subtype',
       label: '信息类型',
       defaultVal: '',
       _name: 'subtype',

+ 4 - 4
apps/bigmember_pc/src/views/search/bidding/model/modules/filter.js

@@ -60,7 +60,7 @@ export function useSearchFilterModel(conf) {
     // 搜索范围
     selectType: ['title', 'content'],
     // 信息类型
-    subType: {},
+    subtype: {},
     // 发布时间
     publishTime: '',
     // 换手率
@@ -127,9 +127,9 @@ export function useSearchFilterModel(conf) {
   }
   // 格式化物业专版的筛选条件
   function getFormatAPIPropertyParams() {
-    const { publishTime, regionMap, notKey, subType, expireTime } = filterState.value
+    const { publishTime, regionMap, notKey, subtype, expireTime } = filterState.value
     const { area, city } = areaObjTwoToSingle(regionMap)
-    const rSubtype = infoTypeMapFormat(subType)
+    const rSubtype = infoTypeMapFormat(subtype)
     let rPublishTime = ''
     if(publishTime && publishTime.indexOf('-') > -1) {
       const arr =  publishTime.split('-')
@@ -162,7 +162,7 @@ export function useSearchFilterModel(conf) {
       period:  filterState.value.period?.join(),
       propertyForm: filterState.value.propertyForm?.join(),
       selectType: filterState.value.selectType?.join(','),
-      subType: rSubtype,
+      subtype: rSubtype,
       publishTime: rPublishTime ,
       changeHand: filterState.value.changeHand ?  Number(filterState.value.changeHand) : 0,
       fileExists: filterState.value.fileExists,