Selaa lähdekoodia

fix: 标讯收藏筛选条件改变清空已选项

cuiyalong 3 vuotta sitten
vanhempi
commit
4bee7af5b7

+ 7 - 0
src/web/staticres/frontRouter/pc/collection/js/index-pc.js

@@ -321,6 +321,7 @@ var vm = new Vue({
         },
         tagFilterChange: function (tagList) {
             this.filterState.tags = tagList
+            this.clearSelectState()
             this.doQuery()
         },
         dateTimeFilterChange: function (t) {
@@ -337,6 +338,7 @@ var vm = new Vue({
             } else {
                 this.filterState.selectTime = arr.join('_')
             }
+            this.clearSelectState()
             this.doQuery()
         },
         buyerClassFilterChange: function (buyerclass) {
@@ -347,6 +349,7 @@ var vm = new Vue({
                     buyerclassArr = buyerclassArr.concat(buyerclass[key])
                 }
                 this.filterState.buyerclass = buyerclassArr
+                this.clearSelectState()
                 this.doQuery()
             } else {
                 this.$refs.buyerClassFilter.setState()
@@ -357,6 +360,7 @@ var vm = new Vue({
         },
         otherFilterChange: function (t) {
             if (this.power) {
+                this.clearSelectState()
                 this.doQuery()
             } else {
                 this.filterState.buyerPhone = 0
@@ -428,6 +432,9 @@ var vm = new Vue({
                 }
             })
         },
+        clearSelectState: function () {
+            selectDataIds = []
+        }, 
         unStarThis: function (item) {
             baiduEvent('列表页标讯收藏-星标') // 收藏按钮百度统计
             var _this = this

+ 2 - 0
src/web/staticres/js/biddingSearch.js

@@ -273,6 +273,7 @@ $(function() {
 				//隐藏翻页(仅超级搜索页面、拟建项目不隐藏)
 				if(window.location.href.indexOf("supsearch/index.html")>-1||window.location.href.indexOf("bidsearchforent/index.html")>-1){
 					$(".pagination.clearfix.w").css("display","none");
+          $('.el-pagination-container').hide()
 				}
 			}else if($(this).attr("id")=="right-list"){
 				$(this).addClass("active").siblings().removeClass("active");
@@ -281,6 +282,7 @@ $(function() {
 				//显示翻页
 				if(window.location.href.indexOf("supsearch/index.html")>-1||window.location.href.indexOf("bidsearchforent/index.html")>-1){
 					$(".pagination.clearfix.w").css("display","");
+          $('.el-pagination-container').show()
 				}
 			}else if($(this).attr("id")=="right-export"){
 				//数据导出