1234567891011121314151617181920212223242526272829303132333435363738 |
- /**
- * 合同模板——集团
- */
- import React, {Component} from 'react';
- import ReactDOM from 'react-dom';
- import {createPage, getBusinessInfo} from 'nc-lightapp-front';
- import HomePage from '../../templet_base/main/container';
- import {getAppPageConfig} from 'src/hrpub/common/utils/utils';
- let appConfig = getAppPageConfig();
- if (new RegExp(/(localhost|127\.0\.0\.1):3006/g).test(window.location.href)) {
- appConfig = {
- pagecode: '60110132p',
- appcode: '60110132'
- }
- }
- let businessInfo = getBusinessInfo() || {groupId: '0001AB10000000000N6U'};
- const props = {
- isGlb: true,
- pk_org:'GLOBLE00000000000000',
- nodeName: "GROUP",
- ...appConfig,
- ...businessInfo
- };
- const PeriodModal = createPage({
- billinfo:[
- {
- billtype: 'grid',
- pagecode: props.pagecode,
- bodycode: 'template'
- }
- ]
- })(HomePage);
- ReactDOM.render(<PeriodModal
- {...props}
- />,
- document.querySelector('#app'));
|