| | |
| | | import Utils from '@/utils/utils.js' |
| | | import ColumnForm from './columnform' |
| | | import asyncComponent from '@/utils/asyncComponent' |
| | | import './index.scss' |
| | | // import './index.scss' |
| | | |
| | | const EditTable = asyncComponent(() => import('@/templates/zshare/editTable')) |
| | | |
| | |
| | | editable: true, |
| | | unique: true, |
| | | required: false, |
| | | width: '30%' |
| | | width: '35%' |
| | | }, |
| | | { |
| | | title: '菜单', |
| | |
| | | inputType: !this.props.appType ? 'cascader' : 'select', |
| | | editable: true, |
| | | required: true, |
| | | width: '40%', |
| | | width: '35%', |
| | | render: (text, record) => record.label, |
| | | options: this.props.menulist |
| | | } |
| | |
| | | const { menus, columns } = this.state |
| | | |
| | | return ( |
| | | <div className="menus-box-wrap"> |
| | | <div style={{minHeight: '250px'}}> |
| | | <ColumnForm appType={appType} menus={menus} menulist={menulist} columnChange={this.columnChange}/> |
| | | <EditTable actions={['edit', 'move', 'copy', 'del']} type={appType + 'cardmenus'} data={menus} columns={columns} onChange={this.changeColumns}/> |
| | | </div> |