| | |
| | | } |
| | | if (this.record.regular !== '') { |
| | | shows.push('regularText') |
| | | if (this.record.regular !== 'phone' && this.record.regular !== 'email') { |
| | | shows.push('regularExtra') |
| | | } |
| | | } |
| | | } else if (type === 'number') { |
| | | reTypes.initval = 'number' |
| | |
| | | max: formRule.field.max, |
| | | message: formRule.field.maxMessage |
| | | }) |
| | | } else if (item.key === 'regularExtra') { |
| | | rules.push({ |
| | | pattern: /^[~!@#$%^&*()_+:;{}<>,.-]*$/, |
| | | message: '扩展符包括~!@#$%^&*()_+:;{}<>,.-' |
| | | }) |
| | | } else if (item.max) { |
| | | rules.push({ |
| | | max: item.max, |
| | |
| | | values.initval = '' |
| | | } else if (values.type === 'split') { |
| | | values.span = 24 |
| | | } else if (values.type === 'text') { |
| | | if (values.regularExtra) { |
| | | values.regularExtra = Array.from(new Set(values.regularExtra.split(''))).join('') |
| | | } |
| | | } |
| | | |
| | | ['linkField', 'valueField', 'valueText', 'orderBy'].forEach(item => { |