| | |
| | | import React, {Component} from 'react' |
| | | import PropTypes from 'prop-types' |
| | | import { Form, Row, Col, Input, Select, notification, Tooltip, Icon } from 'antd' |
| | | import { Form, Row, Col, Input, Select, notification, Tooltip } from 'antd' |
| | | import { QuestionCircleOutlined } from '@ant-design/icons' |
| | | import moment from 'moment' |
| | | |
| | | import Api from '@/api' |
| | |
| | | } |
| | | |
| | | state = { |
| | | type: 'subapp', |
| | | type: 'view', |
| | | sublist: [], |
| | | views: [], |
| | | appId: '', |
| | |
| | | |
| | | this.viewList = {} |
| | | |
| | | this.setState({sublist, appId, subAppId}) |
| | | this.setState({sublist, appId, subAppId}, () => { |
| | | this.getViews() |
| | | }) |
| | | } |
| | | |
| | | /** |
| | |
| | | const formItemLayout = { |
| | | labelCol: { |
| | | xs: { span: 24 }, |
| | | sm: { span: 8 } |
| | | sm: { span: 6 } |
| | | }, |
| | | wrapperCol: { |
| | | xs: { span: 24 }, |
| | | sm: { span: 16 } |
| | | sm: { span: 18 } |
| | | } |
| | | } |
| | | return ( |
| | |
| | | <Col span={12}> |
| | | <Form.Item label={ |
| | | <Tooltip placement="topLeft" title="1、初次升级或应用基本信息修改时,请首先添加应用(基本信息);2、子应用整体升级时,请添加子应用(升级内容包括页面及权限树);3、单个页面升级时,请添加页面;4、涉及权限更新时,请添加权限树"> |
| | | <Icon style={{color: '#c49f47', marginRight: '5px'}} type="question-circle" />类型 |
| | | <QuestionCircleOutlined className="mk-form-tip" />类型 |
| | | </Tooltip> |
| | | }> |
| | | {getFieldDecorator('VType', { |
| | | initialValue: 'subapp', |
| | | initialValue: 'view', |
| | | rules: [{ |
| | | required: true, |
| | | message: '请选择类型!' |
| | |
| | | message: '请选择页面!' |
| | | }] |
| | | })( |
| | | <Select> |
| | | <Select showSearch dropdownMatchSelectWidth={false} filterOption={(input, option) => option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0}> |
| | | {views.map(item => { |
| | | return <Select.Option key={item.MenuID} value={item.MenuID}>{item.MenuName}</Select.Option> |
| | | return <Select.Option key={item.MenuID} value={item.MenuID}>{item.MenuName + ' ' + item.MenuNo}</Select.Option> |
| | | })} |
| | | </Select> |
| | | )} |