Index: reference/jquery-plugins/select2-4.0.13/src/scss/theme/default/layout.scss
===================================================================
diff -u -rc35a63105db81b700e17e7645750c108f14c62db -r73aa765b7fe9f5ab0a7ac2bb673d5e6f1d27a86e
--- reference/jquery-plugins/select2-4.0.13/src/scss/theme/default/layout.scss (.../layout.scss) (revision c35a63105db81b700e17e7645750c108f14c62db)
+++ reference/jquery-plugins/select2-4.0.13/src/scss/theme/default/layout.scss (.../layout.scss) (revision 73aa765b7fe9f5ab0a7ac2bb673d5e6f1d27a86e)
@@ -759,6 +759,9 @@
});
jSuccess("Product(service) Data Load Complete");
$(jQueryElementID).jstree("search", $("#text").val());
+ if (typeof changeMultipleSelected === "function") {
+ changeMultipleSelected();
+ }
}
}
},
@@ -1000,13 +1003,13 @@
function mappingStateIcon(key) {
if (key === "열림") {
- return '';
+ return '';
} else if (key === "진행중") {
- return '';
+ return '';
} else if (key === "해결됨") {
- return '';
+ return '';
} else if (key === "닫힘") {
- return '';
+ return '';
}
return ''; // 기본적으로 빈 문자열 반환
}
Index: arms/js/reqAdd.js
===================================================================
diff -u -r9fd0099710d13e4279837b36db89cf1f5fc54d85 -r73aa765b7fe9f5ab0a7ac2bb673d5e6f1d27a86e
--- arms/js/reqAdd.js (.../reqAdd.js) (revision 9fd0099710d13e4279837b36db89cf1f5fc54d85)
+++ arms/js/reqAdd.js (.../reqAdd.js) (revision 73aa765b7fe9f5ab0a7ac2bb673d5e6f1d27a86e)
@@ -275,7 +275,9 @@
$(this)
.find("a i")
.each(function () {
- $(this).replaceWith(" ");
+ if (!$(this).hasClass('status-icon')) { // 요구사항 상태 아이콘은 초기화에서 제외
+ $(this).replaceWith(" ");
+ }
});
});
@@ -294,54 +296,62 @@
// version 정보를 매치 해서 대상 요구사항 이슈 c_id 를 받아오는 로직이 필요.
console.log("select pdservice:: " + $("#selected_pdService").val());
- $.ajax({
- url: "/auth-user/api/arms/reqAdd/T_ARMS_REQADD_" +
- $("#selected_pdService").val() +
- "/getReqAddListByFilter.do?c_req_pdservice_versionset_link=" +
- result_cids,
- type: "GET",
- dataType: "json",
- progress: true,
- statusCode: {
- 200: function (data) {
- var appIds = [];
- var loopCount = data.length;
- for (var i = 0; i < loopCount; i++) {
- appIds.push(data[i].c_id);
- }
- console.log(appIds);
- var mappedApps = [];
- for (var appId of appIds) {
- $("#req_tree #node_2 ul li").each(function (a, item) {
- $(this)
- .find("a i")
- .each(function () {
- $(this).replaceWith(" ");
- });
- console.log(
- "[ reqAdd :: changeMultipleSelected ] :: version node value = " +
- item.id.substring(item.id.indexOf("_") + 1)
- );
- console.log("[ reqAdd :: changeMultipleSelected ] :: version filterNode value = " + appId);
- if (item.id.substring(item.id.indexOf("_") + 1) == appId) {
- mappedApps.push($(this));
- return false;
- }
- });
- }
+ if(result_cids != ''){ // 아무 버전도 선택 하지 않을 경우 처리 아이콘 초기화 까지만 수행
+ $.ajax({
+ url: "/auth-user/api/arms/reqAdd/T_ARMS_REQADD_" +
+ $("#selected_pdService").val() +
+ "/getReqAddListByFilter.do?c_req_pdservice_versionset_link=" +
+ result_cids,
+ type: "GET",
+ dataType: "json",
+ progress: true,
+ statusCode: {
+ 200: function (data) {
+ console.log(data);
+ var appIds = [];
+ var loopCount = data.length;
+ for (var i = 0; i < loopCount; i++) {
+ if(data[i].attr.rel != 'folder'){
+ appIds.push(data[i].c_id); // 조회해온 노드 아이디
+ }
+ }
+ console.log(appIds);
+ var mappedApps = [];
+ for (var appId of appIds) {
+ $("#req_tree #node_2 ul li").each(function (a, item) {
+ $(this)
+ .find("a i")
+ .each(function () {
+ if (!$(this).hasClass('status-icon')) { // 상태 아이콘 제외
+ $(this).replaceWith(" ");
+ }
+ });
+ console.log(
+ "[ reqAdd :: changeMultipleSelected ] :: version node value = " +
+ item.id.substring(item.id.indexOf("_") + 1)
+ );
+ console.log("[ reqAdd :: changeMultipleSelected ] :: version filterNode value = " + appId);
+ if (item.id.substring(item.id.indexOf("_") + 1) == appId) {
+ mappedApps.push($(this));
+ return false;
+ }
+ });
+ }
- console.log(" mappedApps::: " + mappedApps);
- for (var mappedApp of mappedApps) {
- mappedApp.find("a ins").each(function () {
- $(this).replaceWith(" ");
- });
- }
- }
- },
- error: function (e) {
- jError("버전 조회 중 에러가 발생했습니다.");
- }
- });
+ console.log(" mappedApps::: " + mappedApps);
+ for (var mappedApp of mappedApps) {
+ mappedApp.find("a ins").each(function () {
+ $(this).replaceWith(" ");
+ });
+ }
+ }
+ },
+ error: function (e) {
+ jError("버전 조회 중 에러가 발생했습니다.");
+ }
+ });
+
+ }
}
////////////////////////////////////////////////////////////////////////////////////////