Index: arms/js/pdService.js =================================================================== diff -u -r3602b6fe1076c017a77fcee7f4d84d21ea3a6785 -r6368b1c5b59519123387bec721bd5a8ef5334a41 --- arms/js/pdService.js (.../pdService.js) (revision 3602b6fe1076c017a77fcee7f4d84d21ea3a6785) +++ arms/js/pdService.js (.../pdService.js) (revision 6368b1c5b59519123387bec721bd5a8ef5334a41) @@ -1,87 +1,83 @@ -{ - "name": "arms", - "version": "0.1.0", - "private": true, - "scripts": { - "serve": "vue-cli-service serve", - "build": "vue-cli-service build", - "test:unit": "vue-cli-service test:unit", - "lint": "vue-cli-service lint" - }, - "dependencies": { - "@popperjs/core": "^2.11.5", - "bootstrap": "^5.0.1", - "bootstrap-icons": "^1.9.0", - "bootstrap-vue": "^2.22.0", - "bootstrap-vue-3": "^0.1.14", - "core-js": "^3.8.3", - "popper.js": "^1.16.1", - "pretendard": "^1.3.3", - "scss-reset": "^1.2.2", - "vue": "^3.2.37", - "vue-router": "^4.1.2", - "vuex": "^4.0.0" - }, - "devDependencies": { - "@types/jest": "^27.0.1", - "@typescript-eslint/eslint-plugin": "^5.4.0", - "@typescript-eslint/parser": "^5.4.0", - "@vue/cli-plugin-babel": "~5.0.0", - "@vue/cli-plugin-eslint": "~5.0.0", - "@vue/cli-plugin-router": "~5.0.0", - "@vue/cli-plugin-typescript": "~5.0.0", - "@vue/cli-plugin-unit-jest": "~5.0.0", - "@vue/cli-plugin-vuex": "~5.0.0", - "@vue/cli-service": "~5.0.0", - "@vue/eslint-config-typescript": "^9.1.0", - "@vue/test-utils": "^2.0.0-0", - "@vue/vue3-jest": "^27.0.0-alpha.1", - "babel-jest": "^27.0.6", - "eslint": "^7.32.0", - "eslint-config-prettier": "^8.3.0", - "eslint-plugin-prettier": "^4.0.0", - "eslint-plugin-vue": "^8.0.3", - "jest": "^27.0.5", - "prettier": "^2.4.1", - "sass": "^1.32.7", - "sass-loader": "^12.0.0", - "ts-jest": "^27.0.4", - "typescript": "~4.5.5" - }, - "eslintConfig": { - "root": true, - "env": { - "node": true - }, - "extends": [ - "plugin:vue/vue3-essential", - "eslint:recommended", - "@vue/typescript/recommended", - "plugin:prettier/recommended" - ], - "parserOptions": { - "ecmaVersion": 2020 - }, - "rules": {}, - "overrides": [ - { - "files": [ - "**/__tests__/*.{j,t}s?(x)", - "**/tests/unit/**/*.spec.{j,t}s?(x)" - ], - "env": { - "jest": true - } - } - ] - }, - "browserslist": [ - "> 1%", - "last 2 versions", - "not dead", - "not ie 11" - ], - "jest": { - "preset": "@vue/cli-plugin-unit-jest/presets/typescript-and-babel" - } +$(function() { + jstreeDataTableReload(); + + $('.dataTables_length').find('select:eq(0)').addClass("darkBack"); + $('.dataTables_length').find('select:eq(0)').css('min-height','30px'); + //min-height: 30px; +}); + +$(function () { + setSideMenu(); +}); + +// 제품 상세 보기 클릭 이벤트 +$( "#selectView" ).click(function() { + location.href="pdServiceJiraListView.html"; +}); + +// --- 사이드 메뉴 설정 --- // +function setSideMenu() { + setTimeout(function(){ + $('#sidebar_menu_product').attr("class","accordion-toggle active"); + $('#sidebar_menu_product').attr("aria-expanded","true"); + $('#sidebar_menu_product').css({'color':'lightblue'}); + $('#sidebar_menu_product').css({'font-weight':'900'}); + + $('#product-elements-collapse').attr("class","panel-collapse collapse in"); + $('#product-elements-collapse').attr("aria-expanded","true"); + + $('#sidebar_menu_product_jira_list').addClass("active"); + $('#sidebar_menu_product_jira_list').css({'color':'lightblue'}); + $('#sidebar_menu_product_jira_list').css({'font-weight':'900'}); + },1000); } + +// --- 데이터 테이블 설정 --- // +function jstreeDataTableReload() { + + console.log("href: "+$(location).attr('href')); + console.log("protocol: "+$(location).attr('protocol')); + console.log("host: "+$(location).attr('host')); + console.log("pathname: "+$(location).attr('pathname')); + console.log("search: "+$(location).attr('search')); + console.log("hostname: "+$(location).attr('hostname')); + console.log("port: "+$(location).attr('port')); + + var isDevelopingToRoute = "/auth-user"; + + var tempDataTable = $('#jstreeTable').DataTable({ + "ajax": { + "url": isDevelopingToRoute + "/api/arms/pdjira/getMonitor.do", + "dataSrc": "" + }, + "destroy": true, + "processing": true, + "responsive": true, + "select": true, + "columns": [ + { "data": "c_id" }, + { "data": "c_parentid" }, + { "data": "c_position" }, + { "data": "c_left" }, + { "data": "c_right" }, + { "data": "c_level" }, + { "data": "c_title" }, + { "data": "c_type" }, + + { "data": "c_pdjira_detail" }, + { "data": "c_pdjira_con_name" }, + { "data": "c_pdjira_con_user" }, + { "data": "c_pdjira_con_pass" }, + { "data": "c_pdjira_con_token" }, + { "data": "c_pdjira_con_jql" }, + { "data": "jiraConPassMode" } + ] + }); + + $('#jstreeTable tbody').on('click', 'tr', function () { + var data = tempDataTable.row( this ).data(); + console.log(data); + //alert( 'You clicked on '+ data.c_title +'\'s row' ); + } ); + +} \ No newline at end of file