Commit f6bd51d6 by NGUYEN HOANG SON

#49161 implement cmd goChat, goSendMessage, goDistanceSupport

parent e01851a5
...@@ -7,9 +7,9 @@ CHK_Dashboard.pickupItems = [ ...@@ -7,9 +7,9 @@ CHK_Dashboard.pickupItems = [
]; ];
CHK_Dashboard.communicationItems = [ CHK_Dashboard.communicationItems = [
{id: 'messageList', href: "message-list.html", count: 0, enabled: true, img: {src: 'img/icon_message_lsit.svg'}, msg: 'messageListTitle'}, {id: 'messageList', href: "message-list.html", count: 0, enabled: true, img: {src: 'img/icon_message_lsit.svg'}, msg: 'messageListTitle'},
{id: 'sendMessage', href: "javascript:CHK_L.sendAppCommand('goSendMessage');", count: 0, enabled: true, img: {src: 'img/icon_send_message.svg'}, msg: 'sendMessageTitle'}, {id: 'sendMessage', href: "javascript:CHK.sendAppCommand('goSendMessage');", count: 0, enabled: true, img: {src: 'img/icon_send_message.svg'}, msg: 'sendMessageTitle'},
{id: 'distanceSupport', href: "javascript:CHK_L.sendAppCommand('goDistanceSupport');", count: 0, enabled: true, img: {src: 'img/icon_remote.svg'}, msg: 'distanceSupportTitle'}, {id: 'distanceSupport', href: "javascript:CHK.sendAppCommand('goDistanceSupport');", count: 0, enabled: true, img: {src: 'img/icon_remote.svg'}, msg: 'distanceSupportTitle'},
{id: 'chat', href: "javascript:CHK_L.sendAppCommand('goChat');", count: 0, enabled: false, img: {src: 'img/icon_chat.svg'}, msg: 'chatTitle'}, {id: 'chat', href: "javascript:CHK.sendAppCommand('goChat');", count: 0, enabled: false, img: {src: 'img/icon_chat.svg'}, msg: 'chatTitle'},
]; ];
CHK_Dashboard.initPickups = function() { CHK_Dashboard.initPickups = function() {
......
...@@ -224,7 +224,10 @@ CHK.apiCmd = { ...@@ -224,7 +224,10 @@ CHK.apiCmd = {
deleteProcess: "deleteProcess", deleteProcess: "deleteProcess",
changeOperationGroupMaster: "changeOperationGroupMaster", changeOperationGroupMaster: "changeOperationGroupMaster",
actionPushMessage: "actionPushMessage", actionPushMessage: "actionPushMessage",
saveJson: "saveJson" saveJson: "saveJson",
goSendMessage: "goSendMessage",
goDistanceSupport: "goDistanceSupport",
goChat: "goChat"
}; };
//CMS送信用コマンド //CMS送信用コマンド
CHK.actCmd = { CHK.actCmd = {
...@@ -3397,6 +3400,12 @@ CHK.saveJson = function(jsonFileName, jsonData) { ...@@ -3397,6 +3400,12 @@ CHK.saveJson = function(jsonFileName, jsonData) {
CHK.sendABookCheckApi(param); CHK.sendABookCheckApi(param);
} }
CHK.sendAppCommand = function (command, param) {
var apiParam = Object.assign({}, param);
apiParam.cmd = CHK.getCommand(command);
CHK.sendABookCheckApi(apiParam);
}
$(document).ready(function () { $(document).ready(function () {
var urlParam = CHK.getUrlParameter(); var urlParam = CHK.getUrlParameter();
if (typeof urlParam !== 'undefined' && typeof urlParam.lang !== 'undefined') { if (typeof urlParam !== 'undefined' && typeof urlParam.lang !== 'undefined') {
......
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