| | |
| | | if (this.record.interception === 'func') { |
| | | shows.push('func') |
| | | } |
| | | reTooltip.initval = '系统变量:@currentYear@(当前年份)' |
| | | } else if (type === 'number') { |
| | | reTypes.initval = 'number' |
| | | reRequired.initval = true |
| | |
| | | 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' |
| | | } |
| | | |
| | |
| | | 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') { |