| | |
| | | |
| | | if (appType === 'mob') { |
| | | group.fields.forEach(f => { |
| | | if (f.field && ['text', 'number'].includes(f.type) && f.hidden !== 'true' && f.readonly !== 'true') { |
| | | if (f.field && ['select', 'text', 'number', 'textarea'].includes(f.type) && f.hidden !== 'true' && f.readonly !== 'true') { |
| | | fields.push(f) |
| | | } |
| | | }) |
| | | } else { |
| | | group.fields.forEach(f => { |
| | | if (f.field && ['select', 'link', 'text', 'number'].includes(f.type) && f.hidden !== 'true' && f.readonly !== 'true') { |
| | | if (f.field && ['select', 'link', 'text', 'number', 'textarea'].includes(f.type) && f.hidden !== 'true' && f.readonly !== 'true') { |
| | | fields.push(f) |
| | | } |
| | | }) |
| | |
| | | }, |
| | | { |
| | | type: 'radio', |
| | | field: 'cache', |
| | | label: '选项查询', |
| | | initval: group.setting.cache || 'true', |
| | | tooltip: '需要通过数据源查询的选项,是否使用缓存。', |
| | | required: false, |
| | | options: [ |
| | | {value: 'true', label: '缓存'}, |
| | | {value: 'false', label: '实时'}, |
| | | ] |
| | | }, |
| | | { |
| | | type: 'radio', |
| | | field: 'align', |
| | | label: '表单排列', |
| | | initval: group.setting.align || 'left_right', |
| | |
| | | }, |
| | | { |
| | | type: 'radio', |
| | | field: 'verticalSpace', |
| | | label: '竖向间隙', |
| | | initval: group.setting.verticalSpace || 'normal', |
| | | tooltip: '正常间隙会预留出报错信息的位置,防止表单位置发生变化。', |
| | | required: false, |
| | | options: [ |
| | | {value: 'normal', label: '正常'}, |
| | | {value: 'middle', label: '中'}, |
| | | {value: 'small', label: '小'}, |
| | | ], |
| | | forbid: appType === 'mob' |
| | | }, |
| | | { |
| | | type: 'radio', |
| | | field: 'prevEnable', |
| | | label: '上一步', |
| | | initval: group.prevButton ? group.prevButton.enable || 'false' : 'false', |
| | | tooltip: '第一组不显示。', |
| | | tooltip: '第一组不显示。注:除关闭功能外。', |
| | | required: false, |
| | | options: [ |
| | | {value: 'true', label: '显示'}, |
| | |
| | | field: 'nextEnable', |
| | | label: '跳过', |
| | | initval: group.nextButton ? group.nextButton.enable || 'false' : 'false', |
| | | tooltip: '最后一组不显示。', |
| | | tooltip: '最后一组不显示。注:除关闭功能外。', |
| | | required: false, |
| | | options: [ |
| | | {value: 'true', label: '显示'}, |