Index: arms/html/analysisResource/content-container.html =================================================================== diff -u -r67a643baa79d071515aa7e84461b96f05aa3a9a9 -r15f1d64de77ad4acf6de8c7c83b14f6382b72739 --- arms/html/analysisResource/content-container.html (.../content-container.html) (revision 67a643baa79d071515aa7e84461b96f05aa3a9a9) +++ arms/html/analysisResource/content-container.html (.../content-container.html) (revision 15f1d64de77ad4acf6de8c7c83b14f6382b72739) @@ -263,87 +263,6 @@ -
-
-
-

- - - 담당자 별 업무 처리 현황 - -

- -
-
-
- -
-
-
- - -
-
- -
-
-
- -
-
-
-
-
-
-
Index: arms/js/analysisResource.js =================================================================== diff -u -re0c033108f667053dd9863b718fafbc277e52b1a -r15f1d64de77ad4acf6de8c7c83b14f6382b72739 --- arms/js/analysisResource.js (.../analysisResource.js) (revision e0c033108f667053dd9863b718fafbc277e52b1a) +++ arms/js/analysisResource.js (.../analysisResource.js) (revision 15f1d64de77ad4acf6de8c7c83b14f6382b72739) @@ -174,7 +174,6 @@ drawProductToManSankeyChart($("#selected_pdService").val(), selectedVersionId); drawManRequirementTreeMapChart($("#selected_pdService").val(), selectedVersionId); - dataTableLoad(); } }); } @@ -213,7 +212,6 @@ //$('#multiversion').multipleSelect('refresh'); //$('#edit_multi_version').multipleSelect('refresh'); $(".multiple-select").multipleSelect("refresh"); - dataTableLoad(); ////////////////////////////////////////////////////////// } } @@ -271,198 +269,6 @@ }); } - -// -------------------- 데이터 테이블을 만드는 템플릿으로 쓰기에 적당하게 리팩토링 함. ------------------ // -function dataTableLoad() { - console.log("dataTableLoad on analysisResource"); - if (!selectedVersionId || !selectedPdServiceId) { - if ( $.fn.DataTable.isDataTable( '#analysis_resource_assignee_table' ) ) { - var table = $('#analysis_resource_assignee_table').DataTable(); - table.clear().draw(); - } - return; - } - var columnList = [ - { - name: "displayName", - title: "담당자 이름", - data: "displayName", - className: "dt-body-left", - defaultContent: "-", - visible: true, - render: function (data, type, row, meta) { - if (type === "display") { - return '"; - } - return data; - }, - }, - { - name: "requirements", - title: "요구사항", - data: "requirements", - className: "dt-body-right", - defaultContent: "-", - visible: true, - render: function (data, type, row, meta) { - if (type === "display") { - return '"; - } - return data; - }, - }, - { - name: "issues", - title: "담당 이슈", - data: "issues", - className: "dt-body-right", - defaultContent: "-", - visible: true, - render: function (data, type, row, meta) { - if (type === "display") { - return '"; - } - return data; - }, - }, - { - name: "issueTypes", - title: "이슈 유형", - data: "issueTypes", - className: "dt-body-right", - defaultContent: "-", - visible: true, - render: function (data, type, row, meta) { - const priorities = Object.entries(data) - .map(function([key, value]) { - return key + ' - ' + value; - }) - .join('
'); - if (type === "display") { - return '"; - } - return priorities; - }, - }, - { - name: "priorities", - title: "이슈 우선 순위", - data: "priorities", - className: "dt-body-right", - defaultContent: "-", - visible: true, - render: function (data, type, row, meta) { - const priorities = Object.entries(data) - .map(function([key, value]) { - return key + ' - ' + value; - }) - .join('
'); - if (type === "display") { - return '"; - } - return priorities; - }, - }, - { - name: "statuses", - title: "이슈 상태", - data: "statuses", - className: "dt-body-right", - defaultContent: "-", - visible: true, - render: function (data, type, row, meta) { - const statuses = Object.entries(data) - .map(function([key, value]) { - return key + ' - ' + value; - }) - .join('
'); - if (type === "display") { - return '"; - } - return statuses; - }, - }, - { - name: "resolutions", - title: "이슈 해결책", - data: "resolutions", - className: "dt-body-right", - defaultContent: "-", - visible: true, - render: function (data, type, row, meta) { - const resolutions = Object.entries(data) - .map(function([key, value]) { - return key + ' - ' + value; - }) - .join('
'); - if (type === "display") { - return '"; - } - return resolutions; - }, - }, - ]; - var rowsGroupList = []; - var columnDefList = []; - var selectList = {}; - var orderList = [[2, "asc"]]; - var jquerySelector = "#analysis_resource_assignee_table"; - var ajaxUrl = "/auth-user/api/arms/analysis/resource/tasks?pdServiceLink=" + selectedPdServiceId + "&pdServiceVersionLinks=" + selectedVersionId; - var jsonRoot = ""; - var isServerSide = false; - var buttonList = [ - "copy", - "excel", - "print", - { - extend: "csv", - text: "Export csv", - charset: "utf-8", - extension: ".csv", - fieldSeparator: ",", - fieldBoundary: "", - bom: true - }, - { - extend: "pdfHtml5", - orientation: "landscape", - pageSize: "LEGAL" - } - ]; - - - dataTableRef = dataTable_build( - jquerySelector, - ajaxUrl, - jsonRoot, - columnList, - rowsGroupList, - columnDefList, - selectList, - orderList, - buttonList, - isServerSide - ); - $("#copychecker").on("click", function () { - dataTableRef.button(".buttons-copy").trigger(); - }); - $("#printchecker").on("click", function () { - dataTableRef.button(".buttons-print").trigger(); - }); - $("#csvchecker").on("click", function () { - dataTableRef.button(".buttons-csv").trigger(); - }); - $("#excelchecker").on("click", function () { - dataTableRef.button(".buttons-excel").trigger(); - }); - $("#pdfchecker").on("click", function () { - dataTableRef.button(".buttons-pdf").trigger(); - }); -} - -// -------------------- 데이터 테이블을 만드는 템플릿으로 쓰기에 적당하게 리팩토링 함. ------------------ // - - function getWorkStatus(pdservice_id, pdServiceVersionLinks) { var _url = "/auth-user/api/arms/analysis/resource/workerStatus/"+pdservice_id; $.ajax({