Jelajahi Sumber

fix:筛选组件样式及传参

yangfeng 1 tahun lalu
induk
melakukan
1f53f37526

+ 1 - 1
apps/bigmember_pc/src/components/selector/TimeSelectorContent.vue

@@ -212,7 +212,7 @@ const timeSelectMap = {
       selected: false
     },
     {
-      name: '近3个月',
+      name: '近3个月',
       value: 'lately90',
       selected: false
     }

+ 3 - 2
apps/bigmember_pc/src/views/collection/constant/search-filters.js

@@ -84,7 +84,7 @@ function createSearchBidBaseSchema(conf = {}) {
       key: 'selectTime',
       label: '收藏日期:',
       defaultVal: '',
-      _name: 'time',
+      _name: 'selectTime',
       _type: 'component',
       expand: {
         component: SearchTimeScopeSelector,
@@ -103,6 +103,7 @@ function createSearchBidBaseSchema(conf = {}) {
       label: '标题正文:',
       defaultVal: '',
       _name: 'keywords',
+      labelHeight: '30px',
       _type: 'component',
       expand: {
         component: CollectSearchInput,
@@ -118,7 +119,7 @@ function createSearchBidBaseSchema(conf = {}) {
       key: 'publishTime',
       label: '发布时间:',
       defaultVal: '',
-      _name: 'time',
+      _name: 'publishTime',
       _type: 'component',
       expand: {
         component: SearchTimeScopeSelector,

+ 0 - 3
apps/bigmember_pc/src/views/collection/index.vue

@@ -309,9 +309,6 @@ const articleRef = ref({
     .search-header-container{
       border-bottom: 1px solid #ececec;
     }
-    .search-schema-filter-item:nth-child(3){
-      align-items: center;
-    }
     .a-i-detail{
       padding-left: 0;
     }

+ 7 - 4
apps/bigmember_pc/src/views/search/supply/constant/search-filters.js

@@ -8,7 +8,8 @@ const SearchSupplyBaseSchema = [
     key: 'searchType',
     label: '搜索范围:',
     defaultVal: [],
-    _name: 'type',
+    _name: 'searchType',
+    labelHeight: '22px',
     _type: 'component',
     expand: {
       component: SearchScopeSelector,
@@ -38,7 +39,8 @@ const SearchSupplyBaseSchema = [
     key: 'regionMap',
     label: '选择区域:',
     defaultVal: [],
-    _name: 'type',
+    _name: 'regionMap',
+    labelHeight: '32px',
     _type: 'component',
     expand: {
       component: RegionCollapseSelector,
@@ -50,7 +52,7 @@ const SearchSupplyBaseSchema = [
     key: 'time',
     label: '发布时间:',
     defaultVal: {},
-    _name: 'type',
+    _name: 'time',
     _type: 'component',
     expand: {
       component: TimeSelector,
@@ -65,8 +67,9 @@ const SearchSupplyBaseSchema = [
     key: 'status',
     label: '信息状态:',
     defaultVal: '0',
-    _name: 'type',
+    _name: 'status',
     _type: 'component',
+    labelHeight: '24px',
     expand: {
       component: TagSelector,
       props: {