Commit bb12f258 by NGUYEN HOANG SON

implement message detail lang, data

parent f4f4ccb9
...@@ -54,6 +54,10 @@ ...@@ -54,6 +54,10 @@
"chatTitle":"Chat", "chatTitle":"Chat",
"makeDashboardAsHome":"Make dashboard your home screen", "makeDashboardAsHome":"Make dashboard your home screen",
"btnKeep":"Keep", "btnKeep":"Keep",
"messageListEmpty":"No Messages" "messageListEmpty":"No Messages",
"messageDetail":"Message Details",
"operationName":"Operation Name",
"sendDate":"Send Date",
"sender":"Sender",
"content":"Content"
} }
\ No newline at end of file
...@@ -54,5 +54,10 @@ ...@@ -54,5 +54,10 @@
"chatTitle":"チャット", "chatTitle":"チャット",
"makeDashboardAsHome":"ダッシュボードをホーム画面にする", "makeDashboardAsHome":"ダッシュボードをホーム画面にする",
"btnKeep":"保存", "btnKeep":"保存",
"messageListEmpty":"メッセージがありません。" "messageListEmpty":"メッセージがありません。",
"messageDetail":"メッセージ詳細",
"operationName":"作業名",
"sendDate":"送信日時",
"sender":"送信者",
"content":"内容"
} }
\ No newline at end of file
...@@ -54,5 +54,10 @@ ...@@ -54,5 +54,10 @@
"chatTitle":"Chat", "chatTitle":"Chat",
"makeDashboardAsHome":"Make dashboard your home screen", "makeDashboardAsHome":"Make dashboard your home screen",
"btnKeep":"Keep", "btnKeep":"Keep",
"messageListEmpty":"No Messages" "messageListEmpty":"No Messages",
"messageDetail":"Message Details",
"operationName":"Operation Name",
"sendDate":"Send Date",
"sender":"Sender",
"content":"Content"
} }
\ No newline at end of file
...@@ -41,12 +41,12 @@ ...@@ -41,12 +41,12 @@
<ol class="breadcrumb px-0 mb-0"> <ol class="breadcrumb px-0 mb-0">
<li class="breadcrumb-item"><a href="dashboard.html" class="text-decoration-none text-underline lang" lang="dashboard"></a></li> <li class="breadcrumb-item"><a href="dashboard.html" class="text-decoration-none text-underline lang" lang="dashboard"></a></li>
<li class="breadcrumb-item"><a href="message-list.html" class="text-decoration-none text-underline lang" lang="messageListTitle"></a></li> <li class="breadcrumb-item"><a href="message-list.html" class="text-decoration-none text-underline lang" lang="messageListTitle"></a></li>
<li class="breadcrumb-item active" aria-current="page"><span>メッセージ詳細</span></li> <li class="breadcrumb-item active lang" lang="messageDetail" aria-current="page"><span></span></li>
</ol> </ol>
</nav> </nav>
<!-- title --> <!-- title -->
<h1 class="fs-14 font-weight-bold pt-sm-4 pt-2 pb-3 mb-0">メッセージ詳細</h1> <h1 class="fs-14 font-weight-bold pt-sm-4 pt-2 pb-3 mb-0 lang" lang="messageDetail"></h1>
<!-- message detail --> <!-- message detail -->
<div class="row"> <div class="row">
...@@ -58,20 +58,20 @@ ...@@ -58,20 +58,20 @@
</colgroup> </colgroup>
<tbody> <tbody>
<tr class="border-bottom"> <tr class="border-bottom">
<th class="fs-9 p-2 text-secondary">作業名</th> <th class="fs-9 p-2 text-secondary lang" lang="operationName"></th>
<td class="p-2">絞り検索</td> <td class="p-2" id="operationName"></td>
</tr> </tr>
<tr class="border-bottom"> <tr class="border-bottom">
<th class="fs-9 p-2 text-secondary">送信日時</th> <th class="fs-9 p-2 text-secondary lang" lang="sendDate"></th>
<td class="p-2">2022/07/06 14:14</td> <td class="p-2" id="sendDate"></td>
</tr> </tr>
<tr class="border-bottom"> <tr class="border-bottom">
<th class="fs-9 p-2 text-secondary">送信者</th> <th class="fs-9 p-2 text-secondary lang" lang="sender"></th>
<td class="p-2">agentec</td> <td class="p-2" id="sender"></td>
</tr> </tr>
<tr class="border-bottom"> <tr class="border-bottom">
<th class="fs-9 p-2 text-secondary">内容</th> <th class="fs-9 p-2 text-secondary lang" lang="content"></th>
<td class="p-2">内容が入ります。内容が入ります。内容が入ります。内容が入ります。内容が入ります。内容が入ります。内容が入ります。内容が入ります。内容が入ります。内容が入ります。内容が入ります。内容が入ります。内容が入ります。内容が入ります。</td> <td class="p-2" id="content"></td>
</tr> </tr>
</tbody> </tbody>
</table> </table>
......
...@@ -2,23 +2,22 @@ var PushMessageDetail = {}; ...@@ -2,23 +2,22 @@ var PushMessageDetail = {};
PushMessageDetail.baseApiUrl = CONSTANT.URL.CMS.BASE + ClientData.userInfo_accountPath() + CONSTANT.URL.CMS.API.BASE + 'pushMessageDetail/'; PushMessageDetail.baseApiUrl = CONSTANT.URL.CMS.BASE + ClientData.userInfo_accountPath() + CONSTANT.URL.CMS.API.BASE + 'pushMessageDetail/';
// msgMap.messageDetailTopTitle = {ja:"プッシュメッセージ詳細", ko:"푸시 메시지 상세", en:"Push message details"}; PushMessageDetail.dummyMessageDetailJson = {
// msgMap.messageDetailHeaderTitle = {ja:"メッセージ詳細", ko:"메시지 상세", en:"Message Details"}; pushMessage: "内容が入ります。内容が入ります。内容が入ります。内容が入ります。",
// msgMap.messageDetailContentTitle = {ja:"件名", ko:"내용", en:"Content"}; pushSendDate: "2022/07/06 14:14",
// msgMap.messageDetailSendDateTitle = {ja:"日時", ko:"일시", en:"Send Date"}; operationName: "絞り検索",
// msgMap.messageDetailWorkingNameTitle = {ja:"作業名", ko:"작업명", en:"Operation Name"}; pushSendLoginId: "agentec"
// msgMap.messageDetailSenderTitle = {ja:"送信者", ko:"송신자", en:"Sender"}; }
PushMessageDetail.init = function() { PushMessageDetail.init = function() {
$("#includedHeader").load("../common/header.html" , function() { $("#includedHeader").load("../common/header.html" , function() {
I18N.initi18n(); I18N.initi18n();
}); });
var urlParam = CHK.getUrlParameter(); let urlParam = COMMON.getUrlParameter();
if (typeof urlParam !== 'object' || typeof urlParam.pushMessageId === 'undefined') { if (typeof urlParam !== 'object' || typeof urlParam.pushMessageId === 'undefined') {
return; return;
} }
let messageId = urlParam.pushMessageId; PushMessageDetail.getMessageDetail(urlParam.pushMessageId, function(message) {
PushMessageDetail.getMessageDetail(messageId, function(message) {
PushMessageDetail.showMessage(message); PushMessageDetail.showMessage(message);
}); });
} }
...@@ -42,13 +41,8 @@ PushMessageDetail.getMessageDetail = function(pushMessageId, callback) { ...@@ -42,13 +41,8 @@ PushMessageDetail.getMessageDetail = function(pushMessageId, callback) {
} }
PushMessageDetail.showMessage = function(message) { PushMessageDetail.showMessage = function(message) {
$('#messageDetail #message').text(message.pushMessage); $('#content').text(message.pushMessage);
var mDate = message.pushSendDate; $('#sendDate').text(message.pushSendDate);
if (CHK.isAndroid) $('#operationName').text(message.operationName);
{ $('#sender').text(message.pushSendLoginId);
mDate = CHK.getFormatDate(new Date(message.pushSendDate));
}
$('#messageDetail #sendDate').text(mDate);
$('#messageDetail #operationName').text(message.operationName);
$('#messageDetail #sender').text(message.pushSendLoginId);
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment