From afa3bc1e2f39f66f59ee9b15d6af16593acdc9a4 Mon Sep 17 00:00:00 2001
From: LSH
Date: 星期六, 02 十二月 2023 10:38:27 +0800
Subject: [PATCH] #
---
src/main/webapp/views/priQuote/priQuote_detail.html | 29 +++++++++++++++--------------
1 files changed, 15 insertions(+), 14 deletions(-)
diff --git a/src/main/webapp/views/priQuote/priQuote_detail.html b/src/main/webapp/views/priQuote/priQuote_detail.html
index 6910440..109a3c2 100644
--- a/src/main/webapp/views/priQuote/priQuote_detail.html
+++ b/src/main/webapp/views/priQuote/priQuote_detail.html
@@ -27,7 +27,7 @@
<div><button type="button" class="layui-btn layui-btn-primary layui-btn-xs btn-edit" id="otherSave">鍙﹀瓨涓�</button></div>
<div><button type="button" class="layui-btn layui-btn-primary layui-btn-xs btn-edit" id="allprint">鍏ㄩ儴鎵撳嵃</button></div>
<div><button type="button" class="layui-btn layui-btn-primary layui-btn-xs btn-edit" id="print">閫夊尯鎵撳嵃</button></div>
- <div><button type="button" class="layui-btn layui-btn-primary layui-btn-xs btn-edit" id="download">涓嬭浇</button></div>
+<!-- <div><button type="button" class="layui-btn layui-btn-primary layui-btn-xs btn-edit" id="download">涓嬭浇</button></div>-->
</div>
<div id="luckysheet" style="margin:0px;padding:0px;position:absolute;width:100%;height: 100vh;left: 0px;top: 0px;"></div>
<script>
@@ -49,11 +49,10 @@
//鏂板
$.ajax({
type:"get",
- url: "../../static/js/priQuote/data.txt",
- dataType:"text",
- headers: {'token': localStorage.getItem('token')},
- success:function(res) {
- options.data = unzip(res)
+ url: baseUrl + "/static/js/priQuote/data" + getUrlParams('template') + ".txt",
+ success:function(sheetData) {
+ options.data = unzip(sheetData)
+ // options.title = getUrlParams('name')
luckysheet.create(options)
$("#luckysheet_info_detail_update").hide()
$("#luckysheet_info_detail_save").hide()
@@ -64,7 +63,7 @@
//淇敼
$.ajax({
type:"get",
- url: "/priQuote/" + getUrlParams('id') + "/auth",
+ url: baseUrl + "/priQuote/" + getUrlParams('id') + "/auth",
dataType:"json",
headers: {'token': localStorage.getItem('token')},
success:function(res) {
@@ -125,12 +124,13 @@
if(getUrlParams('id') == false || getUrlParams('id') == undefined){
//鏂板
$.ajax({
- url: "/priQuote/add/auth",
+ url: baseUrl + "/priQuote/add/auth",
headers: {'token': localStorage.getItem('token')},
data: JSON.stringify({
title: luckysheet.toJson().title,
sheetData: zip(luckysheet.getAllSheets()),
- priQuoteBudgetId: getUrlParams('priQuoteBudgetId')
+ priQuoteBudgetId: getUrlParams('priQuoteBudgetId'),
+ template: getUrlParams('template')
}),
method: 'POST',
dataType: "json",
@@ -148,7 +148,7 @@
}else {
//淇敼
$.ajax({
- url: "/priQuote/update/auth",
+ url: baseUrl + "/priQuote/update/auth",
headers: {'token': localStorage.getItem('token')},
data: JSON.stringify({
id: getUrlParams('id'),
@@ -178,7 +178,7 @@
}else {
//鍙﹀瓨
$.ajax({
- url: "/priQuote/addOther/auth",
+ url: baseUrl + "/priQuote/addOther/auth",
headers: {'token': localStorage.getItem('token')},
data: JSON.stringify({
id: getUrlParams('id'),
@@ -203,17 +203,18 @@
$("#download").on("click",() => {
$.ajax({
- url: "/priQuote/excel/downfile",
+ url: baseUrl + "/priQuote/excel/downfile",
headers: {'token': localStorage.getItem('token')},
data: JSON.stringify({
- exceldata: JSON.stringify(luckysheet.getAllSheets())
+ exceldata: JSON.stringify(luckysheet.getAllSheets()),
+ template: getUrlParams('template')
}),
method: 'POST',
dataType: "json",
contentType:'application/json;charset=UTF-8',
success: function (res) {
if(res.code == 200){
- window.open(res.msg)
+ window.open(baseUrl+res.msg)
}
}
})
--
Gitblit v1.9.1