xuzhiheng 5 rokov pred
rodič
commit
b35f134d07

+ 27 - 1
src/jfw/modules/app/src/web/templates/dataExport/dataExport.html

@@ -322,7 +322,14 @@
         $('input:radio[name="way"]').click(function() {
             var checkValue = $('input:radio[name="way"]:checked').val();
             $('.match_way').hide(200);
-            $('.match').html(checkValue)
+            $('.match').html(checkValue);
+            var selectType = "";
+            if(checkValue === "按标题匹配"){
+                selectType = "title";
+            }else if(checkValue === "按全文匹配"){
+                selectType = "all";
+            }
+            localStorage.selectType = selectType;
         });
         $(".cancel").click(function() {
             $('.match_way').hide(200)
@@ -674,6 +681,17 @@
             $(".confirm").hide();
             $(".resetOne").show();
         }
+        //关键词选择方式
+        if(localStorage.selectType!==""&&localStorage.selectType!==undefined){
+            var selectType = localStorage.selectType;
+            var type = "";
+            if(selectType === "title"){
+                type = "按标题匹配";
+            }else if (selectType === "all"){
+                type = "按全文匹配";
+            }
+            $("match").text(type);
+        }
         //信息类型
         if(localStorage.subTypes!==undefined && localStorage.subTypes!==""){
             var subType = localStorage.subTypes;
@@ -831,6 +849,14 @@
             }
             if(localStorage.selectType!==undefined&&localStorage.selectType!==""){
                 selectType = localStorage.selectType;
+            }else{
+                var type = $(".mactch").text();
+                if(type === "按标题匹配"){
+                    selectType = "title";
+                }else if(type === "按全文匹配"){
+                    selectType = "all";
+                }
+                localStorage.selectType = selectType;
             }
             $.ajax({
                 type: 'post',

+ 27 - 1
src/web/templates/weixin/dataExport/dataExport.html

@@ -273,7 +273,14 @@
         $('input:radio[name="way"]').click(function() {
             var checkValue = $('input:radio[name="way"]:checked').val();
             $('.match_way').hide(200);
-            $('.match').html(checkValue)
+            $('.match').html(checkValue);
+            var selectType = "";
+            if(checkValue === "按标题匹配"){
+                selectType = "title";
+            }else if(checkValue === "按全文匹配"){
+                selectType = "all";
+            }
+            localStorage.selectType = selectType;
         });
         $(".cancel").click(function() {
             $('.match_way').hide(200)
@@ -626,6 +633,17 @@
             $(".confirm").hide();
             $(".resetOne").show();
         }
+        //关键词选择方式
+        if(localStorage.selectType!==""&&localStorage.selectType!==undefined){
+            var selectType = localStorage.selectType;
+            var type = "";
+            if(selectType === "title"){
+                type = "按标题匹配";
+            }else if (selectType === "all"){
+                type = "按全文匹配";
+            }
+            $("match").text(type);
+        }
         //信息类型
         if(localStorage.subTypes!==undefined && localStorage.subTypes!==""){
             var subType = localStorage.subTypes;
@@ -781,6 +799,14 @@
             }
             if(localStorage.selectType!==undefined&&localStorage.selectType!==""){
                 selectType = localStorage.selectType;
+            }else{
+                var type = $(".mactch").text();
+                if(type === "按标题匹配"){
+                    selectType = "title";
+                }else if(type === "按全文匹配"){
+                    selectType = "all";
+                }
+                localStorage.selectType = selectType;
             }
             $.ajax({
                 type: 'post',