修改新增錯誤

This commit is contained in:
dev02 2023-02-10 14:49:46 +08:00
parent 393a2d38d0
commit bb6b9107ee

View File

@ -410,7 +410,7 @@
cache: false, cache: false,
contentType: false, contentType: false,
processData: 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) { success: function (res) {
if (!res || res.code != "0000" || !res.data) { if (!res || res.code != "0000" || !res.data) {
@ -732,7 +732,7 @@
function selDevice() { function selDevice() {
let url = baseApiUrl + "/operation/DevList"; let url = baseApiUrl + "/operation/DevList";
let lsst = []; 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 = { sendData = {
device_area_tag: pageAct.AreaTag, device_area_tag: pageAct.AreaTag,
device_building_tag: pageAct.buiTag, device_building_tag: pageAct.buiTag,
@ -779,7 +779,8 @@
function selOpeFir() { function selOpeFir() {
let url = baseApiUrl + "/operation/OpeFirSel"; 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) { ytAjax = new YourTeam.Ajax(url, objSendData, function (res) {
if (!res || res.code != "0000" || !res.data) { if (!res || res.code != "0000" || !res.data) {
@ -809,7 +810,7 @@
filesizeBase: 1024, filesizeBase: 1024,
maxFiles: 50, maxFiles: 50,
acceptedFiles: ".pdf, .docx, .doc, .xls, .xlsm, .xlsx, .ppt, .pptx, .gif, .png, .jpg, .jpeg", 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) { accept: function (file, done) {
let fileHelper = new YourTeam.Utility.File(); let fileHelper = new YourTeam.Utility.File();
tmpGuidArr = []; tmpGuidArr = [];