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/tabviews/basetable/index.jsx | 26 +++++++++++++++++++++----- 1 files changed, 21 insertions(+), 5 deletions(-) diff --git a/src/tabviews/basetable/index.jsx b/src/tabviews/basetable/index.jsx index ea98f50..9af687c 100644 --- a/src/tabviews/basetable/index.jsx +++ b/src/tabviews/basetable/index.jsx @@ -2,6 +2,7 @@ import PropTypes from 'prop-types' import { is, fromJS } from 'immutable' import { notification, Spin, Row, Col } from 'antd' +import md5 from 'md5' import Api from '@/api' import Utils from '@/utils/utils.js' @@ -173,6 +174,21 @@ } window.GLOB.CacheData.set(MenuID, urlparam) + + if (window.backend && config.allSqls) { + let keys = Object.keys(urlparam) + config.allSqls.forEach(item => { + item.id = md5(window.GLOB.appkey + item.v_id) + if (item.type === 'datasource' || item.type === 'excelOut') { + item.urlkeys = keys + item.urlparam = urlparam + if (config.flow_code) { + item.works_flow_code = config.flow_code + } + } + window.GLOB.CacheData.set('sql_' + item.uuid, item) + }) + } let userName = sessionStorage.getItem('User_Name') || '' let fullName = sessionStorage.getItem('Full_Name') || '' @@ -505,14 +521,12 @@ 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) { if (cell.verify.invalid === 'true') { - if (item.wrap && (item.wrap.datatype === 'static' || item.wrap.datatype === 'public')) { - cell.verify.invalid = 'false' - } else if (item.setting && item.setting.maxScript && item.setting.maxScript >= 300) { + if (item.setting && item.setting.maxScript && item.setting.maxScript >= 300) { cell.verify.invalid = 'false' } else if (cell.intertype !== 'system' && cell.procMode !== 'system') { cell.verify.invalid = 'false' @@ -628,6 +642,8 @@ return component } + component.setting.uuid = component.uuid + let _customScript = '' let _tailScript = '' component.scripts && component.scripts.forEach(script => { @@ -679,7 +695,7 @@ component.forbidLine = true } - component.setting.delay = delay + component.setting.delay = delay + (component.setting.delay || 0) delay += 20 return component -- Gitblit v1.8.0