[web]添加属性值页面开启批量添加功能

This commit is contained in:
datagear 2018-11-27 09:21:35 +08:00
parent f462225a72
commit 96eb17dd34
4 changed files with 5 additions and 1 deletions

View File

@ -49,6 +49,7 @@ bracketRight=\uFF09
dataTables.noData=\u6CA1\u6709\u6570\u636E
dataTables.zeroRecords=\u6CA1\u6709\u7ED3\u679C
batchSet.batchSetSwitchTitle=\u6279\u91CF\u6DFB\u52A0\u8BBE\u7F6E
batchSet.batchCount=\u6279\u91CF\u6DFB\u52A0\u6570
batchSet.batchHandleErrorMode=\u51FA\u9519\u65F6
batchSet.batchHandleErrorMode.ignore=\u5FFD\u7565

View File

@ -168,6 +168,7 @@ boolean isPrivatePropertyModel = ModelUtils.isPrivatePropertyModelTail(propertyP
pageObj.downloadSinglePropertyValueFile(property, propertyConcreteModel);
},
validationRequiredAsAdd : ("saveAdd" == pageObj.submitAction),
batchSet : ("saveAddMultiplePropValueElement" == pageObj.submitAction),
labels : pageObj.formLabels,
dateFormat : "<c:out value='${dateFormat}' />",
timestampFormat : "<c:out value='${sqlTimestampFormat}' />",

View File

@ -30,6 +30,7 @@ pageObj.clientOperation = undefined;
reset : "<fmt:message key='reset' />",
batchSet :
{
batchSetSwitchTitle : "<fmt:message key='batchSet.batchSetSwitchTitle' />",
batchCount : "<fmt:message key='batchSet.batchCount' />",
batchHandleErrorMode : "<fmt:message key='batchSet.batchHandleErrorMode' />",
batchHandleErrorModeEnum : ["<fmt:message key='batchSet.batchHandleErrorMode.ignore' />", "<fmt:message key='batchSet.batchHandleErrorMode.abort' />", "<fmt:message key='batchSet.batchHandleErrorMode.rollback' />"]

View File

@ -120,6 +120,7 @@
downloadFile : "下载",
batchSet :
{
batchSetSwitchTitle : "批量添加设置",
batchCount : "批量添加数目",
batchHandleErrorMode : "出错时",
batchHandleErrorModeEnum : ["忽略", "中止", "撤销"]
@ -402,7 +403,7 @@
var batchSetPanelWidth = $batchSetPanel.outerWidth();
$batchSetPanel.css("left", (0-batchSetPanelWidth - 4.1*2)+"px").hide();
var $batchSetSwitch = $("<span class='batch-set-switch ui-icon ui-icon-gear'></span>").appendTo($formOperation);
var $batchSetSwitch = $("<span class='batch-set-switch ui-icon ui-icon-gear'></span>").attr("title", options.labels.batchSet.batchSetSwitchTitle).appendTo($formOperation);
$batchSetSwitch.click(function()
{