Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
ghsby
o2oa
提交
1374f9bf
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,发现更多精彩内容 >>
提交
1374f9bf
编写于
10月 27, 2020
作者:
NoSubject
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
预加载脚本支持
上级
40ce7cfe
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
79 addition
and
10 deletion
+79
-10
o2web/source/x_component_Selector/Script.js
o2web/source/x_component_Selector/Script.js
+2
-2
o2web/source/x_component_process_FormDesigner/Module/Form/form.html
...ce/x_component_process_FormDesigner/Module/Form/form.html
+1
-0
o2web/source/x_component_process_FormDesigner/Property.js
o2web/source/x_component_process_FormDesigner/Property.js
+69
-1
o2web/source/x_component_process_FormDesigner/lp/zh-cn.js
o2web/source/x_component_process_FormDesigner/lp/zh-cn.js
+3
-2
o2web/source/x_desktop/workmobile.html
o2web/source/x_desktop/workmobile.html
+2
-2
o2web/source/x_desktop/workmobilewithaction.html
o2web/source/x_desktop/workmobilewithaction.html
+2
-3
未找到文件。
o2web/source/x_component_Selector/Script.js
浏览文件 @
1374f9bf
...
...
@@ -110,7 +110,7 @@ MWF.xApplication.Selector.Script = new Class({
MWF
.
xApplication
.
Selector
.
Script
.
Item
=
new
Class
({
Extends
:
MWF
.
xApplication
.
Selector
.
Person
.
Item
,
_getShowName
:
function
(){
return
this
.
data
.
name
;
return
this
.
data
.
name
+
"
(
"
+
this
.
data
.
alias
+
"
)
"
;
},
_setIcon
:
function
(){
this
.
iconNode
.
setStyle
(
"
background-image
"
,
"
url(
"
+
"
../x_component_Selector/$Selector/default/icon/attr.png)
"
);
...
...
@@ -154,7 +154,7 @@ MWF.xApplication.Selector.Script.Item = new Class({
MWF
.
xApplication
.
Selector
.
Script
.
ItemSelected
=
new
Class
({
Extends
:
MWF
.
xApplication
.
Selector
.
Person
.
ItemSelected
,
_getShowName
:
function
(){
return
this
.
data
.
name
;
return
this
.
data
.
name
+
"
(
"
+
this
.
data
.
alias
+
"
)
"
;
},
_setIcon
:
function
(){
this
.
iconNode
.
setStyle
(
"
background-image
"
,
"
url(
"
+
"
../x_component_Selector/$Selector/default/icon/attr.png)
"
);
...
...
o2web/source/x_component_process_FormDesigner/Module/Form/form.html
浏览文件 @
1374f9bf
...
...
@@ -80,6 +80,7 @@
<td
class=
"editTableTitle"
>
脚本:
</td>
<td
class=
"editTableValue"
>
<div
class=
"MWFScriptSelect"
data-count=
0
name=
"includeScripts"
></div>
<div
class=
"MWFScriptSelectAction"
><div
style=
"color: #0b58a2; cursor: pointer; float: left"
>
复制
</div><div
style=
"color: #0b58a2; cursor: pointer; float: left; margin-left:10px"
>
粘贴
</div></div>
</td>
</tr>
</table>
...
...
o2web/source/x_component_process_FormDesigner/Property.js
浏览文件 @
1374f9bf
...
...
@@ -1317,7 +1317,7 @@ debugger;
}.
bind
(
this
));
scriptNodes
.
each
(
function
(
node
){
new
MWF
.
xApplication
.
process
.
ProcessDesigner
.
widget
.
PersonSelector
(
node
,
this
.
form
.
designer
,
{
var
ps
=
new
MWF
.
xApplication
.
process
.
ProcessDesigner
.
widget
.
PersonSelector
(
node
,
this
.
form
.
designer
,
{
"
type
"
:
"
Script
"
,
"
count
"
:
node
.
dataset
[
"
count
"
]
||
1
,
"
names
"
:
(
!
node
.
dataset
[
"
count
"
]
||
node
.
dataset
[
"
count
"
].
toInt
()
==
1
)
?
[
this
.
data
[
node
.
get
(
"
name
"
)]]
:
this
.
data
[
node
.
get
(
"
name
"
)],
...
...
@@ -1325,6 +1325,74 @@ debugger;
this
.
saveScriptSelectItem
(
node
,
ids
);
}.
bind
(
this
)
});
node
.
store
(
"
selector
"
,
ps
);
var
actionNode
=
node
.
getNext
();
if
(
actionNode
.
hasClass
(
"
MWFScriptSelectAction
"
)){
var
_self
=
this
;
var
copyNode
=
actionNode
.
getFirst
();
var
pasteNode
=
actionNode
.
getLast
();
copyNode
.
store
(
"
slectNode
"
,
node
);
pasteNode
.
store
(
"
slectNode
"
,
node
);
copyNode
.
addEvent
(
"
click
"
,
function
(
e
){
var
selectNode
=
this
.
retrieve
(
"
slectNode
"
);
if
(
selectNode
){
var
name
=
node
.
get
(
"
name
"
);
var
data
=
_self
.
data
[
name
];
if
(
data
){
var
str
=
JSON
.
encode
(
data
);
o2
.
DL
.
open
({
"
isTitle
"
:
false
,
"
width
"
:
400
,
"
height
"
:
500
,
"
html
"
:
"
<textarea style='width: 99%; height: 98%'>
"
+
str
+
"
</textarea>
"
,
"
buttonList
"
:
[{
"
type
"
:
"
ok
"
,
"
text
"
:
"
ok
"
,
"
action
"
:
function
(){
this
.
close
();}
}]
})
}
}
});
pasteNode
.
addEvent
(
"
click
"
,
function
(
e
){
var
selectNode
=
this
.
retrieve
(
"
slectNode
"
);
if
(
selectNode
){
o2
.
DL
.
open
({
"
isTitle
"
:
false
,
"
width
"
:
400
,
"
height
"
:
500
,
"
html
"
:
"
<textarea style='width: 99%; height: 98%'></textarea>
"
,
"
buttonList
"
:
[{
"
type
"
:
"
ok
"
,
"
text
"
:
"
ok
"
,
"
action
"
:
function
(){
var
dataStr
=
this
.
content
.
getElement
(
"
textarea
"
).
get
(
"
value
"
);
try
{
var
data
=
JSON
.
decode
(
dataStr
);
var
s
=
selectNode
.
retrieve
(
"
selector
"
);
s
.
setData
(
data
);
_self
.
saveScriptSelectItem
(
selectNode
,
s
.
identitys
);
}
catch
(
e
){
throw
e
;
}
this
.
close
();
}
},{
"
type
"
:
"
cancel
"
,
"
text
"
:
"
cancel
"
,
"
action
"
:
function
(){
this
.
close
();}
}]
})
}
});
}
}.
bind
(
this
));
var
_self
=
this
;
...
...
o2web/source/x_component_process_FormDesigner/lp/zh-cn.js
浏览文件 @
1374f9bf
...
...
@@ -259,5 +259,6 @@ MWF.xApplication.process.FormDesigner.LP = {
"
subformScript
"
:
"
子表单脚本
"
,
"
selectedScript
"
:
"
视图选择脚本
"
,
"
action.tools
"
:
"
操作按钮
"
}
};
\ No newline at end of file
},
"
copyed
"
:
"
已复制
"
};
o2web/source/x_desktop/workmobile.html
浏览文件 @
1374f9bf
...
...
@@ -7,11 +7,11 @@
<link
rel=
"stylesheet"
href=
"css/mBoxTooltip.css"
charset=
"UTF-8"
/>
<script
src=
"../o2_core/o2.min.js"
></script>
<script
src=
"
../o2_lib/Decimal
.js"
></script>
<script
src=
"
js/base_work.min
.js"
></script>
<script
src=
"js/o2m.api.js"
></script>
<script
src=
"js/base.min.js"
></script>
<script
src=
"js/work.min.js"
></script>
<script>
layout
.
mobile
=
true
;
</script>
<meta
content=
"width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0"
name=
"viewport"
/>
<meta
content=
"yes"
name=
"apple-mobile-web-app-capable"
/>
<meta
content=
"black"
name=
"apple-mobile-web-app-status-bar-style"
/>
...
...
o2web/source/x_desktop/workmobilewithaction.html
浏览文件 @
1374f9bf
...
...
@@ -8,9 +8,8 @@
<link
rel=
"stylesheet"
href=
"css/mBoxTooltip.css"
charset=
"UTF-8"
/>
<script
src=
"../o2_core/o2.min.js"
></script>
<script
src=
"
../o2_lib/Decimal
.js"
></script>
<script
src=
"
js/base_work.min
.js"
></script>
<script
src=
"js/o2m.api.js"
></script>
<script
src=
"js/base.min.js"
></script>
<script
src=
"js/work.min.js"
></script>
<script>
layout
.
mobile
=
true
;
</script>
...
...
@@ -39,4 +38,4 @@
<script
type=
"text/javascript"
src=
"../o2_lib/wechat/jweixin-1.6.0.js"
></script>
</body>
</html>
\ No newline at end of file
</html>
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录