| | |
| | | padding-bottom: 0px; |
| | | .public-DraftEditor-content { |
| | | padding-bottom: 0; |
| | | |
| | | * { |
| | | font-weight: inherit; |
| | | font-style: inherit; |
| | | } |
| | | } |
| | | .DraftEditor-root, .DraftEditor-editorContainer, .public-DraftEditor-content { |
| | | height: var(--editor-height, auto); |
| | | min-height: var(--editor-height, 500px); |
| | | } |
| | | } |
| | | .bf-content::-webkit-scrollbar { |
| | |
| | | >.anticon-form { |
| | | color: purple; |
| | | } |
| | | } |
| | | .model-menu-edit-content-form { |
| | | .normal-braft-editor { |
| | | .bf-container .DraftEditor-root, .bf-container .public-DraftEditor-content { |
| | | min-height: 500px; |
| | | } |
| | | } |
| | | } |
| | |
| | | |
| | | if (cell.OpenType === 'excelOut') { // 导出 |
| | | cell.$menuName = item.$menuname |
| | | } else if (cell.OpenType === 'pop' && cell.modal) { |
| | | cell.modal.uuid = cell.uuid + 'pop' |
| | | } |
| | | |
| | | if (cell.verify) { |
| | |
| | | |
| | | if (cell.OpenType === 'excelOut') { // 导出 |
| | | cell.$menuName = item.$menuname |
| | | } else if (cell.OpenType === 'pop' && item.$cache && item.$time && cell.modal) { |
| | | cell.modal.$cache = item.$cache |
| | | cell.modal.$time = item.$time |
| | | } else if (cell.OpenType === 'pop' && cell.modal) { |
| | | if (item.$cache && item.$time) { |
| | | cell.modal.$cache = item.$cache |
| | | cell.modal.$time = item.$time |
| | | } |
| | | cell.modal.uuid = cell.uuid + 'pop' |
| | | } |
| | | |
| | |
| | | |
| | | if (cell.OpenType === 'excelOut') { // 导出 |
| | | cell.$menuName = item.$menuname |
| | | } else if (cell.OpenType === 'pop' && cell.modal) { |
| | | cell.modal.uuid = cell.uuid + 'pop' |
| | | } |
| | | |
| | | if (cell.verify) { |
| | |
| | | Object.keys(this.props.data).forEach(key => { |
| | | data[key.toLowerCase()] = this.props.data[key] |
| | | }) |
| | | } else if (action.uuid && sessionStorage.getItem('local_' + action.uuid)) { |
| | | let _data = JSON.parse(sessionStorage.getItem('local_' + action.uuid)) |
| | | |
| | | Object.keys(_data).forEach(key => { |
| | | data[key.toLowerCase()] = _data[key] |
| | | }) |
| | | } |
| | | |
| | | if (this.props.BData) { |
| | | Object.keys(this.props.BData).forEach(key => { |
| | | BData[key.toLowerCase()] = this.props.BData[key] |
| | |
| | | |
| | | // 数据自动填充 |
| | | let readin = item.readin !== 'false' |
| | | item.local = item.readin === 'local' |
| | | item.readin = item.readin !== 'false' && item.readin !== 'top' |
| | | item.readonly = check || item.readonly === 'true' |
| | | item.writein = item.writein !== 'false' |
| | |
| | | } |
| | | |
| | | handleConfirm = (formId) => { |
| | | const { action } = this.props |
| | | const { formlist, send_type, timestamp, n_id } = this.state |
| | | |
| | | // 表单提交时检查输入值是否正确 |
| | |
| | | } |
| | | let forms = [] |
| | | let record = {...this.record, ...values} |
| | | let locals = null |
| | | |
| | | formlist.forEach(item => { |
| | | if (!item.field || ['hint', 'split', 'formula'].includes(item.type)) return |
| | |
| | | value: n_id || '' |
| | | }) |
| | | } |
| | | |
| | | if (item.local) { |
| | | locals = locals || {} |
| | | locals[item.field] = _item.value |
| | | } |
| | | |
| | | forms.push(_item) |
| | | }) |
| | | |
| | | this.submitId = formId || '' |
| | | |
| | | if (locals) { |
| | | sessionStorage.setItem('local_' + action.uuid, JSON.stringify(locals)) |
| | | } |
| | | |
| | | resolve(forms) |
| | | }) |
| | | }) |
| | |
| | | selectKeys = config.initval ? config.initval.split(',') : [] |
| | | initlength = selectKeys.length |
| | | selectKeys = this.filterVals(config.options, selectKeys) |
| | | } else if (config.options[0] && typeof(config.options[0].$value) === 'number' && /^([0-9]|[1-9]\d{0,2})$/.test(config.initval)) { |
| | | selectKeys = +config.initval |
| | | } |
| | | |
| | | if (!config.selectStyle && config.backgroundColor) { |
| | |
| | | type: 'radio', |
| | | key: 'readin', |
| | | label: '自动填充', |
| | | tooltip: '将表格选中的数据自动填充到表单中。注:在批量操作时,如想要所选行(当前字段)全部修改请设为否或首行。', |
| | | tooltip: '将表格选中的数据自动填充到表单中。注:在批量操作时,如想要所选行(当前字段)全部修改请设为否或首行;使用“缓存”时,将在本地保存与读取表单信息,选行时使用行信息填充。', |
| | | initVal: card.readin || 'true', |
| | | options: [{ |
| | | value: 'true', |
| | |
| | | }, { |
| | | value: 'top', |
| | | text: '首行' |
| | | }, { |
| | | value: 'local', |
| | | text: '缓存' |
| | | }] |
| | | }, |
| | | { |