Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
此号慢热型
o2oa
提交
26574fa0
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,发现更多精彩内容 >>
提交
26574fa0
编写于
8月 17, 2020
作者:
U
unknown
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
修复办公中心打开文档后点已阅未刷新列表的问题
上级
9c1b7b56
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
117 addition
and
100 deletion
+117
-100
o2web/source/x_component_Selector/Unit.js
o2web/source/x_component_Selector/Unit.js
+79
-100
o2web/source/x_component_process_TaskCenter/ReadList.js
o2web/source/x_component_process_TaskCenter/ReadList.js
+28
-0
o2web/source/x_component_process_Work/Main.js
o2web/source/x_component_process_Work/Main.js
+10
-0
未找到文件。
o2web/source/x_component_Selector/Unit.js
浏览文件 @
26574fa0
MWF
.
xApplication
.
Selector
=
MWF
.
xApplication
.
Selector
||
{};
MWF
.
xDesktop
.
requireApp
(
"
Selector
"
,
"
Identity
"
,
null
,
false
);
MWF
.
xApplication
.
Selector
.
Unit
=
new
Class
({
Extends
:
MWF
.
xApplication
.
Selector
.
Identity
,
Extends
:
MWF
.
xApplication
.
Selector
.
Identity
,
options
:
{
"
style
"
:
"
default
"
,
"
count
"
:
0
,
...
...
@@ -20,100 +20,79 @@ MWF.xApplication.Selector.Unit = new Class({
var
afterLoadSelectItemFun
=
this
.
afterLoadSelectItem
.
bind
(
this
);
if
(
this
.
options
.
units
.
length
){
var
unitList
=
[];
for
(
var
i
=
0
;
i
<
this
.
options
.
units
.
length
;
i
++
){
var
unit
=
this
.
options
.
units
[
i
];
if
(
typeOf
(
unit
)
===
"
string
"
){
unitList
.
push
(
unit
);
}
else
if
(
typeOf
(
unit
)
===
"
object
"
){
unitList
.
push
(
unit
.
id
||
unit
.
distinguishedName
||
unit
.
unique
||
unit
.
levelName
);
var
unitLoaded
=
0
;
var
loadUnitSuccess
=
function
()
{
unitLoaded
++
;
if
(
unitLoaded
===
this
.
options
.
units
.
length
){
afterLoadSelectItemFun
();
}
}
o2
.
Actions
.
load
(
"
x_organization_assemble_express
"
).
UnitAction
.
listObject
(
{
"
unitList
"
:
unitList
}
,
function
(
json
)
{
debugger
;
if
(
json
.
data
.
length
){
json
.
data
.
each
(
function
(
data
){
if
(
this
.
options
.
expandSubEnable
)
{
if
(
data
.
subDirectUnitCount
){
var
category
=
this
.
_newItemCategory
(
"
ItemCategory
"
,
data
,
this
,
this
.
itemAreaNode
);
this
.
subCategorys
.
push
(
category
);
}
}
else
{
var
item
=
this
.
_newItem
(
data
,
this
,
this
.
itemAreaNode
);
this
.
items
.
push
(
item
);
this
.
subItems
.
push
(
item
);
}.
bind
(
this
);
var
loadUnitFailure
=
loadUnitSuccess
;
this
.
options
.
units
.
each
(
function
(
unit
){
var
container
=
new
Element
(
"
div
"
).
inject
(
this
.
itemAreaNode
);
// this.action.listUnitByKey(function(json){
// if (json.data.length){
// json.data.each(function(data){
// if (data.subDirectUnitCount) var category = this._newItemCategory("ItemCategory", data, this, this.itemAreaNode);
// }.bind(this));
// }
// }.bind(this), null, comp);
if
(
typeOf
(
unit
)
===
"
string
"
){
// this.orgAction.listUnitByKey(function(json){
// if (json.data.length){
// json.data.each(function(data){
// if (data.subDirectUnitCount) var category = this._newItemCategory("ItemCategory", data, this, this.itemAreaNode);
// }.bind(this));
// }
// }.bind(this), null, unit);
this
.
orgAction
.
getUnit
(
function
(
json
){
json
.
data
=
typeOf
(
json
.
data
)
==
"
object
"
?
[
json
.
data
]
:
json
.
data
;
if
(
json
.
data
.
length
){
json
.
data
.
each
(
function
(
data
){
if
(
this
.
options
.
expandSubEnable
){
if
(
data
.
subDirectUnitCount
){
var
category
=
this
.
_newItemCategory
(
"
ItemCategory
"
,
data
,
this
,
container
);
this
.
subCategorys
.
push
(
category
);
}
}
else
{
var
item
=
this
.
_newItem
(
data
,
this
,
container
);
this
.
items
.
push
(
item
);
this
.
subItems
.
push
(
item
);
}
}.
bind
(
this
));
}
loadUnitSuccess
();
}.
bind
(
this
),
loadUnitFailure
,
unit
);
}
else
{
this
.
orgAction
.
getUnit
(
function
(
json
){
json
.
data
=
typeOf
(
json
.
data
)
==
"
object
"
?
[
json
.
data
]
:
json
.
data
;
if
(
json
.
data
.
length
){
json
.
data
.
each
(
function
(
data
){
if
(
this
.
options
.
expandSubEnable
)
{
if
(
data
.
subDirectUnitCount
){
var
category
=
this
.
_newItemCategory
(
"
ItemCategory
"
,
data
,
this
,
container
);
this
.
subCategorys
.
push
(
category
);
}
}
else
{
var
item
=
this
.
_newItem
(
data
,
this
,
container
);
this
.
items
.
push
(
item
);
this
.
subItems
.
push
(
item
);
}
}.
bind
(
this
));
}
}.
bind
(
this
));
loadUnitSuccess
();
}.
bind
(
this
),
loadUnitFailure
,
unit
.
id
);
//if (unit.subDirectUnitCount) var category = this._newItemCategory("ItemCategory", unit, this, this.itemAreaNode);
}
afterLoadSelectItemFun
();
}.
bind
(
this
),
afterLoadSelectItemFun
)
// var unitLoaded = 0;
//
// var loadUnitSuccess = function () {
// unitLoaded++;
// if( unitLoaded === this.options.units.length ){
// afterLoadSelectItemFun();
// }
// }.bind(this);
// var loadUnitFailure = loadUnitSuccess;
//
// this.options.units.each(function(unit){
//
// var container = new Element("div").inject( this.itemAreaNode );
//
// // this.action.listUnitByKey(function(json){
// // if (json.data.length){
// // json.data.each(function(data){
// // if (data.subDirectUnitCount) var category = this._newItemCategory("ItemCategory", data, this, this.itemAreaNode);
// // }.bind(this));
// // }
// // }.bind(this), null, comp);
//
// if (typeOf(unit)==="string"){
// this.orgAction.getUnit(function(json){
// json.data = typeOf( json.data ) == "object" ? [json.data] : json.data;
// if (json.data.length){
// json.data.each( function(data){
// if( this.options.expandSubEnable ){
// if (data.subDirectUnitCount){
// var category = this._newItemCategory("ItemCategory", data, this, container );
// this.subCategorys.push(category);
// }
// }else{
// var item = this._newItem( data, this, container );
// this.items.push( item );
// this.subItems.push(item);
// }
// }.bind(this));
// }
// loadUnitSuccess();
// }.bind(this), loadUnitFailure, unit);
//
//
// }else{
// this.orgAction.getUnit(function(json){
// json.data = typeOf( json.data ) == "object" ? [json.data] : json.data;
// if (json.data.length){
// json.data.each( function(data){
// if( this.options.expandSubEnable ) {
// if (data.subDirectUnitCount){
// var category = this._newItemCategory("ItemCategory", data, this, container );
// this.subCategorys.push(category);
// }
// }else{
// var item = this._newItem(data, this, container );
// this.items.push( item );
// this.subItems.push(item);
// }
// }.bind(this));
// }
// loadUnitSuccess();
// }.bind(this), loadUnitFailure, unit.id);
// //if (unit.subDirectUnitCount) var category = this._newItemCategory("ItemCategory", unit, this, this.itemAreaNode);
// }
//
// }.bind(this));
}.
bind
(
this
));
}
else
{
this
.
orgAction
.
listTopUnit
(
function
(
json
){
json
.
data
.
each
(
function
(
data
){
...
...
@@ -202,7 +181,7 @@ MWF.xApplication.Selector.Unit = new Class({
});
MWF
.
xApplication
.
Selector
.
Unit
.
Item
=
new
Class
({
Extends
:
MWF
.
xApplication
.
Selector
.
Identity
.
Item
,
Extends
:
MWF
.
xApplication
.
Selector
.
Identity
.
Item
,
load
:
function
(){
if
(
this
.
selector
.
isFlatCategory
){
if
(
!
this
.
justItem
&&
this
.
selector
.
options
.
expandSubEnable
&&
this
.
data
.
subDirectUnitCount
){
...
...
@@ -682,12 +661,12 @@ MWF.xApplication.Selector.Unit.Item = new Class({
subJson
.
data
.
each
(
function
(
subData
){
if
(
!
this
.
selector
.
isExcluded
(
subData
)
)
{
//if( !subData.subDirectUnitCount ){
var
category
=
this
.
selector
.
_newItem
(
subData
,
this
.
selector
,
this
.
children
,
this
.
level
+
1
,
this
,
true
);
category
.
justItem
=
true
;
category
.
load
();
this
.
selector
.
items
.
push
(
category
);
if
(
!
this
.
subItems
)
this
.
subItems
=
[];
this
.
subItems
.
push
(
category
);
var
category
=
this
.
selector
.
_newItem
(
subData
,
this
.
selector
,
this
.
children
,
this
.
level
+
1
,
this
,
true
);
category
.
justItem
=
true
;
category
.
load
();
this
.
selector
.
items
.
push
(
category
);
if
(
!
this
.
subItems
)
this
.
subItems
=
[];
this
.
subItems
.
push
(
category
);
//}
}
}.
bind
(
this
));
...
...
@@ -748,7 +727,7 @@ MWF.xApplication.Selector.Unit.SearchItem = new Class({
});
MWF
.
xApplication
.
Selector
.
Unit
.
ItemSelected
=
new
Class
({
Extends
:
MWF
.
xApplication
.
Selector
.
Identity
.
ItemSelected
,
Extends
:
MWF
.
xApplication
.
Selector
.
Identity
.
ItemSelected
,
getData
:
function
(
callback
){
if
(
callback
)
callback
();
},
...
...
o2web/source/x_component_process_TaskCenter/ReadList.js
浏览文件 @
26574fa0
...
...
@@ -163,6 +163,34 @@ MWF.xApplication.process.TaskCenter.ReadList.Item = new Class({
this
.
close
();
},
null
,
this
.
list
.
app
.
content
);
},
openWorkByTaskCompleted
:
function
(
e
,
id
){
var
_self
=
this
;
var
options
=
{
"
workId
"
:
id
,
"
readonly
"
:
true
,
"
appId
"
:
"
process.Work
"
+
id
,
"
onQueryLoadForm
"
:
function
()
{
this
.
appForm
.
addEvent
(
"
afterReaded
"
,
function
()
{
_self
.
node
.
destroy
();
_self
.
list
.
refresh
();
})
},
"
onPostLoadForm
"
:
function
()
{
}
};
this
.
list
.
app
.
desktop
.
openApplication
(
e
,
"
process.Work
"
,
options
);
},
openWorkCompleteedByTaskCompleted
:
function
(
e
,
id
){
var
_self
=
this
;
var
options
=
{
"
workCompletedId
"
:
id
,
"
readonly
"
:
true
,
"
appId
"
:
"
process.Work
"
+
id
,
"
onQueryLoadForm
"
:
function
()
{
this
.
appForm
.
addEvent
(
"
afterReaded
"
,
function
()
{
_self
.
node
.
destroy
();
_self
.
list
.
refresh
();
})
},
"
onPostLoadForm
"
:
function
()
{
}
};
this
.
list
.
app
.
desktop
.
openApplication
(
e
,
"
process.Work
"
,
options
);
},
closeTaskCompleted
:
function
(
callback
){
this
.
closeTaskCompletedNode
.
setStyle
(
"
display
"
,
"
none
"
);
...
...
o2web/source/x_component_process_Work/Main.js
浏览文件 @
26574fa0
...
...
@@ -572,6 +572,13 @@ MWF.xApplication.process.Work.Main = new Class({
};
this
.
appForm
.
workAction
=
this
.
action
;
this
.
appForm
.
app
=
this
;
if
(
this
.
$events
&&
this
.
$events
.
queryLoadForm
){
this
.
appForm
.
addEvent
(
"
queryLoad
"
,
function
()
{
this
.
fireEvent
(
"
queryLoadForm
"
);
}.
bind
(
this
));
}
this
.
appForm
.
load
(
function
(){
if
(
this
.
mask
)
this
.
mask
.
hide
();
if
(
window
.
o2android
&&
window
.
o2android
.
appFormLoaded
){
...
...
@@ -582,6 +589,9 @@ MWF.xApplication.process.Work.Main = new Class({
layout
.
appForm
=
this
.
appForm
;
window
.
webkit
.
messageHandlers
.
appFormLoaded
.
postMessage
(
JSON
.
stringify
(
this
.
appForm
.
mobileTools
));
}
this
.
fireEvent
(
"
postLoadForm
"
);
}.
bind
(
this
));
}.
bind
(
this
));
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录