From c59272a71754865503c6a3ddeabc6c6da3ed47ce Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期五, 13 九月 2024 18:03:07 +0800 Subject: [PATCH] 2024-09-13 --- src/views/rolemanage/index.jsx | 4 ++-- src/tabviews/custom/popview/index.jsx | 2 +- src/tabviews/zshare/mutilform/index.jsx | 14 +++++++++++--- src/tabviews/basetable/index.jsx | 2 +- src/tabviews/custom/index.jsx | 2 +- src/utils/utils-custom.js | 6 +++--- 6 files changed, 19 insertions(+), 11 deletions(-) diff --git a/src/tabviews/basetable/index.jsx b/src/tabviews/basetable/index.jsx index d066c57..9af687c 100644 --- a/src/tabviews/basetable/index.jsx +++ b/src/tabviews/basetable/index.jsx @@ -521,7 +521,7 @@ if (cell.OpenType === 'excelOut') { // 瀵煎嚭 cell.$menuName = item.$menuname } else if (cell.OpenType === 'pop' && cell.modal) { - cell.modal.uuid = cell.uuid + 'pop' + cell.modal.uuid = cell.uuid + '_pop' } if (cell.verify) { diff --git a/src/tabviews/custom/index.jsx b/src/tabviews/custom/index.jsx index 333a938..8e29805 100644 --- a/src/tabviews/custom/index.jsx +++ b/src/tabviews/custom/index.jsx @@ -981,7 +981,7 @@ cell.modal.$cache = item.$cache cell.modal.$time = item.$time } - cell.modal.uuid = cell.uuid + 'pop' + cell.modal.uuid = cell.uuid + '_pop' } if (cell.verify) { diff --git a/src/tabviews/custom/popview/index.jsx b/src/tabviews/custom/popview/index.jsx index 9e557fc..de34bf6 100644 --- a/src/tabviews/custom/popview/index.jsx +++ b/src/tabviews/custom/popview/index.jsx @@ -672,7 +672,7 @@ if (cell.OpenType === 'excelOut') { // 瀵煎嚭 cell.$menuName = item.$menuname } else if (cell.OpenType === 'pop' && cell.modal) { - cell.modal.uuid = cell.uuid + 'pop' + 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 d2af034..d12682c 100644 --- a/src/tabviews/zshare/mutilform/index.jsx +++ b/src/tabviews/zshare/mutilform/index.jsx @@ -4,6 +4,7 @@ import { Form, Row, Col, notification, Tooltip, Rate } from 'antd' import { QuestionCircleOutlined, StarFilled } from '@ant-design/icons' import moment from 'moment' +import md5 from 'md5' import Api from '@/api' import Utils from '@/utils/utils.js' @@ -840,7 +841,7 @@ } getFormData = (deForms) => { - if (window.backend && window.GLOB.CacheData.has('sql_' + deForms[0].uuid)) { + if (window.backend && window.GLOB.CacheData.has('sql_' + md5(this.props.action.uuid.replace(/_pop$/, '') + deForms[0].uuid))) { this.improveBackActionForm(deForms) } else if (deForms.length === 1) { this.improveSimpleActionForm(deForms) @@ -878,9 +879,16 @@ let skip = false deForms.forEach(item => { - let ex = window.GLOB.CacheData.get('sql_' + item.uuid) + let ex = window.GLOB.CacheData.get('sql_' + md5(action.uuid.replace(/_pop$/, '') + item.uuid)) - if (!ex) return + if (!ex) { + notification.warning({ + top: 92, + message: '琛ㄥ崟锛�' + item.label + '锛夋棤鍙墽琛岃剼鏈��', + duration: 5 + }) + return + } let exps = [] ex.reps.forEach(n => { diff --git a/src/utils/utils-custom.js b/src/utils/utils-custom.js index 501e159..734009d 100644 --- a/src/utils/utils-custom.js +++ b/src/utils/utils-custom.js @@ -3214,8 +3214,8 @@ // 鏁版嵁婧恠ql璇彞锛岄澶勭悊锛屾潈闄愰粦鍚嶅崟瀛楁璁剧疆涓洪殣钘忚〃鍗� if (['select', 'link', 'multiselect', 'radio', 'checkbox', 'checkcard'].includes(form.type) && form.resourceType === '1') { let msg = getFormSql(form, '琛ㄥ崟') - - sqls.push({uuid: form.uuid, type: 'form', ...msg}) + + sqls.push({uuid: md5(cell.uuid + form.uuid), type: 'form', ...msg}) } else if (form.type === 'popSelect') { let msg = getPopSelectSql(form) @@ -3248,7 +3248,7 @@ if (['select', 'link', 'multiselect', 'radio', 'checkbox', 'checkcard'].includes(form.type) && form.resourceType === '1') { let msg = getFormSql(form, '琛ㄥ崟') - sqls.push({uuid: form.uuid, type: 'form', ...msg}) + sqls.push({uuid: md5(cell.uuid + form.uuid), type: 'form', ...msg}) } else if (form.type === 'popSelect') { let msg = getPopSelectSql(form) diff --git a/src/views/rolemanage/index.jsx b/src/views/rolemanage/index.jsx index 5049c9c..bb9d731 100644 --- a/src/views/rolemanage/index.jsx +++ b/src/views/rolemanage/index.jsx @@ -196,10 +196,10 @@ }) if (!im) { - menus.push({nodes: '', type: 'none', extra: true, MenuID: app.instantMessage, MenuName: '鍗虫椂閫氫俊'}) + menus.push({nodes: '', type: 'none', backend: 'level1', extra: true, MenuID: app.instantMessage, MenuName: '鍗虫椂閫氫俊'}) } if (!ub) { - menus.push({nodes: '', type: 'none', extra: true, MenuID: app.userbind, MenuName: '鐢ㄦ埛缁戝畾'}) + menus.push({nodes: '', type: 'none', backend: 'level1', extra: true, MenuID: app.userbind, MenuName: '鐢ㄦ埛缁戝畾'}) } this.setState({ -- Gitblit v1.8.0