From afa3bc1e2f39f66f59ee9b15d6af16593acdc9a4 Mon Sep 17 00:00:00 2001
From: LSH
Date: 星期六, 02 十二月 2023 10:38:27 +0800
Subject: [PATCH] #
---
src/main/webapp/views/priOnline/priOnline_check.html | 14 +++++++++++---
1 files changed, 11 insertions(+), 3 deletions(-)
diff --git a/src/main/webapp/views/priOnline/priOnline_check.html b/src/main/webapp/views/priOnline/priOnline_check.html
index 21426e9..69c7596 100644
--- a/src/main/webapp/views/priOnline/priOnline_check.html
+++ b/src/main/webapp/views/priOnline/priOnline_check.html
@@ -26,6 +26,7 @@
<!-- <div><button type="button" 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>
<div id="luckysheet" style="margin:0px;padding:0px;position:absolute;width:100%;height: 100vh;left: 0px;top: 0px;"></div>
<script>
@@ -43,6 +44,8 @@
myFolderUrl: '' //宸︿笂瑙�<杩斿洖鎸夐挳鐨勯摼鎺�
}
+ let checkDataFile = "";
+
if(getUrlParams('id') == false || getUrlParams('id') == undefined){
//鏂板
luckysheet.create(options)
@@ -53,11 +56,12 @@
//淇敼
$.ajax({
type:"get",
- url: "/priOnline/viewCheck/" + getUrlParams('id') + "/auth",
+ url: baseUrl + "/priOnline/viewCheck/" + getUrlParams('id') + "/auth",
dataType:"json",
headers: {'token': localStorage.getItem('token')},
success:function(res) {
if (res.code == 200) {
+ checkDataFile = res.data.checkDataFile
options.data = unzip(res.data.checkData)
luckysheet.create(options)
$("#luckysheet_info_detail_update").hide()
@@ -83,7 +87,7 @@
if(getUrlParams('id') == false || getUrlParams('id') == undefined){
//鏂板
$.ajax({
- url: "/priOnline/add/auth",
+ url: baseUrl + "/priOnline/add/auth",
headers: {'token': localStorage.getItem('token')},
data: JSON.stringify({
title: luckysheet.toJson().title,
@@ -107,7 +111,7 @@
}else {
//淇敼
$.ajax({
- url: "/priOnline/update/auth",
+ url: baseUrl + "/priOnline/update/auth",
headers: {'token': localStorage.getItem('token')},
data: JSON.stringify({
id: getUrlParams('id'),
@@ -130,6 +134,10 @@
}
})
+ $("#download").on("click",() => {
+ window.open(baseUrl + "/priOnline/checkDataDownload/" +checkDataFile)
+ })
+
})
$("#allprint").on("click",() => {
--
Gitblit v1.9.1