Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
fuyue82
o2oa
提交
282d4883
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,发现更多精彩内容 >>
提交
282d4883
编写于
3月 10, 2022
作者:
U
unknown
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
修复数据表格的附件移动端不能正常上传的问题
上级
b5dd0435
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
155 addition
and
0 deletion
+155
-0
o2web/source/x_component_cms_Xform/Attachment.js
o2web/source/x_component_cms_Xform/Attachment.js
+28
-0
o2web/source/x_component_cms_Xform/Form.js
o2web/source/x_component_cms_Xform/Form.js
+50
-0
o2web/source/x_component_process_Xform/Attachment.js
o2web/source/x_component_process_Xform/Attachment.js
+28
-0
o2web/source/x_component_process_Xform/Form.js
o2web/source/x_component_process_Xform/Form.js
+49
-0
未找到文件。
o2web/source/x_component_cms_Xform/Attachment.js
浏览文件 @
282d4883
...
...
@@ -689,5 +689,33 @@ MWF.xApplication.cms.Xform.AttachmentDg = MWF.CMSAttachmentDg = new Class({
this
.
_setBusinessData
([]);
}
}
},
uploadAttachment
:
function
(
e
,
node
,
files
)
{
debugger
;
if
(
window
.
o2android
&&
window
.
o2android
.
uploadAttachmentForDatagrid
)
{
window
.
o2android
.
uploadAttachmentForDatagrid
((
this
.
json
.
site
||
this
.
json
.
id
),
this
.
json
.
id
);
}
else
if
(
window
.
webkit
&&
window
.
webkit
.
messageHandlers
&&
window
.
webkit
.
messageHandlers
.
uploadAttachmentForDatagrid
)
{
window
.
webkit
.
messageHandlers
.
uploadAttachmentForDatagrid
.
postMessage
({
"
site
"
:
(
this
.
json
.
site
||
this
.
json
.
id
)
,
"
param
"
:
this
.
json
.
id
});
}
else
{
// if (!this.uploadFileAreaNode){
this
.
createUploadFileNode
(
files
);
// }
// this.fileUploadNode.click();
}
},
replaceAttachment
:
function
(
e
,
node
,
attachment
)
{
if
(
window
.
o2android
&&
window
.
o2android
.
replaceAttachmentForDatagrid
)
{
window
.
o2android
.
replaceAttachmentForDatagrid
(
attachment
.
data
.
id
,
(
this
.
json
.
site
||
this
.
json
.
id
),
this
.
json
.
id
);
}
else
if
(
window
.
webkit
&&
window
.
webkit
.
messageHandlers
&&
window
.
webkit
.
messageHandlers
.
replaceAttachmentForDatagrid
)
{
window
.
webkit
.
messageHandlers
.
replaceAttachmentForDatagrid
.
postMessage
({
"
id
"
:
attachment
.
data
.
id
,
"
site
"
:
(
this
.
json
.
site
||
this
.
json
.
id
)
,
"
param
"
:
this
.
json
.
id
});
}
else
{
var
_self
=
this
;
this
.
form
.
confirm
(
"
warn
"
,
e
,
MWF
.
xApplication
.
process
.
Xform
.
LP
.
replaceAttachmentTitle
,
MWF
.
xApplication
.
process
.
Xform
.
LP
.
replaceAttachment
+
"
(
"
+
attachment
.
data
.
name
+
"
)
"
,
350
,
120
,
function
()
{
_self
.
replaceAttachmentFile
(
attachment
);
this
.
close
();
},
function
()
{
this
.
close
();
},
null
,
null
,
this
.
form
.
json
.
confirmStyle
);
}
}
});
o2web/source/x_component_cms_Xform/Form.js
浏览文件 @
282d4883
...
...
@@ -1284,6 +1284,14 @@ MWF.xApplication.cms.Xform.Form = MWF.CMSForm = new Class(
*/
uploadedAttachment
:
function
(
site
,
id
)
{
this
.
documentAction
.
getAttachment
(
id
,
this
.
businessData
.
document
.
id
,
function
(
json
)
{
var
flag
=
this
.
businessData
.
attachmentList
.
some
(
function
(
attData
)
{
return
json
.
data
.
id
===
attData
.
id
;
}.
bind
(
this
));
if
(
!
flag
){
this
.
businessData
.
attachmentList
.
push
(
json
.
data
);
}
var
att
=
this
.
all
[
site
];
if
(
att
)
{
if
(
json
.
data
)
att
.
attachmentController
.
addAttachment
(
json
.
data
);
...
...
@@ -1312,6 +1320,48 @@ MWF.xApplication.cms.Xform.Form = MWF.CMSForm = new Class(
}.
bind
(
this
))
},
uploadedAttachmentDatagrid
:
function
(
site
,
id
,
moduleId
)
{
this
.
documentAction
.
getAttachment
(
id
,
this
.
businessData
.
document
.
id
,
function
(
json
)
{
var
flag
=
this
.
businessData
.
attachmentList
.
some
(
function
(
attData
)
{
return
json
.
data
.
id
===
attData
.
id
;
}.
bind
(
this
));
if
(
!
flag
){
this
.
businessData
.
attachmentList
.
push
(
json
.
data
);
}
var
att
=
this
.
all
[
moduleId
];
if
(
att
)
{
if
(
json
.
data
)
att
.
attachmentController
.
addAttachment
(
json
.
data
);
att
.
setAttachmentBusinessData
();
att
.
attachmentController
.
checkActions
();
att
.
fireEvent
(
"
upload
"
,
[
json
.
data
]);
att
.
fireEvent
(
"
change
"
,
[
json
.
data
]);
}
}.
bind
(
this
));
},
replacedAttachmentDatagrid
:
function
(
site
,
id
,
moduleId
)
{
this
.
documentAction
.
getAttachment
(
id
,
this
.
businessData
.
document
.
id
,
function
(
json
)
{
var
att
=
this
.
all
[
moduleId
];
if
(
att
)
{
var
attachmentController
=
att
.
attachmentController
;
var
attachment
=
null
;
for
(
var
i
=
0
;
i
<
attachmentController
.
attachments
.
length
;
i
++
)
{
if
(
attachmentController
.
attachments
[
i
].
data
.
id
===
id
)
{
attachment
=
attachmentController
.
attachments
[
i
];
break
;
}
}
attachment
.
data
=
json
.
data
;
att
.
setAttachmentBusinessData
();
attachment
.
reload
();
attachmentController
.
checkActions
();
att
.
fireEvent
(
"
change
"
,
[
json
.
data
]);
}
}.
bind
(
this
))
},
/**
* @summary 弹出文档置顶对话框,操作后使当前文档在列式服务中排在前面.
* @method setTop
...
...
o2web/source/x_component_process_Xform/Attachment.js
浏览文件 @
282d4883
...
...
@@ -2361,5 +2361,33 @@ MWF.xApplication.process.Xform.AttachmentDg = MWF.APPAttachmentDg = new Class({
this
.
_setBusinessData
([]);
}
}
},
uploadAttachment
:
function
(
e
,
node
,
files
)
{
debugger
;
if
(
window
.
o2android
&&
window
.
o2android
.
uploadAttachmentForDatagrid
)
{
window
.
o2android
.
uploadAttachmentForDatagrid
((
this
.
json
.
site
||
this
.
json
.
id
),
this
.
json
.
id
);
}
else
if
(
window
.
webkit
&&
window
.
webkit
.
messageHandlers
&&
window
.
webkit
.
messageHandlers
.
uploadAttachmentForDatagrid
)
{
window
.
webkit
.
messageHandlers
.
uploadAttachmentForDatagrid
.
postMessage
({
"
site
"
:
(
this
.
json
.
site
||
this
.
json
.
id
)
,
"
param
"
:
this
.
json
.
id
});
}
else
{
// if (!this.uploadFileAreaNode){
this
.
createUploadFileNode
(
files
);
// }
// this.fileUploadNode.click();
}
},
replaceAttachment
:
function
(
e
,
node
,
attachment
)
{
if
(
window
.
o2android
&&
window
.
o2android
.
replaceAttachmentForDatagrid
)
{
window
.
o2android
.
replaceAttachmentForDatagrid
(
attachment
.
data
.
id
,
(
this
.
json
.
site
||
this
.
json
.
id
),
this
.
json
.
id
);
}
else
if
(
window
.
webkit
&&
window
.
webkit
.
messageHandlers
&&
window
.
webkit
.
messageHandlers
.
replaceAttachmentForDatagrid
)
{
window
.
webkit
.
messageHandlers
.
replaceAttachmentForDatagrid
.
postMessage
({
"
id
"
:
attachment
.
data
.
id
,
"
site
"
:
(
this
.
json
.
site
||
this
.
json
.
id
)
,
"
param
"
:
this
.
json
.
id
});
}
else
{
var
_self
=
this
;
this
.
form
.
confirm
(
"
warn
"
,
e
,
MWF
.
xApplication
.
process
.
Xform
.
LP
.
replaceAttachmentTitle
,
MWF
.
xApplication
.
process
.
Xform
.
LP
.
replaceAttachment
+
"
(
"
+
attachment
.
data
.
name
+
"
)
"
,
350
,
120
,
function
()
{
_self
.
replaceAttachmentFile
(
attachment
);
this
.
close
();
},
function
()
{
this
.
close
();
},
null
,
null
,
this
.
form
.
json
.
confirmStyle
);
}
}
});
o2web/source/x_component_process_Xform/Form.js
浏览文件 @
282d4883
...
...
@@ -4609,6 +4609,14 @@ debugger;
*/
uploadedAttachment
:
function
(
site
,
id
)
{
this
.
workAction
.
getAttachment
(
id
,
this
.
businessData
.
work
.
id
,
function
(
json
)
{
var
flag
=
this
.
businessData
.
attachmentList
.
some
(
function
(
attData
)
{
return
json
.
data
.
id
===
attData
.
id
;
}.
bind
(
this
));
if
(
!
flag
){
this
.
businessData
.
attachmentList
.
push
(
json
.
data
);
}
var
att
=
this
.
all
[
site
];
if
(
att
)
{
if
(
json
.
data
)
att
.
attachmentController
.
addAttachment
(
json
.
data
);
...
...
@@ -4636,6 +4644,47 @@ debugger;
}
}.
bind
(
this
))
},
uploadedAttachmentDatagrid
:
function
(
site
,
id
,
moduleId
)
{
this
.
workAction
.
getAttachment
(
id
,
this
.
businessData
.
work
.
id
,
function
(
json
)
{
var
flag
=
this
.
businessData
.
attachmentList
.
some
(
function
(
attData
)
{
return
json
.
data
.
id
===
attData
.
id
;
}.
bind
(
this
));
if
(
!
flag
){
this
.
businessData
.
attachmentList
.
push
(
json
.
data
);
}
var
att
=
this
.
all
[
moduleId
];
if
(
att
)
{
if
(
json
.
data
)
att
.
attachmentController
.
addAttachment
(
json
.
data
);
att
.
setAttachmentBusinessData
();
att
.
attachmentController
.
checkActions
();
att
.
fireEvent
(
"
upload
"
,
[
json
.
data
]);
att
.
fireEvent
(
"
change
"
,
[
json
.
data
]);
}
}.
bind
(
this
));
},
replacedAttachmentDatagrid
:
function
(
site
,
id
,
moduleId
)
{
this
.
workAction
.
getAttachment
(
id
,
this
.
businessData
.
work
.
id
,
function
(
json
)
{
var
att
=
this
.
all
[
moduleId
];
if
(
att
)
{
var
attachmentController
=
att
.
attachmentController
;
var
attachment
=
null
;
for
(
var
i
=
0
;
i
<
attachmentController
.
attachments
.
length
;
i
++
)
{
if
(
attachmentController
.
attachments
[
i
].
data
.
id
===
id
)
{
attachment
=
attachmentController
.
attachments
[
i
];
break
;
}
}
attachment
.
data
=
json
.
data
;
att
.
setAttachmentBusinessData
();
attachment
.
reload
();
attachmentController
.
checkActions
();
att
.
fireEvent
(
"
change
"
,
[
json
.
data
]);
}
}.
bind
(
this
))
},
// 打开工作关联聊天
openIMChatStarter
:
function
(
jobId
)
{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录