diff --git a/pc4mobx/organization/components/resource/FormItem.js b/pc4mobx/organization/components/resource/FormItem.js new file mode 100644 index 0000000..571b717 --- /dev/null +++ b/pc4mobx/organization/components/resource/FormItem.js @@ -0,0 +1,59 @@ +import { + WeaFormItem, +} from 'ecCom' + +import { + Spin, + Button, +} from 'antd' + +import { + i18n +} from '../../public/i18n'; + +import '../../style/common.less'; +import Group from '../group/Group'; +import { chunk } from 'lodash'; + +export default class FormItem extends React.Component { + constructor(props) { + super(props); + this.state = { + } + } + + render() { + const { + groupInfo + } = this.props, { + } = this.state; + const newData = chunk(groupInfo.items, 3); + + return ( +
+
+
+

{groupInfo.title}

+
+
+ {newData.map((item, index) => { + return ( +
+ {item.map((subItem) => { + return ( +
+ {subItem.fieldId} + {subItem.fieldValue} +
+ + ); + })} +
+ ); + })} +
+ +
+ ) + } +} diff --git a/pc4mobx/organization/components/resource/IframeItem.js b/pc4mobx/organization/components/resource/IframeItem.js new file mode 100644 index 0000000..1f17337 --- /dev/null +++ b/pc4mobx/organization/components/resource/IframeItem.js @@ -0,0 +1,44 @@ +import { + WeaFormItem, +} from 'ecCom' + +import { + Spin, + Button, +} from 'antd' + +import { + i18n +} from '../../public/i18n'; + +import '../../style/common.less'; +import Group from '../group/Group'; +import { chunk } from 'lodash'; + +export default class IframeItem extends React.Component { + constructor(props) { + super(props); + this.state = { + } + } + + render() { + const { + iframeInfo + } = this.props, { + } = this.state; + + return ( +
+
+
+

{iframeInfo.title}

+
+
+