|  | @@ -379,6 +379,7 @@
 | 
	
		
			
				|  |  |          var searchType = null;
 | 
	
		
			
				|  |  |          var old_searchType = null
 | 
	
		
			
				|  |  |          var W_stopWordStatus = null
 | 
	
		
			
				|  |  | +        var current = null
 | 
	
		
			
				|  |  |          arr.forEach((item) => {
 | 
	
		
			
				|  |  |              if (item.split("=")[0] == "partitionKey") {
 | 
	
		
			
				|  |  |                  partitionKey = item.split("=")[1];
 | 
	
	
		
			
				|  | @@ -387,34 +388,48 @@
 | 
	
		
			
				|  |  |                  searchType = item.split("=")[1];
 | 
	
		
			
				|  |  |                  old_searchType = item.split("=")[1];
 | 
	
		
			
				|  |  |              }
 | 
	
		
			
				|  |  | +            if (item.split("=")[0] == "current") {
 | 
	
		
			
				|  |  | +                current = item.split("=")[1];
 | 
	
		
			
				|  |  | +            }
 | 
	
		
			
				|  |  |          });
 | 
	
		
			
				|  |  | -        // 如果是词汇  默认选中词
 | 
	
		
			
				|  |  | -        if (old_searchType == 2) {
 | 
	
		
			
				|  |  | -            $(".danwei div").removeClass("radio-active");
 | 
	
		
			
				|  |  | -            $(".danwei").find("div").eq(1).addClass("radio-active")
 | 
	
		
			
				|  |  | -        }
 | 
	
		
			
				|  |  | -        if (old_searchType == 0) {
 | 
	
		
			
				|  |  | -            $("#font").attr("value", "FZPY");
 | 
	
		
			
				|  |  | -            $(".danwei div").removeClass("radio-active");
 | 
	
		
			
				|  |  | -            searchType = 3
 | 
	
		
			
				|  |  | -            $(".danwei").find("div").eq(1).addClass("radio-active")
 | 
	
		
			
				|  |  | -            for (let i = 0; i < $("#fontSel").children().length; i++) {
 | 
	
		
			
				|  |  | -                if ($("#fontSel").children().eq(i)[0].value == "FZPY") {
 | 
	
		
			
				|  |  | -                    $("#fontSel").children().eq(i)[0].selected = true;
 | 
	
		
			
				|  |  | -                } else {
 | 
	
		
			
				|  |  | -                    $("#fontSel").children().eq(i)[0].selected = false;
 | 
	
		
			
				|  |  | +        if (!current) {
 | 
	
		
			
				|  |  | +            // 如果是词汇  默认选中词
 | 
	
		
			
				|  |  | +            if (old_searchType == 2) {
 | 
	
		
			
				|  |  | +                $(".danwei div").removeClass("radio-active");
 | 
	
		
			
				|  |  | +                $(".danwei").find("div").eq(1).addClass("radio-active")
 | 
	
		
			
				|  |  | +            }
 | 
	
		
			
				|  |  | +            if (old_searchType == 0) {
 | 
	
		
			
				|  |  | +                $("#font").attr("value", "FZPY");
 | 
	
		
			
				|  |  | +                $(".danwei div").removeClass("radio-active");
 | 
	
		
			
				|  |  | +                searchType = 3
 | 
	
		
			
				|  |  | +                $(".danwei").find("div").eq(1).addClass("radio-active")
 | 
	
		
			
				|  |  | +                for (let i = 0; i < $("#fontSel").children().length; i++) {
 | 
	
		
			
				|  |  | +                    if ($("#fontSel").children().eq(i)[0].value == "FZPY") {
 | 
	
		
			
				|  |  | +                        $("#fontSel").children().eq(i)[0].selected = true;
 | 
	
		
			
				|  |  | +                    } else {
 | 
	
		
			
				|  |  | +                        $("#fontSel").children().eq(i)[0].selected = false;
 | 
	
		
			
				|  |  | +                    }
 | 
	
		
			
				|  |  | +                }
 | 
	
		
			
				|  |  | +            } else {
 | 
	
		
			
				|  |  | +                $("#font").attr("value", "FZKT-GBK");
 | 
	
		
			
				|  |  | +                for (let i = 0; i < $("#fontSel").children().length; i++) {
 | 
	
		
			
				|  |  | +                    if ($("#fontSel").children().eq(i)[0].value == "FZKT-GBK") {
 | 
	
		
			
				|  |  | +                        $("#fontSel").children().eq(i)[0].selected = true;
 | 
	
		
			
				|  |  | +                    } else {
 | 
	
		
			
				|  |  | +                        $("#fontSel").children().eq(i)[0].selected = false;
 | 
	
		
			
				|  |  | +                    }
 | 
	
		
			
				|  |  |                  }
 | 
	
		
			
				|  |  |              }
 | 
	
		
			
				|  |  |          } else {
 | 
	
		
			
				|  |  | -            $("#font").attr("value", "FZKT-GBK");
 | 
	
		
			
				|  |  | -            for (let i = 0; i < $("#fontSel").children().length; i++) {
 | 
	
		
			
				|  |  | -                if ($("#fontSel").children().eq(i)[0].value == "FZKT-GBK") {
 | 
	
		
			
				|  |  | -                    $("#fontSel").children().eq(i)[0].selected = true;
 | 
	
		
			
				|  |  | -                } else {
 | 
	
		
			
				|  |  | -                    $("#fontSel").children().eq(i)[0].selected = false;
 | 
	
		
			
				|  |  | -                }
 | 
	
		
			
				|  |  | +            if (searchType == 0 || searchType == 1) {
 | 
	
		
			
				|  |  | +                $(".danwei div").removeClass("radio-active");
 | 
	
		
			
				|  |  | +                $(".danwei").find("div").eq(0).addClass("radio-active")
 | 
	
		
			
				|  |  | +            } else {
 | 
	
		
			
				|  |  | +                $(".danwei div").removeClass("radio-active");
 | 
	
		
			
				|  |  | +                $(".danwei").find("div").eq(1).addClass("radio-active")
 | 
	
		
			
				|  |  |              }
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  |          function getdata() {
 | 
	
		
			
				|  |  |              let data = {
 | 
	
		
			
				|  |  |                  searchType: searchType * 1,
 | 
	
	
		
			
				|  | @@ -605,6 +620,9 @@
 | 
	
		
			
				|  |  |                  }
 | 
	
		
			
				|  |  |              }
 | 
	
		
			
				|  |  |              searchType = newvalue
 | 
	
		
			
				|  |  | +            let href = location.href.split("?")[0]
 | 
	
		
			
				|  |  | +            href = href + "?partitionKey=" + partitionKey + "&searchType=" + searchType + "¤t=1"
 | 
	
		
			
				|  |  | +            location.replace(href)
 | 
	
		
			
				|  |  |              getdata()
 | 
	
		
			
				|  |  |          })
 | 
	
		
			
				|  |  |          $(".fontDriect div").click(function () {
 |