king
2022-03-21 b065ac55d9d8680eefbb43be63305364e7b2f6cd
2022-03-21
5个文件已修改
54 ■■■■ 已修改文件
public/options.json 14 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/tabviews/custom/components/table/edit-table/index.jsx 15 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/tabviews/custom/components/table/edit-table/index.scss 5 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/tabviews/custom/components/table/edit-table/normalTable/index.jsx 5 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/tabviews/custom/components/table/edit-table/normalTable/index.scss 15 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
public/options.json
@@ -1,17 +1,17 @@
{
  "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/"
}
src/tabviews/custom/components/table/edit-table/index.jsx
@@ -59,11 +59,16 @@
    _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) {
src/tabviews/custom/components/table/edit-table/index.scss
@@ -11,8 +11,9 @@
  >.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;
src/tabviews/custom/components/table/edit-table/normalTable/index.jsx
@@ -1944,8 +1944,11 @@
    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}>
src/tabviews/custom/components/table/edit-table/normalTable/index.scss
@@ -415,4 +415,19 @@
    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;
  }
}