From a57112aee7438f4f550d1dd5a1b93e2a28fb386c Mon Sep 17 00:00:00 2001
From: LSH
Date: 星期五, 24 十一月 2023 17:09:21 +0800
Subject: [PATCH] #
---
src/main/webapp/static/js/priQuote/priQuote.js | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/src/main/webapp/static/js/priQuote/priQuote.js b/src/main/webapp/static/js/priQuote/priQuote.js
index de1e37b..7343138 100644
--- a/src/main/webapp/static/js/priQuote/priQuote.js
+++ b/src/main/webapp/static/js/priQuote/priQuote.js
@@ -214,13 +214,12 @@
$("#upload-filename-id-" + file.lastModified).html(filename)
let token = localStorage.getItem("token");
$.ajax({
- url: baseUrl+"/plan/insert/file/auth",
+ url: baseUrl+"/pri/quote/url/insert/file/auth",
headers: {'token': localStorage.getItem('token')},
data: {
'planId': $('.layui-layer-title').text(),
'filename': filename,
- 'filesize': file.size,
- 'token': token
+ 'filesize': file.size
},
method: 'POST',
success: function (res) {
@@ -464,12 +463,13 @@
console.log(data)
layer.open({
type: 1,
- title: '涓婁紶鏂囦欢-'+data.itemId,
+ title: '涓婁紶鏂囦欢-'+data.itemId+'-'+data.id,
content: $('#myModal')
});
// 鑾峰彇璺緞涓嬬殑鏂囦欢鍒楄〃锛屼娇鐢� jQuery 鐨� ajax 鏂规硶
$.ajax({
- url: '/plan/view/file/auth',
+ url: '/pri/quote/url/view/file/auth',
+ headers: {'token': localStorage.getItem('token')},
data:{
planId:data.itemId
},
--
Gitblit v1.9.1