Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
浙江兰德纵横网络技术股份有限公司
o2oa
提交
256b35c7
o2oa
项目概览
浙江兰德纵横网络技术股份有限公司
/
o2oa
通知
339
Star
10
Fork
6
代码
文件
提交
分支
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,发现更多精彩内容 >>
提交
256b35c7
编写于
5月 28, 2021
作者:
U
unknown
1
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
数据表格
上级
79bf462c
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
44 addition
and
40 deletion
+44
-40
o2web/source/x_component_cms_Xform/$Form/default/css.wcss
o2web/source/x_component_cms_Xform/$Form/default/css.wcss
+6
-0
o2web/source/x_component_process_Xform/$Form/default/css.wcss
...b/source/x_component_process_Xform/$Form/default/css.wcss
+6
-0
o2web/source/x_component_process_Xform/Attachment.js
o2web/source/x_component_process_Xform/Attachment.js
+6
-2
o2web/source/x_component_process_Xform/DatatablePC.js
o2web/source/x_component_process_Xform/DatatablePC.js
+26
-38
未找到文件。
o2web/source/x_component_cms_Xform/$Form/default/css.wcss
浏览文件 @
256b35c7
...
...
@@ -149,6 +149,12 @@
"cursor": "move",
"float": "left"
},
"datatableMoveLineAction": {
"width": "5px",
"color": "#aaa",
"cursor": "pointer",
"float": "left"
},
"gridMoveLineDragNode": {
"opacity": 0.7,
"z-index": 30000,
...
...
o2web/source/x_component_process_Xform/$Form/default/css.wcss
浏览文件 @
256b35c7
...
...
@@ -119,6 +119,12 @@
"cursor": "move",
"float": "left"
},
"datatableMoveLineAction": {
"width": "5px",
"color": "#aaa",
"cursor": "pointer",
"float": "left"
},
"gridMoveLineDragNode": {
"opacity": 0.7,
"z-index": 30000,
...
...
o2web/source/x_component_process_Xform/Attachment.js
浏览文件 @
256b35c7
...
...
@@ -1771,7 +1771,8 @@ MWF.xApplication.process.Xform.Attachment = MWF.APPAttachment = new Class(
* "activityName": "申请人", //附件上传的活动名称
* "activityType": "manual", //附件上传的活动类型
* "site": "$mediaOpinion", //附件存储位置(一般用于区分附件在哪个表单元素中显示)
* "type": "image/png" //附件类型(contentType)
* "type": "image/png", //附件类型(contentType)
* "control": {}
* }]</code></pre>
*/
setData
:
function
(
data
){
...
...
@@ -2255,7 +2256,10 @@ MWF.xApplication.process.Xform.AttachmentDg = MWF.APPAttachmentDg = new Class({
// }.bind(this));
if
(
this
.
json
.
ignoreSite
)
{
(
this
.
_getBusinessData
()
||
[]
).
each
(
function
(
att
)
{
this
.
attachmentController
.
addAttachment
(
att
);
var
flag
=
this
.
form
.
businessData
.
attachmentList
.
some
(
function
(
attData
)
{
return
att
.
id
===
attData
.
id
;
}.
bind
(
this
));
if
(
flag
)
this
.
attachmentController
.
addAttachment
(
att
);
}.
bind
(
this
));
}
else
{
this
.
form
.
businessData
.
attachmentList
.
each
(
function
(
att
)
{
...
...
o2web/source/x_component_process_Xform/DatatablePC.js
浏览文件 @
256b35c7
...
...
@@ -698,6 +698,17 @@ MWF.xApplication.process.Xform.DatatablePC = new Class(
this
.
fireEvent
(
"
completeLineEdit
"
,
[
line
]);
return
true
;
},
_moveUpLine
:
function
(
ev
,
line
){
if
(
this
.
currentEditedLine
&&
!
this
.
_completeLineEdit
()
)
return
false
;
if
(
line
.
options
.
index
===
0
)
return
;
var
data
=
this
.
getData
();
var
upData
=
data
.
data
[
line
.
options
.
index
-
1
];
var
curData
=
data
.
data
[
line
.
options
.
index
];
data
.
data
[
line
.
options
.
index
]
=
upData
;
data
.
data
[
line
.
options
.
index
-
1
]
=
curData
;
this
.
setData
(
data
);
},
_changeEditedLine
:
function
(
line
){
if
(
this
.
currentEditedLine
){
if
(
line
===
this
.
currentEditedLine
)
return
;
...
...
@@ -706,43 +717,6 @@ MWF.xApplication.process.Xform.DatatablePC = new Class(
line
.
changeEditMode
(
true
);
this
.
currentEditedLine
=
line
;
},
// _checkSelectAll: function () {
// debugger;
// var selectData = this.selectAllSelector.getData();
// var selected;
// if(o2.typeOf(selectData)==="array"){
// selected = selectData.contains(this.json.outerSelectAllSelectedValue);
// }else{
// selected = selectData === this.json.outerSelectAllSelectedValue;
// }
// this.selected = selected;
// this.lineList.each(function (line) {
// this.selected ? line.select() : line.unselect();
// }.bind(this))
// },
// selectAll: function(){
// this.selected = true;
// if(this.selectAllSelector)this.selectAllSelector.setData(this.json.outerSelectAllSelectedValue);
// },
// unselectAll: function(){
// debugger;
// this.selected = false;
// if( this.selectAllSelector.getOptionsObj ){
// var options = this.selectAllSelector.getOptionsObj();
// var value = "";
// var arr = options.valueList || [];
// for( var i=0; i<arr.length; i++ ){
// var v = arr[i];
// if( v !== this.json.outerSelectAllSelectedValue ){
// value = v;
// break;
// }
// }
// this.selectAllSelector.setData(value);
// }else{
// this.selectAllSelector.setData("")
// }
// },
editValidation
:
function
(){
var
flag
=
true
;
...
...
@@ -1449,7 +1423,7 @@ MWF.xApplication.process.Xform.DatatablePC.Line = new Class({
if
(
!
this
.
options
.
isEditable
)
return
;
var
editActionTd
=
this
.
node
.
getElement
(
"
.mwf_editaction
"
);
//this.moveActionTd = this.node.getElement(".moveA
ction");
var
moveActionTd
=
this
.
node
.
getElement
(
"
.mwf_movea
ction
"
);
if
(
this
.
datatable
.
multiEditMode
){
//多行编辑模式
if
(
this
.
options
.
isAddable
)
this
.
createAddAction
(
editActionTd
);
...
...
@@ -1461,6 +1435,7 @@ MWF.xApplication.process.Xform.DatatablePC.Line = new Class({
this
.
createCancelEditAction
(
editActionTd
);
this
.
checkActionDisplay
();
}
this
.
createMoveAction
(
moveActionTd
);
},
checkActionDisplay
:
function
(){
...
...
@@ -1521,6 +1496,19 @@ MWF.xApplication.process.Xform.DatatablePC.Line = new Class({
}
}).
inject
(
td
);
},
createMoveAction
:
function
(
td
){
this
.
moveAction
=
new
Element
(
"
div
"
,
{
"
styles
"
:
this
.
form
.
css
.
datatableMoveLineAction
,
"
text
"
:
"
↑
"
,
"
events
"
:
{
"
click
"
:
function
(
ev
){
this
.
datatable
.
_moveUpLine
(
ev
,
this
);
// if( this.datatable.currentEditedLine === this )this.datatable.currentEditedLine = null;
ev
.
stopPropagation
();
}.
bind
(
this
)
}
}).
inject
(
td
);
},
changeEditMode
:
function
(
isEdited
){
if
(
isEdited
===
this
.
options
.
isEdited
)
return
;
if
(
!
this
.
options
.
isEditable
)
return
;
...
...
liyi_hz2008
@liyi_hz2008
mentioned in commit
ef81ddc6
·
5月 28, 2021
mentioned in commit
ef81ddc6
mentioned in commit ef81ddc6408ec2e2b47f24b2c23f619a14f63e6f
开关提交列表
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录