|
@@ -329,7 +329,7 @@ define([ "require", "backbone", "hbs!tmpl/search/SearchLayoutView_tmpl", "utils/
|
|
|
}), _.each(_.uniq(serviceArr), function(service) {
|
|
|
serviceStr += '<li><div class="pretty p-switch p-fill"><input type="checkbox" class="pull-left" data-value="' + service + '" value="" ' + (_.contains(that.selectedFilter[that.type], service) ? "checked" : "") + '/><div class="state p-primary"><label>' + service.toUpperCase() + "</label></div></div></li>";
|
|
|
});
|
|
|
- var templt = serviceStr + '<hr class="hr-filter"/><div class="text-right"><div class="divider"></div><button class="btn btn-action btn-sm filterDone">Done</button></div>';
|
|
|
+ var templt = serviceStr + '<hr class="hr-filter"/><div class="text-right"><div class="divider"></div><button class="btn btn-action btn-sm filterDone">确认</button></div>';
|
|
|
return templt;
|
|
|
},
|
|
|
renderTypeTagList: function(options) {
|
|
@@ -498,11 +498,12 @@ define([ "require", "backbone", "hbs!tmpl/search/SearchLayoutView_tmpl", "utils/
|
|
|
var paramObj = Utils.getUrlState.getQueryParams();
|
|
|
paramObj && this.type == paramObj.searchType && this.updateQueryObject(paramObj),
|
|
|
e.currentTarget.checked ? (this.type = "dsl", this.dsl = !0, this.$(".typeFilterBtn,.tagBox,.termBox,.basicSaveSearch").hide(),
|
|
|
- this.$(".typeFilter").addClass("col-sm-12"), this.$(".typeFilter").removeClass("col-sm-10"),
|
|
|
+ // this.$(".typeFilter").addClass("col-sm-12"), this.$(".typeFilter").removeClass("col-sm-10"),
|
|
|
+ this.$(".typeFilter").addClass("col-sm-12"), this.$(".typeFilter").removeClass("col-sm-12"),
|
|
|
// this.$(".advanceSaveSearch").show(), this.$(".searchText").text("Search By Query"),
|
|
|
this.$(".advanceSaveSearch").show(), this.$(".searchText").text("根据查询搜索"),
|
|
|
// this.ui.searchInput.attr("placeholder", 'Search By Query eg. where name="sales_fact"')) : (this.$(".typeFilter").addClass("col-sm-10"),
|
|
|
- this.ui.searchInput.attr("placeholder", '根据查询搜索,例如:where name="sales_fact"')) : (this.$(".typeFilter").addClass("col-sm-10"),
|
|
|
+ this.ui.searchInput.attr("placeholder", '根据查询搜索,例如:where name="sales_fact"')) : (this.$(".typeFilter").addClass("col-sm-12"),
|
|
|
this.$(".typeFilter").removeClass("col-sm-12"), this.$(".typeFilterBtn,.tagBox,.termBox,.basicSaveSearch").show(),
|
|
|
this.$(".advanceSaveSearch").hide(), this.dsl = !1, this.type = "basic", this.$(".searchText").text("根据语句搜索"),
|
|
|
this.ui.searchInput.attr("placeholder", "根据语句搜索")), Utils.getUrlState.isSearchTab() && Utils.setUrl({
|