From b0f13bc3f1fb43200a356fbb3e892bf05ea7babf Mon Sep 17 00:00:00 2001 From: Fang_Zhijian Date: Tue, 24 Feb 2026 16:15:42 +0800 Subject: [PATCH] fix bug --- iframe/export.html | 7 +- iframe/import.html | 1060 ++++++++++++++++++++++-------------------- iframe/newLeye.html | 1085 ++++++++++++++++++++++++------------------- 3 files changed, 1167 insertions(+), 985 deletions(-) diff --git a/iframe/export.html b/iframe/export.html index b92dc8d..6540536 100644 --- a/iframe/export.html +++ b/iframe/export.html @@ -267,7 +267,8 @@ let detail = { name: '-', value: '-', footprint: '-', brand: '-', designatorStr: '手动添加', selected: false }; if (devs[0]) { - const infoRes = await eda.sys_ClientUrl.request('https://client/api/v2/devices/' + devs[0].uuid, 'GET', null, { + const EDA_HOST = eda.sys_Environment.isClient() ? 'https://client' : 'https://pro.lceda.cn'; + const infoRes = await eda.sys_ClientUrl.request(EDA_HOST + '/api/v2/devices/' + devs[0].uuid, 'GET', null, { headers: { path: '0819f05c4eef4c71ace90d822a990e87' }, }); const info = (await infoRes.json()).result; @@ -295,8 +296,8 @@ return eda.sys_Message.showToastMessage('请先勾选要出库的器件', ESYS_ToastMessageType.WARNING); } - const SERVER = (await eda.sys_Storage.getExtensionUserConfig('server-host')) || 'http://localhost:21816'; - const AUTO_RUN = (await eda.sys_Storage.getExtensionUserConfig('server-auto-run')) || true; + const SERVER = (await eda.sys_Storage.getExtensionUserConfig('server-host')) ?? 'http://localhost:21816'; + const AUTO_RUN = (await eda.sys_Storage.getExtensionUserConfig('server-auto-run')) ?? true; let successCount = 0; let failItems = []; diff --git a/iframe/import.html b/iframe/import.html index 213ecc6..c901cf9 100644 --- a/iframe/import.html +++ b/iframe/import.html @@ -1,142 +1,202 @@ - - - - 器件入库 - LEYE - - - - - - - - -
-
-
- 立创商城订单导入 - - - - -
-
- 立创商城编号导入 - - - -
-
+ + + + 器件入库 - LEYE + + + + + + + + +
+
+
+ 立创商城订单导入 + + + + +
+
+ 立创商城编号导入 + + + +
+
-
-
- - -
-
- 待入库项:0 -
-
- -
-
- - - - - - - - - - - - - - - - - -
选择型号类型封装品牌入库数量CID操作
列表为空,请从上方导入数据
-
-
- -
- - -
- -