Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
ghsby
o2oa
提交
f6bf25b6
o2oa
项目概览
ghsby
/
o2oa
落后 Fork 源项目 2880 个版本
Fork自
浙江兰德纵横网络技术股份有限公司 / o2oa
通知
1
Star
1
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,发现更多精彩内容 >>
提交
f6bf25b6
编写于
5月 20, 2021
作者:
U
unknown
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
数据表格
上级
b7c54103
变更
15
展开全部
隐藏空白更改
内联
并排
Showing
15 changed file
with
569 addition
and
336 deletion
+569
-336
o2web/source/x_component_process_FormDesigner/Module/Datatable.js
...urce/x_component_process_FormDesigner/Module/Datatable.js
+14
-14
o2web/source/x_component_process_FormDesigner/Module/Datatable/datatable.html
...nent_process_FormDesigner/Module/Datatable/datatable.html
+7
-0
o2web/source/x_component_process_FormDesigner/lp/en.js
o2web/source/x_component_process_FormDesigner/lp/en.js
+3
-2
o2web/source/x_component_process_FormDesigner/lp/zh-cn.js
o2web/source/x_component_process_FormDesigner/lp/zh-cn.js
+3
-1
o2web/source/x_component_process_Xform/$Input.js
o2web/source/x_component_process_Xform/$Input.js
+4
-1
o2web/source/x_component_process_Xform/Checkbox.js
o2web/source/x_component_process_Xform/Checkbox.js
+4
-1
o2web/source/x_component_process_Xform/Datatable.js
o2web/source/x_component_process_Xform/Datatable.js
+514
-312
o2web/source/x_component_process_Xform/Form.js
o2web/source/x_component_process_Xform/Form.js
+1
-1
o2web/source/x_component_process_Xform/Number.js
o2web/source/x_component_process_Xform/Number.js
+4
-1
o2web/source/x_component_process_Xform/Opinion.js
o2web/source/x_component_process_Xform/Opinion.js
+1
-0
o2web/source/x_component_process_Xform/Package.js
o2web/source/x_component_process_Xform/Package.js
+1
-0
o2web/source/x_component_process_Xform/Radio.js
o2web/source/x_component_process_Xform/Radio.js
+4
-1
o2web/source/x_component_process_Xform/Select.js
o2web/source/x_component_process_Xform/Select.js
+4
-1
o2web/source/x_component_process_Xform/Textarea.js
o2web/source/x_component_process_Xform/Textarea.js
+1
-0
o2web/source/x_component_process_Xform/Textfield.js
o2web/source/x_component_process_Xform/Textfield.js
+4
-1
未找到文件。
o2web/source/x_component_process_FormDesigner/Module/Datatable.js
浏览文件 @
f6bf25b6
...
...
@@ -130,20 +130,20 @@ MWF.xApplication.process.FormDesigner.Module.Datatable = MWF.FCDatatable = new C
}.
bind
(
this
));
}.
bind
(
this
),
false
);
},
_getDroppableNodes
:
function
(){
var
nodes
=
[
this
.
form
.
node
].
concat
(
this
.
form
.
moduleElementNodeList
,
this
.
form
.
moduleContainerNodeList
,
this
.
form
.
moduleComponentNodeList
);
this
.
form
.
moduleList
.
each
(
function
(
module
){
//数据网格不能往数据模板里拖
if
(
module
.
moduleName
===
"
datatemplate
"
){
var
subDoms
=
this
.
form
.
getModuleNodes
(
module
.
node
);
nodes
.
erase
(
module
.
node
);
subDoms
.
each
(
function
(
dom
)
{
nodes
.
erase
(
dom
);
})
}
}.
bind
(
this
));
return
nodes
;
},
//
_getDroppableNodes: function(){
//
var nodes = [this.form.node].concat(this.form.moduleElementNodeList, this.form.moduleContainerNodeList, this.form.moduleComponentNodeList);
//
this.form.moduleList.each( function(module){
//
//数据网格不能往数据模板里拖
//
if( module.moduleName === "datatemplate" ){
//
var subDoms = this.form.getModuleNodes(module.node);
//
nodes.erase( module.node );
//
subDoms.each(function (dom) {
//
nodes.erase( dom );
//
})
//
}
//
}.bind(this));
//
return nodes;
//
},
_createNode
:
function
(
callback
){
var
module
=
this
;
var
url
=
this
.
path
+
"
datatableCreate.html
"
;
...
...
o2web/source/x_component_process_FormDesigner/Module/Datatable/datatable.html
浏览文件 @
f6bf25b6
...
...
@@ -13,6 +13,13 @@
<td
class=
"editTableTitle"
>
{{$.lp.description}}:
</td>
<td
class=
"editTableValue"
><input
type=
"text"
name=
"description"
value=
"text{$.description}"
class=
"editTableInput"
/></td>
</tr>
<tr>
<td
class=
"editTableTitle"
>
{{$.lp.datatableEditMode}}:
</td>
<td
class=
"editTableValue"
>
<input
type=
"radio"
name=
"editMode"
value=
"single"
text
{($.
editMode
!=='
single
')?'
checked
'
:
''}
/>
{{$.lp.datatableEditModeValue[0]}}
<input
type=
"radio"
name=
"editMode"
value=
"multi"
text
{($
.editMode=
=='multi')?'checked':''}/
>
{{$.lp.datatableEditModeValue[1]}}
</td>
</tr>
</table>
<div
class=
"MWFFormulaArea"
name=
"defaultData"
title=
"{{$.lp.defaultData}} (S)"
></div>
...
...
o2web/source/x_component_process_FormDesigner/lp/en.js
浏览文件 @
f6bf25b6
...
...
@@ -906,8 +906,9 @@ MWF.xApplication.process.FormDesigner.LP = {
"
validationContentTdStyle
"
:
"
Validation Content Td Style
"
,
"
validationTableAttribute
"
:
"
Validation Table Attribute
"
,
"
count
"
:
"
Count
"
,
"
import
"
:
"
Import
"
"
import
"
:
"
Import
"
,
"
datatableEditMode
"
:
"
Edit Mode
"
,
"
datatableEditModeValue
"
:
[
"
single row
"
,
"
multiple rows
"
]
},
"
actionBar
"
:
{
"
close
"
:
"
Close
"
,
...
...
o2web/source/x_component_process_FormDesigner/lp/zh-cn.js
浏览文件 @
f6bf25b6
...
...
@@ -910,7 +910,9 @@ MWF.xApplication.process.FormDesigner.LP = {
"
validationContentTdStyle
"
:
"
校验内容单元格样式
"
,
"
validationTableAttribute
"
:
"
校验表格属性
"
,
"
count
"
:
"
数量
"
,
"
import
"
:
"
导入
"
"
import
"
:
"
导入
"
,
"
datatableEditMode
"
:
"
编辑方式
"
,
"
datatableEditModeValue
"
:
[
"
每次编辑单行
"
,
"
同时编辑多行
"
]
},
"
actionBar
"
:
{
"
close
"
:
"
关闭
"
,
...
...
o2web/source/x_component_process_Xform/$Input.js
浏览文件 @
f6bf25b6
...
...
@@ -175,7 +175,10 @@ MWF.xApplication.process.Xform.$Input = MWF.APP$Input = new Class(
this
.
node
.
getFirst
().
addEvent
(
"
change
"
,
function
(){
this
.
validationMode
();
if
(
this
.
validation
())
this
.
_setBusinessData
(
this
.
getInputData
(
"
change
"
));
if
(
this
.
validation
())
{
this
.
_setBusinessData
(
this
.
getInputData
(
"
change
"
));
this
.
fireEvent
(
"
change
"
);
}
}.
bind
(
this
));
},
_loadStyles
:
function
(){
...
...
o2web/source/x_component_process_Xform/Checkbox.js
浏览文件 @
f6bf25b6
...
...
@@ -187,7 +187,10 @@ MWF.xApplication.process.Xform.Checkbox = MWF.APPCheckbox = new Class(
radio
.
addEvent
(
"
click
"
,
function
(){
this
.
validationMode
();
if
(
this
.
validation
())
this
.
_setBusinessData
(
this
.
getInputData
(
"
change
"
)
||
[]);
if
(
this
.
validation
())
{
this
.
_setBusinessData
(
this
.
getInputData
(
"
change
"
)
||
[]);
this
.
fireEvent
(
"
change
"
);
}
}.
bind
(
this
));
Object
.
each
(
this
.
json
.
events
,
function
(
e
,
key
){
...
...
o2web/source/x_component_process_Xform/Datatable.js
浏览文件 @
f6bf25b6
此差异已折叠。
点击以展开。
o2web/source/x_component_process_Xform/Form.js
浏览文件 @
f6bf25b6
...
...
@@ -1174,7 +1174,7 @@ MWF.xApplication.process.Xform.Form = MWF.APPForm = new Class(
moduleNodes
.
push
(
subDom
);
}
// && mwftype !== "tab$Content"
if
(
mwftype
!==
"
datagrid
"
&&
mwftype
!==
"
subSource
"
&&
mwftype
!==
"
tab$Content
"
&&
mwftype
!==
"
datatemplate
"
)
{
if
(
mwftype
!==
"
datagrid
"
&&
mwftype
!==
"
datatable
"
&&
mwftype
!==
"
subSource
"
&&
mwftype
!==
"
tab$Content
"
&&
mwftype
!==
"
datatemplate
"
)
{
moduleNodes
=
moduleNodes
.
concat
(
this
.
_getModuleNodes
(
subDom
));
}
}
else
{
...
...
o2web/source/x_component_process_Xform/Number.js
浏览文件 @
f6bf25b6
...
...
@@ -235,7 +235,10 @@ debugger;
this
.
node
.
getFirst
().
addEvent
(
"
change
"
,
function
(){
this
.
validationMode
();
if
(
this
.
validation
())
this
.
_setBusinessData
(
this
.
getInputData
(
"
change
"
));
if
(
this
.
validation
())
{
this
.
_setBusinessData
(
this
.
getInputData
(
"
change
"
));
this
.
fireEvent
(
"
change
"
);
}
}.
bind
(
this
));
this
.
node
.
getFirst
().
addEvent
(
"
blur
"
,
function
(){
...
...
o2web/source/x_component_process_Xform/Opinion.js
浏览文件 @
f6bf25b6
...
...
@@ -165,6 +165,7 @@ MWF.xApplication.process.Xform.Opinion = MWF.APPOpinion = new Class(
this
.
node
.
addEvent
(
"
change
"
,
function
(){
this
.
_setBusinessData
(
this
.
getInputData
());
this
.
fireEvent
(
"
change
"
);
}.
bind
(
this
));
this
.
node
.
getFirst
().
addEvent
(
"
blur
"
,
function
(){
...
...
o2web/source/x_component_process_Xform/Package.js
浏览文件 @
f6bf25b6
...
...
@@ -23,6 +23,7 @@ MWF.xApplication.process.Xform.require = function(callback){
[
"
process.Xform
"
,
"
Address
"
],
[
"
process.Xform
"
,
"
Table
"
],
[
"
process.Xform
"
,
"
Datagrid
"
],
[
"
process.Xform
"
,
"
Datatable
"
],
[
"
process.Xform
"
,
"
Datatemplate
"
],
[
"
process.Xform
"
,
"
Tab
"
],
[
"
process.Xform
"
,
"
Tree
"
],
...
...
o2web/source/x_component_process_Xform/Radio.js
浏览文件 @
f6bf25b6
...
...
@@ -206,7 +206,10 @@ MWF.xApplication.process.Xform.Radio = MWF.APPRadio = new Class(
radio
.
addEvent
(
"
click
"
,
function
(){
this
.
validationMode
();
if
(
this
.
validation
())
this
.
_setBusinessData
(
this
.
getInputData
(
"
change
"
));
if
(
this
.
validation
())
{
this
.
_setBusinessData
(
this
.
getInputData
(
"
change
"
));
this
.
fireEvent
(
"
change
"
);
}
}.
bind
(
this
));
Object
.
each
(
this
.
json
.
events
,
function
(
e
,
key
){
...
...
o2web/source/x_component_process_Xform/Select.js
浏览文件 @
f6bf25b6
...
...
@@ -142,7 +142,10 @@ MWF.xApplication.process.Xform.Select = MWF.APPSelect = new Class(
var
v
=
this
.
getInputData
(
"
change
"
);
this
.
_setBusinessData
(
v
);
this
.
validationMode
();
if
(
this
.
validation
())
this
.
_setBusinessData
(
v
);
if
(
this
.
validation
())
{
this
.
_setBusinessData
(
v
);
this
.
fireEvent
(
"
change
"
);
}
}.
bind
(
this
));
},
...
...
o2web/source/x_component_process_Xform/Textarea.js
浏览文件 @
f6bf25b6
...
...
@@ -146,6 +146,7 @@ MWF.xApplication.process.Xform.Textarea = MWF.APPTextarea = new Class({
});
this
.
node
.
addEvent
(
"
change
"
,
function
(){
this
.
_setBusinessData
(
this
.
getInputData
());
this
.
fireEvent
(
"
change
"
);
}.
bind
(
this
));
this
.
node
.
getFirst
().
addEvent
(
"
blur
"
,
function
(){
...
...
o2web/source/x_component_process_Xform/Textfield.js
浏览文件 @
f6bf25b6
...
...
@@ -149,7 +149,10 @@ MWF.xApplication.process.Xform.Textfield = MWF.APPTextfield = new Class({
var
v
=
this
.
getInputData
(
"
change
"
);
this
.
_setBusinessData
(
v
);
this
.
validationMode
();
if
(
this
.
validation
())
this
.
_setBusinessData
(
v
);
if
(
this
.
validation
())
{
this
.
_setBusinessData
(
v
);
this
.
fireEvent
(
"
change
"
);
}
}.
bind
(
this
));
if
(
this
.
json
.
ANNModel
){
this
.
node
.
getFirst
().
addEvent
(
"
focus
"
,
function
(){
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录