Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
此号慢热型
o2oa
提交
c9eafb94
o2oa
项目概览
此号慢热型
/
o2oa
与 Fork 源项目一致
Fork自
浙江兰德纵横网络技术股份有限公司 / o2oa
通知
5
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,体验更适合开发者的 AI 搜索 >>
提交
c9eafb94
编写于
6月 15, 2020
作者:
J
jinfei
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
更新团队前台
上级
14f5f4ca
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
21 addition
and
21 deletion
+21
-21
o2web/source/x_component_TeamWork/Project.js
o2web/source/x_component_TeamWork/Project.js
+14
-14
o2web/source/x_component_TeamWork/Task.js
o2web/source/x_component_TeamWork/Task.js
+1
-1
o2web/source/x_component_TeamWork/TaskAttachment.js
o2web/source/x_component_TeamWork/TaskAttachment.js
+0
-1
o2web/source/x_component_TeamWork/TaskAttachmentList.js
o2web/source/x_component_TeamWork/TaskAttachmentList.js
+6
-5
未找到文件。
o2web/source/x_component_TeamWork/Project.js
浏览文件 @
c9eafb94
...
...
@@ -98,18 +98,18 @@ MWF.xApplication.TeamWork.Project = new Class({
this
.
topBarTabItemTask
.
addEvents
({
click
:
function
(){
this
.
topBarTabItemTask
.
setStyles
({
"
color
"
:
"
#4A90E2
"
,
"
border-bottom
"
:
"
2px solid #4A90E2
"
});
this
.
topBarTabItemStat
.
setStyles
({
"
color
"
:
""
,
"
border-bottom
"
:
"
0px
"
});
//
this.topBarTabItemStat.setStyles({"color":"","border-bottom":"0px"});
this
.
createTaskLayout
();
}.
bind
(
this
)
});
this
.
topBarTabItemStat
=
new
Element
(
"
div.topBarTabItemStat
"
,{
styles
:
this
.
css
.
topBarTabItemStat
,
text
:
this
.
lp
.
stat
}).
inject
(
this
.
topBarTabsContainer
);
this
.
topBarTabItemStat
.
addEvents
({
click
:
function
(){
this
.
topBarTabItemTask
.
setStyles
({
"
color
"
:
""
,
"
border-bottom
"
:
"
0px
"
});
this
.
topBarTabItemStat
.
setStyles
({
"
color
"
:
"
#4A90E2
"
,
"
border-bottom
"
:
"
2px solid #4A90E2
"
});
this
.
createStatLayout
();
}.
bind
(
this
)
});
//
this.topBarTabItemStat = new Element("div.topBarTabItemStat",{styles:this.css.topBarTabItemStat,text:this.lp.stat}).inject(this.topBarTabsContainer);
//
this.topBarTabItemStat.addEvents({
//
click:function(){
//
this.topBarTabItemTask.setStyles({"color":"","border-bottom":"0px"});
//
this.topBarTabItemStat.setStyles({"color":"#4A90E2","border-bottom":"2px solid #4A90E2"});
//
this.createStatLayout();
//
}.bind(this)
//
});
//********************************
...
...
@@ -327,16 +327,16 @@ MWF.xApplication.TeamWork.Project = new Class({
this
.
completeLine
=
new
Element
(
"
div.completeLine
"
,{
styles
:
this
.
css
.
completeLine
}).
inject
(
this
.
naviTopTaskLine
);
this
.
completeLine
.
addEvents
({
mouseover
:
function
(){
//
this.app.showTips(this.completeLine,{_html:"<div style='margin:2px 5px;'>"+this.lp.taskCompleteText+":"+this.currentProjectGroupData.completedTotal+"</div>"});
this
.
app
.
tips
(
this
.
completeLine
,
this
.
lp
.
taskCompleteText
+
"
:
"
+
this
.
currentProjectGroupData
.
completedTotal
);
this
.
app
.
showTips
(
this
.
completeLine
,{
_html
:
"
<div style='margin:2px 5px;'>
"
+
this
.
lp
.
taskCompleteText
+
"
:
"
+
this
.
currentProjectGroupData
.
completedTotal
+
"
</div>
"
});
//
this.app.tips(this.completeLine,this.lp.taskCompleteText + ": " + this.currentProjectGroupData.completedTotal);
}.
bind
(
this
)
});
this
.
overLine
=
new
Element
(
"
div.overLine
"
,{
styles
:
this
.
css
.
overLine
}).
inject
(
this
.
naviTopTaskLine
);
this
.
overLine
.
addEvents
({
mouseover
:
function
(){
//this.app.showTips(this.overLine,{_html:"<div style='margin:2px 5px;'>"+this.lp.taskComplet
eText+":"+this.currentProjectGroupData.overtimeTotal+"</div>"});
this
.
app
.
showTips
(
this
.
overLine
,{
_html
:
"
<div style='margin:2px 5px;'>
"
+
this
.
lp
.
taskovertim
eText
+
"
:
"
+
this
.
currentProjectGroupData
.
overtimeTotal
+
"
</div>
"
});
////alert(this.currentProjectGroupData.overtimeTotal)
this
.
app
.
tips
(
this
.
overLine
,
this
.
lp
.
taskovertimeText
+
"
:
"
+
this
.
currentProjectGroupData
.
overtimeTotal
)
//
this.app.tips(this.overLine,this.lp.taskovertimeText + ": " + this.currentProjectGroupData.overtimeTotal)
}.
bind
(
this
)
});
...
...
@@ -392,7 +392,7 @@ MWF.xApplication.TeamWork.Project = new Class({
this
.
viewData
.
each
(
function
(
json
){
if
(
json
.
name
==
this
.
lp
.
viewItemAll
){
//所有任务
this
.
naviItemAllContainer
=
new
Element
(
"
div.naviItemContainer
"
,{
styles
:
this
.
css
.
naviItemContainer
}).
inject
(
this
.
naviViewContainer
);
this
.
naviItemAllIcon
=
new
Element
(
"
div.naviItemAllIcon
"
,{
styles
:
this
.
css
.
naviItemAllIcon
}).
inject
(
this
.
naviItemAllContainer
);
this
.
naviItemAllIcon
=
new
Element
(
"
div.naviItemAllIcon
completeLine
"
,{
styles
:
this
.
css
.
naviItemAllIcon
}).
inject
(
this
.
naviItemAllContainer
);
this
.
naviItemAllText
=
new
Element
(
"
div.naviItemText
"
,{
styles
:
this
.
css
.
naviItemText
,
text
:
this
.
lp
.
viewItemAll
}).
inject
(
this
.
naviItemAllContainer
);
this
.
naviItemAllContainer
.
addEvents
({
click
:
function
(){
...
...
o2web/source/x_component_TeamWork/Task.js
浏览文件 @
c9eafb94
...
...
@@ -141,7 +141,7 @@ MWF.xApplication.TeamWork.Task = new Class({
}
this
.
topContent
.
addEvents
({
click
:
function
(
e
){
layout
.
openApplication
(
e
,
"
TeamWork.Task
"
,
null
,{
"
taskId
"
:
this
.
data
.
taskId
})
//
layout.openApplication(e,"TeamWork.Task",null,{"taskId":this.data.taskId})
}.
bind
(
this
)
})
this
.
topIconContainer
=
new
Element
(
"
div.topIconContainer
"
,{
styles
:
this
.
css
.
topIconContainer
}).
inject
(
this
.
topLayout
);
...
...
o2web/source/x_component_TeamWork/TaskAttachment.js
浏览文件 @
c9eafb94
...
...
@@ -153,7 +153,6 @@ MWF.xApplication.TeamWork.TaskAttachment = new Class({
this
.
attachmentController
.
checkActions
();
}.
bind
(
this
));
},
replaceAttachment
:
function
(
e
,
node
,
attachment
)
{
var
_self
=
this
;
this
.
form
.
confirm
(
"
warn
"
,
e
,
this
.
lp
.
common
.
confirm
.
replaceTitle
,
this
.
lp
.
common
.
confirm
.
replaceContent
+
"
(
"
+
attachment
.
data
.
name
+
"
)
"
,
300
,
120
,
function
()
{
...
...
o2web/source/x_component_TeamWork/TaskAttachmentList.js
浏览文件 @
c9eafb94
...
...
@@ -52,8 +52,6 @@ MWF.xApplication.TeamWork.TaskAttachmentList = new Class({
});
}
}.
bind
(
this
))
},
loadAttachmentItem
:
function
(
att
){
var
attachmentItem
=
new
Element
(
"
div.attachmentItem
"
,{
styles
:
this
.
css
.
attachmentItem
}).
inject
(
this
.
attachmentListContainer
);
...
...
@@ -265,7 +263,10 @@ MWF.xApplication.TeamWork.TaskAttachmentList = new Class({
}.
bind
(
this
));
},
downloadAttachment
:
function
(
attachment
)
{
this
.
actions
.
attachmentDownloadStream
(
attachment
.
id
,
this
.
data
.
id
);
var
address
=
this
.
rootActions
.
AttachmentAction
.
action
.
address
;
var
url
=
this
.
rootActions
.
AttachmentAction
.
action
.
actions
.
downLoad
.
uri
;
url
=
url
.
replace
(
"
{id}
"
,
encodeURIComponent
(
attachment
.
id
));
window
.
open
(
address
+
url
);
},
openAttachment
:
function
(
e
,
node
,
attachments
)
{
attachments
.
each
(
function
(
att
)
{
...
...
@@ -350,10 +351,10 @@ MWF.xApplication.TeamWork.TaskAttachmentList.More = new Class({
if
(
callback
)
callback
();
},
downloadAttachment
:
function
(
attachment
)
{
debugger
;
downloadAttachment
:
function
(
attachment
)
{
var
address
=
this
.
rootActions
.
AttachmentAction
.
action
.
address
;
var
url
=
this
.
rootActions
.
AttachmentAction
.
action
.
actions
.
downLoad
.
uri
;
url
=
url
.
replace
(
"
{id}
"
,
encodeURIComponent
(
attachment
.
id
));
debugger
;
url
=
url
.
replace
(
"
{id}
"
,
encodeURIComponent
(
attachment
.
id
));
window
.
open
(
address
+
url
)
},
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录