| | |
| | | if (this.record.eleType === 'number') { |
| | | _options.push('decimal', 'format') |
| | | } |
| | | } else if (this.record.eleType === 'picture') { |
| | | _options.push('url') |
| | | if (this.record.noValue === 'show') { |
| | | _options.push('lostTip') |
| | | } |
| | | } else if (this.record.eleType === 'video') { |
| | | } else if (this.record.eleType === 'picture' || this.record.eleType === 'video') { |
| | | _options.push('url') |
| | | } else { |
| | | _options.push('value') |
| | | } |
| | | if (this.record.eleType === 'video' && this.record.posterType) { |
| | | |
| | | if (this.record.eleType === 'picture' && this.record.noValue === 'show') { |
| | | _options.push('lostTip') |
| | | } else if (this.record.eleType === 'video' && this.record.posterType) { |
| | | if (this.record.posterType === 'dynamic') { |
| | | _options.push('posterField') |
| | | } else { |
| | |
| | | } |
| | | |
| | | render() { |
| | | const { config } = this.props |
| | | const { colsCtrls, columns, visible, cols, searches } = this.state |
| | | |
| | | let className = '' |
| | | if (config.colsCtrls && config.colsCtrls.length) { |
| | | className = 'cols-ctrls' |
| | | } |
| | | |
| | | return ( |
| | | <div style={{display: 'inline-block'}}> |
| | | <div style={{display: 'inline-block'}} className={className}> |
| | | <ApartmentOutlined style={{color: '#13c2c2'}} title="显示列控制" onClick={this.resetMark} /> |
| | | <Modal |
| | | wrapClassName="column-control-modal-wrap" |
| | |
| | | } |
| | | } |
| | | } |
| | | .cols-ctrls { |
| | | position: relative; |
| | | } |
| | | .cols-ctrls::after { |
| | | content: ' '; |
| | | display: block; |
| | | position: absolute; |
| | | top: 0; |
| | | right: 7px; |
| | | width: 4px; |
| | | height: 4px; |
| | | border-radius: 4px; |
| | | background-color: red; |
| | | } |
| | |
| | | render() { |
| | | const { marks, markColumns, visible, options, signs } = this.state |
| | | |
| | | let className = '' |
| | | if (this.props.type === 'line' && this.props.marks.length) { |
| | | className = 'mk-line-marks' |
| | | } |
| | | |
| | | return ( |
| | | <div style={{display: 'inline-block'}}> |
| | | <div style={{display: 'inline-block'}} className={className}> |
| | | <AntDesignOutlined className="profile" title="标记" onClick={this.resetMark} /> |
| | | <Modal |
| | | wrapClassName="mark-modal-wrap" |
| | |
| | | } |
| | | } |
| | | } |
| | | .mk-line-marks { |
| | | position: relative; |
| | | } |
| | | .mk-line-marks::after { |
| | | content: ' '; |
| | | display: block; |
| | | position: absolute; |
| | | top: 0; |
| | | right: 7px; |
| | | width: 4px; |
| | | height: 4px; |
| | | border-radius: 4px; |
| | | background-color: red; |
| | | } |
| | |
| | | initval: wrap.permission || 'false', |
| | | required: false, |
| | | options: [ |
| | | {value: 'true', label: '启用'}, |
| | | {value: 'true', label: !appType ? '继承菜单' : '启用'}, |
| | | {value: 'false', label: '禁用'}, |
| | | ], |
| | | forbid: !appType || ispop |
| | | forbid: ispop |
| | | }, |
| | | { |
| | | type: 'radio', |
| | |
| | | <Row> |
| | | <Col span={24}> |
| | | <Form.Item label={ |
| | | <Tooltip placement="topLeft" title="首页不进行权限控制。"> |
| | | <QuestionCircleOutlined className="mk-form-tip" /> |
| | | 权限验证 |
| | | </Tooltip> |
| | | }> |
| | | <Radio.Group value={'false'} disabled={true}> |
| | | <Radio value="true">使用</Radio> |
| | | <Radio value="false">不使用</Radio> |
| | | </Radio.Group> |
| | | </Form.Item> |
| | | </Col> |
| | | <Col span={24}> |
| | | <Form.Item label={ |
| | | <Tooltip placement="topLeft" title="数据会缓存到用户本地,方便页面快速呈现。"> |
| | | <QuestionCircleOutlined className="mk-form-tip" /> |
| | | 本地缓存 |