|
|
@ -12,6 +12,7 @@ BI.AllCountPager = BI.inherit(BI.Widget, { |
|
|
|
pages: 1, // 必选项
|
|
|
|
pages: 1, // 必选项
|
|
|
|
curr: 1, // 初始化当前页, pages为数字时可用,
|
|
|
|
curr: 1, // 初始化当前页, pages为数字时可用,
|
|
|
|
count: 1, // 总行数
|
|
|
|
count: 1, // 总行数
|
|
|
|
|
|
|
|
rowInfoObject: null, |
|
|
|
showRowCount: true |
|
|
|
showRowCount: true |
|
|
|
}); |
|
|
|
}); |
|
|
|
}, |
|
|
|
}, |
|
|
@ -137,7 +138,9 @@ BI.AllCountPager = BI.inherit(BI.Widget, { |
|
|
|
type: "bi.label", |
|
|
|
type: "bi.label", |
|
|
|
height: o.height, |
|
|
|
height: o.height, |
|
|
|
text: BI.i18nText("BI-Basic_Total"), |
|
|
|
text: BI.i18nText("BI-Basic_Total"), |
|
|
|
width: 15 |
|
|
|
ref: function (_ref) { |
|
|
|
|
|
|
|
self.prevText = _ref; |
|
|
|
|
|
|
|
} |
|
|
|
}, { |
|
|
|
}, { |
|
|
|
type: "bi.label", |
|
|
|
type: "bi.label", |
|
|
|
ref: function (_ref) { |
|
|
|
ref: function (_ref) { |
|
|
@ -152,9 +155,9 @@ BI.AllCountPager = BI.inherit(BI.Widget, { |
|
|
|
type: "bi.label", |
|
|
|
type: "bi.label", |
|
|
|
height: o.height, |
|
|
|
height: o.height, |
|
|
|
text: BI.i18nText("BI-Tiao_Data"), |
|
|
|
text: BI.i18nText("BI-Tiao_Data"), |
|
|
|
width: 50, |
|
|
|
width: 40, |
|
|
|
textAlign: "left" |
|
|
|
textAlign: "left" |
|
|
|
}] |
|
|
|
}, BI.isNotEmptyObject(o.rowInfoObject) ? o.rowInfoObject : null] |
|
|
|
}; |
|
|
|
}; |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
@ -182,6 +185,12 @@ BI.AllCountPager = BI.inherit(BI.Widget, { |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
setCountPrevText: function (text) { |
|
|
|
|
|
|
|
if (this.options.showRowCount) { |
|
|
|
|
|
|
|
this.prevText.setText(text); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
getCurrentPage: function () { |
|
|
|
getCurrentPage: function () { |
|
|
|
return this.pager.getCurrentPage(); |
|
|
|
return this.pager.getCurrentPage(); |
|
|
|
}, |
|
|
|
}, |
|
|
|