| | |
| | | import { is, fromJS } from 'immutable' |
| | | import { DndProvider } from 'react-dnd' |
| | | import HTML5Backend from 'react-dnd-html5-backend' |
| | | import { notification, Modal, Button, Spin, Icon } from 'antd' |
| | | import { notification, Modal, Button, Spin } from 'antd' |
| | | import { PlusOutlined } from '@ant-design/icons' |
| | | import moment from 'moment' |
| | | import TransferForm from '@/templates/zshare/basetransferform' |
| | | import Utils from '@/utils/utils.js' |
| | |
| | | readonly: false |
| | | }, |
| | | { // 菜单图标 |
| | | type: 'select', |
| | | type: 'icon', |
| | | key: 'icon', |
| | | label: dict['model.icon'], |
| | | initVal: menu.card.PageParam.Icon, |
| | | required: true, |
| | | options: [{ |
| | | MenuID: 'folder', |
| | | text: 'folder' |
| | | }, { |
| | | MenuID: 'api', |
| | | text: 'api' |
| | | }] |
| | | initVal: menu.card.PageParam.Icon || 'folder', |
| | | required: true |
| | | } |
| | | ] |
| | | }) |
| | |
| | | readonly: false |
| | | }, |
| | | { // 菜单图标 |
| | | type: 'select', |
| | | type: 'icon', |
| | | key: 'icon', |
| | | label: dict['model.icon'], |
| | | initVal: 'folder', |
| | | required: true, |
| | | options: [{ |
| | | MenuID: 'folder', |
| | | text: 'folder' |
| | | }, { |
| | | MenuID: 'api', |
| | | text: 'api' |
| | | }] |
| | | required: true |
| | | } |
| | | ] |
| | | }) |
| | |
| | | /> : null} |
| | | </DndProvider> |
| | | <div className="menu-add" onClick={() => {this.handleSubBtn('add')}}> |
| | | <Icon type="plus" /> |
| | | <PlusOutlined /> |
| | | </div> |
| | | <div className="menu-btn"> |
| | | <Button type="primary" onClick={() => {this.handleSubBtn('thaw')}}>{dict['model.thaw'] + dict['model.menu']}</Button> |