| | |
| | | { |
| | | "appId": "202108312122504607B107A83F55B40C98CCF", |
| | | "appkey": "20210831212235413F287EC3BF489424496C8", |
| | | "appId": "201912040924165801464FF1788654BC5AC73", |
| | | "appkey": "20191106103859640976D6E924E464D029CF0", |
| | | "mainSystemApi": "http://sso.mk9h.cn/cloud/webapi/dostars", |
| | | "systemType": "", |
| | | "externalDatabase": "false", |
| | | "lineColor": "", |
| | | "filter": "false", |
| | | "defaultApp": "mkindustry", |
| | | "defaultApp": "mk", |
| | | "defaultLang": "zh-CN", |
| | | "WXAppID": "", |
| | | "debugger": false, |
| | | "licenseKey": "7EFE13KIKLILIJB64C12", |
| | | "probation": "2021-12-31", |
| | | "host": "http://demo.mk9h.cn", |
| | | "service": "erp_new/" |
| | | "licenseKey": "", |
| | | "probation": "", |
| | | "host": "http://qingqiumarket.cn", |
| | | "service": "MKWMS/" |
| | | } |
| | |
| | | |
| | | _config.submit.style = _config.submit.style || {} |
| | | _config.submit.wrapStyle = {} |
| | | if (_config.submit.style.marginTop) { |
| | | _config.submit.wrapStyle.paddingTop = _config.submit.style.marginTop |
| | | } |
| | | if (_config.submit.style.marginBottom) { |
| | | _config.submit.wrapStyle.paddingBottom = _config.submit.style.marginBottom |
| | | _config.submit.hasAction = _config.action.length > 0 |
| | | if (!_config.submit.hasAction) { |
| | | if (_config.submit.style.marginTop) { |
| | | _config.submit.wrapStyle.paddingTop = _config.submit.style.marginTop |
| | | } |
| | | if (_config.submit.style.marginBottom) { |
| | | _config.submit.wrapStyle.paddingBottom = _config.submit.style.marginBottom |
| | | } |
| | | } else { |
| | | _config.submit.wrapStyle.paddingTop = '15px' |
| | | } |
| | | |
| | | if (setting.height) { |
| | |
| | | >.button-list.toolbar-button { |
| | | padding: 0; |
| | | line-height: 45px; |
| | | display: inline-block; |
| | | width: 80%; |
| | | float: left; |
| | | position: relative; |
| | | z-index: 2; |
| | | button { |
| | | margin-right: 0px; |
| | | margin-bottom: 0px; |
| | |
| | | |
| | | return ( |
| | | <> |
| | | {submit.hasAction && pickup ? <div className="edit-custom-table-leftbtn-wrap"> |
| | | <Button style={submit.style} onClick={() => setTimeout(() => {this.checkData()}, 10)} loading={loading} className="submit-table" type="link">提交</Button> |
| | | </div> : null} |
| | | <div className="edit-custom-table-btn-wrap" style={submit.wrapStyle}> |
| | | {pickup ? <Button style={submit.style} onClick={() => setTimeout(() => {this.checkData()}, 10)} loading={loading} className="submit-table" type="link">提交</Button> : null} |
| | | {!submit.hasAction && pickup ? <Button style={submit.style} onClick={() => setTimeout(() => {this.checkData()}, 10)} loading={loading} className="submit-table" type="link">提交</Button> : null} |
| | | <Switch title="编辑" className="main-pickup" checkedChildren="开" unCheckedChildren="关" disabled={loading || this.props.loading} checked={pickup} onChange={this.pickupChange} /> |
| | | </div> |
| | | <div className={`edit-custom-table ${pickup ? 'editable' : ''} ${setting.tableHeader || ''} ${setting.operType || ''} ${height ? 'fixed-height' : ''} ${setting.mode || ''}`} id={tableId}> |
| | |
| | | margin-top: 0px!important; |
| | | margin-bottom: 0px!important; |
| | | } |
| | | } |
| | | .edit-custom-table-leftbtn-wrap { |
| | | float: left; |
| | | line-height: 45px; |
| | | .submit-table { |
| | | position: relative; |
| | | z-index: 2; |
| | | min-height: 28px; |
| | | height: auto; |
| | | color: #ffffff; |
| | | background-color: #1890ff; |
| | | border-width: 0; |
| | | margin-top: 0px; |
| | | margin-bottom: 0px; |
| | | } |
| | | } |