[前端][緊急應變] 點擊災害類別影響棟別全選按鈕問題修正 | [Layout] 取得警戒值設定值擊設定警戒值 api 相對路徑調整
This commit is contained in:
parent
c1ba5c1a4d
commit
aee4a2df94
@ -360,7 +360,7 @@
|
|||||||
var Verifybool = false; //-驗證成功
|
var Verifybool = false; //-驗證成功
|
||||||
var CloseVerify = false;
|
var CloseVerify = false;
|
||||||
var ToVerifyType = 0;
|
var ToVerifyType = 0;
|
||||||
|
var isFirstLoad = true;
|
||||||
$(function () {
|
$(function () {
|
||||||
$("#emergency-item-form").submit((e) => {
|
$("#emergency-item-form").submit((e) => {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
@ -457,7 +457,7 @@
|
|||||||
SmsMemberTable = $("#smsMemberTable").DataTable({
|
SmsMemberTable = $("#smsMemberTable").DataTable({
|
||||||
"columns": [
|
"columns": [
|
||||||
{
|
{
|
||||||
"data": "name"
|
"data": "full_name"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"data": "departmentName"
|
"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(`<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').append(html);
|
||||||
|
|
||||||
$('#building').find('button').first().click();
|
if(isFirstLoad){
|
||||||
|
$('#building').find('button').first().click();
|
||||||
|
isFirstLoad = false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
var html = "";
|
var html = "";
|
||||||
|
@ -1009,7 +1009,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
function getWarningValue(){
|
function getWarningValue(){
|
||||||
let url = "api/WarningValue/GetWarningValue";
|
let url = "/api/WarningValue/GetWarningValue";
|
||||||
|
|
||||||
$.post(url, {}, function (rel) {
|
$.post(url, {}, function (rel) {
|
||||||
if (rel.code != "0000") {
|
if (rel.code != "0000") {
|
||||||
@ -1049,7 +1049,7 @@
|
|||||||
]
|
]
|
||||||
};
|
};
|
||||||
|
|
||||||
let url = "api/WarningValue/SetWarningValue";
|
let url = "/api/WarningValue/SetWarningValue";
|
||||||
|
|
||||||
$.post(url, sendData, function (rel) {
|
$.post(url, sendData, function (rel) {
|
||||||
if (rel.code != "0000") {
|
if (rel.code != "0000") {
|
||||||
|
Loading…
Reference in New Issue
Block a user