提交 211a4c6d 编写于 作者: U unknown

数据表格增加editLine事件

上级 0129a614
{
"id": "",
"name": "",
"type": "Datatable",
"description": "",
"sequence": "yes",
"section": "no",
"sectionBy": "person",
"importActionText" : "导入Excel",
"exportActionText" : "导出Excel",
"sectionByScript": {
"code": "",
"html": ""
},
"defaultValue": {
"code": "",
"html": ""
},
"events": {
"queryLoad": {
"code": "",
"html": ""
},
"postLoad": {
"code": "",
"html": ""
},
"load" : {
"code": "",
"html": ""
},
"editCheck": {
"code": "",
"html": ""
},
"completeLineEdit": {
"code": "",
"html": ""
},
"addLine": {
"code": "",
"html": ""
},
"deleteLine": {
"code": "",
"html": ""
},
"afterDeleteLine": {
"code": "",
"html": ""
},
"editLine": {
"code": "",
"html": ""
},
"export": {
"code": "",
"html": ""
},
"import": {
"code": "",
"html": ""
},
"click": {
"code": "",
"html": ""
},
"dblclick": {
"code": "",
"html": ""
},
"keydown": {
"code": "",
"html": ""
},
"keypress": {
"code": "",
"html": ""
},
"keyup": {
"code": "",
"html": ""
},
"mousedown": {
"code": "",
"html": ""
},
"mousemove": {
"code": "",
"html": ""
},
"mouseout": {
"code": "",
"html": ""
},
"mouseover": {
"code": "",
"html": ""
},
"mouseup": {
"code": "",
"html": ""
},
"focus": {
"code": "",
"html": ""
},
"blur": {
"code": "",
"html": ""
}
},
"properties": {},
"class": "",
"styles": {},
"tableStyles": {},
"border": "",
"backgroundColor": "",
"zebraColor": "",
"editableScript": {
"code": "",
"html": ""
},
"defaultData": {
"code": "",
"html": ""
},
"container": ""
"id": "",
"name": "",
"type": "Datatable",
"description": "",
"sequence": "yes",
"section": "no",
"sectionBy": "person",
"importActionText": "导入Excel",
"exportActionText": "导出Excel",
"sectionByScript": {
"code": "",
"html": ""
},
"defaultValue": {
"code": "",
"html": ""
},
"events": {
"queryLoad": {
"code": "",
"html": ""
},
"postLoad": {
"code": "",
"html": ""
},
"load": {
"code": "",
"html": ""
},
"afterLoad": {
"code": "",
"html": ""
},
"beforeLoadLine": {
"code": "",
"html": ""
},
"afterLoadLine": {
"code": "",
"html": ""
},
"addLine": {
"code": "",
"html": ""
},
"completeLineEdit": {
"code": "",
"html": ""
},
"cancelLineEdit": {
"code": "",
"html": ""
},
"deleteLine": {
"code": "",
"html": ""
},
"afterDeleteLine": {
"code": "",
"html": ""
},
"editLine": {
"code": "",
"html": ""
},
"export": {
"code": "",
"html": ""
},
"import": {
"code": "",
"html": ""
},
"validImport": {
"code": "",
"html": ""
},
"click": {
"code": "",
"html": ""
},
"dblclick": {
"code": "",
"html": ""
},
"keydown": {
"code": "",
"html": ""
},
"keypress": {
"code": "",
"html": ""
},
"keyup": {
"code": "",
"html": ""
},
"mousedown": {
"code": "",
"html": ""
},
"mousemove": {
"code": "",
"html": ""
},
"mouseout": {
"code": "",
"html": ""
},
"mouseover": {
"code": "",
"html": ""
},
"mouseup": {
"code": "",
"html": ""
},
"focus": {
"code": "",
"html": ""
},
"blur": {
"code": "",
"html": ""
}
},
"properties": {},
"class": "",
"styles": {},
"tableStyles": {},
"border": "",
"backgroundColor": "",
"zebraColor": "",
"editableScript": {
"code": "",
"html": ""
},
"defaultData": {
"code": "",
"html": ""
},
"container": ""
}
\ No newline at end of file
......@@ -94,6 +94,11 @@ MWF.xApplication.process.Xform.DatatablePC = new Class(
* @event MWF.xApplication.process.Xform.DatatablePC#addLine
* @see {@link https://www.yuque.com/o2oa/ixsnyt/hm5uft#i0zTS|组件事件说明}
*/
/**
* 编辑条目时触发(同时编辑多行不触发此事件)。通过this.event.line可以获取对应的条目对象。
* @event MWF.xApplication.process.Xform.DatatablePC#editLine
* @see {@link https://www.yuque.com/o2oa/ixsnyt/hm5uft#i0zTS|组件事件说明}
*/
/**
* 删除条目前触发。通过this.event可以获取对应的条目对象。
* @event MWF.xApplication.process.Xform.DatatablePC#deleteLine
......@@ -150,7 +155,7 @@ MWF.xApplication.process.Xform.DatatablePC = new Class(
* @see {@link https://www.yuque.com/o2oa/ixsnyt/hm5uft#i0zTS|组件事件说明}
*/
"moduleEvents": ["queryLoad","postLoad","load", "afterLoad",
"beforeLoadLine", "afterLoadLine", "addLine", "deleteLine", "afterDeleteLine","completeLineEdit", "cancelLineEdit", "export", "import", "validImport"]
"beforeLoadLine", "afterLoadLine", "addLine", "deleteLine", "afterDeleteLine", "editLine", "completeLineEdit", "cancelLineEdit", "export", "import", "validImport"]
},
initialize: function(node, json, form, options){
......@@ -1561,6 +1566,9 @@ MWF.xApplication.process.Xform.DatatablePC.Line = new Class({
if( !this.options.isEditable )return;
this.options.isEdited = isEdited;
this.reload();
if( this.options.isEdited ){
this.datatable.fireEvent("editLine",[this]);
}
},
reload: function(){
for(var key in this.all){
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册