Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
fuyue82
o2oa
提交
48c4dd1b
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,发现更多精彩内容 >>
提交
48c4dd1b
编写于
11月 23, 2020
作者:
U
unknown
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
允许操作条系统操作和自定义操作可以混合排序
上级
dca6d948
变更
8
隐藏空白更改
内联
并排
Showing
8 changed file
with
229 addition
and
82 deletion
+229
-82
o2web/source/x_component_cms_FormDesigner/Module/Actionbar.js
...b/source/x_component_cms_FormDesigner/Module/Actionbar.js
+1
-1
o2web/source/x_component_query_Query/Viewer.js
o2web/source/x_component_query_Query/Viewer.js
+20
-7
o2web/source/x_component_query_StatementDesigner/$Statement/actionbar.html
...mponent_query_StatementDesigner/$Statement/actionbar.html
+2
-1
o2web/source/x_component_query_StatementDesigner/Property.js
o2web/source/x_component_query_StatementDesigner/Property.js
+93
-0
o2web/source/x_component_query_StatementDesigner/Statement.js
...b/source/x_component_query_StatementDesigner/Statement.js
+13
-0
o2web/source/x_component_query_ViewDesigner/$View/actionbar.html
...ource/x_component_query_ViewDesigner/$View/actionbar.html
+3
-2
o2web/source/x_component_query_ViewDesigner/Property.js
o2web/source/x_component_query_ViewDesigner/Property.js
+3
-0
o2web/source/x_component_query_ViewDesigner/View.js
o2web/source/x_component_query_ViewDesigner/View.js
+94
-71
未找到文件。
o2web/source/x_component_cms_FormDesigner/Module/Actionbar.js
浏览文件 @
48c4dd1b
...
...
@@ -267,7 +267,7 @@ MWF.xApplication.cms.FormDesigner.Module.Actionbar = MWF.CMSFCActionbar = new Cl
});
}
}
if
(
name
==
"
defaultTools
"
||
name
==
"
tools
"
||
name
===
"
actionStyles
"
){
if
(
name
==
"
defaultTools
"
||
name
==
"
tools
"
||
name
==
"
multiTools
"
||
name
==
=
"
actionStyles
"
){
this
.
_refreshActionbar
();
}
}
...
...
o2web/source/x_component_query_Query/Viewer.js
浏览文件 @
48c4dd1b
...
...
@@ -2459,20 +2459,33 @@ MWF.xApplication.query.Query.Viewer.Actionbar = new Class({
if
(
this
.
json
.
actionStyles
)
this
.
toolbarWidget
.
css
=
this
.
json
.
actionStyles
;
//alert(this.readonly)
if
(
this
.
json
.
hideSystemTools
){
this
.
setCustomToolbars
(
this
.
json
.
tools
,
this
.
toolbarNode
);
if
(
this
.
json
.
multiTools
){
this
.
json
.
multiTools
.
each
(
function
(
tool
)
{
if
(
tool
.
system
){
if
(
!
this
.
json
.
hideSystemTools
){
this
.
setToolbars
([
tool
],
this
.
toolbarNode
,
this
.
readonly
);
}
}
else
{
this
.
setCustomToolbars
([
tool
],
this
.
toolbarNode
);
}
}.
bind
(
this
));
this
.
toolbarWidget
.
load
();
}
else
{
if
(
this
.
json
.
defaultTools
){
this
.
setToolbars
(
this
.
json
.
defaultTools
,
this
.
toolbarNode
,
this
.
readonly
);
if
(
this
.
json
.
hideSystemTools
){
this
.
setCustomToolbars
(
this
.
json
.
tools
,
this
.
toolbarNode
);
this
.
toolbarWidget
.
load
();
}
else
{
MWF
.
getJSON
(
this
.
form
.
path
+
"
toolbars.json
"
,
function
(
json
){
this
.
setToolbars
(
json
,
this
.
toolbarNode
,
this
.
readonly
,
true
);
if
(
this
.
json
.
defaultTools
){
this
.
setToolbars
(
this
.
json
.
defaultTools
,
this
.
toolbarNode
,
this
.
readonly
);
this
.
setCustomToolbars
(
this
.
json
.
tools
,
this
.
toolbarNode
);
this
.
toolbarWidget
.
load
();
}.
bind
(
this
),
null
);
}
else
{
MWF
.
getJSON
(
this
.
form
.
path
+
"
toolbars.json
"
,
function
(
json
){
this
.
setToolbars
(
json
,
this
.
toolbarNode
,
this
.
readonly
,
true
);
this
.
setCustomToolbars
(
this
.
json
.
tools
,
this
.
toolbarNode
);
this
.
toolbarWidget
.
load
();
}.
bind
(
this
),
null
);
}
}
}
...
...
o2web/source/x_component_query_StatementDesigner/$Statement/actionbar.html
浏览文件 @
48c4dd1b
...
...
@@ -25,7 +25,8 @@
</div>
<div
title=
"操作"
class=
"MWFTab"
style=
"overflow: hidden"
>
<!-- <div class="MWFDefaultActionArea" name="defaultTools"></div>-->
<div
class=
"MWFActionArea"
name=
"tools"
></div>
<!-- <div class="MWFActionArea" name="tools"></div>-->
<div
class=
"MWFMultiActionArea"
name=
"multiTools"
></div>
</div>
<div
title=
"样式"
class=
"MWFTab"
>
<div
class=
"MWFActionStylesArea"
name=
"actionStyles"
></div>
...
...
o2web/source/x_component_query_StatementDesigner/Property.js
浏览文件 @
48c4dd1b
...
...
@@ -75,5 +75,98 @@ MWF.xApplication.query.StatementDesigner.Property = MWF.SDProperty = new Class({
});
}.
bind
(
this
));
}.
bind
(
this
));
},
loadActionArea
:
function
()
{
debugger
;
MWF
.
xApplication
.
process
=
MWF
.
xApplication
.
process
||
{};
MWF
.
APPFD
=
MWF
.
xApplication
.
process
.
FormDesigner
=
MWF
.
xApplication
.
process
.
FormDesigner
||
{};
MWF
.
xDesktop
.
requireApp
(
"
process.FormDesigner
"
,
"
lp.
"
+
o2
.
language
,
null
,
false
);
var
multiActionArea
=
this
.
propertyContent
.
getElements
(
"
.MWFMultiActionArea
"
);
multiActionArea
.
each
(
function
(
node
){
debugger
;
var
name
=
node
.
get
(
"
name
"
);
var
actionContent
=
this
.
data
[
name
];
MWF
.
xDesktop
.
requireApp
(
"
process.FormDesigner
"
,
"
widget.ActionsEditor
"
,
function
(){
var
actionEditor
=
new
MWF
.
xApplication
.
process
.
FormDesigner
.
widget
.
ActionsEditor
(
node
,
this
.
designer
,
this
.
data
,
{
"
maxObj
"
:
this
.
propertyNode
.
parentElement
.
parentElement
.
parentElement
,
"
systemToolsAddress
"
:
"
../x_component_query_StatementDesigner/$Statement/toolbars.json
"
,
"
isSystemTool
"
:
false
,
"
noEditShow
"
:
true
,
"
noReadShow
"
:
true
,
"
onChange
"
:
function
(){
this
.
data
[
name
]
=
actionEditor
.
data
;
this
.
changeData
(
name
);
}.
bind
(
this
)
});
actionEditor
.
load
(
actionContent
);
}.
bind
(
this
));
}.
bind
(
this
));
var
actionAreas
=
this
.
propertyContent
.
getElements
(
"
.MWFActionArea
"
);
actionAreas
.
each
(
function
(
node
)
{
var
name
=
node
.
get
(
"
name
"
);
var
actionContent
=
this
.
data
[
name
];
MWF
.
xDesktop
.
requireApp
(
"
process.FormDesigner
"
,
"
widget.ActionsEditor
"
,
function
()
{
// debugger;
// var actionEditor = new MWF.xApplication.process.FormDesigner.widget.ActionsEditor(node, this.designer, {
// "maxObj": this.propertyNode.parentElement.parentElement.parentElement,
// "noCreate": true,
// "noDelete": true,
// "noCode": true,
// "onChange": function(){
// this.data[name] = actionEditor.data;
// }.bind(this)
// });
// actionEditor.load(this.module.defaultToolBarsData);
var
actionEditor
=
new
MWF
.
xApplication
.
process
.
FormDesigner
.
widget
.
ActionsEditor
(
node
,
this
.
designer
,
this
.
data
,
{
"
maxObj
"
:
this
.
propertyNode
.
parentElement
.
parentElement
,
"
noEditShow
"
:
true
,
"
noReadShow
"
:
true
,
"
onChange
"
:
function
()
{
this
.
data
[
name
]
=
actionEditor
.
data
;
this
.
changeData
(
name
);
}.
bind
(
this
)
});
actionEditor
.
load
(
actionContent
);
}.
bind
(
this
));
}.
bind
(
this
));
var
actionAreas
=
this
.
propertyContent
.
getElements
(
"
.MWFDefaultActionArea
"
);
actionAreas
.
each
(
function
(
node
)
{
var
name
=
node
.
get
(
"
name
"
);
var
actionContent
=
this
.
data
[
name
]
||
this
.
module
.
defaultToolBarsData
;
MWF
.
xDesktop
.
requireApp
(
"
process.FormDesigner
"
,
"
widget.ActionsEditor
"
,
function
()
{
var
actionEditor
=
new
MWF
.
xApplication
.
process
.
FormDesigner
.
widget
.
ActionsEditor
(
node
,
this
.
designer
,
this
.
data
,
{
"
maxObj
"
:
this
.
propertyNode
.
parentElement
.
parentElement
,
"
isSystemTool
"
:
true
,
"
systemToolsAddress
"
:
"
../x_component_query_StatementDesigner/$Statement/toolbars.json
"
,
"
noCreate
"
:
true
,
"
noDelete
"
:
false
,
"
noCode
"
:
true
,
"
noReadShow
"
:
true
,
"
noEditShow
"
:
true
,
"
onChange
"
:
function
()
{
this
.
data
[
name
]
=
actionEditor
.
data
;
this
.
changeData
(
name
);
}.
bind
(
this
)
});
actionEditor
.
load
(
actionContent
);
// var actionEditor = new MWF.xApplication.process.FormDesigner.widget.ActionsEditor(node, this.designer, {
// "maxObj": this.propertyNode.parentElement.parentElement.parentElement,
// "onChange": function(){
// this.data[name] = actionEditor.data;
// }.bind(this)
// });
// actionEditor.load(actionContent);
}.
bind
(
this
));
}.
bind
(
this
));
}
});
\ No newline at end of file
o2web/source/x_component_query_StatementDesigner/Statement.js
浏览文件 @
48c4dd1b
...
...
@@ -1828,6 +1828,19 @@ MWF.xApplication.query.StatementDesigner.View.Actionbar = new Class({
//this._hideActions();
this
.
hideProperty
();
},
showProperty
:
function
(){
if
(
!
this
.
property
){
this
.
property
=
new
MWF
.
xApplication
.
query
.
StatementDesigner
.
Property
(
this
,
this
.
view
.
designer
.
propertyContentArea
,
this
.
view
.
designer
,
{
"
path
"
:
this
.
propertyPath
,
"
onPostLoad
"
:
function
(){
this
.
property
.
show
();
}.
bind
(
this
)
});
this
.
property
.
load
();
}
else
{
this
.
property
.
show
();
}
}
});
MWF
.
xApplication
.
query
.
StatementDesigner
.
View
.
Paging
=
new
Class
({
...
...
o2web/source/x_component_query_ViewDesigner/$View/actionbar.html
浏览文件 @
48c4dd1b
...
...
@@ -24,8 +24,9 @@
</table>
</div>
<div
title=
"操作"
class=
"MWFTab"
style=
"overflow: hidden"
>
<div
class=
"MWFDefaultActionArea"
name=
"defaultTools"
></div>
<div
class=
"MWFActionArea"
name=
"tools"
></div>
<!-- <div class="MWFDefaultActionArea" name="defaultTools"></div>-->
<!-- <div class="MWFActionArea" name="tools"></div>-->
<div
class=
"MWFMultiActionArea"
name=
"multiTools"
></div>
</div>
<div
title=
"样式"
class=
"MWFTab"
>
<div
class=
"MWFActionStylesArea"
name=
"actionStyles"
></div>
...
...
o2web/source/x_component_query_ViewDesigner/Property.js
浏览文件 @
48c4dd1b
...
...
@@ -941,7 +941,10 @@ MWF.xApplication.query.ViewDesigner.Property = MWF.FVProperty = new Class({
MWF
.
xDesktop
.
requireApp
(
"
process.FormDesigner
"
,
"
widget.ActionsEditor
"
,
function
(){
var
actionEditor
=
new
MWF
.
xApplication
.
process
.
FormDesigner
.
widget
.
ActionsEditor
(
node
,
this
.
designer
,
this
.
data
,
{
"
maxObj
"
:
this
.
propertyNode
.
parentElement
.
parentElement
.
parentElement
,
"
systemToolsAddress
"
:
"
../x_component_query_ViewDesigner/$View/toolbars.json
"
,
"
isSystemTool
"
:
true
,
"
noEditShow
"
:
true
,
"
noReadShow
"
:
true
,
"
onChange
"
:
function
(){
this
.
data
[
name
]
=
actionEditor
.
data
;
this
.
changeData
(
name
);
...
...
o2web/source/x_component_query_ViewDesigner/View.js
浏览文件 @
48c4dd1b
...
...
@@ -1883,36 +1883,28 @@ MWF.xApplication.query.ViewDesigner.View.Actionbar = new Class({
this
.
toolbarWidget
.
css
=
Object
.
clone
(
this
.
json
.
actionStyles
);
}
//MWF.getJSON(this.path+"toolbars.json", function(json){
// this.json.defaultTools = json;
// this.setToolbars(json, this.toolbarNode);
// debugger;
// this.toolbarWidget.load();
//}.bind(this), false);
if
(
this
.
json
.
defaultTools
){
var
json
=
Array
.
clone
(
this
.
json
.
defaultTools
);
//if (this.json.tools) json.append(this.json.tools);
this
.
setToolbars
(
json
,
this
.
toolbarNode
);
if
(
this
.
json
.
tools
){
this
.
setCustomToolbars
(
Array
.
clone
(
this
.
json
.
tools
),
this
.
toolbarNode
);
}
this
.
toolbarWidget
.
load
();
this
.
_setEditStyle_custom
(
"
hideSystemTools
"
);
//json = null;
}
else
{
MWF
.
getJSON
(
this
.
getJsonPath
(),
function
(
json
){
this
.
json
.
defaultTools
=
json
;
var
json
=
Array
.
clone
(
this
.
json
.
defaultTools
);
//if (this.json.tools) json.append(this.json.tools);
this
.
setToolbars
(
json
,
this
.
toolbarNode
);
if
(
this
.
json
.
tools
){
this
.
setCustomToolbars
(
Array
.
clone
(
this
.
json
.
tools
),
this
.
toolbarNode
);
}
this
.
toolbarWidget
.
load
();
this
.
_setEditStyle_custom
(
"
hideSystemTools
"
);
//json = null;
}.
bind
(
this
),
false
);
}
this
.
loadMultiToolbar
();
// if (this.json.defaultTools){
// var json = Array.clone(this.json.defaultTools);
// this.setToolbars(json, this.toolbarNode);
// if (this.json.tools){
// this.setCustomToolbars(Array.clone(this.json.tools), this.toolbarNode);
// }
// this.toolbarWidget.load();
// this._setEditStyle_custom("hideSystemTools");
// }else{
// MWF.getJSON( this.getJsonPath(), function(json){
// this.json.defaultTools = json;
// var json = Array.clone(this.json.defaultTools);
// this.setToolbars(json, this.toolbarNode);
// if (this.json.tools){
// this.setCustomToolbars(Array.clone(this.json.tools), this.toolbarNode);
// }
// this.toolbarWidget.load();
// this._setEditStyle_custom("hideSystemTools");
// }.bind(this), false);
// }
},
_refreshActionbar
:
function
(){
...
...
@@ -1926,28 +1918,26 @@ MWF.xApplication.query.ViewDesigner.View.Actionbar = new Class({
if
(
!
this
.
json
.
actionStyles
)
this
.
json
.
actionStyles
=
Object
.
clone
(
this
.
toolbarWidget
.
css
);
this
.
toolbarWidget
.
css
=
this
.
json
.
actionStyles
;
if
(
this
.
json
.
defaultTools
){
var
json
=
Array
.
clone
(
this
.
json
.
defaultTools
);
//if (this.json.tools) json.append(this.json.tools);
this
.
setToolbars
(
json
,
this
.
toolbarNode
);
if
(
this
.
json
.
tools
){
this
.
setCustomToolbars
(
Array
.
clone
(
this
.
json
.
tools
),
this
.
toolbarNode
);
}
this
.
toolbarWidget
.
load
();
//json = null;
}
else
{
MWF
.
getJSON
(
this
.
getJsonPath
(),
function
(
json
){
this
.
json
.
defaultTools
=
json
;
var
json
=
Array
.
clone
(
this
.
json
.
defaultTools
);
//if (this.json.tools) json.append(this.json.tools);
this
.
setToolbars
(
json
,
this
.
toolbarNode
);
if
(
this
.
json
.
tools
){
this
.
setCustomToolbars
(
Array
.
clone
(
this
.
json
.
tools
),
this
.
toolbarNode
);
}
this
.
toolbarWidget
.
load
();
//json = null;
}.
bind
(
this
),
false
);
}
this
.
loadMultiToolbar
();
// if (this.json.defaultTools){
// var json = Array.clone(this.json.defaultTools);
// this.setToolbars(json, this.toolbarNode);
// if (this.json.tools){
// this.setCustomToolbars(Array.clone(this.json.tools), this.toolbarNode);
// }
// this.toolbarWidget.load();
// }else{
// MWF.getJSON( this.getJsonPath(), function(json){
// this.json.defaultTools = json;
// var json = Array.clone(this.json.defaultTools);
// this.setToolbars(json, this.toolbarNode);
// if (this.json.tools){
// this.setCustomToolbars(Array.clone(this.json.tools), this.toolbarNode);
// }
// this.toolbarWidget.load();
// }.bind(this), false);
// }
//}
},
...
...
@@ -1966,29 +1956,62 @@ MWF.xApplication.query.ViewDesigner.View.Actionbar = new Class({
this
.
json
.
actionStyles
=
Object
.
clone
(
this
.
toolbarWidget
.
css
);
}
if
(
this
.
json
.
defaultTools
){
var
json
=
Array
.
clone
(
this
.
json
.
defaultTools
);
//if (this.json.tools) json.append(this.json.tools);
this
.
setToolbars
(
json
,
this
.
toolbarNode
);
this
.
loadMultiToolbar
();
// if (this.json.defaultTools){
// var json = Array.clone(this.json.defaultTools);
// this.setToolbars(json, this.toolbarNode);
// if (this.json.tools){
// this.setCustomToolbars(Array.clone(this.json.tools), this.toolbarNode);
// }
// this.toolbarWidget.load();
// }else{
// MWF.getJSON(this.path+"toolbars.json", function(json){
// this.json.defaultTools = json;
// var json = Array.clone(this.json.defaultTools);
// this.setToolbars(json, this.toolbarNode);
// if (this.json.tools){
// this.setCustomToolbars(Array.clone(this.json.tools), this.toolbarNode);
// }
// this.toolbarWidget.load();
// }.bind(this), false);
// }
//}
},
loadMultiToolbar
:
function
(){
if
(
this
.
json
.
multiTools
){
var
json
=
Array
.
clone
(
this
.
json
.
multiTools
);
this
.
setMultiToolbars
(
json
,
this
.
toolbarNode
);
this
.
toolbarWidget
.
load
();
this
.
_setEditStyle_custom
(
"
hideSystemTools
"
);
}
else
if
(
this
.
json
.
defaultTools
){
this
.
json
.
multiTools
=
this
.
json
.
defaultTools
.
map
(
function
(
d
)
{
d
.
system
=
true
;
return
d
;
});
if
(
this
.
json
.
tools
){
this
.
json
.
multiTools
=
this
.
json
.
multiTools
.
concat
(
this
.
json
.
tools
)
}
this
.
setMultiToolbars
(
Array
.
clone
(
this
.
json
.
multiTools
),
this
.
toolbarNode
);
this
.
toolbarWidget
.
load
();
this
.
_setEditStyle_custom
(
"
hideSystemTools
"
);
}
else
{
MWF
.
getJSON
(
this
.
path
+
"
toolbars.json
"
,
function
(
json
){
this
.
json
.
multiTools
=
json
.
map
(
function
(
d
)
{
d
.
system
=
true
;
return
d
;
});
if
(
this
.
json
.
tools
){
this
.
setCustomToolbars
(
Array
.
clone
(
this
.
json
.
tools
),
this
.
toolbarNode
);
this
.
json
.
multiTools
=
this
.
json
.
multiTools
.
concat
(
this
.
json
.
tools
)
}
this
.
setMultiToolbars
(
Array
.
clone
(
this
.
json
.
multiTools
),
this
.
toolbarNode
);
this
.
toolbarWidget
.
load
();
//json = null;
this
.
_setEditStyle_custom
(
"
hideSystemTools
"
);
}.
bind
(
this
),
false
);
}
},
setMultiToolbars
:
function
(
tools
,
node
){
tools
.
each
(
function
(
tool
){
if
(
tool
.
system
){
this
.
setToolbars
(
[
tool
],
node
);
}
else
{
MWF
.
getJSON
(
this
.
path
+
"
toolbars.json
"
,
function
(
json
){
this
.
json
.
defaultTools
=
json
;
var
json
=
Array
.
clone
(
this
.
json
.
defaultTools
);
//if (this.json.tools) json.append(this.json.tools);
this
.
setToolbars
(
json
,
this
.
toolbarNode
);
if
(
this
.
json
.
tools
){
this
.
setCustomToolbars
(
Array
.
clone
(
this
.
json
.
tools
),
this
.
toolbarNode
);
}
this
.
toolbarWidget
.
load
();
//json = null;
}.
bind
(
this
),
false
);
this
.
setCustomToolbars
(
[
tool
],
node
);
}
//}
}.
bind
(
this
));
},
setToolbars
:
function
(
tools
,
node
){
tools
.
each
(
function
(
tool
){
...
...
@@ -2046,7 +2069,7 @@ MWF.xApplication.query.ViewDesigner.View.Actionbar = new Class({
});
}
}
if
(
name
==
"
defaultTools
"
||
name
==
"
tools
"
||
name
===
"
actionStyles
"
){
if
(
name
==
"
defaultTools
"
||
name
==
"
tools
"
||
name
==
"
multiTools
"
||
name
==
=
"
actionStyles
"
){
this
.
_refreshActionbar
();
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录