diff --git a/frontend/src/modules/channelMgt/router/index.js b/frontend/src/modules/channelMgt/router/index.js index ce3d060..8932443 100644 --- a/frontend/src/modules/channelMgt/router/index.js +++ b/frontend/src/modules/channelMgt/router/index.js @@ -1,12 +1,12 @@ -import TmpltList from '../views/TmpltList' - -export default [ - { - path: '/channelMgt/tmpltList', - component: TmpltList, - name: 'tmpltList', - meta: { public: true } - }, - -] - +import TmpltList from '../views/TmpltList' + +export default [ + { + path: '/channelMgt/tmpltList', + component: TmpltList, + name: 'tmpltList', + meta: { public: true } + }, + +] + diff --git a/frontend/src/modules/channelMgt/service/channelMgtApi.js b/frontend/src/modules/channelMgt/service/channelMgtApi.js new file mode 100644 index 0000000..1494529 --- /dev/null +++ b/frontend/src/modules/channelMgt/service/channelMgtApi.js @@ -0,0 +1,34 @@ +import httpClient from '@/common/http-client'; +import channelListExcelHeader from './mock/channelListExcelHeader.json'; + +// 공통 코드. +const getCommCode = (params) => { + return httpClient.post('/api/v1/bo/comm/getCode', params, { withCredentials: false }); +} + +// 청약정보 엑셀다운로드 목록 조회 +const tmpltListExcel = (params) => { + return httpClient.post('/api/v1/bo/channelMgt/tmpltListExcel', params); +} + +const getExcelHeader = category => { + // 엑셀에 출력할 Header 정보를 Mockup 데이터로 관리한다. + return new Promise(function(resolve, reject) { + let header = []; + switch (category) { + case 'CHANN': + header = channelListExcelHeader.header; + break; + default: + header = ''; + break; + } + resolve(header); + }); +}; + +export default { + getCommCode, + tmpltListExcel, + getExcelHeader, +} diff --git a/frontend/src/modules/channelMgt/service/mock/channelListExcelHeader.json b/frontend/src/modules/channelMgt/service/mock/channelListExcelHeader.json new file mode 100644 index 0000000..6405901 --- /dev/null +++ b/frontend/src/modules/channelMgt/service/mock/channelListExcelHeader.json @@ -0,0 +1,38 @@ +{ + "header": [ + [ + { + "key": "no", + "name": "NO" + }, + { + "key": "bregNo", + "name": "사업자번호" + }, + { + "key": "tmpltCd", + "name": "템플릿코드" + }, + { + "key": "tmpltNm", + "name": "템플릿명" + }, + { + "key": "tmpltType", + "name": "템플릿유형" + }, + { + "key": "stat", + "name": "상태" + }, + { + "key": "sendProfile", + "name": "발신프로필" + }, + { + "key": "lastChgDt", + "name": "최종수정일" + } + ] + ] +} diff --git a/frontend/src/modules/channelMgt/views/TmpltList.vue b/frontend/src/modules/channelMgt/views/TmpltList.vue index ded2b06..37beb33 100644 --- a/frontend/src/modules/channelMgt/views/TmpltList.vue +++ b/frontend/src/modules/channelMgt/views/TmpltList.vue @@ -1,165 +1,336 @@ - - - \ No newline at end of file diff --git a/frontend/src/modules/custMgt/components/AdminNmPop.vue b/frontend/src/modules/custMgt/components/AdminNmPop.vue index d79bb24..7dc0562 100644 --- a/frontend/src/modules/custMgt/components/AdminNmPop.vue +++ b/frontend/src/modules/custMgt/components/AdminNmPop.vue @@ -1,5 +1,5 @@