| | |
| | | type: 'radio', |
| | | key: 'IsSort', |
| | | label: '排序', |
| | | initVal: card.IsSort || (card.isSub || card.type === 'custom' ? 'false' : 'true'), |
| | | initVal: card.IsSort || 'false', |
| | | required: true, |
| | | options: [{ |
| | | value: 'true', |
| | |
| | | }] |
| | | }, |
| | | { |
| | | type: 'radio', |
| | | key: 'required', |
| | | label: '必填', |
| | | initVal: card.required || 'false', |
| | | required: false, |
| | | options: [{ |
| | | value: 'false', |
| | | text: '否' |
| | | }, { |
| | | value: 'true', |
| | | text: '是' |
| | | }] |
| | | }, |
| | | { |
| | | type: 'text', |
| | | key: 'initval', |
| | | label: '默认值', |
| | |
| | | key: 'dataSource', |
| | | label: '数据源', |
| | | initVal: card.dataSource || '', |
| | | placeholder: '系统变量:mk_departmentcode、mk_organization、mk_user_type。公共值@BID@。', |
| | | placeholder: '系统变量:mk_departmentcode、mk_organization、mk_user_type。公共值:@BID@、@Appkey@、@UserID@、@SessionUid@、@LoginUID@、@lang@。', |
| | | required: true, |
| | | }, |
| | | { |
| | |
| | | tooltip: '用于控制行数据是否可选择。字段值为true时,选项不可选。', |
| | | required: false, |
| | | allowClear: true, |
| | | joint: true, |
| | | options: 'columns' |
| | | }, |
| | | { |
| | |
| | | }, |
| | | { |
| | | type: 'radio', |
| | | key: 'showValue', |
| | | label: '显示值', |
| | | initVal: card.showValue || 'label', |
| | | tooltip: '单元格不可编辑时显示的信息。', |
| | | required: false, |
| | | options: [{ |
| | | value: 'value', |
| | | text: '值·字段' |
| | | }, { |
| | | value: 'label', |
| | | text: '文本·字段' |
| | | }] |
| | | }, |
| | | { |
| | | type: 'radio', |
| | | key: 'dropdown', |
| | | label: '下拉宽度', |
| | | initVal: card.dropdown || 'flex', |
| | |
| | | }, |
| | | { |
| | | type: 'radio', |
| | | key: 'required', |
| | | label: '必填', |
| | | initVal: card.required || 'false', |
| | | required: false, |
| | | options: [{ |
| | | value: 'false', |
| | | text: '否' |
| | | }, { |
| | | value: 'true', |
| | | text: '是' |
| | | }] |
| | | }, |
| | | { |
| | | type: 'radio', |
| | | key: 'database', |
| | | label: '数据库', |
| | | initVal: card.database || 'local', |
| | |
| | | text: '本地' |
| | | }, { |
| | | value: 'sso', |
| | | text: '系统' |
| | | text: '单点' |
| | | }] |
| | | }, |
| | | { |
| | |
| | | options: fields |
| | | }, |
| | | { |
| | | type: 'checkbox', |
| | | key: 'evalchars', |
| | | label: '替换字符', |
| | | initVal: card.evalchars || ['enter', 'space'], |
| | | tooltip: '公式解析后,可替换回车、空格等字符,实现换行、字间距控制等页面效果。', |
| | | required: false, |
| | | options: [{ |
| | | value: 'enter', |
| | | text: '回车符' |
| | | }, { |
| | | value: 'space', |
| | | text: '空格' |
| | | }] |
| | | }, |
| | | { |
| | | type: 'radio', |
| | | key: 'noValue', |
| | | label: '空值', |