Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
fuyue82
o2oa
提交
211a4c6d
o2oa
项目概览
fuyue82
/
o2oa
与 Fork 源项目一致
Fork自
浙江兰德纵横网络技术股份有限公司 / o2oa
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
o2oa
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
211a4c6d
编写于
8月 16, 2021
作者:
U
unknown
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
数据表格增加editLine事件
上级
0129a614
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
152 addition
and
129 deletion
+152
-129
o2web/source/x_component_process_FormDesigner/Module/Datatable/template.json
...onent_process_FormDesigner/Module/Datatable/template.json
+143
-128
o2web/source/x_component_process_Xform/DatatablePC.js
o2web/source/x_component_process_Xform/DatatablePC.js
+9
-1
未找到文件。
o2web/source/x_component_process_FormDesigner/Module/Datatable/template.json
浏览文件 @
211a4c6d
{
"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
o2web/source/x_component_process_Xform/DatatablePC.js
浏览文件 @
211a4c6d
...
...
@@ -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.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录