From 1ba430d58ea3fd662d09b99f6e22ed3b3564a356 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期五, 03 二月 2023 14:15:31 +0800 Subject: [PATCH] 2023-02-03 --- src/utils/utils-datamanage.js | 17 +++++++++++++---- 1 files changed, 13 insertions(+), 4 deletions(-) diff --git a/src/utils/utils-datamanage.js b/src/utils/utils-datamanage.js index eaff3d9..14883d2 100644 --- a/src/utils/utils-datamanage.js +++ b/src/utils/utils-datamanage.js @@ -64,9 +64,17 @@ param.rduri = setting.interface } } else { - if (setting.sysInterface === 'true' && window.GLOB.mainSystemApi) { - param.rduri = window.GLOB.mainSystemApi - } else if (setting.sysInterface !== 'true') { + if (setting.sysInterface === 'true') { + if (window.GLOB.mainSystemApi) { + param.rduri = window.GLOB.mainSystemApi + } + } else if (setting.sysInterface === 'external') { + if (window.GLOB.systemType === 'production') { + param.$token = setting.exProInterface || '' + } else { + param.$token = setting.exInterface || '' + } + } else { if (window.GLOB.systemType === 'production' && setting.proInterface) { param.rduri = setting.proInterface } else { @@ -725,7 +733,7 @@ * @description 鐢熸垚鍗曚釜缁勪欢sPC_Get_structured_data璇锋眰鍙傛暟 */ export function getStructDefaultParam (component, searchlist, first) { - const { columns, setting, dataName, format } = component + const { columns, setting, dataName, format, uuid } = component let arr_field = columns.map(col => col.field) let _dataresource = setting.dataresource @@ -791,6 +799,7 @@ } return { + uuid: uuid, name: dataName, $name: setting.$name, columns: columns, -- Gitblit v1.8.0