Browse Source

无JIRA任务 文件上传数量超限toast国际化修改

es6
windy 4 years ago
parent
commit
5902926270
  1. 2
      i18n/i18n.cn.js
  2. 2
      src/base/single/input/file.js
  3. 6
      src/widget/multitree/trigger/searcher.multi.tree.js

2
i18n/i18n.cn.js

@ -91,7 +91,7 @@ BI.i18n = {
"BI-Summary_Values": "汇总", "BI-Summary_Values": "汇总",
"BI-Basic_Clear": "清除", "BI-Basic_Clear": "清除",
"BI-Upload_File_Size_Error": "文件大小不支持", "BI-Upload_File_Size_Error": "文件大小不支持",
"BI-Upload_File_Count_Error": "超出上传数量上限,请重新上传", "BI-Upload_File_Count_Error": "超出上传数量上限{R1},请重新上传",
"BI-Up_Page": "向上翻页", "BI-Up_Page": "向上翻页",
"BI-Basic_Simple_Sunday": "日", "BI-Basic_Simple_Sunday": "日",
"BI-Multi_Date_Relative_Current_Time": "相对当前时间", "BI-Multi_Date_Relative_Current_Time": "相对当前时间",

2
src/base/single/input/file.js

@ -551,7 +551,7 @@
var input = wrap.dom.input.cloneNode(true); var input = wrap.dom.input.cloneNode(true);
var files = F(wrap.dom.input); var files = F(wrap.dom.input);
if (wrap.maxLength !== -1 && wrap.maxLength < files.length) { if (wrap.maxLength !== -1 && wrap.maxLength < files.length) {
BI.Msg.toast(BI.i18nText("BI-Upload_File_Count_Error"), { level: "error" }); BI.Msg.toast(BI.i18nText("BI-Upload_File_Count_Error", wrap.maxLength), { level: "error" });
self.fireEvent(BI.File.EVENT_ERROR, { self.fireEvent(BI.File.EVENT_ERROR, {
errorType: 2 errorType: 2
}); });

6
src/widget/multitree/trigger/searcher.multi.tree.js

@ -132,8 +132,10 @@ BI.MultiTreeSearcher = BI.inherit(BI.Widget, {
this.editor.setState(BI.Selection.None); this.editor.setState(BI.Selection.None);
} else { } else {
var text = ""; var text = "";
BI.each(ob.value, function (name, children) { var value = ob.value;
var childNodes = getChildrenNode(children); var names = BI.Func.getSortedResult(BI.keys(value));
BI.each(names, function (idx, name) {
var childNodes = getChildrenNode(value[name]);
text += (o.valueFormatter(name + "") || name) + (childNodes === "" ? "" : (":" + childNodes)) + "; "; text += (o.valueFormatter(name + "") || name) + (childNodes === "" ? "" : (":" + childNodes)) + "; ";
if (childNodes === "") { if (childNodes === "") {
count++; count++;

Loading…
Cancel
Save