This commit is contained in:
Celeste 2023-06-06 10:34:05 +08:00
commit a8293c6798

View File

@ -89,7 +89,7 @@
<span aria-hidden="true"><i class="fal fa-times"></i></span> <span aria-hidden="true"><i class="fal fa-times"></i></span>
</button> </button>
</div> </div>
<form id="opeRecForm"> <form id="alr_opeRecForm">
<div class="modal-body"> <div class="modal-body">
<div class="row"> <div class="row">
<div class="col-md-6"> <div class="col-md-6">
@ -200,8 +200,8 @@
</div> </div>
</div> </div>
<div class="modal-footer"> <div class="modal-footer">
<button type="button" class="btn btn-secondary" id="OpeRecCanBtn" data-dismiss="modal">關閉</button> <button type="button" class="btn btn-secondary" id="alr_OpeRecCanBtn" data-dismiss="modal">關閉</button>
<button type="button" class="btn btn-primary" id="OpeRecSendBtn" e-prevent>儲存</button> <button type="button" class="btn btn-primary" id="alr_OpeRecSendBtn" e-prevent>儲存</button>
</div> </div>
</form> </form>
</div> </div>
@ -218,7 +218,7 @@
pageAct.alrSelSysSub = []; pageAct.alrSelSysSub = [];
pageAct.selAllSysSub = false; pageAct.selAllSysSub = false;
first = true; first = true;
let dataAlarm = []; // let dataAlarm = [];
var historyTable = null; var historyTable = null;
var elemIndex = 0; var elemIndex = 0;
var index = 0; var index = 0;
@ -386,8 +386,8 @@
$('#inpFixDoCode').val(alr_fixDoCode); $('#inpFixDoCode').val(alr_fixDoCode);
}); });
onEvent('click', '#OpeRecSendBtn', function () { onEvent('click', '#alr_OpeRecSendBtn', function () {
let form = $("#opeRecForm"); let form = $("#alr_opeRecForm");
$(form).validate({ $(form).validate({
rules: { rules: {
inpWorTyp: { required: true }, inpWorTyp: { required: true },
@ -441,7 +441,7 @@
} else { } else {
//toast_ok(common.AddSuc); //toast_ok(common.AddSuc);
//$("#opeFirmModal").modal("hide"); //$("#opeFirmModal").modal("hide");
$("#OpeRecCanBtn").click(); $("#alr_OpeRecCanBtn").click();
getData(); getData();
} }
} }