Bläddra i källkod

fix: pc企业查询注册资本筛选支持多选

cuiyalong 4 år sedan
förälder
incheckning
cd25e1260c
1 ändrade filer med 6 tillägg och 6 borttagningar
  1. 6 6
      src/web/staticres/js/ent-search-index-pc.js

+ 6 - 6
src/web/staticres/js/ent-search-index-pc.js

@@ -297,14 +297,14 @@ var vm = new Vue({
         },
         // 标准金额区间
         inexactPriceChange: function (p) {
-            console.info('inexactPriceChange')
-            console.info(p)
+            this.filterState.entCapital = p
+            this.doSearch()
         },
         // 输入金额区间
         exactPriceChange: function (p) {
-            console.info('exactPriceChange')
             this.$refs.entCapital.setState()
-            console.info(p)
+            this.filterState.entCapital = [p.min + '-' + p.max]
+            this.doSearch()
         },
         zbFilterChange: function () {
             if (this.power) {
@@ -356,7 +356,7 @@ var vm = new Vue({
                 matchType: this.filterState.searchType.join(','),
                 entArea: this.filterState.entArea.join(','),
                 entCity: this.filterState.entCity.join(','),
-                entCapital: '',
+                entCapital: this.filterState.entCapital.join(','),
                 entType: this.filterState.entType.join(','),
                 entStatus: this.filterState.entStatus.join(','),
                 biddingArea: this.filterState.biddingArea,
@@ -365,7 +365,7 @@ var vm = new Vue({
                 pageSize: this.listState.pageSize,
                 pageNum: this.listState.pageNum - 1, // 当前页, 从0开始
             }
-            
+            // return console.info(JSON.stringify(data, null, 2))
             if (!data.match.replace(/\s+/g, '')) return
 
             this.listState.loading = true