king
2021-09-17 3bbb8c98fd999cfdaa6d7e061af04d3bdf47e1fd
2021-09-17
17个文件已修改
104 ■■■■ 已修改文件
src/components/breadview/index.scss 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/components/tabview/index.scss 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/menu/datasource/verifycard/settingform/index.jsx 11 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/tabviews/calendar/index.jsx 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/tabviews/commontable/index.jsx 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/tabviews/commontable/index.scss 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/tabviews/custom/index.jsx 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/tabviews/formtab/index.jsx 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/tabviews/treepage/index.jsx 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/tabviews/zshare/actionList/exceloutbutton/index.jsx 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/tabviews/zshare/normalTable/index.jsx 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/tabviews/zshare/normalTable/index.scss 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/tabviews/zshare/pageMessage/index.scss 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/tabviews/zshare/settingcomponent/index.scss 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/templates/sharecomponent/settingcomponent/settingform/datasource/index.jsx 23 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/utils/utils-datamanage.js 19 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/billprint/index.jsx 11 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/components/breadview/index.scss
@@ -62,8 +62,8 @@
    opacity: 1;
  }
  .ant-back-top {
    bottom: 20px;
    right: 30px;
    bottom: 10px;
    right: 20px;
  }
}
src/components/tabview/index.scss
@@ -104,8 +104,8 @@
    opacity: 1;
  }
  .ant-back-top {
    bottom: 20px;
    right: 30px;
    bottom: 10px;
    right: 20px;
  }
  .mk-water-mark {
    position: absolute;
src/menu/datasource/verifycard/settingform/index.jsx
@@ -474,6 +474,17 @@
                )}
              </Form.Item>
            </Col> : null}
            <Col span={8}>
              <Form.Item label="事务">
                {getFieldDecorator('transaction', {
                  initialValue: setting.transaction || 'false'
                })(
                <Radio.Group>
                  <Radio value="true">使用</Radio>
                  <Radio value="false">不使用</Radio>
                </Radio.Group>)}
              </Form.Item>
            </Col>
            {config.type !== 'navbar' && config.type !== 'balcony' ? <Col span={8}>
              <Form.Item label="初始化数据">
                {getFieldDecorator('onload', {
src/tabviews/calendar/index.jsx
@@ -548,7 +548,7 @@
          <MainSearch BID={BID} searchlist={searchlist} setting={setting} menuType={menuType} refreshdata={this.refreshbysearch}/> : null
        }
        {config && config.calendar ? <CalendarComponent calendar={config.calendar} loading={loading} data={data} triggerDate={this.triggerDate} changeDate={this.changeDate}/> : null}
        {menuType !== 'HS' ? <PagemsgComponent menu={{MenuName: this.props.MenuName, MenuNo: this.props.MenuNo}} config={config} dict={this.state.dict} /> : null}
        {menuType !== 'HS' && window.GLOB.systemType !== 'production' ? <PagemsgComponent menu={{MenuName: this.props.MenuName, MenuNo: this.props.MenuNo}} config={config} dict={this.state.dict} /> : null}
        <Modal
          title={config.tab ? config.tab.label : ''}
          width={'80vw'}
src/tabviews/commontable/index.jsx
@@ -1156,7 +1156,7 @@
            })}
          </Tabs>))
        }
        {menuType !== 'HS' ? <PagemsgComponent menu={{MenuName: this.props.MenuName, MenuNo: this.props.MenuNo}} config={config} dict={this.state.dict} /> : null}
        {menuType !== 'HS' && window.GLOB.systemType !== 'production' ? <PagemsgComponent menu={{MenuName: this.props.MenuName, MenuNo: this.props.MenuNo}} config={config} dict={this.state.dict} /> : null}
        {menuType !== 'HS' && shortcuts ? <SettingComponent config={config} dict={this.state.dict} shortcuts={shortcuts} permAction={this.props.permAction}/> : null}
        {viewlost ? <NotFount msg={this.state.lostmsg} /> : null}
      </div>
src/tabviews/commontable/index.scss
@@ -2,7 +2,7 @@
  position: relative;
  min-height: calc(100vh - 94px);
  padding-top: 16px;
  padding-bottom: 80px;
  padding-bottom: 0px;
  .box404 {
    padding-top: 30px;
  }
