|
@@ -267,7 +267,7 @@ define([ "require", "backbone", "table-dragger", "hbs!tmpl/search/SearchResultLa
|
|
isFirstPage ? (that.ui.previousData.attr("disabled", !0), that.pageFrom = 1, that.pageTo = that.limit) : that.ui.previousData.attr("disabled", !1),
|
|
isFirstPage ? (that.ui.previousData.attr("disabled", !0), that.pageFrom = 1, that.pageTo = that.limit) : that.ui.previousData.attr("disabled", !1),
|
|
options && options.next ? (that.pageTo = that.offset + that.limit, that.pageFrom = that.offset + 1) : !isFirstPage && options && options.previous && (that.pageTo = that.pageTo - that.limit,
|
|
options && options.next ? (that.pageTo = that.offset + that.limit, that.pageFrom = that.offset + 1) : !isFirstPage && options && options.previous && (that.pageTo = that.pageTo - that.limit,
|
|
that.pageFrom = that.pageTo - that.limit + 1), that.ui.pageRecordText.html("显示 <u>" + that.searchCollection.models.length + " 条记录</u> 从 " + that.pageFrom + " - " + that.pageTo),
|
|
that.pageFrom = that.pageTo - that.limit + 1), that.ui.pageRecordText.html("显示 <u>" + that.searchCollection.models.length + " 条记录</u> 从 " + that.pageFrom + " - " + that.pageTo),
|
|
- that.activePage = Math.round(that.pageTo / that.limit), that.ui.activePage.attr("title", "Page " + that.activePage),
|
|
|
|
|
|
+ that.activePage = Math.round(that.pageTo / that.limit), that.ui.activePage.attr("title", "第" + that.activePage+"页"),
|
|
that.ui.activePage.text(that.activePage), that.renderTableLayoutView(), that.multiSelectEntity = [],
|
|
that.ui.activePage.text(that.activePage), that.renderTableLayoutView(), that.multiSelectEntity = [],
|
|
that.updateMultiSelect(), dataLength > 0 && that.$(".searchTable").removeClass("noData"),
|
|
that.updateMultiSelect(), dataLength > 0 && that.$(".searchTable").removeClass("noData"),
|
|
Utils.getUrlState.isSearchTab() && value && !that.profileDBView) {
|
|
Utils.getUrlState.isSearchTab() && value && !that.profileDBView) {
|
|
@@ -418,7 +418,7 @@ define([ "require", "backbone", "table-dragger", "hbs!tmpl/search/SearchResultLa
|
|
defObj && (Globals.serviceTypeMap[obj.typeName] = defObj.get("serviceType"));
|
|
defObj && (Globals.serviceTypeMap[obj.typeName] = defObj.get("serviceType"));
|
|
}
|
|
}
|
|
obj.serviceType = Globals.serviceTypeMap[obj.typeName], nameHtml = obj.guid ? "-1" == obj.guid ? '<span title="' + name + '">' + name + "</span>" : '<a title="' + name + '" href="#!/detailPage/' + obj.guid + (that.fromView ? "?from=" + that.fromView : "") + '">' + name + "</a>" : '<span title="' + name + '">' + name + "</span>",
|
|
obj.serviceType = Globals.serviceTypeMap[obj.typeName], nameHtml = obj.guid ? "-1" == obj.guid ? '<span title="' + name + '">' + name + "</span>" : '<a title="' + name + '" href="#!/detailPage/' + obj.guid + (that.fromView ? "?from=" + that.fromView : "") + '">' + name + "</a>" : '<span title="' + name + '">' + name + "</span>",
|
|
- obj.status && Enums.entityStateReadOnly[obj.status] && (nameHtml += '<button type="button" title="Deleted" class="btn btn-action btn-md deleteBtn"><i class="fa fa-trash"></i></button>',
|
|
|
|
|
|
+ obj.status && Enums.entityStateReadOnly[obj.status] && (nameHtml += '<button type="button" title="已删除" class="btn btn-action btn-md deleteBtn"><i class="fa fa-trash"></i></button>',
|
|
nameHtml = '<div class="readOnly readOnlyLink">' + nameHtml + "</div>");
|
|
nameHtml = '<div class="readOnly readOnlyLink">' + nameHtml + "</div>");
|
|
var getImageData = function(options) {
|
|
var getImageData = function(options) {
|
|
var imagePath = options.imagePath, returnImgUrl = null;
|
|
var imagePath = options.imagePath, returnImgUrl = null;
|
|
@@ -493,7 +493,7 @@ define([ "require", "backbone", "table-dragger", "hbs!tmpl/search/SearchResultLa
|
|
formatter: _.extend({}, Backgrid.CellFormatter.prototype, {
|
|
formatter: _.extend({}, Backgrid.CellFormatter.prototype, {
|
|
fromRaw: function(rawValue, model) {
|
|
fromRaw: function(rawValue, model) {
|
|
var obj = model.toJSON();
|
|
var obj = model.toJSON();
|
|
- if (obj && obj.typeName) return '<a title="Search ' + obj.typeName + '" href="#!/search/searchResult?query=' + obj.typeName + ' &searchType=dsl&dslChecked=true">' + obj.typeName + "</a>";
|
|
|
|
|
|
+ if (obj && obj.typeName) return '<a title="搜索 ' + obj.typeName + '" href="#!/search/searchResult?query=' + obj.typeName + ' &searchType=dsl&dslChecked=true">' + obj.typeName + "</a>";
|
|
}
|
|
}
|
|
})
|
|
})
|
|
}, this.getTagCol({
|
|
}, this.getTagCol({
|
|
@@ -603,7 +603,7 @@ define([ "require", "backbone", "table-dragger", "hbs!tmpl/search/SearchResultLa
|
|
if ("name" == key) {
|
|
if ("name" == key) {
|
|
var nameHtml = "", name = _.escape(modelObj[key]);
|
|
var nameHtml = "", name = _.escape(modelObj[key]);
|
|
return nameHtml = modelObj.guid ? '<a title="' + name + '" href="#!/detailPage/' + modelObj.guid + (that.fromView ? "?from=" + that.fromView : "") + '">' + name + "</a>" : '<span title="' + name + '">' + name + "</span>",
|
|
return nameHtml = modelObj.guid ? '<a title="' + name + '" href="#!/detailPage/' + modelObj.guid + (that.fromView ? "?from=" + that.fromView : "") + '">' + name + "</a>" : '<span title="' + name + '">' + name + "</span>",
|
|
- modelObj.status && Enums.entityStateReadOnly[modelObj.status] ? (nameHtml += '<button type="button" title="Deleted" class="btn btn-action btn-md deleteBtn"><i class="fa fa-trash"></i></button>',
|
|
|
|
|
|
+ modelObj.status && Enums.entityStateReadOnly[modelObj.status] ? (nameHtml += '<button type="button" title="已删除" class="btn btn-action btn-md deleteBtn"><i class="fa fa-trash"></i></button>',
|
|
'<div class="readOnly readOnlyLink">' + nameHtml + "</div>") : nameHtml;
|
|
'<div class="readOnly readOnlyLink">' + nameHtml + "</div>") : nameHtml;
|
|
}
|
|
}
|
|
if (modelObj && !_.isUndefined(modelObj[key])) {
|
|
if (modelObj && !_.isUndefined(modelObj[key])) {
|