| | |
| | | }, |
| | | field: { // 字段名 |
| | | max: 50, |
| | | pattern: /^[\u4E00-\u9FA50-9a-zA-Z,_-]*$/ig, |
| | | pattern: /^[\u4E00-\u9FA50-9a-zA-Z_-]*$/ig, |
| | | multipattern: /^[\u4E00-\u9FA50-9a-zA-Z,_-]*$/ig, |
| | | message: '字段名只允许包含数字、字母、汉字以及_-', |
| | | maxMessage: '字段名最多50个字符。' |
| | | }, |
| | |
| | | date: [ |
| | | {value: '', text: _dict['date.empty']}, |
| | | {value: '0', text: '当天'}, |
| | | {value: 1, text: '前一天'}, |
| | | {value: 1, text: '昨天'}, |
| | | {value: 2, text: '前天'}, |
| | | {value: 3, text: '前三天'}, |
| | | {value: 7, text: '前七天'}, |
| | | {value: 30, text: '前30天'} |
| | | {value: 30, text: '前30天'}, |
| | | {value: -1, text: '明天'}, |
| | | {value: -2, text: '后天'} |
| | | ], |
| | | dateweek: [ |
| | | {value: '', text: _dict['date.empty']}, |
| | | {value: '0', text: '本周'}, |
| | | {value: 1, text: '上周'}, |
| | | {value: 3, text: '前三周'}, |
| | | {value: 7, text: '前七周'} |
| | | {value: 7, text: '前七周'}, |
| | | {value: -1, text: '下周'} |
| | | ], |
| | | datemonth: [ |
| | | {value: '', text: _dict['date.empty']}, |
| | | {value: '0', text: '本月'}, |
| | | {value: 1, text: '上月'}, |
| | | {value: 3, text: '前三月'}, |
| | | {value: 7, text: '前七月'} |
| | | {value: 7, text: '前七月'}, |
| | | {value: -1, text: '下月'} |
| | | ], |
| | | daterange: [ |
| | | {value: '', text: _dict['date.empty']}, |
| | |
| | | {value: '[30, 0]', text: '近30天'}, |
| | | {value: '[7, -7]', text: '前后七天'}, |
| | | {value: '[30, -30]', text: '前后30天'}, |
| | | {value: '[90, -90]', text: '前后90天'} |
| | | {value: '[90, -90]', text: '前后90天'}, |
| | | {value: '[-1, -1]', text: '明天'}, |
| | | {value: '[-2, -2]', text: '后天'} |
| | | ], |
| | | datetime: [ |
| | | {value: '', text: _dict['date.empty']}, |
| | |
| | | {value: 1, text: '昨天'}, |
| | | {value: 3, text: '前三天'}, |
| | | {value: 7, text: '前七天'}, |
| | | {value: 30, text: '前30天'} |
| | | {value: 30, text: '前30天'}, |
| | | {value: -1, text: '明天'}, |
| | | {value: -2, text: '后天'} |
| | | ] |
| | | } |
| | | |