index.js 931 B

12345678910111213141516171819202122232425262728293031323334353637383940
  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: '60110133',
  13. appcode: '60110133'
  14. }
  15. }
  16. let businessInfo = getBusinessInfo();
  17. const props = {
  18. isGlb: true,
  19. pk_org:'GLOBLE00000000000000',
  20. nodeName: "ORG",
  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'));