FishEye: Tag 63d7abbcb60f627929387b34e65c11fd37b95c91 refers to a dead (removed) revision in file `arms/html/reqReview/inbox.js'.
FishEye: No comparison available. Pass `N' to diff?
Index: arms/js/reqReview.js
===================================================================
diff -u -rd4cc210eef3c63f46a7de2e7f2d96b3099520225 -r63d7abbcb60f627929387b34e65c11fd37b95c91
--- arms/js/reqReview.js (.../reqReview.js) (revision d4cc210eef3c63f46a7de2e7f2d96b3099520225)
+++ arms/js/reqReview.js (.../reqReview.js) (revision 63d7abbcb60f627929387b34e65c11fd37b95c91)
@@ -1,7 +1,7 @@
// make review classify menu
-const makeClassifyMenus = function (data) {
- const reviewClassify = document.getElementById("review-classify");
- let menus = "";
+var makeClassifyMenus = function (data) {
+ var reviewClassify = document.getElementById("review-classify");
+ var menus = "";
data.forEach(
(item) =>
(menus += `
@@ -14,17 +14,20 @@
};
// make review list
-const makeReviewList = function (data) {
- const reviewList = document.getElementById("review-list");
- let list = "";
+var makeReviewList = function (data) {
+ var reviewList = document.getElementById("review-list");
+ var list = "";
data.forEach(
(item) =>
(list += `
-
+
|
- ${item.register} |
- ${item.requirements} |
- ${dateFormat(item.timestamp)} |
+ ${item.c_review_pdservice_name} |
+ ${item.c_review_sender} |
+ ${item.c_review_responder} |
+ ${item.c_review_req_name} |
+ ${item.c_review_result_state} |
+ ${dateFormat(item.c_review_creat_date)} |
`)
);
@@ -41,19 +44,19 @@
);
getJsonForPrototype("./js/reviewClassify.json", makeClassifyMenus);
- getJsonForPrototype("./js/reviewList.json", makeReviewList);
+ getJsonForPrototype("/auth-user/api/arms/reqReview/getMonitor_Without_Root.do?searchReviewer=admin", makeReviewList);
});
// reviwe click
$("#review-list").click(function (ev) {
- const row = ev.target.parentNode.dataset;
+ var row = ev.target.parentNode.dataset;
location.href = `reqReviewDetail.html?id=${row.id}`;
});
// side menu click
$("#review-classify").click(async function (ev) {
- const li = ev.target.parentNode;
- for (const item of ev.currentTarget.children) {
+ var li = ev.target.parentNode;
+ for (var item of ev.currentTarget.children) {
item.classList.remove("active");
}
@@ -63,8 +66,8 @@
// getJsonForPrototype("./js/reviewList.json", makeReviewList);
// 분류 예제 코드
- const data = await ajaxGet("./js/reviewList.json");
- const order = Number(li.dataset.order);
+ var data = await ajaxGet("./js/reviewList.json");
+ var order = Number(li.dataset.order);
makeReviewList(
order ? data.filter((item) => item.order === Number(li.dataset.order)) : data
);