Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
浙江兰德纵横网络技术股份有限公司
o2oa
提交
5898cb3b
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,发现更多精彩内容 >>
提交
5898cb3b
编写于
8月 07, 2021
作者:
NoSubject
2
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
公文编辑器,增加附件内容编辑,以及转word的一些优化
上级
9537299f
变更
8
展开全部
隐藏空白更改
内联
并排
Showing
8 changed file
with
285 addition
and
115 deletion
+285
-115
o2web/source/x_component_process_FormDesigner/Module/Documenteditor/documenteditor.html
...ss_FormDesigner/Module/Documenteditor/documenteditor.html
+17
-0
o2web/source/x_component_process_FormDesigner/Module/Documenteditor/templete/standard.html
...FormDesigner/Module/Documenteditor/templete/standard.html
+6
-1
o2web/source/x_component_process_FormDesigner/lp/en.js
o2web/source/x_component_process_FormDesigner/lp/en.js
+2
-0
o2web/source/x_component_process_FormDesigner/lp/zh-cn.js
o2web/source/x_component_process_FormDesigner/lp/zh-cn.js
+2
-0
o2web/source/x_component_process_Xform/Documenteditor.js
o2web/source/x_component_process_Xform/Documenteditor.js
+229
-104
o2web/source/x_component_process_Xform/lp/en.js
o2web/source/x_component_process_Xform/lp/en.js
+2
-1
o2web/source/x_component_process_Xform/lp/zh-cn.js
o2web/source/x_component_process_Xform/lp/zh-cn.js
+2
-1
o2web/source/x_component_process_Xform/widget/OOXML.js
o2web/source/x_component_process_Xform/widget/OOXML.js
+25
-8
未找到文件。
o2web/source/x_component_process_FormDesigner/Module/Documenteditor/documenteditor.html
浏览文件 @
5898cb3b
...
...
@@ -739,6 +739,23 @@
</div>
<!-----------------------------------------------附件------------------------------------------------------------------->
<!-----------------------------------------------附件内容------------------------------------------------------------------->
<div
onclick=
"var node = this.getNext(); node.setStyle('display', ((node.getStyle('display')=='none') ? 'block' : 'none'));"
style=
"cursor: pointer; height: 24px; padding-left:5px; text-align: left; line-height: 24px; border-top: 1px solid #cccccc; border-bottom: 1px solid #999999; font-weight: bold; background-color: #eeeeee;"
>
{{$.lp.attachmentText}} (attachment)
</div>
<div
style=
"display: none"
>
<table
width=
"100%"
border=
"0"
cellpadding=
"5"
cellspacing=
"0"
class=
"editTable"
>
<tr>
<td
class=
"editTableTitle"
>
{{$.lp.allowEdit}}:
</td>
<td
class=
"editTableValue"
>
<input
class=
"editTableRadio"
onclick=
"if (this.checked) $('text{$.pid}attachmentTextEditScriptArea').setStyle('display', 'none');"
name=
"attachmentTextEdit"
text
{($
.attachmentTextEdit=
='y')?'checked':''}
type=
"radio"
value=
"y"
/>
{{$.lp.allow}}
<input
class=
"editTableRadio"
onclick=
"if (this.checked) $('text{$.pid}attachmentTextEditScriptArea').setStyle('display', 'none');"
name=
"attachmentTextEdit"
text
{($.
attachmentTextEdit
!='
y
'
&&
$.
attachmentTextEdit
!='
s
')?'
checked
'
:
''}
type=
"radio"
value=
"n"
/>
{{$.lp.notAllow}}
<input
class=
"editTableRadio"
onclick=
"if (this.checked) $('text{$.pid}attachmentTextEditScriptArea').setStyle('display', 'block');"
name=
"attachmentTextEdit"
text
{($
.attachmentTextEdit=
='s')?'checked':''}
type=
"radio"
value=
"s"
/>
{{$.lp.byScript}}
</td>
</tr>
</table>
<div
id=
"text{$.pid}attachmentTextEditScriptArea"
style=
"display: text{($.attachmentTextEdit=='s')?'block':'none'}"
class=
"MWFFormulaArea"
name=
"attachmentTextEditScript"
title=
"{{$.lp.editScript}} (S)"
></div>
</div>
<!-----------------------------------------------附件内容------------------------------------------------------------------->
<!-----------------------------------------------成文单位------------------------------------------------------------------->
<div
onclick=
"var node = this.getNext(); node.setStyle('display', ((node.getStyle('display')=='none') ? 'block' : 'none'));"
style=
"cursor: pointer; height: 24px; padding-left:5px; text-align: left; line-height: 24px; border-top: 1px solid #cccccc; border-bottom: 1px solid #999999; font-weight: bold; background-color: #eeeeee;"
>
{{$.lp.issuanceUnit}} (issuanceUnit)
</div>
<div
style=
"display: none"
>
...
...
o2web/source/x_component_process_FormDesigner/Module/Documenteditor/templete/standard.html
浏览文件 @
5898cb3b
...
...
@@ -109,6 +109,11 @@
mso-border-top-alt
:
solid
windowtext
1.3px
;
border-top
:
solid
windowtext
2px
;
}
p
.pageBreak
{
border-bottom
:
1px
solid
#eeeeee
;
margin-bottom
:
24px
;
margin-top
:
24px
;
}
</style>
<div
class=
WordSection1
style=
'layout-grid:15.6pt; font-size:16.0pt;font-family:仿宋'
>
...
...
@@ -289,7 +294,7 @@
</p>
</div>
<div
class=
"
doc_block doc_layout_attachment_text
"
></div>
<div
class=
"
MsoNormal doc_block doc_layout_attachment_text"
style=
"margin: 16pt 0; font-family:仿宋;text-align:justify;font-size: 16pt;
"
></div>
<div
class=
"doc_block doc_layout_editionArea"
>
<P
class=
MsoNormal
style=
'font-size:16.0pt;font-family:仿宋'
><span>
&
nbsp
</span></P>
...
...
o2web/source/x_component_process_FormDesigner/lp/en.js
浏览文件 @
5898cb3b
...
...
@@ -808,6 +808,8 @@ MWF.xApplication.process.FormDesigner.LP = {
"
editSubjectInfo
"
:
"
When the title allows editing, please do not bind value
"
,
"
mainSend
"
:
"
Main Send
"
,
"
attachment
"
:
"
Attachment
"
,
"
attachmentText
"
:
"
Attachment Text
"
,
"
attachmentInfor
"
:
"
[Click here to edit the content of attachments]
"
,
"
issuanceUnit
"
:
"
Issuance Unit
"
,
"
issuanceDate
"
:
"
Issuance Date
"
,
"
annotation
"
:
"
Annotation
"
,
...
...
o2web/source/x_component_process_FormDesigner/lp/zh-cn.js
浏览文件 @
5898cb3b
...
...
@@ -813,6 +813,8 @@ MWF.xApplication.process.FormDesigner.LP = {
"
editSubjectInfo
"
:
"
标题允许编辑时,请不要绑定数据
"
,
"
mainSend
"
:
"
主送
"
,
"
attachment
"
:
"
附件
"
,
"
attachmentText
"
:
"
附件内容
"
,
"
attachmentInfor
"
:
"
[点击此处编辑附件内容]
"
,
"
issuanceUnit
"
:
"
成文单位
"
,
"
issuanceDate
"
:
"
成文日期
"
,
"
annotation
"
:
"
附注
"
,
...
...
o2web/source/x_component_process_Xform/Documenteditor.js
浏览文件 @
5898cb3b
此差异已折叠。
点击以展开。
o2web/source/x_component_process_Xform/lp/en.js
浏览文件 @
5898cb3b
...
...
@@ -246,7 +246,8 @@ MWF.xApplication.process.Xform.LP = {
"
copyto
"
:
"
[抄送]
"
,
"
editionUnit
"
:
"
[印发机关]
"
,
"
editionDate
"
:
"
[印发日期]
"
,
"
historyList
"
:
"
历史版本文档
"
"
historyList
"
:
"
历史版本文档
"
,
"
attachmentInfor
"
:
"
[Click here to edit the content of attachments]
"
,
},
"
documentHistory
"
:
{
"
diffContent
"
:
"
<div>{time}</div>{name} modified content at
\"
{activity}
\"
"
,
...
...
o2web/source/x_component_process_Xform/lp/zh-cn.js
浏览文件 @
5898cb3b
...
...
@@ -247,7 +247,8 @@ MWF.xApplication.process.Xform.LP = {
"
copyto
"
:
"
[抄送]
"
,
"
editionUnit
"
:
"
[印发机关]
"
,
"
editionDate
"
:
"
[印发日期]
"
,
"
historyList
"
:
"
历史版本文档
"
"
historyList
"
:
"
历史版本文档
"
,
"
attachmentInfor
"
:
"
[点击此处编辑附件内容]
"
},
"
documentHistory
"
:
{
"
diffContent
"
:
"
<div>{time}</div>{name} 在 ”{activity}“ 时修改的内容
"
,
...
...
o2web/source/x_component_process_Xform/widget/OOXML.js
浏览文件 @
5898cb3b
...
...
@@ -308,6 +308,8 @@ o2.xApplication.process.Xform.widget.OOXML.WordprocessingML = o2.OOXML.WML = new
}
else
if
(
dom
.
hasClass
(
"
doc_layout_filetext
"
)){
this
.
processFiletext
(
dom
,
oo_body
,
append
);
}
else
if
(
dom
.
hasClass
(
"
doc_layout_attachment_text
"
)){
this
.
processFiletext
(
dom
,
oo_body
,
append
);
}
else
if
(
dom
.
hasClass
(
"
doc_layout_editionArea
"
)){
var
h
=
dom
.
getSize
().
y
;
...
...
@@ -388,16 +390,17 @@ o2.xApplication.process.Xform.widget.OOXML.WordprocessingML = o2.OOXML.WML = new
node
=
node
.
firstChild
;
while
(
node
){
if
(
node
.
nodeType
===
Node
.
TEXT_NODE
){
if
(
node
.
nodeValue
.
trim
()
)
this
.
processRun
(
node
.
parentElement
||
node
.
parentNode
,
oo_p
,
p
,
node
.
nodeValue
);
if
(
node
.
nodeValue
)
this
.
processRun
(
node
.
parentElement
||
node
.
parentNode
,
oo_p
,
p
,
node
.
nodeValue
);
}
else
if
(
node
.
nodeType
===
Node
.
ELEMENT_NODE
){
if
(
node
.
tagName
.
toLowerCase
()
===
"
span
"
)
{
this
.
processRun
(
node
,
oo_p
,
p
);
}
else
if
(
node
.
tagName
.
toLowerCase
()
===
"
br
"
)
{
this
.
processRun
(
node
,
oo_p
,
p
,
""
,
"
br
"
);
if
(
node
.
nextSibling
)
this
.
processRun
(
node
,
oo_p
,
p
,
""
,
"
br
"
);
}
else
if
(
node
.
tagName
.
toLowerCase
()
===
"
div
"
||
node
.
tagName
.
toLowerCase
()
===
"
p
"
)
{
if
(
!
this
.
isEmptyP
(
oo_p
)){
oo_p
=
this
.
createParagraphFromDom
(
node
,
oo_body
,
append
);
}
else
{
this
.
setParagraphAttrFromDom
(
node
,
oo_p
);
}
this
.
processParagraphRun
(
node
,
oo_p
,
p
,
oo_body
,
append
,
ilvl
);
...
...
@@ -520,10 +523,18 @@ o2.xApplication.process.Xform.widget.OOXML.WordprocessingML = o2.OOXML.WML = new
}
Object
.
keys
(
pPrs
).
each
(
function
(
k
){
var
node
=
oo_pPr
.
querySelector
(
k
);
if
(
!
node
)
node
=
this
.
createEl
(
oo_p
.
ownerDocument
,
k
);
this
.
setAttrs
(
node
,
pPrs
[
k
]);
oo_pPr
.
appendChild
(
node
);
if
(
k
==
"
pageBreak
"
)
{
var
oo_r
=
this
.
createEl
(
oo_p
.
ownerDocument
,
"
r
"
);
var
oo_br
=
this
.
createEl
(
oo_p
.
ownerDocument
,
"
br
"
);
this
.
setAttrs
(
oo_br
,
{
"
type
"
:
"
page
"
});
oo_r
.
appendChild
(
oo_br
);
oo_p
.
appendChild
(
oo_r
);
}
else
{
var
node
=
oo_pPr
.
querySelector
(
k
);
if
(
!
node
)
node
=
this
.
createEl
(
oo_p
.
ownerDocument
,
k
);
this
.
setAttrs
(
node
,
pPrs
[
k
]);
oo_pPr
.
appendChild
(
node
);
}
}.
bind
(
this
));
},
createParagraphFromDom
:
function
(
dom
,
oo_body
,
append
){
...
...
@@ -1257,9 +1268,9 @@ o2.xApplication.process.Xform.widget.OOXML.WordprocessingML = o2.OOXML.WML = new
var
oo_drawing
=
this
.
createEl
(
oo_doc
,
"
drawing
"
);
var
msoStyle
=
this
.
getMsoStyle
(
img
);
debugger
;
var
position
=
img
.
getStyle
(
"
position
"
);
var
p
=
(
position
===
"
absolute
"
||
msoStyle
[
"
mso-position-vertical
"
]
===
"
absolute
"
)
?
"
anchor
"
:
"
inline
"
;
var
p
=
(
msoStyle
[
"
mso-position-vertical
"
]
===
"
absolute
"
)
?
"
anchor
"
:
"
inline
"
;
var
oo_position
;
if
(
p
===
"
anchor
"
){
...
...
@@ -1615,6 +1626,7 @@ o2.xApplication.process.Xform.widget.OOXML.WordprocessingML = o2.OOXML.WML = new
var
font
=
null
;
var
styles
=
span
.
getStyles
(
"
font-size
"
,
"
color
"
,
"
letter-spacing
"
,
"
font-weight
"
,
"
font-family
"
,
"
line-height
"
);
var
keys
=
Object
.
keys
(
styles
);
var
msoStyle
=
this
.
getMsoStyle
(
span
);
for
(
var
i
=
0
;
i
<
keys
.
length
;
i
++
){
switch
(
keys
[
i
]){
...
...
@@ -1671,6 +1683,9 @@ o2.xApplication.process.Xform.widget.OOXML.WordprocessingML = o2.OOXML.WML = new
//nothing
}
}
if
(
msoStyle
[
"
mso-letter-spacing
"
]){
rPrs
.
spacing
=
{
"
val
"
:
(
msoStyle
[
"
mso-letter-spacing
"
].
toFloat
()
*
20
||
0
)};
}
if
(
p
)
this
.
processRunFont
(
p
,
rPrs
,
font
);
this
.
processRunFont
(
span
,
rPrs
,
font
);
...
...
@@ -1684,6 +1699,7 @@ o2.xApplication.process.Xform.widget.OOXML.WordprocessingML = o2.OOXML.WML = new
runPrs
.
br
=
br
;
var
oo_run
=
this
.
createRun
(
oo_p
.
ownerDocument
,
runPrs
);
if
(
text
){
text
=
text
.
replace
(
/
[\u
200B-
\u
200D
\u
FEFF
]
/g
,
''
);
var
oo_t
=
this
.
createEl
(
oo_run
.
ownerDocument
,
"
t
"
);
oo_t
.
appendChild
(
oo_run
.
ownerDocument
.
createTextNode
(
text
));
oo_run
.
appendChild
(
oo_t
);
...
...
@@ -1858,6 +1874,7 @@ o2.xApplication.process.Xform.widget.OOXML.WordprocessingML = o2.OOXML.WML = new
if
(
options
&&
options
.
text
){
var
t
=
this
.
createEl
(
xmlDoc
,
"
t
"
);
options
.
text
=
options
.
text
.
replace
(
/
[\u
200B-
\u
200D
\u
FEFF
]
/g
,
''
);
t
.
appendChild
(
xmlDoc
.
createTextNode
(
options
.
text
));
r
.
appendChild
(
t
);
}
...
...
liyi_hz2008
@liyi_hz2008
mentioned in commit
56afcb45
·
8月 07, 2021
mentioned in commit
56afcb45
mentioned in commit 56afcb45fff52fee64f4cf35c9c66c2f8a3cd269
开关提交列表
liyi_hz2008
@liyi_hz2008
mentioned in commit
24627847
·
8月 07, 2021
mentioned in commit
24627847
mentioned in commit 24627847d10b5d0b6d346ca39c6f47dcf7bf6d30
开关提交列表
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录