diff --git a/FrontendWebApi/Views/EmergencyDeviceMenu/Index.cshtml b/FrontendWebApi/Views/EmergencyDeviceMenu/Index.cshtml index 9fe73ab..133df90 100644 --- a/FrontendWebApi/Views/EmergencyDeviceMenu/Index.cshtml +++ b/FrontendWebApi/Views/EmergencyDeviceMenu/Index.cshtml @@ -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(``); $('#building').append(html); - $('#building').find('button').first().click(); + if(isFirstLoad){ + $('#building').find('button').first().click(); + isFirstLoad = false; + } } else { var html = ""; diff --git a/FrontendWebApi/Views/Shared/_Layout.cshtml b/FrontendWebApi/Views/Shared/_Layout.cshtml index 993fec4..b9a3064 100644 --- a/FrontendWebApi/Views/Shared/_Layout.cshtml +++ b/FrontendWebApi/Views/Shared/_Layout.cshtml @@ -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") {