index.js 985 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. /**
  2. * 合同模板——集团
  3. */
  4. import React, {Component} from 'react';
  5. import ReactDOM from 'react-dom';
  6. import {createPage, getBusinessInfo} from 'nc-lightapp-front';
  7. import HomePage from '../../templet_base/main/container';
  8. import {getAppPageConfig} from 'src/hrpub/common/utils/utils';
  9. let appConfig = getAppPageConfig();
  10. if (new RegExp(/(localhost|127\.0\.0\.1):3006/g).test(window.location.href)) {
  11. appConfig = {
  12. pagecode: '60110132p',
  13. appcode: '60110132'
  14. }
  15. }
  16. let businessInfo = getBusinessInfo() || {groupId: '0001AB10000000000N6U'};
  17. const props = {
  18. isGlb: true,
  19. pk_org:'GLOBLE00000000000000',
  20. nodeName: "GROUP",
  21. ...appConfig,
  22. ...businessInfo
  23. };
  24. const PeriodModal = createPage({
  25. billinfo:[
  26. {
  27. billtype: 'grid',
  28. pagecode: props.pagecode,
  29. bodycode: 'template'
  30. }
  31. ]
  32. })(HomePage);
  33. ReactDOM.render(<PeriodModal
  34. {...props}
  35. />,
  36. document.querySelector('#app'));