| | |
| | | key: 'execSuccess', |
| | | label: '成功后', |
| | | initVal: card.execSuccess || 'grid', |
| | | tooltip: '选择刷新行时,如果选择多条数据会刷新表格。', |
| | | tooltip: '选择刷新行时,如果选择多条数据会刷新表格。如需语音播报请以@speak@开头,播报内容或文件放置于<<>>中。', |
| | | required: true, |
| | | options: [{ |
| | | value: 'never', |
| | |
| | | key: 'execError', |
| | | label: '失败后', |
| | | initVal: card.execError || 'never', |
| | | tooltip: '选择刷新行时,如果选择多条数据会刷新表格。', |
| | | tooltip: '选择刷新行时,如果选择多条数据会刷新表格。如需语音播报请以@speak@开头,播报内容或文件放置于<<>>中。', |
| | | required: true, |
| | | options: [{ |
| | | value: 'never', |
| | |
| | | /** |
| | | * @description 获取表单配置信息 |
| | | * @param {*} card // 表单对象 |
| | | * @param {*} inputfields // 可关联表单 |
| | | * @param {*} inputfields // 可写入表单 |
| | | * @param {*} tabfields // 可切换表单 |
| | | * @param {*} linkableFields // 可关联表单 |
| | | * @param {*} linksupFields // 上级表单 |
| | |
| | | } else { |
| | | roleList = [] |
| | | } |
| | | |
| | | let msgTemps = sessionStorage.getItem('msgTemplate') |
| | | |
| | | if (msgTemps) { |
| | | try { |
| | | msgTemps = JSON.parse(msgTemps) |
| | | msgTemps = msgTemps.map(item => { |
| | | item.value = item.ID |
| | | item.label = item.SignName + ' - ' + item.TemplateCode |
| | | return item |
| | | }) |
| | | } catch (e) { |
| | | msgTemps = [] |
| | | } |
| | | } else { |
| | | msgTemps = [] |
| | | } |
| | | |
| | | inputfields = inputfields.map((item, index) => { |
| | | item.label = `${index + 1}、${item.field || ''}(${item.label})` |
| | | return item |
| | | }) |
| | | tabfields = tabfields.map((item, index) => { |
| | | item.label = `${index + 1}、${item.field || ''}(${item.label})` |
| | | return item |
| | | }) |
| | | |
| | | tabfields.unshift({field: '', label: '原表单'}) |
| | | |
| | | linkableFields = linkableFields.map((item, index) => { |
| | | item.label = `${index + 1}、${item.field || ''}(${item.label})` |
| | | return item |
| | | }) |
| | | |
| | | linksupFields = linksupFields.map((item, index) => { |
| | | item.label = `${index + 1}、${item.field || ''}(${item.label})` |
| | | return item |
| | | }) |
| | | |
| | | let _openType = [{ |
| | | value: 'text', |
| | |
| | | }, { |
| | | value: 'formula', |
| | | text: '公式' |
| | | }, { |
| | | value: 'vercode', |
| | | text: '验证码' |
| | | }] |
| | | |
| | | let _fieldlength = 50 |
| | |
| | | }, { |
| | | value: 'formula', |
| | | text: '公式' |
| | | }, { |
| | | value: 'vercode', |
| | | text: '验证码' |
| | | }] |
| | | } |
| | | |
| | |
| | | }, |
| | | { |
| | | type: 'radio', |
| | | key: 'inputType', |
| | | label: '加密显示', |
| | | initVal: card.inputType || 'text', |
| | | required: false, |
| | | options: [{ |
| | | value: 'text', |
| | | text: '否' |
| | | }, { |
| | | value: 'password', |
| | | text: '是' |
| | | }] |
| | | }, |
| | | { |
| | | type: 'radio', |
| | | key: 'interception', |
| | | label: '截取空格', |
| | | initVal: card.interception || 'true', |
| | |
| | | }] |
| | | }, |
| | | { |
| | | type: 'text', |
| | | key: 'splitctrl', |
| | | label: '控制字段', |
| | | initVal: card.splitctrl || '', |
| | | tooltip: '选行且行中对应字段值为空时隐藏。', |
| | | required: false, |
| | | options: columns |
| | | }, |
| | | { |
| | | type: 'radio', |
| | | key: 'place', |
| | | label: '排列', |
| | | initVal: card.place || 'left_right', |
| | | tooltip: '提示文字与输入框的位置关系。', |
| | | tooltip: '提示文字与输入框的位置关系。注:选择器、日期表单在表单样式为阴影时有效', |
| | | forbid: appType !== 'mob', |
| | | options: [{ |
| | | value: 'left_right', |
| | |
| | | value: 'right', |
| | | text: '右截' |
| | | }] |
| | | }, |
| | | { |
| | | type: 'radio', |
| | | key: 'sendType', |
| | | label: '发送方式', |
| | | initVal: card.sendType || 'local', |
| | | tooltip: '短信发送时是否通过单点系统。', |
| | | required: false, |
| | | options: [{ |
| | | value: 'local', |
| | | text: '本地' |
| | | }, { |
| | | value: 'sso', |
| | | text: '单点' |
| | | }] |
| | | }, |
| | | { |
| | | type: 'select', |
| | | key: 'phoneField', |
| | | label: '手机号', |
| | | initVal: card.phoneField || '', |
| | | required: true, |
| | | options: inputfields |
| | | }, |
| | | { |
| | | type: 'select', |
| | | key: 'smsId', |
| | | label: '短信模板', |
| | | initVal: card.smsId || '', |
| | | tooltip: '请选择适当的短信模板。', |
| | | required: true, |
| | | options: msgTemps |
| | | }, |
| | | { |
| | | type: 'number', |
| | |
| | | // forbid: appType !== 'mob' |
| | | // }, |
| | | { |
| | | type: 'radio', |
| | | key: 'empty', |
| | | label: '空值隐藏', |
| | | initVal: card.empty || 'show', |
| | | tooltip: '当选项为空时,隐藏该表单。', |
| | | required: false, |
| | | options: [ |
| | | {value: 'show', text: '否'}, |
| | | {value: 'hidden', text: '是'}, |
| | | ] |
| | | }, |
| | | { |
| | | type: 'multiselect', |
| | | key: 'blacklist', |
| | | label: '黑名单', |