From 479856d9964ebe0cf39e182dd0035a42e4a80c9c Mon Sep 17 00:00:00 2001
From: Junjie <fallin.jie@qq.com>
Date: 星期五, 08 九月 2023 12:50:13 +0800
Subject: [PATCH] #

---
 src/main/webapp/views/priQuote/priQuote_detail.html |   17 +++++++++--------
 1 files changed, 9 insertions(+), 8 deletions(-)

diff --git a/src/main/webapp/views/priQuote/priQuote_detail.html b/src/main/webapp/views/priQuote/priQuote_detail.html
index d9dde19..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: baseUrl + "/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()
@@ -130,7 +129,8 @@
           data: JSON.stringify({
             title: luckysheet.toJson().title,
             sheetData: zip(luckysheet.getAllSheets()),
-            priQuoteBudgetId: getUrlParams('priQuoteBudgetId')
+            priQuoteBudgetId: getUrlParams('priQuoteBudgetId'),
+            template: getUrlParams('template')
           }),
           method: 'POST',
           dataType: "json",
@@ -206,7 +206,8 @@
         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",

--
Gitblit v1.9.1