|
@@ -379,7 +379,6 @@
|
|
|
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];
|
|
@@ -388,48 +387,36 @@
|
|
|
searchType = item.split("=")[1];
|
|
|
old_searchType = item.split("=")[1];
|
|
|
}
|
|
|
- if (item.split("=")[0] == "current") {
|
|
|
- current = item.split("=")[1];
|
|
|
- }
|
|
|
});
|
|
|
- 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;
|
|
|
- }
|
|
|
+ // 如果是词汇 默认选中词
|
|
|
+ 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 {
|
|
|
- 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")
|
|
|
+ $("#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;
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+
|
|
|
function getdata() {
|
|
|
let data = {
|
|
|
searchType: searchType * 1,
|
|
@@ -620,9 +607,6 @@
|
|
|
}
|
|
|
}
|
|
|
searchType = newvalue
|
|
|
- let href = location.href.split("?")[0]
|
|
|
- href = href + "?partitionKey=" + partitionKey + "&searchType=" + searchType + "¤t=1"
|
|
|
- location.replace(href)
|
|
|
getdata()
|
|
|
})
|
|
|
$(".fontDriect div").click(function () {
|