diff --git a/js/accessory/child/accessory_out_bound_detail.js b/js/accessory/child/accessory_out_bound_detail.js index 303351f..d91f623 100644 --- a/js/accessory/child/accessory_out_bound_detail.js +++ b/js/accessory/child/accessory_out_bound_detail.js @@ -148,17 +148,18 @@ function getPartDetails() { $('#codeValue').html(obj.code + '查看概述'); $('#type').html(obj.type === '0' ? '设备' : '工器具'); $('#applyNum').html(obj.applyNum); + let suffix = "data:image/jpeg;base64," if(obj.lyUrl){ - $('#lyUrl').html(''); + $('#lyUrl').html(''); } if(obj.zdUrl){ - $('#zdUrl').html(''); + $('#zdUrl').html(''); } if(obj.ckUrl){ - $('#lyUrl').html(''); + $('#lyUrl').html(''); } if(obj.shUrl){ - $('#shUrl').html(''); + $('#shUrl').html(''); } setFileTable(obj.fileList); if (objParam.type === '0') { // 设备 diff --git a/js/demandPlan/delivery_list.js b/js/demandPlan/delivery_list.js index 24522c8..5483fc7 100644 --- a/js/demandPlan/delivery_list.js +++ b/js/demandPlan/delivery_list.js @@ -82,6 +82,7 @@ function queryTable(type) { // 刷新页面数据 function reloadData() { reloadTable(1); + getStatistics(); } // 重载表格 diff --git a/js/public.js b/js/public.js index 922ab7e..4f42bff 100644 --- a/js/public.js +++ b/js/public.js @@ -1,10 +1,13 @@ -const dataUrl = 'http://127.0.0.1:21995/'; // 数据请求路径 +/* 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服务器预览文件 */ + +const dataUrl = 'http://192.168.0.14:21999/'; // 数据请求路径 +const fileUrl = 'http://192.168.0.14:21999/statics'; // 文件路径 +const signFileUrl = 'http://127.0.0.1:21995/statics'; // 签名文件路径 const viewFileUrl = 'http://192.168.0.14:8012/onlinePreview?url=' //14服务器预览文件 - - /* 请求 */ function ajaxRequest(url, type, data, async, beforeFn, successFn, errorFn, contentType) { $.ajax({ @@ -178,7 +181,7 @@ function getUrlParam(key) { // 预览文件 function commonViewFile(params) { - let path = fileUrl + params; + let path = fileUrl + params + "&auth=" + sessionStorage.getItem("gz-token"); let time = encrypt(Math.floor(Date.now()).toString()) window.open(viewFileUrl + path + '&token=' + encrypt(time)); } \ No newline at end of file