Tab.js 879 B

1234567891011121314151617181920212223242526272829
  1. MWF.xDesktop.requireApp("process.Xform", "Tab", null, false);
  2. MWF.xApplication.cms.Xform.Tab = MWF.CMSTab = new Class({
  3. Extends: MWF.APPTab
  4. });
  5. MWF.xApplication.cms.Xform.tab$Page = MWF.CMSTab$Page = new Class({
  6. Extends: MWF.APPTab$Page
  7. });
  8. MWF.xApplication.cms.Xform.tab$Content = MWF.CMSTab$Content = new Class({
  9. Extends: MWF.APPTab$Content,
  10. _loadUserInterface: function(){
  11. var _self = this;
  12. this.form._loadModules(this.node, function () {
  13. if( _self.widget )this.widget = _self.widget;
  14. }, null, function (moduleNodes, moduleJsons, modules) {
  15. var hasSubModule = false;
  16. (moduleJsons || []).each(function (json) {
  17. //流程组件
  18. if( ( json.type === "Log" && json.logType ) || ["Sidebar","Monitor","ReadLog"].contains(json.type) ){
  19. }else{
  20. hasSubModule = true;
  21. }
  22. });
  23. if(!hasSubModule){
  24. _self.page.tabNode.hide();
  25. }
  26. });
  27. }
  28. });