From a8507cc8c42d17d4fb854594dbf1e084d61912ac Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期二, 18 十月 2022 12:44:22 +0800 Subject: [PATCH] 2022-10-18 --- src/utils/utils-datamanage.js | 36 ++++++++++++++++++++++-------------- 1 files changed, 22 insertions(+), 14 deletions(-) diff --git a/src/utils/utils-datamanage.js b/src/utils/utils-datamanage.js index 2e4dedc..bcbd86f 100644 --- a/src/utils/utils-datamanage.js +++ b/src/utils/utils-datamanage.js @@ -99,9 +99,9 @@ default_sql: setting.execute ? 'true' : 'false' } - if (setting.transaction === 'true') { - param.func = 'sPC_Get_TableData_try' - } + // if (setting.transaction === 'true') { + // param.func = 'sPC_Get_TableData_try' + // } let userName = sessionStorage.getItem('User_Name') || '' let fullName = sessionStorage.getItem('Full_Name') || '' @@ -196,6 +196,10 @@ regoptions.forEach(item => { _customScript = _customScript.replace(item.reg, item.value) }) + if (window.GLOB.breakpoint) { + _customScript = _customScript.replace(/\$breakpoint_proc@/ig, window.GLOB.breakpoint) + param.func = 'sPC_Get_TableData_debug' + } } let LText = '' @@ -269,6 +273,10 @@ param.timestamp = moment().format('YYYY-MM-DD HH:mm:ss') param.secretkey = Utils.encrypt('', param.timestamp) + if (window.GLOB.probation) { + param.s_debug_type = 'Y' + } + if (window.GLOB.mkHS) { // 浜戠鏁版嵁楠岃瘉 param.open_key = Utils.encryptOpenKey(param.secretkey, param.timestamp) @@ -295,9 +303,9 @@ default_sql: setting.execute ? 'true' : 'false' } - if (setting.transaction === 'true') { - param.func = 'sPC_Get_TableData_try' - } + // if (setting.transaction === 'true') { + // param.func = 'sPC_Get_TableData_try' + // } let _dataresource = setting.dataresource let _customScript = '' @@ -792,7 +800,7 @@ foreign_key: '', sql: _dataresource, script: _customScript, - transaction: setting.transaction === 'true' + // transaction: setting.transaction === 'true' } } @@ -803,7 +811,7 @@ export function getStructuredParams (params, config, BID) { let LText_field = [] let diffUser = false - let transaction = false + // let transaction = false let loginId = `'${sessionStorage.getItem('LoginUID') || ''}'` let sessionId = `'${localStorage.getItem('SessionUid') || ''}'` let userId = `'${sessionStorage.getItem('UserID') || ''}'` @@ -815,9 +823,9 @@ if (!diffUser && (/@userid@/ig.test(item.sql) || /@userid@/ig.test(_script))) { diffUser = true } - if (item.transaction) { - transaction = true - } + // if (item.transaction) { + // transaction = true + // } _sql = _sql.replace(/@ID@/ig, `''`) _script = _script.replace(/@ID@/ig, `''`) @@ -851,9 +859,9 @@ BID: BID } - if (transaction) { - param.func = 'sPC_Get_structured_data_try' - } + // if (transaction) { + // param.func = 'sPC_Get_structured_data_try' + // } let { LText, LText1, LText2 } = Utils.sPCInUpDeFormatOptions(param.LText) -- Gitblit v1.8.0