Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
浙江兰德纵横网络技术股份有限公司
o2oa
提交
b80fd52e
o2oa
项目概览
浙江兰德纵横网络技术股份有限公司
/
o2oa
通知
333
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,体验更适合开发者的 AI 搜索 >>
提交
b80fd52e
编写于
12月 01, 2023
作者:
U
unknown
1
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
修复关联文档未适配移动端的问题
上级
17513a83
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
55 addition
and
53 deletion
+55
-53
o2web/source/x_component_process_Xform/AssociatedDocument.js
o2web/source/x_component_process_Xform/AssociatedDocument.js
+55
-53
未找到文件。
o2web/source/x_component_process_Xform/AssociatedDocument.js
浏览文件 @
b80fd52e
...
...
@@ -79,6 +79,7 @@ MWF.xApplication.process.Xform.AssociatedDocument = MWF.APPAssociatedDocument =
});
this
.
button
.
addEvent
(
"
click
"
,
function
(){
debugger
;
this
.
selectedData
=
null
;
this
.
selectView
(
function
(
data
){
// if(data.length === 0){
...
...
@@ -116,11 +117,18 @@ MWF.xApplication.process.Xform.AssociatedDocument = MWF.APPAssociatedDocument =
},
function
(
json
)
{
this
.
status
=
"
showResult
"
;
if
(
this
.
dlg
.
titleText
)
this
.
dlg
.
titleText
.
set
(
"
text
"
,
MWF
.
xApplication
.
process
.
Xform
.
LP
.
associatedResult
);
var
okNode
=
this
.
dlg
.
button
.
getFirst
();
if
(
okNode
){
okNode
.
hide
();
var
cancelButton
=
okNode
.
getNext
();
if
(
cancelButton
)
cancelButton
.
set
(
"
value
"
,
o2
.
LP
.
widget
.
close
);
if
(
layout
.
mobile
){
if
(
layout
.
mobile
){
var
okAction
=
this
.
dlg
.
node
.
getElement
(
"
.MWF_dialod_Action_ok
"
);
if
(
okAction
)
okAction
.
hide
();
}
}
else
{
var
okNode
=
this
.
dlg
.
button
.
getFirst
();
if
(
okNode
){
okNode
.
hide
();
var
cancelButton
=
okNode
.
getNext
();
if
(
cancelButton
)
cancelButton
.
set
(
"
value
"
,
o2
.
LP
.
widget
.
close
);
}
}
if
(
(
json
.
data
.
failureList
&&
json
.
data
.
failureList
.
length
)
||
(
json
.
data
.
successList
&&
json
.
data
.
successList
.
length
)
){
this
.
showCreateResult
(
json
.
data
.
failureList
,
json
.
data
.
successList
);
...
...
@@ -209,7 +217,7 @@ MWF.xApplication.process.Xform.AssociatedDocument = MWF.APPAssociatedDocument =
deleteNode
=
new
Element
(
"
div
"
,
{
styles
:
this
.
form
.
css
.
associatedDocumentDelete
}).
inject
(
itemNode
);
deleteNode
.
hide
();
if
(
!
layout
.
mobile
)
deleteNode
.
hide
();
}
var
textNode
=
new
Element
(
"
div
"
,
{
...
...
@@ -237,7 +245,7 @@ MWF.xApplication.process.Xform.AssociatedDocument = MWF.APPAssociatedDocument =
html
:
html
}).
inject
(
this
.
documentListNode
);
var
deleteNode
=
itemNode
.
getElement
(
"
[data-o2-action='delete']
"
);
deleteNode
.
hide
();
if
(
!
layout
.
mobile
)
deleteNode
.
hide
();
this
.
_loadDocument
(
d
,
itemNode
,
deleteNode
);
}.
bind
(
this
))
},
...
...
@@ -264,19 +272,27 @@ MWF.xApplication.process.Xform.AssociatedDocument = MWF.APPAssociatedDocument =
}
},
_loadDocument
:
function
(
d
,
itemNode
,
deleteNode
){
itemNode
.
addEvents
({
"
mouseover
"
:
function
()
{
if
(
deleteNode
)
deleteNode
.
show
();
itemNode
.
setStyles
(
this
.
form
.
css
.
associatedDocumentItem_over
)
}.
bind
(
this
),
"
mouseout
"
:
function
()
{
if
(
deleteNode
)
deleteNode
.
hide
();
itemNode
.
setStyles
(
this
.
form
.
css
.
associatedDocumentItem
)
}.
bind
(
this
),
"
click
"
:
function
(
e
)
{
this
.
openDoc
(
e
,
d
);
}.
bind
(
this
),
});
if
(
layout
.
mobile
){
itemNode
.
addEvents
({
"
click
"
:
function
(
e
)
{
this
.
openDoc
(
e
,
d
);
}.
bind
(
this
),
});
}
else
{
itemNode
.
addEvents
({
"
mouseover
"
:
function
()
{
if
(
deleteNode
)
deleteNode
.
show
();
itemNode
.
setStyles
(
this
.
form
.
css
.
associatedDocumentItem_over
)
}.
bind
(
this
),
"
mouseout
"
:
function
()
{
if
(
deleteNode
)
deleteNode
.
hide
();
itemNode
.
setStyles
(
this
.
form
.
css
.
associatedDocumentItem
)
}.
bind
(
this
),
"
click
"
:
function
(
e
)
{
this
.
openDoc
(
e
,
d
);
}.
bind
(
this
),
});
}
if
(
deleteNode
){
if
(
!
this
.
isReadonly
()
){
deleteNode
.
addEvents
({
...
...
@@ -445,36 +461,7 @@ MWF.xApplication.process.Xform.AssociatedDocument = MWF.APPAssociatedDocument =
"
action
"
:
function
(){
//if (callback) callback(_self.view.selectedItems);
var
array
=
[];
_self
.
viewList
.
each
(
function
(
view
)
{
//var orginData = [], orginBundles = _self.selectedBundleMap[view.json.id] || [];
//orginData = orginBundles.map(function(bundle){
// return {
// bundle: bundle,
// type: view.json.type,
// view: view.json.id
// };
//}.bind(this));
//var data = [], data1 = view.getData();
//data1.each(function (d) {
// if( !orginBundles.contains( d.bundle ) ){
// d.type = view.json.type;
// d.view = view.json.id;
// data.push( d );
// }
//}.bind(this));
//array = array.concat(orginData, data);
var
data
=
view
.
getData
().
map
(
function
(
d
)
{
d
.
type
=
view
.
json
.
type
;
d
.
view
=
view
.
json
.
id
;
return
d
;
}.
bind
(
this
));
array
=
array
.
concat
(
data
);
}.
bind
(
this
));
_self
.
fireEvent
(
"
selectResult
"
,
[
array
]);
if
(
callback
)
callback
(
array
,
this
);
_self
.
afterSelectView
(
callback
,
dlg
);
//this.close();
}
},
...
...
@@ -572,9 +559,9 @@ MWF.xApplication.process.Xform.AssociatedDocument = MWF.APPAssociatedDocument =
dlg
.
close
();
}.
bind
(
this
));
if
(
okAction
)
okAction
.
addEvent
(
"
click
"
,
function
(
e
){
//if (callback) callback(this.view.
selectedItems
);
if
(
callback
)
callback
(
this
.
view
.
getData
()
);
dlg
.
close
();
//if (callback) callback(this.view.
getData()
);
_self
.
afterSelectView
(
callback
,
dlg
);
//
dlg.close();
}.
bind
(
this
));
}
...
...
@@ -587,6 +574,21 @@ MWF.xApplication.process.Xform.AssociatedDocument = MWF.APPAssociatedDocument =
}.
bind
(
this
));
}
},
afterSelectView
:
function
(
callback
,
dlg
){
var
array
=
[];
this
.
viewList
.
each
(
function
(
view
)
{
var
data
=
view
.
getData
().
map
(
function
(
d
)
{
d
.
type
=
view
.
json
.
type
;
d
.
view
=
view
.
json
.
id
;
return
d
;
}.
bind
(
this
));
array
=
array
.
concat
(
data
);
}.
bind
(
this
));
this
.
fireEvent
(
"
selectResult
"
,
[
array
]);
if
(
callback
)
callback
(
array
,
dlg
);
},
openDoc
:
function
(
e
,
d
){
if
(
d
.
targetType
===
"
processPlatform
"
){
o2
.
Actions
.
load
(
"
x_processplatform_assemble_surface
"
).
JobAction
.
findWorkWorkCompleted
(
d
.
targetBundle
,
function
(
json
){
...
...
liyi_hz2008
@liyi_hz2008
mentioned in commit
547e30bf
·
12月 01, 2023
mentioned in commit
547e30bf
mentioned in commit 547e30bfc596b2744acfba4437606b75fe158f4c
开关提交列表
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录