[緊急應變] 依據 api 調整欄位名稱前端同步更動

This commit is contained in:
dev01 2023-05-22 18:24:27 +08:00
parent 54c2e9946e
commit bddb4f19f5

View File

@ -412,7 +412,7 @@
emergencyContactTable = $("#membertable").DataTable({
"columns": [
{
"data": "name"
"data": "full_name"
},
{
"data": "departmentName"
@ -1613,9 +1613,9 @@
var includeli = "";
$.each(rel.data, function (index, val) {
if (index == 0) {
includeli += '<li class="list-group-item active" id="li_' + val.emergency_guid + '" > <a class="abc" onclick="GetContentAndMakeItem(\'' + val.emergency_guid + '\',this,' + setting + ')" >' + val.name + '</a></li>';
includeli += '<li class="list-group-item active" id="li_' + val.emergency_guid + '" > <a class="abc" onclick="GetContentAndMakeItem(\'' + val.emergency_guid + '\',this,' + setting + ')" >' + val.full_name + '</a></li>';
} else {
includeli += '<li class="list-group-item" id="li_' + val.emergency_guid + '"> <a class="abc" onclick="GetContentAndMakeItem(\'' + val.emergency_guid + '\',this,' + setting + ')" >' + val.name + '</a></li>';
includeli += '<li class="list-group-item" id="li_' + val.emergency_guid + '"> <a class="abc" onclick="GetContentAndMakeItem(\'' + val.emergency_guid + '\',this,' + setting + ')" >' + val.full_name + '</a></li>';
}
});
@ -1678,7 +1678,7 @@
}
$('#hbr_' + setting).empty();
$('#hbr_' + setting).append('<h2>' + rel.data.name + '</h2>');
$('#hbr_' + setting).append('<h2>' + rel.data.full_name + '</h2>');
$('#tag_' + setting).empty();
$('#tag_' + setting).append(rel.data.set_doing);