From fd1a4a42bbef3e9c02e0fee346b49401ec0fe23f Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期一, 29 七月 2024 17:00:15 +0800 Subject: [PATCH] 2024-07-29 --- src/tabviews/custom/popview/index.jsx | 2 ++ src/tabviews/zshare/mutilform/index.jsx | 19 +++++++++++++++++++ src/tabviews/basetable/index.jsx | 2 ++ src/tabviews/custom/index.jsx | 8 +++++--- src/tabviews/zshare/mutilform/mkCheckCard/index.jsx | 2 ++ src/components/editor/index.scss | 9 +++++++++ src/templates/zshare/formconfig.jsx | 5 ++++- src/menu/components/editor/braft-editor/editorcontent/index.scss | 7 ------- 8 files changed, 43 insertions(+), 11 deletions(-) diff --git a/src/components/editor/index.scss b/src/components/editor/index.scss index 856400d..9f9132f 100644 --- a/src/components/editor/index.scss +++ b/src/components/editor/index.scss @@ -11,6 +11,15 @@ 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 { diff --git a/src/menu/components/editor/braft-editor/editorcontent/index.scss b/src/menu/components/editor/braft-editor/editorcontent/index.scss index a8e2f42..01d1ce3 100644 --- a/src/menu/components/editor/braft-editor/editorcontent/index.scss +++ b/src/menu/components/editor/braft-editor/editorcontent/index.scss @@ -4,11 +4,4 @@ >.anticon-form { color: purple; } -} -.model-menu-edit-content-form { - .normal-braft-editor { - .bf-container .DraftEditor-root, .bf-container .public-DraftEditor-content { - min-height: 500px; - } - } } \ No newline at end of file diff --git a/src/tabviews/basetable/index.jsx b/src/tabviews/basetable/index.jsx index 3d13f4b..ea98f50 100644 --- a/src/tabviews/basetable/index.jsx +++ b/src/tabviews/basetable/index.jsx @@ -504,6 +504,8 @@ if (cell.OpenType === 'excelOut') { // 瀵煎嚭 cell.$menuName = item.$menuname + } else if (cell.OpenType === 'pop' && cell.modal) { + cell.modal.uuid = cell.uuid + 'pop' } if (cell.verify) { diff --git a/src/tabviews/custom/index.jsx b/src/tabviews/custom/index.jsx index ce3f77e..b3f0872 100644 --- a/src/tabviews/custom/index.jsx +++ b/src/tabviews/custom/index.jsx @@ -956,9 +956,11 @@ 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' } diff --git a/src/tabviews/custom/popview/index.jsx b/src/tabviews/custom/popview/index.jsx index cf6e6a3..1b097d4 100644 --- a/src/tabviews/custom/popview/index.jsx +++ b/src/tabviews/custom/popview/index.jsx @@ -667,6 +667,8 @@ if (cell.OpenType === 'excelOut') { // 瀵煎嚭 cell.$menuName = item.$menuname + } else if (cell.OpenType === 'pop' && cell.modal) { + cell.modal.uuid = cell.uuid + 'pop' } if (cell.verify) { diff --git a/src/tabviews/zshare/mutilform/index.jsx b/src/tabviews/zshare/mutilform/index.jsx index fb189b9..eac452a 100644 --- a/src/tabviews/zshare/mutilform/index.jsx +++ b/src/tabviews/zshare/mutilform/index.jsx @@ -73,7 +73,14 @@ 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] @@ -146,6 +153,7 @@ // 鏁版嵁鑷姩濉厖 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' @@ -1368,6 +1376,7 @@ } handleConfirm = (formId) => { + const { action } = this.props const { formlist, send_type, timestamp, n_id } = this.state // 琛ㄥ崟鎻愪氦鏃舵鏌ヨ緭鍏ュ�兼槸鍚︽纭� @@ -1379,6 +1388,7 @@ } let forms = [] let record = {...this.record, ...values} + let locals = null formlist.forEach(item => { if (!item.field || ['hint', 'split', 'formula'].includes(item.type)) return @@ -1475,12 +1485,21 @@ 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) }) }) diff --git a/src/tabviews/zshare/mutilform/mkCheckCard/index.jsx b/src/tabviews/zshare/mutilform/mkCheckCard/index.jsx index a7dc070..a73b13c 100644 --- a/src/tabviews/zshare/mutilform/mkCheckCard/index.jsx +++ b/src/tabviews/zshare/mutilform/mkCheckCard/index.jsx @@ -28,6 +28,8 @@ 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) { diff --git a/src/templates/zshare/formconfig.jsx b/src/templates/zshare/formconfig.jsx index 1e41bb9..b494bb7 100644 --- a/src/templates/zshare/formconfig.jsx +++ b/src/templates/zshare/formconfig.jsx @@ -1915,7 +1915,7 @@ type: 'radio', key: 'readin', label: '鑷姩濉厖', - tooltip: '灏嗚〃鏍奸�変腑鐨勬暟鎹嚜鍔ㄥ~鍏呭埌琛ㄥ崟涓�傛敞锛氬湪鎵归噺鎿嶄綔鏃讹紝濡傛兂瑕佹墍閫夎锛堝綋鍓嶅瓧娈碉級鍏ㄩ儴淇敼璇疯涓哄惁鎴栭琛屻��', + tooltip: '灏嗚〃鏍奸�変腑鐨勬暟鎹嚜鍔ㄥ~鍏呭埌琛ㄥ崟涓�傛敞锛氬湪鎵归噺鎿嶄綔鏃讹紝濡傛兂瑕佹墍閫夎锛堝綋鍓嶅瓧娈碉級鍏ㄩ儴淇敼璇疯涓哄惁鎴栭琛岋紱浣跨敤鈥滅紦瀛樷�濇椂锛屽皢鍦ㄦ湰鍦颁繚瀛樹笌璇诲彇琛ㄥ崟淇℃伅锛岄�夎鏃朵娇鐢ㄨ淇℃伅濉厖銆�', initVal: card.readin || 'true', options: [{ value: 'true', @@ -1926,6 +1926,9 @@ }, { value: 'top', text: '棣栬' + }, { + value: 'local', + text: '缂撳瓨' }] }, { -- Gitblit v1.8.0