king
2023-08-31 a24767eaec0a43617f386ef950eff2272eae003f
src/menu/datasource/verifycard/settingform/index.jsx
@@ -180,6 +180,16 @@
    this.props.updateStatus(setting)
  }
  addProcess = () => {
    let _sql = this.props.form.getFieldValue('dataresource')
    _sql = _sql + `\n/* select a.*,case when isnull(w.remark,'')='' then a.remark else w.remark end as remark_w,case when isnull(w.statusname,'')='' then a.statusname else w.statusname end as statusname_w,w.status as status_w  from 数据源 a left join (select * from  s_my_works_flow  where works_flow_code='流程编码' and deleted=0) w on a.id=w.works_flow_id where  isnull(w.status,0)=0 */`
    this.props.form.setFieldsValue({
      dataresource: _sql
    })
  }
  render() {
    const { columns, config } = this.props
    const { getFieldDecorator } = this.props.form
@@ -350,6 +360,7 @@
              </Form.Item>
            </Col> : null}
            {setting.interType === 'system' ? <Col span={24} className="data-source" style={{paddingLeft: '7px'}}>
              {window.GLOB.process ? <span className="process-btn" onClick={this.addProcess}>工作流</span> : null}
              <Form.Item labelCol={{xs: { span: 24 }, sm: { span: 2 }}} wrapperCol={ {xs: { span: 24 }, sm: { span: 22 }} } label={
                <Tooltip placement="topLeft" title={`使用系统函数时,需填写数据源。注:数据权限替换符 $@ -> /* 或 ''、 @$ -> */ 或 ''。`}>
                  <QuestionCircleOutlined className="mk-form-tip" />