From bb6b9107ee76f1fcc8479804df53a55d583a4455 Mon Sep 17 00:00:00 2001 From: dev02 Date: Fri, 10 Feb 2023 14:49:46 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=96=B0=E5=A2=9E=E9=8C=AF?= =?UTF-8?q?=E8=AA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Frontend/_alert.html | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/Frontend/_alert.html b/Frontend/_alert.html index 49e56e1..6d9611b 100644 --- a/Frontend/_alert.html +++ b/Frontend/_alert.html @@ -410,7 +410,7 @@ cache: false, contentType: false, processData: false, - beforeSend: function (xhr) { xhr.setRequestHeader('Authorization', "Bearer " + localStorage.getItem("JWT-Authorization")) }, + beforeSend: function (xhr) { xhr.setRequestHeader('Authorization', "Bearer " + cookies.get("JWT-Authorization")) }, success: function (res) { if (!res || res.code != "0000" || !res.data) { @@ -732,7 +732,7 @@ function selDevice() { let url = baseApiUrl + "/operation/DevList"; let lsst = []; - $('a[data-type=alr_sub]').map(function (i, v) { lsst.push($(v).prop('id')); }); + $('input[data-type=sub]').map(function (i, v) { lsst.push($(v).prop('id')); }); sendData = { device_area_tag: pageAct.AreaTag, device_building_tag: pageAct.buiTag, @@ -779,7 +779,8 @@ function selOpeFir() { let url = baseApiUrl + "/operation/OpeFirSel"; - objSendData.Data = { sub_system_tag: $('a[data-type=alr_sub].btn-info').map(function (i, v) { return $(v).prop('id'); }).toArray() }; + objSendData.Data = { sub_system_tag: $('input[data-type=sub]').map(function (i, v) { return $(v).prop('id'); }).toArray() }; + console.log(objSendData.Data) ytAjax = new YourTeam.Ajax(url, objSendData, function (res) { if (!res || res.code != "0000" || !res.data) { @@ -809,7 +810,7 @@ filesizeBase: 1024, maxFiles: 50, acceptedFiles: ".pdf, .docx, .doc, .xls, .xlsm, .xlsx, .ppt, .pptx, .gif, .png, .jpg, .jpeg", - headers: { "Authorization": 'Bearer ' + localStorage.getItem("JWT-Authorization") }, + headers: { "Authorization": 'Bearer ' + cookies.get("JWT-Authorization") }, accept: function (file, done) { let fileHelper = new YourTeam.Utility.File(); tmpGuidArr = [];