Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
ghsby
o2oa
提交
00d7df42
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,发现更多精彩内容 >>
提交
00d7df42
编写于
4月 23, 2022
作者:
U
unknown
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
数据表格增加reload
上级
8bec06ac
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
60 addition
and
8 deletion
+60
-8
o2web/source/x_component_process_FormDesigner/Module/Checkbox/checkbox.html
...ponent_process_FormDesigner/Module/Checkbox/checkbox.html
+7
-0
o2web/source/x_component_process_FormDesigner/Module/Datatable$Data/datatable$Data.html
...ss_FormDesigner/Module/Datatable$Data/datatable$Data.html
+1
-1
o2web/source/x_component_process_FormDesigner/lp/en.js
o2web/source/x_component_process_FormDesigner/lp/en.js
+1
-0
o2web/source/x_component_process_FormDesigner/lp/zh-cn.js
o2web/source/x_component_process_FormDesigner/lp/zh-cn.js
+1
-0
o2web/source/x_component_process_Xform/Checkbox.js
o2web/source/x_component_process_Xform/Checkbox.js
+10
-2
o2web/source/x_component_process_Xform/DatatablePC.js
o2web/source/x_component_process_Xform/DatatablePC.js
+40
-5
未找到文件。
o2web/source/x_component_process_FormDesigner/Module/Checkbox/checkbox.html
浏览文件 @
00d7df42
...
...
@@ -19,6 +19,13 @@
<input
type=
"radio"
name=
"isReadonly"
value=
"true"
text
{($.
isReadonly
)?'
checked
'
:
''}
/>
{{$.lp.yes}}
<input
type=
"radio"
name=
"isReadonly"
value=
"false"
text
{(!$.
isReadonly
)?'
checked
'
:
''}
/>
{{$.lp.no}}
</td>
</tr>
<tr>
<td
class=
"editTableTitle"
>
{{$.lp.newline}}:
</td>
<td
class=
"editTableValue"
>
<input
type=
"radio"
name=
"newline"
value=
"true"
text
{($.
newline
)?'
checked
'
:
''}
/>
{{$.lp.yes}}
<input
type=
"radio"
name=
"newline"
value=
"false"
text
{(!$.
newline
)?'
checked
'
:
''}
/>
{{$.lp.no}}
</td>
</tr>
<tr>
<td
class=
"editTableTitle"
>
{{$.lp.options}}:
</td>
...
...
o2web/source/x_component_process_FormDesigner/Module/Datatable$Data/datatable$Data.html
浏览文件 @
00d7df42
...
...
@@ -3,7 +3,7 @@
<table
width=
"100%"
border=
"0"
cellpadding=
"5"
cellspacing=
"0"
class=
"editTable"
>
<tr>
<td
class=
"editTableTitle"
>
{{$.lp.id}}:
</td>
<td
class=
"editTableValue"
>
text{$.id}
</td>
<td
class=
"editTableValue"
>
<input
type=
"text"
name=
"id"
value=
"text{$.id}"
class=
"editTableInput"
/>
</td>
</tr>
<tr>
<td
class=
"editTableTitle"
>
{{$.lp.name}}:
</td>
...
...
o2web/source/x_component_process_FormDesigner/lp/en.js
浏览文件 @
00d7df42
...
...
@@ -1252,6 +1252,7 @@ MWF.xApplication.process.FormDesigner.LP = {
"
menuItem
"
:
"
Menu Item
"
,
"
dropdownDefaultText
"
:
"
Dropdown Menu
"
,
"
showButton
"
:
"
Show Button
"
,
"
newline
"
:
"
one line per option
"
,
"
wps
"
:
{
"
config
"
:
"
Config
"
,
...
...
o2web/source/x_component_process_FormDesigner/lp/zh-cn.js
浏览文件 @
00d7df42
...
...
@@ -1258,6 +1258,7 @@ MWF.xApplication.process.FormDesigner.LP = {
"
menuItem
"
:
"
菜单项
"
,
"
dropdownDefaultText
"
:
"
下拉菜单
"
,
"
showButton
"
:
"
显示按钮
"
,
"
newline
"
:
"
每个选项一行
"
,
"
wps
"
:
{
"
config
"
:
"
配置
"
,
...
...
o2web/source/x_component_process_Xform/Checkbox.js
浏览文件 @
00d7df42
...
...
@@ -66,6 +66,7 @@ MWF.xApplication.process.Xform.Checkbox = MWF.APPCheckbox = new Class(
"
display
"
:
"
inline
"
}
});
if
(
this
.
json
.
newline
)
this
.
node
.
setStyle
(
"
display
"
,
"
block
"
);
this
.
setOptions
();
},
_loadDomEvents
:
function
(){
...
...
@@ -165,19 +166,26 @@ MWF.xApplication.process.Xform.Checkbox = MWF.APPCheckbox = new Class(
var
text
=
tmps
[
0
];
var
value
=
tmps
[
1
]
||
text
;
var
node
;
if
(
this
.
json
.
newline
){
node
=
new
Element
(
"
div
"
).
inject
(
this
.
node
);
}
else
{
node
=
this
.
node
;
}
var
radio
=
new
Element
(
"
input
"
,
{
"
type
"
:
"
checkbox
"
,
"
name
"
:
((
this
.
json
.
properties
)
?
this
.
json
.
properties
.
name
:
null
)
||
flag
+
this
.
json
.
id
,
"
value
"
:
value
,
"
showText
"
:
text
,
"
styles
"
:
this
.
json
.
buttonStyles
}).
inject
(
this
.
node
);
}).
inject
(
node
);
//radio.appendText(text, "after");
var
textNode
=
new
Element
(
"
span
"
,
{
"
text
"
:
text
,
"
styles
"
:
{
"
cursor
"
:
"
default
"
}
}).
inject
(
this
.
node
);
}).
inject
(
node
);
textNode
.
addEvent
(
"
click
"
,
function
(
ev
){
if
(
this
.
radio
.
get
(
"
disabled
"
)
===
true
||
this
.
radio
.
get
(
"
disabled
"
)
===
"
true
"
)
return
;
this
.
radio
.
checked
=
!
this
.
radio
.
checked
;
...
...
o2web/source/x_component_process_Xform/DatatablePC.js
浏览文件 @
00d7df42
...
...
@@ -241,6 +241,29 @@ MWF.xApplication.process.Xform.DatatablePC = new Class(
this
.
loadDatatable
();
},
reload
:
function
(){
this
.
reloading
=
true
;
var
tr
=
this
.
titleTr
;
var
node
;
if
(
tr
){
var
node
=
tr
.
getElement
(
"
th.mwf_addlineaction
"
);
if
(
node
)
node
.
destroy
();
node
=
tr
.
getElement
(
"
th.mwf_moveaction
"
);
if
(
node
)
node
.
destroy
();
}
tr
=
this
.
templateTr
;
if
(
tr
){
node
=
tr
.
getElement
(
"
td.mwf_editaction
"
);
if
(
node
)
node
.
destroy
();
node
=
tr
.
getElement
(
"
td.mwf_moveaction
"
);
if
(
node
)
node
.
destroy
();
}
this
.
clearSubModules
();
this
.
loadDatatable
();
this
.
reloading
=
false
;
},
loadDatatable
:
function
(){
this
.
_loadStyles
();
...
...
@@ -275,14 +298,18 @@ MWF.xApplication.process.Xform.DatatablePC = new Class(
if
(
json
){
var
module
=
this
.
form
.
_loadModule
(
json
,
th
);
this
.
form
.
modules
.
push
(
module
);
if
(
json
.
isShow
===
false
)
th
.
hide
();
//隐藏列
if
(
json
.
isShow
===
false
){
th
.
hide
();
//隐藏列
}
else
if
(
this
.
reloading
&&
json
.
isShow
===
true
){
th
.
setStyle
(
"
display
"
,
""
);
}
if
((
json
.
total
===
"
number
"
)
||
(
json
.
total
===
"
count
"
))
this
.
totalFlag
=
true
;
}
}.
bind
(
this
));
if
(
this
.
editable
){
var
actionTh
=
new
Element
(
"
th
"
,
{
"
styles
"
:
{
"
width
"
:
"
46px
"
}}).
inject
(
this
.
titleTr
,
"
top
"
);
//操作列
var
actionTh
=
new
Element
(
"
th
.mwf_addlineaction
"
,
{
"
styles
"
:
{
"
width
"
:
"
46px
"
}}).
inject
(
this
.
titleTr
,
"
top
"
);
//操作列
if
(
this
.
addable
){
var
addLineAction
=
new
Element
(
"
div
"
,
{
"
styles
"
:
this
.
form
.
css
.
addLineAction
,
...
...
@@ -291,7 +318,7 @@ MWF.xApplication.process.Xform.DatatablePC = new Class(
}
}).
inject
(
actionTh
);
}
var
moveTh
=
new
Element
(
"
th
"
).
inject
(
this
.
titleTr
,
"
bottom
"
);
//总计列
var
moveTh
=
new
Element
(
"
th
.mwf_moveaction
"
).
inject
(
this
.
titleTr
,
"
bottom
"
);
//总计列
if
(
this
.
json
.
border
){
Array
.
each
([
actionTh
,
moveTh
],
function
(
th
){
th
.
setStyles
({
...
...
@@ -334,7 +361,11 @@ MWF.xApplication.process.Xform.DatatablePC = new Class(
// var module = this.form._loadModule(json, td);
// this.form.modules.push(module);
if
(
json
.
cellType
===
"
sequence
"
)
td
.
addClass
(
"
mwf_sequence
"
);
//序号列
if
(
json
.
isShow
===
false
)
td
.
hide
();
//隐藏列
if
(
json
.
isShow
===
false
){
td
.
hide
();
//隐藏列
}
else
if
(
this
.
reloading
&&
json
.
isShow
===
true
){
td
.
setStyle
(
"
display
"
,
""
);
}
}
}.
bind
(
this
));
...
...
@@ -378,7 +409,11 @@ MWF.xApplication.process.Xform.DatatablePC = new Class(
var
json
=
this
.
form
.
_getDomjson
(
th
);
if
(
json
){
if
(
json
.
isShow
===
false
)
td
.
hide
();
//隐藏列
if
(
json
.
isShow
===
false
){
td
.
hide
();
//隐藏列
}
else
if
(
this
.
reloading
&&
json
.
isShow
===
true
){
td
.
setStyle
(
"
display
"
,
""
);
}
if
((
json
.
total
===
"
number
"
)
||
(
json
.
total
===
"
count
"
)){
this
.
totalColumns
.
push
({
"
th
"
:
th
,
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录