Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
ghsby
o2oa
提交
dbfbe937
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,发现更多精彩内容 >>
提交
dbfbe937
编写于
9月 03, 2020
作者:
U
unknown
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
附件addAttachment增加检查位置的参数
上级
f7d36e65
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
31 addition
and
5 deletion
+31
-5
o2web/source/o2_core/o2/widget/AttachmentController.js
o2web/source/o2_core/o2/widget/AttachmentController.js
+31
-5
未找到文件。
o2web/source/o2_core/o2/widget/AttachmentController.js
浏览文件 @
dbfbe937
...
...
@@ -1153,11 +1153,11 @@ o2.widget.AttachmentController = o2.widget.ATTER = new Class({
return
names
;
},
addAttachment
:
function
(
data
,
messageId
){
addAttachment
:
function
(
data
,
messageId
,
isCheckPosition
){
if
(
this
.
options
.
size
==
"
min
"
){
this
.
attachments
.
push
(
new
o2
.
widget
.
AttachmentController
.
AttachmentMin
(
data
,
this
,
messageId
));
this
.
attachments
.
push
(
new
o2
.
widget
.
AttachmentController
.
AttachmentMin
(
data
,
this
,
messageId
,
isCheckPosition
));
}
else
{
this
.
attachments
.
push
(
new
o2
.
widget
.
AttachmentController
.
Attachment
(
data
,
this
,
messageId
));
this
.
attachments
.
push
(
new
o2
.
widget
.
AttachmentController
.
Attachment
(
data
,
this
,
messageId
,
isCheckPosition
));
}
this
.
checkActions
();
},
...
...
@@ -1190,7 +1190,7 @@ o2.widget.AttachmentController = o2.widget.ATTER = new Class({
o2
.
widget
.
AttachmentController
.
Attachment
=
new
Class
({
Implements
:
[
Events
],
initialize
:
function
(
data
,
controller
,
messageId
){
initialize
:
function
(
data
,
controller
,
messageId
,
isCheckPosition
){
this
.
data
=
data
;
if
(
!
this
.
data
.
person
&&
this
.
data
.
creatorUid
)
this
.
data
.
person
=
this
.
data
.
creatorUid
;
...
...
@@ -1201,6 +1201,7 @@ o2.widget.AttachmentController.Attachment = new Class({
this
.
content
=
this
.
controller
.
content
;
this
.
isSelected
=
false
;
this
.
seq
=
this
.
controller
.
attachments
.
length
+
1
;
this
.
isCheckPosition
=
isCheckPosition
;
this
.
actions
=
[];
if
(
messageId
&&
this
.
controller
.
messageItemList
)
{
...
...
@@ -1216,6 +1217,9 @@ o2.widget.AttachmentController.Attachment = new Class({
"
par
"
:
"
@url#
"
+
url
};
},
isNumber
:
function
(
d
){
return
parseFloat
(
d
).
toString
()
!==
"
NaN
"
},
load
:
function
(){
if
(
this
.
message
){
this
.
node
=
new
Element
(
"
div
"
).
inject
(
this
.
message
.
node
,
"
after
"
);
...
...
@@ -1224,6 +1228,16 @@ o2.widget.AttachmentController.Attachment = new Class({
}
else
{
this
.
node
=
new
Element
(
"
div
"
).
inject
(
this
.
content
);
}
if
(
this
.
isCheckPosition
&&
this
.
isNumber
(
this
.
data
.
orderNumber
)
){
var
attList
=
this
.
controller
.
attachments
;
for
(
var
i
=
0
;
i
<
attList
.
length
;
i
++
){
var
att
=
attList
[
i
];
if
(
!
this
.
isNumber
(
att
.
data
.
orderNumber
)
||
this
.
data
.
orderNumber
<
att
.
data
.
orderNumber
){
this
.
node
.
inject
(
att
.
node
,
"
before
"
);
break
;
}
}
}
switch
(
this
.
controller
.
options
.
listStyle
){
case
"
list
"
:
...
...
@@ -1657,7 +1671,7 @@ o2.widget.AttachmentController.Attachment = new Class({
o2
.
widget
.
AttachmentController
.
AttachmentMin
=
new
Class
({
Extends
:
o2
.
widget
.
AttachmentController
.
Attachment
,
initialize
:
function
(
data
,
controller
,
messageId
){
initialize
:
function
(
data
,
controller
,
messageId
,
isCheckPosition
){
this
.
data
=
data
;
if
(
!
this
.
data
.
person
&&
this
.
data
.
creatorUid
)
this
.
data
.
person
=
this
.
data
.
creatorUid
;
...
...
@@ -1666,6 +1680,7 @@ o2.widget.AttachmentController.AttachmentMin = new Class({
this
.
css
=
this
.
controller
.
css
;
this
.
content
=
this
.
controller
.
minContent
;
this
.
isSelected
=
false
;
this
.
isCheckPosition
=
isCheckPosition
;
this
.
seq
=
this
.
controller
.
attachments
.
length
+
1
;
if
(
messageId
&&
this
.
controller
.
messageItemList
)
{
...
...
@@ -1683,6 +1698,17 @@ o2.widget.AttachmentController.AttachmentMin = new Class({
this
.
node
=
new
Element
(
"
div
"
).
inject
(
this
.
content
);
}
if
(
this
.
isCheckPosition
&&
this
.
isNumber
(
this
.
data
.
orderNumber
)
){
var
attList
=
this
.
controller
.
attachments
;
for
(
var
i
=
0
;
i
<
attList
.
length
;
i
++
){
var
att
=
attList
[
i
];
if
(
!
this
.
isNumber
(
att
.
data
.
orderNumber
)
||
this
.
data
.
orderNumber
<
att
.
data
.
orderNumber
){
this
.
node
.
inject
(
att
.
node
,
"
before
"
);
break
;
}
}
}
//this.node = new Element("div").inject(this.content);
//this.loadList();
switch
(
this
.
controller
.
options
.
listStyle
){
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录