src/components/keyInterface/index.jsx | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
src/components/keyInterface/index.scss | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
src/menu/components/card/cardcomponent/index.jsx | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
src/menu/components/card/data-card/index.jsx | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
src/components/keyInterface/index.jsx
@@ -19,6 +19,7 @@ url: '', key: '', visible: false, apptoken: '', setting: null } @@ -104,7 +105,7 @@ return } } this.setState({key: key, setting: _setting}) this.setState({key: key, apptoken: values.apptoken, setting: _setting}) return } @@ -136,7 +137,7 @@ this.props.onChange(content) this.setState({setting: message, url: values.interface, visible: false}) this.setState({setting: message, url: values.interface, apptoken: '', visible: false}) if (this.props.type !== 'develop') { this.setState({key: ''}) @@ -153,7 +154,7 @@ if (type === 'develop') { this.setState({setting: null, url: ''}) } else { this.setState({key: '', setting: null, url: ''}) this.setState({key: '', apptoken: '', setting: null, url: ''}) } this.props.onChange('') @@ -163,14 +164,15 @@ const { type } = this.props if (type !== 'develop') { this.setState({key: ''}) this.setState({key: '', apptoken: ''}) } this.setState({visible: false}) } render() { const { type } = this.props const { getFieldDecorator } = this.props.form const { url, visible, setting, key } = this.state const { url, visible, setting, key, apptoken } = this.state return ( <div className="mk-key-wrap"> @@ -191,6 +193,9 @@ > {key && setting ? <Form> {apptoken && type !== 'develop' ? <Form.Item style={{color: 'red'}} label="正式系统appkey"> {apptoken} </Form.Item> : null} <Form.Item label="接口地址"> {getFieldDecorator('interface', { initialValue: setting.interface || 'http://******/webapi/dostars', @@ -217,7 +222,7 @@ ] })(<TextArea placeholder="http://sso.mk9h.cn/cloud/webapi/dostars" rows={2}/>)} </Form.Item> <Form.Item label="appkey"> <Form.Item label="目标系统appkey"> {getFieldDecorator('appkey', { initialValue: setting.appkey || '', rules: [ @@ -282,7 +287,7 @@ </Form.Item> </Form> : null} {!key ? <Form style={{marginTop: '20px', marginBottom: '50px'}}> <Form.Item label="appkey"> <Form.Item label="正式系统appkey"> {getFieldDecorator('apptoken', { initialValue: '', rules: [ src/components/keyInterface/index.scss
@@ -43,7 +43,7 @@ .ant-form-item { display: flex; .ant-form-item-label { width: 20%; width: 22%; } .ant-form-item-control-wrapper { width: 70%; src/menu/components/card/cardcomponent/index.jsx
@@ -320,7 +320,7 @@ <div className="mk-popover-control"> <PlusOutlined className="plus" title="添加元素" onClick={this.addElement} /> <PlusSquareOutlined className="plus" title="添加按钮" onClick={this.addButton} /> <NormalForm title="卡片设置" width={950} update={this.updateSetting} getForms={this.getSettingForms}> <NormalForm title={cards.subtype === 'datacard' && card.$cardType !== 'extendCard' ? '循环卡片设置' : '属性卡片设置'} width={950} update={this.updateSetting} getForms={this.getSettingForms}> <EditOutlined className="edit" title="编辑"/> </NormalForm> <CopyComponent type="cardcell" card={card}/> @@ -338,7 +338,7 @@ {card.setting.type === 'multi' ? <Switch size="small" onClick={this.changeSide} defaultChecked /> : null} </div> } trigger="hover"> <ToolOutlined /> <ToolOutlined style={cards.subtype === 'datacard' && card.$cardType === 'extendCard' ? {color: '#26C281'} : null}/> </Popover> </div> </div> src/menu/components/card/data-card/index.jsx
@@ -69,7 +69,12 @@ marginLeft: '8px', marginRight: '8px', marginTop: '8px', marginBottom: '8px' }, backStyle: {}, elements: [], elements: [{ uuid: Utils.getuuid(), eleType: 'text', datatype: 'static', value: '循环区域' }], backElements: [], menus: [] }]