Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
weixin_42566577
o2oa
提交
3cff531f
o2oa
项目概览
weixin_42566577
/
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,发现更多精彩内容 >>
提交
3cff531f
编写于
2月 24, 2021
作者:
NoSubject
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
主菜单排序
上级
e2535441
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
68 addition
and
10 deletion
+68
-10
o2web/source/o2_core/o2/widget/Calendar.js
o2web/source/o2_core/o2/widget/Calendar.js
+3
-1
o2web/source/o2_core/o2/xDesktop/Default.js
o2web/source/o2_core/o2/xDesktop/Default.js
+65
-9
未找到文件。
o2web/source/o2_core/o2/widget/Calendar.js
浏览文件 @
3cff531f
...
...
@@ -449,7 +449,8 @@ o2.widget.Calendar = o2.Calendar = new Class({
this
.
changeViewToDay
();
break
;
case
"
month
"
:
this
.
showMonth
();
//this.showMonth();
this
.
changeViewToMonth
();
break
;
case
"
year
"
:
this
.
showYear
();
...
...
@@ -1162,6 +1163,7 @@ o2.widget.Calendar = o2.Calendar = new Class({
calendar
.
_selectDate
(
this
.
retrieve
(
"
dateValue
"
),
this
);
break
;
case
"
month
"
:
debugger
;
calendar
.
changeViewToDay
(
this
.
retrieve
(
"
year
"
),
this
.
retrieve
(
"
month
"
));
break
;
case
"
year
"
:
...
...
o2web/source/o2_core/o2/xDesktop/Default.js
浏览文件 @
3cff531f
...
...
@@ -1698,7 +1698,7 @@ o2.xDesktop.Default.StartMenu.Item = new Class({
this
.
dragTargetLnk
=
null
;
this
.
dragPosition
=
"
before
"
;
this
.
node
.
setStyle
(
"
opacity
"
,
0.
1
);
this
.
node
.
setStyle
(
"
opacity
"
,
0.
2
);
this
.
positionFlagNode
=
new
Element
(
"
div
"
,
{
"
styles
"
:
{
"
display
"
:
"
none
"
}}).
inject
(
this
.
node
,
"
after
"
);
},
_drag_drag
:
function
(
dragging
,
e
){
...
...
@@ -1794,7 +1794,7 @@ o2.xDesktop.Default.StartMenu.Item = new Class({
_drag_enter
:
function
(
el
,
inObj
){
if
(
inObj
.
hasClass
(
"
layout_start_content_appContent
"
)
||
inObj
.
hasClass
(
"
layout_start_groupItem_menu_content
"
)){
this
.
dragStatus
=
"
group
"
;
this
.
node
.
setStyle
(
"
opacity
"
,
0.
1
);
this
.
node
.
setStyle
(
"
opacity
"
,
0.
2
);
}
else
{
if
(
this
.
positionFlagNode
)
this
.
node
.
inject
(
this
.
positionFlagNode
,
"
before
"
);
this
.
dragStatus
=
"
order
"
;
...
...
@@ -1806,7 +1806,7 @@ o2.xDesktop.Default.StartMenu.Item = new Class({
//this.node.inject(this.menu.appContentNode);
}
else
if
(
inObj
.
hasClass
(
"
layout_start_groupItem_menu_content
"
)){
this
.
dragStatus
=
"
ungroup
"
;
this
.
node
.
setStyle
(
"
opacity
"
,
0
.1
);
this
.
node
.
setStyle
(
"
opacity
"
,
0
);
}
else
{
this
.
dragStatus
=
"
remove
"
;
if
(
this
.
layout
.
positionNode
)
this
.
layout
.
positionNode
.
hide
();
...
...
@@ -1814,17 +1814,22 @@ o2.xDesktop.Default.StartMenu.Item = new Class({
},
_drag_drop
:
function
(
dragging
,
inObj
){
if
(
this
.
dragStatus
==
"
order
"
&&
this
.
dragTargetLnk
&&
this
.
dragTargetLnk
!=
this
){
this
.
addLnk
(
this
.
dragTargetLnk
,
this
.
dragPosition
);
}
else
if
(
this
.
dragStatus
==
"
group
"
&&
this
.
overItem
&&
this
.
overItem
!=
this
){
this
.
overItem
.
dragOut
();
this
.
addGroup
();
if
(
this
.
dragStatus
===
"
ungroup
"
){
this
.
removeFormGroup
();
}
else
{
if
(
this
.
dragStatus
==
"
order
"
&&
this
.
dragTargetLnk
&&
this
.
dragTargetLnk
!=
this
){
this
.
addLnk
(
this
.
dragTargetLnk
,
this
.
dragPosition
);
}
else
if
(
this
.
dragStatus
==
"
group
"
&&
this
.
overItem
&&
this
.
overItem
!=
this
){
this
.
overItem
.
dragOut
();
this
.
addGroup
();
}
this
.
node
.
setStyle
(
"
opacity
"
,
1
);
}
this
.
node
.
setStyle
(
"
opacity
"
,
1
);
this
.
menu
.
resetMenuData
();
},
_drag_cancel
:
function
(
dragging
){
console
.
log
(
"
_drag_cancel
"
);
dragging
.
hide
();
if
(
this
.
layout
.
positionNode
)
this
.
layout
.
positionNode
.
hide
();
if
(
this
.
dragRemoveNode
)
this
.
dragRemoveNode
.
hide
();
...
...
@@ -1838,7 +1843,38 @@ o2.xDesktop.Default.StartMenu.Item = new Class({
if
(
this
.
positionFlagNode
)
this
.
positionFlagNode
.
destroy
();
this
.
positionFlagNode
=
null
;
},
removeFormGroup
:
function
(){
// this.menu.itemDataList.erase(this.data);
// this.menu.items.erase(this);
this
.
menu
.
data
.
itemDataList
.
erase
(
this
.
data
);
switch
(
this
.
data
.
type
){
case
"
portal
"
:
this
.
layout
.
startMenu
.
createPortalMenuItem
(
this
.
data
);
break
;
case
"
process
"
:
this
.
layout
.
startMenu
.
createProcessMenuItem
(
this
.
data
);
break
;
case
"
cms
"
:
this
.
layout
.
startMenu
.
createInforMenuItem
(
this
.
data
);
break
;
case
"
query
"
:
this
.
layout
.
startMenu
.
createQueryMenuItem
(
this
.
data
);
break
;
default
:
this
.
layout
.
startMenu
.
createApplicationMenuItem
(
this
.
data
);
}
debugger
;
this
.
destroy
();
if
(
!
this
.
menu
.
data
.
itemDataList
.
length
){
this
.
menu
.
hide
(
function
(){
this
.
menu
.
destroy
();
}.
bind
(
this
));
}
else
{
this
.
menu
.
resetSubItemIcon
();
}
},
addGroup
:
function
(){
debugger
;
if
(
this
.
overItem
.
data
.
type
===
"
group
"
){
...
...
@@ -1861,6 +1897,10 @@ o2.xDesktop.Default.StartMenu.Item = new Class({
}
this
.
node
.
destroy
();
this
.
menu
.
resetMenuData
();
},
destroy
:
function
(){
this
.
menu
.
items
.
erase
(
this
);
this
.
node
.
destroy
();
}
});
...
...
@@ -1892,6 +1932,17 @@ o2.xDesktop.Default.StartMenu.GroupItem = new Class({
}
}
},
resetSubItemIcon
:
function
(){
this
.
sunIconNodes
.
each
(
function
(
e
){
e
.
setStyle
(
"
background-image
"
,
""
);
e
.
setStyle
(
"
background-color
"
,
""
);
});
if
(
this
.
data
.
itemDataList
&&
this
.
data
.
itemDataList
.
length
){
for
(
var
i
=
0
;
i
<
Math
.
min
(
this
.
data
.
itemDataList
.
length
,
4
);
i
++
){
var
icon
=
this
.
setSubItemIcon
(
this
.
data
.
itemDataList
[
i
],
this
.
sunIconNodes
[
i
]);
}
}
},
open
:
function
(
e
,
callback
){
if
(
!
this
.
menuNode
)
this
.
createMenuNode
();
this
.
maskNode
=
new
Element
(
"
div.layout_start_groupItem_menuMask
"
).
inject
(
this
.
menuNode
,
"
before
"
);
...
...
@@ -1994,6 +2045,11 @@ o2.xDesktop.Default.StartMenu.GroupItem = new Class({
if
(
!
input
)
this
.
editTitle
();
}.
bind
(
this
))
},
destroy
:
function
(){
this
.
menu
.
items
.
erase
(
this
);
this
.
node
.
destroy
();
this
.
menuNode
.
destroy
();
},
editTitle
:
function
(){
this
.
menuTitleNode
.
empty
();
this
.
editotTitleNode
=
new
Element
(
"
input.layout_start_groupItem_menu_title_edit
"
,
{
"
type
"
:
"
text
"
}).
inject
(
this
.
menuTitleNode
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录