From 7e5774ef8ca98fd05fe2bb62be08cec562784cd6 Mon Sep 17 00:00:00 2001
From: cwchen <1048842385@qq.com>
Date: Mon, 18 Nov 2024 09:55:11 +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 | 9 +++++----
js/demandPlan/delivery_list.js | 1 +
js/public.js | 11 +++++++----
3 files changed, 13 insertions(+), 8 deletions(-)
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