king
2025-04-21 1168787243e23320a9ad37a9647445ee8109283e
src/templates/zshare/modalform/index.jsx
@@ -152,6 +152,7 @@
      if (this.record.interception === 'func') {
        shows.push('func')
      }
      reTooltip.initval = '系统变量:@currentYear@(当前年份)'
    } else if (type === 'number') {
      reTypes.initval = 'number'
      reRequired.initval = true
@@ -393,11 +394,11 @@
      this.record.initval = ''
      this.record.fieldlength = 50
      _fieldval.initval = ''
      if (value === 'text' || value === 'number') {
        this.record.enter = 'sub'
        _fieldval.enter = 'sub'
      } else if (['select', 'link', 'popSelect', 'vercode'].includes(value)) {
      } else if (['select', 'link', 'switch', 'check', 'date', 'datemonth', 'popSelect', 'vercode'].includes(value)) {
        _fieldval.enter = 'false'
      }
@@ -972,6 +973,16 @@
            return
          }
          if (values.field && values.type === 'text' && (/addr/ig.test(values.field) || /地址/ig.test(values.label))) {
            if (values.fieldlength <= 50) {
              notification.warning({
                top: 92,
                message: '检测到当前字段为地址,请确认字段长度是否合适。',
                duration: 5
              })
            }
          }
          // 下拉菜单或联动菜单
          if (['multiselect', 'select', 'link', 'radio', 'checkbox'].includes(values.type)) {
            if (values.resourceType === '0') {