From e360663fcf4ac8efb31e58e726a0bfde6c8d35a7 Mon Sep 17 00:00:00 2001 From: cwchen <1048842385@qq.com> Date: Sat, 16 Nov 2024 16:48:32 +0800 Subject: [PATCH] =?UTF-8?q?=E9=85=8D=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- js/accessory/child/accessory_out_bound_detail.js | 16 ++++++++++++---- js/public.js | 1 + 2 files changed, 13 insertions(+), 4 deletions(-) diff --git a/js/accessory/child/accessory_out_bound_detail.js b/js/accessory/child/accessory_out_bound_detail.js index e0fd4b5..69bb9b2 100644 --- a/js/accessory/child/accessory_out_bound_detail.js +++ b/js/accessory/child/accessory_out_bound_detail.js @@ -148,10 +148,18 @@ function getPartDetails() { $('#codeValue').html(obj.code + '查看概述'); $('#type').html(obj.type === '0' ? '设备' : '工器具'); $('#applyNum').html(obj.applyNum); - $('#lyUrl').html(''); - $('#zdUrl').html(''); - $('#ckUrl').html(''); - $('#shUrl').html(''); + if(obj.lyUrl){ + $('#lyUrl').html(''); + } + if(obj.zdUrl){ + $('#zdUrl').html(''); + } + if(obj.ckUrl){ + $('#lyUrl').html(''); + } + if(obj.shUrl){ + $('#shUrl').html(''); + } setFileTable(obj.fileList); if (objParam.type === '0') { // 设备 let html = ''; diff --git a/js/public.js b/js/public.js index 1fac67b..922ab7e 100644 --- a/js/public.js +++ b/js/public.js @@ -1,5 +1,6 @@ const dataUrl = 'http://127.0.0.1:21995/'; // 数据请求路径 const fileUrl = 'http://127.0.0.1:21995/statics'; // 文件路径 +const signFileUrl = 'http://127.0.0.1:21995/statics'; // 签名文件路径 const viewFileUrl = 'http://192.168.0.14:8012/onlinePreview?url=' //14服务器预览文件