|
@@ -65,6 +65,14 @@ Ext.define('saas.view.main.Main', {
|
|
|
window.open('http://www.usoftchina.com','_blank');
|
|
window.open('http://www.usoftchina.com','_blank');
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
|
|
+ {
|
|
|
|
|
+ margin:'0 3 0 6',
|
|
|
|
|
+ iconCls:'x-fa fa-share-alt-square',
|
|
|
|
|
+ cls:'sa-nav-button',
|
|
|
|
|
+ ui: 'header',
|
|
|
|
|
+ tooltip: '企业分享',
|
|
|
|
|
+ handler:'shareCompany'
|
|
|
|
|
+ },
|
|
|
{
|
|
{
|
|
|
iconCls:'x-sa sa-help',
|
|
iconCls:'x-sa sa-help',
|
|
|
cls:'sa-nav-button',
|
|
cls:'sa-nav-button',
|
|
@@ -134,6 +142,7 @@ Ext.define('saas.view.main.Main', {
|
|
|
if(rolesMap&&rolesMap.length>0){
|
|
if(rolesMap&&rolesMap.length>0){
|
|
|
for(var i = 0; i < rolesMap.length; i++) {
|
|
for(var i = 0; i < rolesMap.length; i++) {
|
|
|
if(rolesMap[i].type==0){
|
|
if(rolesMap[i].type==0){
|
|
|
|
|
+ main.isAdmin = true;
|
|
|
main.getController().loadInvitationMsg(1,nowCompanyId)
|
|
main.getController().loadInvitationMsg(1,nowCompanyId)
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
@@ -169,11 +178,21 @@ Ext.define('saas.view.main.Main', {
|
|
|
iconCls:'x-fa fa-comment-o sa-navicon',
|
|
iconCls:'x-fa fa-comment-o sa-navicon',
|
|
|
handler:'feedbackMsg'
|
|
handler:'feedbackMsg'
|
|
|
}, {
|
|
}, {
|
|
|
- text: '加入邀请',
|
|
|
|
|
|
|
+ text: '加入申请',
|
|
|
|
|
+ hidden:true,
|
|
|
name:'join',
|
|
name:'join',
|
|
|
iconCls:'x-fa fa-handshake-o sa-navicon',
|
|
iconCls:'x-fa fa-handshake-o sa-navicon',
|
|
|
handler:function(b){
|
|
handler:function(b){
|
|
|
saas.util.BaseUtil.openTab('sys-invitation-datalist','申请列表', 'sys-invitation-datalist');
|
|
saas.util.BaseUtil.openTab('sys-invitation-datalist','申请列表', 'sys-invitation-datalist');
|
|
|
|
|
+ },
|
|
|
|
|
+ listeners:{
|
|
|
|
|
+ afterrender:function(b){
|
|
|
|
|
+ if(b.ownerCt.ownerCmp.ownerCt.ownerCt.isAdmin){
|
|
|
|
|
+ b.show();
|
|
|
|
|
+ }else{
|
|
|
|
|
+ b.ownerCt.el.dom.style.height = "100px"
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
}, {
|
|
}, {
|
|
|
text: '退出',
|
|
text: '退出',
|