[緊急應變] 依據 api 調整欄位名稱前端同步更動
This commit is contained in:
parent
54c2e9946e
commit
bddb4f19f5
@ -412,7 +412,7 @@
|
|||||||
emergencyContactTable = $("#membertable").DataTable({
|
emergencyContactTable = $("#membertable").DataTable({
|
||||||
"columns": [
|
"columns": [
|
||||||
{
|
{
|
||||||
"data": "name"
|
"data": "full_name"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"data": "departmentName"
|
"data": "departmentName"
|
||||||
@ -1613,9 +1613,9 @@
|
|||||||
var includeli = "";
|
var includeli = "";
|
||||||
$.each(rel.data, function (index, val) {
|
$.each(rel.data, function (index, val) {
|
||||||
if (index == 0) {
|
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 {
|
} 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).empty();
|
||||||
$('#hbr_' + setting).append('<h2>' + rel.data.name + '</h2>');
|
$('#hbr_' + setting).append('<h2>' + rel.data.full_name + '</h2>');
|
||||||
$('#tag_' + setting).empty();
|
$('#tag_' + setting).empty();
|
||||||
$('#tag_' + setting).append(rel.data.set_doing);
|
$('#tag_' + setting).append(rel.data.set_doing);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user