Commit 2af6df32 by Yujin Seo

#42180 作業一覧対応

parent af66b452
......@@ -112,7 +112,7 @@
<a class="dropdown-item" href="#">閲覧日が新しい順</a>
</div>
<a href="#" class="text-decoration-none py-2 lht-0 d-inline-block ml-3">
<a href="javascript:CHK_L.sendAppCommand('refreshContent');" class="text-decoration-none py-2 lht-0 d-inline-block ml-3">
<i class="fa fa-redo text-dark"></i>
<span class="d-none d-md-inline text-dark fs-10">
リセット
......
......@@ -118,17 +118,9 @@ CHK_L.init = function() {
if (CHK.hasAddTaskAuthority()) {
$(".addition").show();
}
});
// 作業追加区分によって表示・非表示設定
if (addReportFlg == CHK.ADD_REPORT_FLG.UNABLE) {
$("#editHeader").hide();
$("#listValues").hide();
} else {
$("#editHeader").show();
}
if (CHK.isWeb) {
$("#headerNav").show();
}
});
CHK_L.sendAppCommand("finishInit");
}
if (CHK.isWeb) {
......@@ -247,9 +239,11 @@ CHK_L.updateList = function() {
* アプリにコマンド送信
* @param {any} command
*/
CHK_L.sendAppCommand = function (command) {
CHK_L.sendAppCommand = function (command, operationId, contentId) {
var param = {};
param.cmd = CHK.getCommand(command);
param.operationId = operationId;
param.contentId = contentId;
CHK.sendABookCheckApi(param);
}
......
......@@ -48,8 +48,11 @@ CHK.jsonPath = {
};
//アプリ送信用コマンド
CHK.apiCmd = {
finishInit: "finishInit", //初期化完了
goRelationContent: "goRelationContent", //関連資料
goSetting: "goSetting", //設定
goOperation: "goOperation", //作業開始
refreshContent: "refreshContent", //新着更新
editAttached: "editAttached", //添付ファイル編集
saveAttached: "saveAttached", //添付ファイル保存
insertReport: "insertTaskReport", //作業報告保存
......@@ -244,7 +247,7 @@ CHK.init = function() {
$("#report_dialog").height($(".noTitleDialog:visible").height() - 100);
}
});
}
}
}
/**
......@@ -2644,7 +2647,7 @@ CHK.createOperationList = function(operationList) {
for (var i = 0; i < operationList.length; i++) {
var operationTR = $("<tr/>");
//TODO aタグlist.html 転移処理
var operationNameTd = $("<td class='operationId_"+ operationList[i].operationId +"'><a href='list.html' class='d-block text-black text-decoration-none mb-1'>"+ operationList[i].operationName +"</a></td>");
var operationNameTd = $("<td class='operationId_" + operationList[i].operationId + "'><a href=\"javascript:CHK_L.sendAppCommand('goOperation', '" + operationList[i].operationId + "', '" + operationList[i].contentId + "');\" class='d-block text-black text-decoration-none mb-1'>"+ operationList[i].operationName +"</a></td>");
var operationStartDateTd = $("<td/>", {class: "operationStartDate"}).text(setOperationDate(operationList[i].operationStartDate));
var operationEndDateTd = $("<td/>", {class: "operationEndDate"}).text(setOperationDate(operationList[i].operationEndDate));
var iconTd = operationList[i].operationType == CHK.OPERATION_TYPE.VTOUR ? $("<td class='p-2'> <button class='btn btn-outline-primary fs-8 py-2'>VR</button> </td>") : "";
......
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