浏览代码

feat:已存筛选展示信息类型

tsz 2 年之前
父节点
当前提交
2d51c79c00
共有 2 个文件被更改,包括 27 次插入7 次删除
  1. 1 1
      src/web/staticres/css/pc/index.css
  2. 26 6
      src/web/templates/pc/supsearch.html

+ 1 - 1
src/web/staticres/css/pc/index.css

@@ -276,7 +276,7 @@
 }
 .jy-index-search .tips i{
   position: absolute;
-  top: 40px;
+  top: 41px;
   left: 58px;
   display: inline-block;
   width: 14px;

+ 26 - 6
src/web/templates/pc/supsearch.html

@@ -1664,7 +1664,7 @@ $(function(){
     if(!goTemplateData.inIframe){
       var formNode_ = $('#zbSeatchT')
       var goHref_ = location.origin + '/jylab/supsearch/index.html'
-      // window.location.replace('/page_workDesktop/work-bench/page?link=' + encodeURIComponent(goHref_ + '?' + formNode_.serialize()))
+      window.location.replace('/page_workDesktop/work-bench/page?link=' + encodeURIComponent(goHref_ + '?' + formNode_.serialize()))
     }
 
   }
@@ -3342,11 +3342,15 @@ if(sessionselect){
                 })
                 r.data[0].flag = true
                 _this.filterCounts = r.data.length
-                // r.data.forEach(v => {
-                //   if (v.additionalWords) {
-                //     v.additionalWords = v.additionalWords.replace(/,/g, ",")
-                //   }
-                // })
+                r.data.forEach(v => {
+                  if (!v.subtype) {
+                    if (v.searchGroup === 1) {
+                      v.subtype = '招标预告,招标公告,招标结果,招标信用信息'
+                    } else if (v.searchGroup === 2) {
+                      v.subtype = '拟建项目,采购意向'
+                    }
+                  }
+                })
                 _this.filterData = r.data
               } else {
                 _this.filterData = []
@@ -3413,6 +3417,13 @@ if(sessionselect){
                 }
                 if (r.error_code == 0) {
                   _this.saveFilterDialog = true
+                  if (params.subtype === '') {
+                    if (params.searchGroup === 1) {
+                      params.subtype = '招标预告,招标公告,招标结果,招标信用信息'
+                    } else if (params.searchGroup === 2) {
+                      params.subtype = '拟建项目,采购意向'
+                    }
+                  }
                   _this.curFilter = _this.formatFilterData(params)
                   console.log(_this.curFilter, '22');
                   _this.filterInkey = r.data
@@ -3578,6 +3589,15 @@ if(sessionselect){
       },
       // 回显页面选中条件、表单隐藏域val值
       getEchoData: function(item) {
+        if (item.searchGroup === 1) {
+          if (item.subtype === '招标预告,招标公告,招标结果,招标信用信息') {
+            item.subtype = ''
+          }
+        } else if (item.searchGroup === 2) {
+          if (item.subtype === '拟建项目,采购意向') {
+            item.subtype = ''
+          }
+        }
         // 免费用户或付费用户到期后将付费筛选条件置为默认
         item.searchvalue = this.formatToSpace(item.searchvalue)
         item.selectType = vipState && item.selectType ? item.selectType : this.removePayScope(item.selectType)