src/tabviews/custom/index.jsx
@@ -1142,7 +1142,7 @@
      <div className={'custom-page-wrap ' + (loadingview || loading ? 'loading' : '')} id={this.state.ContainerId} style={config ? config.style : null}>
        {(loadingview || loading) ? <Spin className="view-spin" size="large" /> : null}
        <Row>{this.getComponents()}</Row>
        {menuType !== 'HS' ? <PagemsgComponent menu={{MenuName: this.props.MenuName, MenuNo: this.props.MenuNo}} config={config} dict={this.state.dict} /> : null}
        {menuType !== 'HS' && window.GLOB.systemType !== 'production' ? <PagemsgComponent menu={{MenuName: this.props.MenuName, MenuNo: this.props.MenuNo}} config={config} dict={this.state.dict} /> : null}
        {menuType !== 'HS' && shortcuts ? <SettingComponent config={config} dict={this.state.dict} shortcuts={shortcuts} permAction={this.props.permAction}/> : null}
        {viewlost ? <NotFount msg={this.state.lostmsg} /> : null}
      </div>
src/tabviews/formtab/index.jsx
@@ -662,7 +662,7 @@
            )
          })
        }
        {this.props.menuType !== 'HS' ? <PagemsgComponent menu={{MenuName: this.props.MenuName, MenuNo: this.props.MenuNo}} config={config} dict={this.state.dict} /> : null}
        {this.props.menuType !== 'HS' && window.GLOB.systemType !== 'production' ? <PagemsgComponent menu={{MenuName: this.props.MenuName, MenuNo: this.props.MenuNo}} config={config} dict={this.state.dict} /> : null}
        {viewlost ? <NotFount msg={this.state.lostmsg} /> : null}
      </div>
    )
src/tabviews/treepage/index.jsx
@@ -631,7 +631,7 @@
            )}
          </Col>
        </Row> : null}
        {menuType !== 'HS' ? <PagemsgComponent menu={{MenuName: this.props.MenuName, MenuNo: this.props.MenuNo}} config={config} dict={this.state.dict} /> : null}
        {menuType !== 'HS' && window.GLOB.systemType !== 'production' ? <PagemsgComponent menu={{MenuName: this.props.MenuName, MenuNo: this.props.MenuNo}} config={config} dict={this.state.dict} /> : null}
        {menuType !== 'HS' && shortcuts ? <SettingComponent config={config} dict={this.state.dict} shortcuts={shortcuts} permAction={this.props.permAction}/> : null}
        {viewlost ? <NotFount msg={this.state.lostmsg} /> : null}
      </div>
src/tabviews/zshare/actionList/exceloutbutton/index.jsx
@@ -783,6 +783,10 @@
      param.open_key = Utils.encryptOpenKey(param.secretkey, param.timestamp)
    }
    if (setting.transaction === 'true') {
      param.func = 'sPC_Get_TableData_try'
    }
    return param
  }
src/tabviews/zshare/normalTable/index.jsx
@@ -1121,7 +1121,7 @@
      <div className={'normal-data-table mingke-table ' + (height ? 'fixed-height' : '')}>
        {offset && <Affix offsetTop={offset} className="fix-header">
          <Table
            size="middle"
            size={setting.size || 'middle'}
            style={style}
            bordered={setting.bordered !== 'false'}
            rowSelection={rowSelection}
@@ -1136,7 +1136,7 @@
          />
        </Affix>}
        <Table
          size="middle"
          size={setting.size || 'middle'}
          style={style}
          bordered={setting.bordered !== 'false'}
          rowSelection={rowSelection}
