| | |
| | | } else { |
| | | appMenus = [] |
| | | } |
| | | // if (appType === 'mob') { |
| | | // appMenus.push({value: 'sign', text: '签名(系统页)'}) |
| | | // } |
| | | appMenus.push({value: 'goback', text: '返回(上一页)'}) |
| | | } |
| | | |
| | |
| | | ] |
| | | }, |
| | | { |
| | | type: 'codemirror', |
| | | key: 'formula', |
| | | label: '公式', |
| | | initVal: card.formula || '', |
| | | tooltip: '执行时会使用查询到的数据替换相应的字段,展示获得的结果,在不使用解析时换行符或空格会替换为页面元素。可使用JS的一些语法,如:三元表达式 @field1@ > @field2@ ? 0 : 1;Math对象,取绝对值 Math.abs(@field@)、四舍五入 Math.round(@field@)等。注:会替换公式中的@username@、@fullName@、@bid@。', |
| | | toolWidth: 450, |
| | | placeholder: '例如:@price@ * @number@', |
| | | required: true |
| | | }, |
| | | { |
| | | type: 'radio', |
| | | key: 'link', |
| | | label: '链接', |
| | |
| | | ] |
| | | }, |
| | | { |
| | | type: 'codemirror', |
| | | key: 'formula', |
| | | label: '公式', |
| | | initVal: card.formula || '', |
| | | tooltip: '执行时会使用查询到的数据替换相应的字段,展示获得的结果,在不使用解析时换行符或空格会替换为页面元素。可使用JS的一些语法,如:三元表达式 @field1@ > @field2@ ? 0 : 1;Math对象,取绝对值 Math.abs(@field@)、四舍五入 Math.round(@field@)等。注:会替换公式中的@username@、@fullName@、@bid@。', |
| | | toolWidth: 450, |
| | | placeholder: '例如:@price@ * @number@', |
| | | required: true |
| | | type: 'checkbox', |
| | | key: 'evalchars', |
| | | label: '替换字符', |
| | | initVal: card.evalchars || ['enter', 'space'], |
| | | tooltip: '公式解析后,可替换回车、空格等字符,实现换行、字间距控制等页面效果。', |
| | | required: false, |
| | | options: [{ |
| | | value: 'enter', |
| | | text: '回车符' |
| | | }, { |
| | | value: 'space', |
| | | text: '空格' |
| | | }] |
| | | }, |
| | | { |
| | | type: 'radio', |
| | |
| | | ] |
| | | }, |
| | | { |
| | | type: 'select', |
| | | key: 'noVField', |
| | | label: '空值字段', |
| | | initVal: card.noVField || '', |
| | | tooltip: '用于控制此静态元素的显示/隐藏,当此字段为空时(数值为0),隐藏当前元素。', |
| | | required: false, |
| | | allowClear: true, |
| | | options: [], |
| | | }, |
| | | { |
| | | type: 'radio', |
| | | key: 'lostTip', |
| | | label: '图片缺失', |