提交 00346f8d 编写于 作者: NoSubject's avatar NoSubject

新版办公中心,切换新版提示

上级 9784870b
......@@ -685,7 +685,8 @@ debugger;
"widgets": {},
"menuData": this.menuData,
"scale": layout.userLayout.scale || 1,
"clearCustomMenuDataFlag": this.status.clearCustomMenuDataFlag || ""
"clearCustomMenuDataFlag": this.status.clearCustomMenuDataFlag || "",
"gotoWorkcenterConfirm": layout.userLayout.gotoWorkcenterConfirm || false
};
// this.appArr.each(function(app){
// if (app.options.appId!==this.options.index){
......
......@@ -39,6 +39,19 @@
"width": "160px",
"float": "left"
},
"taskTitleInforTextNode": {
"padding": "0 20px",
"color": "#333333",
"font-size": "14px",
"line-height": "24px",
"height": "24px",
"margin-top": "12px",
"border": "1px solid #cccccc",
"border-radius": "12px",
"background-color": "#ffffff",
"float": "left",
"cursor": "pointer"
},
"searchBarAreaNode": {
"margin": "0px 110px 0px 160px",
"height": "50px",
......
......@@ -51,6 +51,52 @@ MWF.xApplication.process.TaskCenter.Main = new Class({
this.openTab();
if (callback) callback();
if (!layout.userLayout.gotoWorkcenterConfirm) this.gotoWorkcenterComfirm();
},
gotoWorkcenterComfirm: function(){
var _self = this;
o2.DL.open({
"title": "",
"style": "user",
"isResize": false,
"text": this.lp.workcenter,
"maskNode": this.content,
"width": 500,
"height": 150,
"buttonList": [
{
"type": "ok",
"text": MWF.LP.process.button.ok,
"action": function (d, e) {
this.close();
_self.checkConfirm();
_self.gotoWorkcenter();
}
},
{
"type": "cancel",
"text": MWF.LP.process.button.cancel,
"action": function () {
_self.checkConfirm();
this.close();
}
}
]
});
},
checkConfirm: function(){
layout.userLayout.gotoWorkcenterConfirm = true;
},
gotoWorkcenter: function(){
debugger;
layout.userLayout.flatLnks.forEach(function(lnk){
if (lnk.name==="process.TaskCenter"){
lnk.name="process.workcenter"
}
});
this.close();
layout.openApplication(null, "process.workcenter");
},
loadTitle: function () {
this.loadTitleBar();
......@@ -91,6 +137,11 @@ MWF.xApplication.process.TaskCenter.Main = new Class({
"styles": this.css.taskTitleTextNode,
"text": this.lp.title
}).inject(this.taskTitleBar);
var node = new Element("div.mainColor_color", {
"styles": this.css.taskTitleInforTextNode,
"text": this.lp.gotoWorkcenter
}).inject(this.taskTitleBar);
node.addEvent("click", this.gotoWorkcenter.bind(this));
},
loadSearchNode: function () {
this.searchBarAreaNode = new Element("div", {
......
......@@ -77,6 +77,9 @@ MWF.xApplication.process.TaskCenter.LP = {
"setReadedConfirmContent" : "您确定要将“{title}”标记为已阅吗?",
"setReadedConfirmTitle" : "标记已阅确认",
"open" : "打开"
"open" : "打开",
"workcenter": "新版办公中心已上线,是否切换到新版办公中心?",
"gotoWorkcenter": "切换到新版办公中心"
};
......@@ -20,7 +20,8 @@ MWF.xApplication.process.workcenter.Main = new Class({
this.content.loadHtml(url, {"bind": {"lp": this.lp}, "module": this}, function(){
this.setLayout();
this.loadCount();
this.loadList("task");
var list = (this.status) ? (this.status.navi || "task") : "task";
this.loadList(list);
if (callback) callback();
}.bind(this));
},
......@@ -523,7 +524,10 @@ MWF.xApplication.process.workcenter.Main = new Class({
};
_self.app.desktop.openApplication(e, "process.Work", options);
});
}
},
recordStatus: function(){
return {"navi": this.currentList.options.type};
},
});
MWF.xApplication.process.workcenter.List = new Class({
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册