src/tabviews/zshare/normalTable/index.scss
@@ -1,6 +1,6 @@
.normal-data-table {
  position: relative;
  padding: 0 0px 30px;
  padding: 0 0px 15px;
  .normal-table-footer {
    padding: 10px 0px;
src/tabviews/zshare/pageMessage/index.scss
@@ -2,8 +2,8 @@
  .page-message {
    position: fixed;
    z-index: 2;
    bottom: 65px;
    right: 30px;
    bottom: 55px;
    right: 20px;
    width: 40px;
    height: 40px;
  }
src/tabviews/zshare/settingcomponent/index.scss
@@ -2,8 +2,8 @@
  .page-setting {
    position: fixed;
    z-index: 2;
    bottom: 65px;
    right: 30px;
    bottom: 55px;
    right: 20px;
    width: 40px;
    height: 40px;
  }
@@ -15,7 +15,7 @@
}
.page-message-wrap.exist + .page-setting-wrap {
  .page-setting {
    bottom: 110px;
    bottom: 100px;
  }
}
.custom-setting-modal {
src/templates/sharecomponent/settingcomponent/settingform/datasource/index.jsx
@@ -617,6 +617,29 @@
              </Form.Item>
            </Col>
            <Col span={12}>
              <Form.Item label="表格大小">
                {getFieldDecorator('size', {
                  initialValue: setting.size || 'middle'
                })(
                <Radio.Group>
                  <Radio value="default">大</Radio>
                  <Radio value="middle">中</Radio>
                  <Radio value="small">小</Radio>
                </Radio.Group>)}
              </Form.Item>
            </Col>
            <Col span={12}>
              <Form.Item label="事务">
                {getFieldDecorator('transaction', {
                  initialValue: setting.transaction || 'false'
                })(
                <Radio.Group>
                  <Radio value="true">使用</Radio>
                  <Radio value="false">不使用</Radio>
                </Radio.Group>)}
              </Form.Item>
            </Col>
            <Col span={12}>
              <Form.Item label={
                <Tooltip placement="topLeft" title="高级搜索弹窗的宽度,注:当宽度值小于100时表示占窗口的百分比,大于100时表示宽度的绝对值。">
                  <Icon type="question-circle" />
src/utils/utils-datamanage.js
@@ -90,6 +90,10 @@
      default_sql: setting.execute ? 'true' : 'false'
    }
    if (setting.transaction === 'true') {
      param.func = 'sPC_Get_TableData_try'
    }
    let userName = sessionStorage.getItem('User_Name') || ''
    let fullName = sessionStorage.getItem('Full_Name') || ''
    let RoleID = sessionStorage.getItem('role_id') || ''
@@ -226,6 +230,10 @@
      exec_type: 'y',
      arr_field: statFields.map(col => col.field).join(','),
      default_sql: setting.execute ? 'true' : 'false'
    }
    if (setting.transaction === 'true') {
      param.func = 'sPC_Get_TableData_try'
    }
    
    let _dataresource = setting.dataresource
@@ -676,7 +684,8 @@
    primaryKey: setting.primaryKey || '',
    foreign_key: '',
    sql: _dataresource,
    script: _customScript
    script: _customScript,
    transaction: setting.transaction === 'true'
  }
}
@@ -687,12 +696,16 @@
export function getStructuredParams (params, config, BID = '') {
  let LText_field = []
  let diffUser = false
  let transaction = false
  
  let _LText = params.map((item, index) => {
    let _script = item.script
    if (!diffUser && (/@userid@/ig.test(item.sql) || /@userid@/ig.test(_script))) {
      diffUser = true
    }
    if (item.transaction) {
      transaction = true
    }
    item.columns.forEach(cell => {
@@ -708,6 +721,10 @@
    BID: BID
  }
  if (transaction) {
    param.func = 'sPC_Get_structured_data_try'
  }
  let { LText, LText1, LText2 } = Utils.sPCInUpDeFormatOptions(param.LText)
  param.LText1 = LText1
src/views/billprint/index.jsx
@@ -319,7 +319,8 @@
      primaryKey: setting.primaryKey || '',
      foreign_key: '',
      sql: _dataresource,
      script: _customScript
      script: _customScript,
      transaction: setting.transaction === 'true'
    }
  }
@@ -328,6 +329,7 @@
    if (!params || params.length === 0) return ''
    let LText_field = []
    let transaction = false
    let LText = params.map((item, index) => {
      let _sql = item.sql
      let _script = item.script
@@ -336,6 +338,9 @@
        _script = `declare @ErrorCode nvarchar(50),@retmsg nvarchar(4000) select @ErrorCode='',@retmsg =''
          ${_script}
        `
      }
      if (item.transaction) {
        transaction = true
      }
      item.columns.forEach(cell => {
@@ -351,6 +356,10 @@
      BID: BID || ''
    }
    if (transaction) {
      param.func = 'sPC_Get_structured_data_try'
    }
    param.LText = Utils.formatOptions(param.LText)
    param.LText_field = Utils.formatOptions(param.LText_field)
    param.timestamp = moment().format('YYYY-MM-DD HH:mm:ss')