From 89fb1308d92e10a27cf8f91f4dd766eb38976e12 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期四, 26 十一月 2020 21:56:42 +0800 Subject: [PATCH] 2020-11-26 --- src/tabviews/custom/index.jsx | 11 ++++++++--- 1 files changed, 8 insertions(+), 3 deletions(-) diff --git a/src/tabviews/custom/index.jsx b/src/tabviews/custom/index.jsx index bd7a621..e9ac035 100644 --- a/src/tabviews/custom/index.jsx +++ b/src/tabviews/custom/index.jsx @@ -374,7 +374,7 @@ const { config } = this.state let LText_field = [] let diffUser = false - let LText = params.map((item, index) => { + let _LText = params.map((item, index) => { let _script = item.script if (index === 0) { @@ -392,14 +392,19 @@ return `Select '${item.name}' as tablename,'${window.btoa(window.encodeURIComponent(item.sql))}' as LText,'${window.btoa(window.encodeURIComponent(_script))}' as Lcustomize,'${item.type}' as table_type,'${item.primaryKey}' as primary_key,'${item.par_tablename}' as par_tablename,'${item.foreign_key}' as foreign_key,'${index}' as Sort` }) + // 鎶婂ぇ鎺ュ彛sPC_Get_structured_data鐨刲text鎷嗘垚涓変唤锛岀涓�娈碉細@LText1锛岀浜屾@LText锛岀涓夋@LText2 let param = { func: 'sPC_Get_structured_data', - LText: LText.join(' union all '), + LText: _LText.join(' union all '), LText_field: LText_field.join(' union all '), BID: this.state.BID || '' } - param.LText = Utils.formatOptions(param.LText) + let { LText, LText1, LText2 } = Utils.sPCInUpDeFormatOptions(param.LText) + + param.LText1 = LText1 + param.LText = LText + param.LText2 = LText2 param.LText_field = Utils.formatOptions(param.LText_field) if (config.cacheUseful === 'true') { -- Gitblit v1.8.0