[前端][緊急應變] 點擊災害類別影響棟別全選按鈕問題修正 | [Layout] 取得警戒值設定值擊設定警戒值 api 相對路徑調整

This commit is contained in:
dev01 2023-11-13 18:24:11 +08:00
parent c1ba5c1a4d
commit aee4a2df94
2 changed files with 8 additions and 5 deletions

View File

@ -360,7 +360,7 @@
var Verifybool = false; //-驗證成功
var CloseVerify = false;
var ToVerifyType = 0;
var isFirstLoad = true;
$(function () {
$("#emergency-item-form").submit((e) => {
e.preventDefault();
@ -457,7 +457,7 @@
SmsMemberTable = $("#smsMemberTable").DataTable({
"columns": [
{
"data": "name"
"data": "full_name"
},
{
"data": "departmentName"
@ -975,7 +975,10 @@
$('#building').append(`<button type="button" class="btn btn-secondary waves-effect waves-themed d-inline-block ml-2 all-btn" onclick="AllBuilding()"> 全選 </button>`);
$('#building').append(html);
$('#building').find('button').first().click();
if(isFirstLoad){
$('#building').find('button').first().click();
isFirstLoad = false;
}
}
else {
var html = "";

View File

@ -1009,7 +1009,7 @@
}
function getWarningValue(){
let url = "api/WarningValue/GetWarningValue";
let url = "/api/WarningValue/GetWarningValue";
$.post(url, {}, function (rel) {
if (rel.code != "0000") {
@ -1049,7 +1049,7 @@
]
};
let url = "api/WarningValue/SetWarningValue";
let url = "/api/WarningValue/SetWarningValue";
$.post(url, sendData, function (rel) {
if (rel.code != "0000") {