Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
ghsby
o2oa
提交
2ea291b1
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,发现更多精彩内容 >>
提交
2ea291b1
编写于
7月 21, 2021
作者:
NoSubject
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
公文模板签发人部分的绑定优化
上级
198c19cd
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
38 addition
and
21 deletion
+38
-21
o2web/source/x_component_process_Xform/Documenteditor.js
o2web/source/x_component_process_Xform/Documenteditor.js
+38
-21
未找到文件。
o2web/source/x_component_process_Xform/Documenteditor.js
浏览文件 @
2ea291b1
...
...
@@ -2673,23 +2673,23 @@ MWF.xApplication.process.Xform.Documenteditor = MWF.APPDocumenteditor = new Cla
this
.
_computeItemFieldData
(
name
,
dataItem
);
//if (this.data[name]){
if
(
this
[
dom
]){
if
(
dom
==
"
layout_redHeader
"
||
dom
==
"
layout_issuanceUnit
"
||
dom
==
"
layout_meetingAttendContent
"
||
dom
==
"
layout_meetingLeaveContent
"
||
dom
==
"
layout_meetingSitContent
"
||
dom
==
"
layout_meetingRecordContent
"
)
{
this
[
dom
].
set
(
"
html
"
,
this
.
data
[
name
]
||
""
);
}
else
if
(
dom
==
"
layout_subject
"
){
this
[
dom
].
set
(
"
html
"
,
(
this
.
data
[
name
]
||
""
));
}
else
if
(
dom
==
"
layout_attachment
"
){
this
.
setAttachmentData
();
}
else
if
(
dom
==
"
layout_annotation
"
){
var
annotation
=
this
.
data
[
name
];
if
(
annotation
){
if
(
annotation
.
substring
(
0
,
1
)
!==
"
(
"
)
annotation
=
"
(
"
+
annotation
;
if
(
annotation
.
substring
(
annotation
.
length
-
1
,
annotation
.
length
)
!==
"
)
"
)
annotation
=
annotation
+
"
)
"
;
this
[
dom
].
set
(
"
text
"
,
annotation
);
}
else
{
this
[
dom
].
set
(
"
text
"
,
"
"
);
}
}
else
{
this
[
dom
].
set
(
"
text
"
,
this
.
data
[
name
]
||
""
);
if
(
dom
==
"
layout_redHeader
"
||
dom
==
"
layout_issuanceUnit
"
||
dom
==
"
layout_meetingAttendContent
"
||
dom
==
"
layout_meetingLeaveContent
"
||
dom
==
"
layout_meetingSitContent
"
||
dom
==
"
layout_meetingRecordContent
"
||
dom
==
"
layout_signer
"
)
{
this
[
dom
].
set
(
"
html
"
,
this
.
data
[
name
]
||
""
);
}
else
if
(
dom
==
"
layout_subject
"
){
this
[
dom
].
set
(
"
html
"
,
(
this
.
data
[
name
]
||
""
));
}
else
if
(
dom
==
"
layout_attachment
"
){
this
.
setAttachmentData
();
}
else
if
(
dom
==
"
layout_annotation
"
){
var
annotation
=
this
.
data
[
name
];
if
(
annotation
){
if
(
annotation
.
substring
(
0
,
1
)
!==
"
(
"
)
annotation
=
"
(
"
+
annotation
;
if
(
annotation
.
substring
(
annotation
.
length
-
1
,
annotation
.
length
)
!==
"
)
"
)
annotation
=
annotation
+
"
)
"
;
this
[
dom
].
set
(
"
text
"
,
annotation
);
}
else
{
this
[
dom
].
set
(
"
text
"
,
"
"
);
}
}
else
{
this
[
dom
].
set
(
"
text
"
,
this
.
data
[
name
]
||
""
);
}
}
...
...
@@ -2737,10 +2737,13 @@ MWF.xApplication.process.Xform.Documenteditor = MWF.APPDocumenteditor = new Cla
break
;
case
"
array
"
:
var
strs
=
[];
var
strLength
=
0
;
v
.
each
(
function
(
value
){
if
(
o2
.
typeOf
(
value
)
==
"
object
"
&&
value
.
distinguishedName
){
if
(
value
.
name
.
length
>
strLength
)
strLength
=
value
.
name
.
length
;
strs
.
push
(
value
.
name
);
}
else
{
if
(
value
.
length
>
strLength
)
strLength
=
value
.
length
;
strs
.
push
(
value
.
toString
());
}
});
...
...
@@ -2771,6 +2774,20 @@ MWF.xApplication.process.Xform.Documenteditor = MWF.APPDocumenteditor = new Cla
});
this
.
data
[
name
]
=
tmpStrs
.
join
(
"
,
"
);
break
;
case
"
signer
"
:
var
signers
=
""
;
strs
.
each
(
function
(
name
,
i
){
while
(
name
.
length
<
strLength
){
name
=
name
+
"
"
;}
//signers.push(name);
if
(
i
%
2
==
0
){
signers
=
signers
+
name
+
"
"
;
}
else
{
signers
=
signers
+
name
+
"
<br>
"
;
}
});
this
.
data
[
name
]
=
signers
;
break
;
case
"
mainSend
"
:
this
.
data
[
name
]
=
strs
.
join
(
"
,
"
)
+
"
:
"
;
break
;
...
...
@@ -2951,7 +2968,7 @@ MWF.xApplication.process.Xform.Documenteditor = MWF.APPDocumenteditor = new Cla
if
(
this
.
layout_redHeader
)
this
.
data
.
redHeader
=
this
.
layout_redHeader
.
get
(
"
html
"
);
if
(
this
.
layout_fileno
)
this
.
data
.
fileno
=
this
.
layout_fileno
.
get
(
"
text
"
);
if
(
this
.
layout_signerTitle
)
this
.
data
.
signerTitle
=
this
.
layout_signerTitle
.
get
(
"
text
"
);
if
(
this
.
layout_signer
)
this
.
data
.
signer
=
this
.
layout_signer
.
get
(
"
text
"
);
if
(
this
.
layout_signer
)
this
.
data
.
signer
=
this
.
layout_signer
.
get
(
"
html
"
);
if
(
this
.
layout_subject
)
this
.
data
.
subject
=
this
.
layout_subject
.
get
(
"
html
"
);
if
(
this
.
layout_mainSend
)
this
.
data
.
mainSend
=
this
.
layout_mainSend
.
get
(
"
text
"
);
if
(
this
.
editMode
)
if
(
this
.
layout_filetext
){
...
...
@@ -2963,7 +2980,7 @@ MWF.xApplication.process.Xform.Documenteditor = MWF.APPDocumenteditor = new Cla
this
.
data
.
filetext
=
""
;
}
}
if
(
this
.
layout_signer
)
this
.
data
.
signer
=
this
.
layout_signer
.
get
(
"
text
"
);
if
(
this
.
layout_signer
)
this
.
data
.
signer
=
this
.
layout_signer
.
get
(
"
html
"
);
if
(
this
.
layout_attachmentTitle
)
this
.
data
.
attachmentTitle
=
this
.
layout_attachmentTitle
.
get
(
"
text
"
);
if
(
this
.
layout_attachment
){
this
.
_computeItemData
(
"
attachment
"
,
"
attachmentValueType
"
,
"
attachmentValueData
"
,
"
attachmentValueScript
"
,
false
,
"
layout_attachment
"
);
...
...
@@ -3078,7 +3095,7 @@ MWF.xApplication.process.Xform.Documenteditor = MWF.APPDocumenteditor = new Cla
if
(
this
.
layout_redHeader
)
this
.
layout_redHeader
.
set
(
"
html
"
,
data
.
redHeader
||
""
);
if
(
this
.
layout_fileno
)
this
.
layout_fileno
.
set
(
"
text
"
,
data
.
fileno
||
"
"
);
if
(
this
.
layout_signerTitle
)
this
.
layout_signerTitle
.
set
(
"
text
"
,
data
.
signerTitle
||
"
"
);
if
(
this
.
layout_signer
)
this
.
layout_signer
.
set
(
"
text
"
,
data
.
signer
||
"
"
);
if
(
this
.
layout_signer
)
this
.
layout_signer
.
set
(
"
html
"
,
data
.
signer
||
"
"
);
if
(
this
.
layout_subject
)
this
.
layout_subject
.
set
(
"
html
"
,
data
.
subject
||
"
"
);
if
(
this
.
layout_mainSend
)
this
.
layout_mainSend
.
set
(
"
text
"
,
data
.
mainSend
||
"
"
);
if
(
diffFiletext
)
{
...
...
@@ -3098,7 +3115,7 @@ MWF.xApplication.process.Xform.Documenteditor = MWF.APPDocumenteditor = new Cla
});
}
}
if
(
this
.
layout_signer
)
this
.
layout_signer
.
set
(
"
text
"
,
data
.
signer
||
""
);
if
(
this
.
layout_signer
)
this
.
layout_signer
.
set
(
"
html
"
,
data
.
signer
||
""
);
if
(
this
.
layout_attachmentTitle
)
this
.
layout_attachmentTitle
.
set
(
"
text
"
,
data
.
attachmentTitle
||
"
"
);
if
(
this
.
layout_attachment
){
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录