king
2022-11-04 3c50bfdd8d605b3dd449adcb54cdf7f7c25d6c16
src/menu/datasource/verifycard/settingform/index.jsx
@@ -25,7 +25,6 @@
    modules: [],
    innerRules: [],
    innertip: '',
    appType: sessionStorage.getItem('appType'),
    ismain: false
  }
@@ -78,16 +77,11 @@
  }
  handleConfirm = () => {
    const { appType } = this.state
    // 表单提交时检查输入值是否正确
    return new Promise((resolve, reject) => {
      this.props.form.validateFieldsAndScroll((err, values) => {
        if (!err) {
          values.sync = values.sync || 'false'
          if (appType === 'mob' && values.useMSearch === 'true') {
            values.syncRefresh = 'true'
          }
          // 数据源前端验证
          if (values.interType === 'system' && values.execute !== 'false' && values.dataresource) {
@@ -160,7 +154,7 @@
  render() {
    const { columns, config } = this.props
    const { getFieldDecorator } = this.props.form
    const { setting, modules, innerRules, appType, innertip } = this.state
    const { setting, modules, innerRules, innertip } = this.state
    const formItemLayout = {
      labelCol: {
@@ -230,7 +224,12 @@
              </Form.Item>
            </Col>
            {setting.interType === 'outer' ? <Col span={8}>
              <Form.Item label="系统接口">
              <Form.Item label={
                <Tooltip placement="topLeft" title="单点登录系统">
                  <QuestionCircleOutlined className="mk-form-tip" />
                  系统接口
                </Tooltip>
              }>
                {getFieldDecorator('sysInterface', {
                  initialValue: setting.sysInterface,
                  rules: [
@@ -472,34 +471,6 @@
                )}
              </Form.Item>
            </Col> : null}
            {!['navbar', 'balcony', 'menubar', 'interface'].includes(config.type) && !['basetable'].includes(config.subtype) && setting.useMSearch === 'true' && appType !== 'mob' ? <Col span={8}>
              <Form.Item label={
                <Tooltip placement="topLeft" title={'外层搜索条件改变时,是否刷新当前组件数据。'}>
                  <QuestionCircleOutlined className="mk-form-tip" />
                  同步刷新
                </Tooltip>
              }>
                {getFieldDecorator('syncRefresh', {
                  initialValue: setting.syncRefresh || 'true'
                })(
                  <Radio.Group>
                    <Radio value="true">是</Radio>
                    <Radio value="false">否</Radio>
                  </Radio.Group>
                )}
              </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> */}
            {!['navbar', 'balcony', 'menubar', 'interface'].includes(config.type) ? <Col span={8}>
              <Form.Item label="初始化数据">
                {getFieldDecorator('onload', {