<template>
  <div class="content overflow-y">
    <div class="admin-page-title point-font2 mb30">
      <p>데이터전환 처리</p>
    </div>   
    <div class="table-zone">
      <table class="list-table mb10 admin-list complex-table">
          <colgroup>
              <col v-for="(w, idx) in colgroup" :width="w" :key="idx" />
          </colgroup>
          <thead>
              <tr>
                  <th>전환 프로그램 실행</th>
                  <th>ASIS 테이블명</th>
                  <th>ASIS ROW수</th>
                  <th>TOBE 테이블명</th>
                  <th>TOBE ROW수</th>
                  <th>성공여부</th>
              </tr>          
          </thead>
          <tbody>
            <!-- 파일 이관 -->
              <tr>
                <td class="text-ct pd5"><button class="large-btn blue-btn pd5" style="width:60%" @click="transFileMng()" >공통파일관리</button></td>
                <td class="text-lt pd5"><div class="gd-1 pl0 pr0">cmmn_file(공통파일관리)</div></td>
                <td class="text-rg pd5"><div class="gd-1 pl0 pr0">{{resultModel[0].asisRows}}</div></td>
                <td class="text-lt pd5"><div class="gd-1 pl0 pr0">isc_com_file_mng(공통파일관리)</div></td>
                <td class="text-rg pd5"><div class="gd-1 pl0 pr0">{{resultModel[0].tobeRows}}</div></td>
                <td class="text-ct pd5"><div class="gd-1 pl0 pr0">{{resultModel[0].resultCn}}</div></td>
              </tr>
              <tr>
                <td class="text-ct pd5"><button class="large-btn blue-btn pd5" style="width:60%" @click="transFile()">공통파일</button></td>
                <td class="text-lt pd5"><div class="gd-1 pl0 pr0">file(공통파일)</div></td>
                <td class="text-rg pd5"><div class="gd-1 pl0 pr0">{{resultModel[1].asisRows}}</div></td>
                <td class="text-lt pd5"><div class="gd-1 pl0 pr0">isc_com_file(공통파일)</div></td>
                <td class="text-rg pd5"><div class="gd-1 pl0 pr0">{{resultModel[1].tobeRows}}</div></td>
                <td class="text-ct pd5"><div class="gd-1 pl0 pr0">{{resultModel[1].resultCn}}</div></td>
              </tr>
              <tr>
                <td class="text-ct pd5" rowspan="4"><button class="large-btn blue-btn pd5" style="width:60%" @click="transMember()">회원</button></td>
                <td class="text-lt pd5"><div class="gd-1 pl0 pr0">user(회원테이블)</div></td>
                <td class="text-rg pd5"><div class="gd-1 pl0 pr0">{{resultModel[2].asisRows}}</div></td>
                <td class="text-lt pd5"><div class="gd-1 pl0 pr0">isc_mbr_info(회원테이블)</div></td>
                <td class="text-rg pd5"><div class="gd-1 pl0 pr0">{{resultModel[2].tobeRows}}</div></td>
                <td class="text-ct pd5"><div class="gd-1 pl0 pr0">{{resultModel[2].resultCn}}</div></td>
              </tr>
              <tr>             
                <td class="text-lt pd5"><div class="gd-1 pl0 pr0">user(회원권한)</div></td>
                <td class="text-rg pd5"><div class="gd-1 pl0 pr0">{{resultModel[3].asisRows}}</div></td>
                <td class="text-lt pd5"><div class="gd-1 pl0 pr0">isc_mbr_auth_info(회원권한)</div></td>
                <td class="text-rg pd5"><div class="gd-1 pl0 pr0">{{resultModel[3].tobeRows}}</div></td>
                <td class="text-ct pd5"><div class="gd-1 pl0 pr0">{{resultModel[3].resultCn}}</div></td>
              </tr>
              <tr>                
                <td class="text-lt pd5"><div class="gd-1 pl0 pr0">user(구독서비스허용)</div></td>
                <td class="text-rg pd5"><div class="gd-1 pl0 pr0">{{resultModel[4].asisRows}}</div></td>
                <td class="text-lt pd5"><div class="gd-1 pl0 pr0">isc_trms_agre_hstry(약관동의 테이블)</div></td>
                <td class="text-rg pd5"><div class="gd-1 pl0 pr0">{{resultModel[4].tobeRows}}</div></td>
                <td class="text-ct pd5"><div class="gd-1 pl0 pr0">{{resultModel[4].resultCn}}</div></td>
              </tr>
              <tr>                
                <td class="text-lt pd5"><div class="gd-1 pl0 pr0">user(개인정보동의)</div></td>
                <td class="text-rg pd5"><div class="gd-1 pl0 pr0">{{resultModel[5].asisRows}}</div></td>
                <td class="text-lt pd5"><div class="gd-1 pl0 pr0">isc_trms_agre_hstry(약관동의 테이블)</div></td>
                <td class="text-rg pd5"><div class="gd-1 pl0 pr0">{{resultModel[5].tobeRows}}</div></td>
                <td class="text-ct pd5"><div class="gd-1 pl0 pr0">{{resultModel[5].resultCn}}</div></td>
              </tr>
              <tr>
                <td class="text-ct pd5"  rowspan="2" ><button class="large-btn blue-btn pd5" style="width:60%" @click="transEnt()">기업</button></td>
                <td class="text-lt pd5"><div class="gd-1 pl0 pr0">ent_info(기업정보)</div></td>
                <td class="text-rg pd5"><div class="gd-1 pl0 pr0">{{resultModel[6].asisRows}}</div></td>
                <td class="text-lt pd5"><div class="gd-1 pl0 pr0">isc_ent_info(기업정보)</div></td>
                <td class="text-rg pd5"><div class="gd-1 pl0 pr0">{{resultModel[6].tobeRows}}</div></td>
                <td class="text-ct pd5"><div class="gd-1 pl0 pr0">{{resultModel[6].resultCn}}</div></td>
              </tr>    
              <tr>                
                <td class="text-lt pd5"><div class="gd-1 pl0 pr0">ent_kywd(기업키워드)</div></td>
                <td class="text-rg pd5"><div class="gd-1 pl0 pr0">{{resultModel[7].asisRows}}</div></td>
                <td class="text-lt pd5"><div class="gd-1 pl0 pr0">isc_ent_kywd(기업키워드)</div></td>
                <td class="text-rg pd5"><div class="gd-1 pl0 pr0">{{resultModel[7].tobeRows}}</div></td>
                <td class="text-ct pd5"><div class="gd-1 pl0 pr0">{{resultModel[7].resultCn}}</div></td>
              </tr>    
              <tr>
                <td class="text-ct pd5" rowspan="2"><button class="large-btn blue-btn pd5" style="width:60%" @click="transEntMember()">기업회원</button></td>
                <td class="text-lt pd5"><div class="gd-1 pl0 pr0">ent_mbr(기업회원)</div></td>
                <td class="text-rg pd5"><div class="gd-1 pl0 pr0">{{resultModel[8].asisRows}}</div></td>
                <td class="text-lt pd5"><div class="gd-1 pl0 pr0">isc_ent_mbr(기업회원)</div></td>
                <td class="text-rg pd5"><div class="gd-1 pl0 pr0">{{resultModel[8].tobeRows}}</div></td>
                <td class="text-ct pd5"><div class="gd-1 pl0 pr0">{{resultModel[8].resultCn}}</div></td>
              </tr>        
              <tr>               
                <td class="text-lt pd5"><div class="gd-1 pl0 pr0">ent_mbr_hstry(기업회원로그)</div></td>
                <td class="text-rg pd5"><div class="gd-1 pl0 pr0">{{resultModel[9].asisRows}}</div></td>
                <td class="text-lt pd5"><div class="gd-1 pl0 pr0">isc_ent_mbr_hstry(기업회원로그)</div></td>
                <td class="text-rg pd5"><div class="gd-1 pl0 pr0">{{resultModel[9].tobeRows}}</div></td>
                <td class="text-ct pd5"><div class="gd-1 pl0 pr0">{{resultModel[9].resultCn}}</div></td>
              </tr>     
              <tr>
                <td class="text-ct pd5" rowspan="2"><button class="large-btn blue-btn pd5" style="width:60%" @click="transDscsnCtgry()">상담 카테고리</button></td>
                <td class="text-lt pd5"><div class="gd-1 pl0 pr0">dscsn_ctgry(상담카테고리)</div></td>
                <td class="text-rg pd5"><div class="gd-1 pl0 pr0">{{resultModel[10].asisRows}}</div></td>
                <td class="text-lt pd5"><div class="gd-1 pl0 pr0">isc_dscsn_ctgry(상담카테고리)</div></td>
                <td class="text-rg pd5"><div class="gd-1 pl0 pr0">{{resultModel[10].tobeRows}}</div></td>
                <td class="text-ct pd5"><div class="gd-1 pl0 pr0">{{resultModel[10].resultCn}}</div></td>
              </tr>   
              <tr>              
                <td class="text-lt pd5"><div class="gd-1 pl0 pr0">dscsn_ctgry_pic(상담카담당자)</div></td>
                <td class="text-rg pd5"><div class="gd-1 pl0 pr0">{{resultModel[11].asisRows}}</div></td>
                <td class="text-lt pd5"><div class="gd-1 pl0 pr0">isc_dscsn_ctgry_pic(상담카담당자)</div></td>
                <td class="text-rg pd5"><div class="gd-1 pl0 pr0">{{resultModel[11].tobeRows}}</div></td>
                <td class="text-ct pd5"><div class="gd-1 pl0 pr0">{{resultModel[11].resultCn}}</div></td>
              </tr> 
              <tr>
                <td class="text-ct pd5" rowspan="4"><button class="large-btn blue-btn pd5" style="width:60%" @click="transDscsn()">1:1상담</button></td>
                <td class="text-lt pd5"><div class="gd-1 pl0 pr0">dscsn(상담)</div></td>
                <td class="text-rg pd5"><div class="gd-1 pl0 pr0">{{resultModel[12].asisRows}}</div></td>
                <td class="text-lt pd5"><div class="gd-1 pl0 pr0">isc_dscsn(상담)</div></td>
                <td class="text-rg pd5"><div class="gd-1 pl0 pr0">{{resultModel[12].tobeRows}}</div></td>
                <td class="text-ct pd5"><div class="gd-1 pl0 pr0">{{resultModel[12].resultCn}}</div></td>
              </tr>
              <tr>
                <td class="text-lt pd5"><div class="gd-1 pl0 pr0">dscsn_dmnd(상담요청)</div></td>
                <td class="text-rg pd5"><div class="gd-1 pl0 pr0">{{resultModel[13].asisRows}}</div></td>
                <td class="text-lt pd5"><div class="gd-1 pl0 pr0">isc_dscsn_dmnd(상담요청)</div></td>
                <td class="text-rg pd5"><div class="gd-1 pl0 pr0">{{resultModel[13].tobeRows}}</div></td>
                <td class="text-ct pd5"><div class="gd-1 pl0 pr0">{{resultModel[13].resultCn}}</div></td>
              </tr>  
              <tr>
                <td class="text-lt pd5"><div class="gd-1 pl0 pr0">ans(상담답변)</div></td>
                <td class="text-rg pd5"><div class="gd-1 pl0 pr0">{{resultModel[14].asisRows}}</div></td>
                <td class="text-lt pd5"><div class="gd-1 pl0 pr0">isc_ans(상담답변)</div></td>
                <td class="text-rg pd5"><div class="gd-1 pl0 pr0">{{resultModel[14].tobeRows}}</div></td>
                <td class="text-ct pd5"><div class="gd-1 pl0 pr0">{{resultModel[14].resultCn}}</div></td>
              </tr>   
              <tr>
                <td class="text-lt pd5"><div class="gd-1 pl0 pr0">rjct(상담반려)</div></td>
                <td class="text-rg pd5"><div class="gd-1 pl0 pr0">{{resultModel[15].asisRows}}</div></td>
                <td class="text-lt pd5"><div class="gd-1 pl0 pr0">isc_rjct(상담반려)</div></td>
                <td class="text-rg pd5"><div class="gd-1 pl0 pr0">{{resultModel[15].tobeRows}}</div></td>
                <td class="text-ct pd5"><div class="gd-1 pl0 pr0">{{resultModel[15].resultCn}}</div></td>
              </tr>           
              <tr>
                <td class="text-ct pd5"><button class="large-btn blue-btn pd5" style="width:60%" @click="transEvent()">알람정보</button></td>
                <td class="text-lt pd5"><div class="gd-1 pl0 pr0">evnt_alrm</div></td>
                <td class="text-rg pd5"><div class="gd-1 pl0 pr0">{{resultModel[16].asisRows}}</div></td>
                <td class="text-lt pd5"><div class="gd-1 pl0 pr0">isc_evnt_alrm(알람테이블)</div></td>
                <td class="text-rg pd5"><div class="gd-1 pl0 pr0">{{resultModel[16].tobeRows}}</div></td>
                <td class="text-ct pd5"><div class="gd-1 pl0 pr0">{{resultModel[16].resultCn}}</div></td>
              </tr>      
              <tr>
                <td class="text-ct pd5"><button class="large-btn blue-btn pd5" style="width:60%" @click="transNotice()">게시판(공지사항)</button></td>
                <td class="text-lt pd5"><div class="gd-1 pl0 pr0">post(게시판내용(공지))</div></td>
                <td class="text-rg pd5"><div class="gd-1 pl0 pr0">{{resultModel[17].asisRows}}</div></td>
                <td class="text-lt pd5"><div class="gd-1 pl0 pr0">isc_bbs_cn(게시판내용)</div></td>
                <td class="text-rg pd5"><div class="gd-1 pl0 pr0">{{resultModel[17].tobeRows}}</div></td>
                <td class="text-ct pd5"><div class="gd-1 pl0 pr0">{{resultModel[17].resultCn}}</div></td>
              </tr>     
              <tr>
                <td class="text-ct pd5"><button class="large-btn blue-btn pd5" style="width:60%" @click="transUpdateBbs()">게시판업데이트(조회수 및 생성일)</button></td>
                <td class="text-lt pd5"><div class="gd-1 pl0 pr0">post(공지_외)</div></td>
                <td class="text-rg pd5"><div class="gd-1 pl0 pr0">{{resultModel[18].asisRows}}</div></td>
                <td class="text-lt pd5"><div class="gd-1 pl0 pr0">isc_bbs_cn(공지_외)</div></td>
                <td class="text-rg pd5"><div class="gd-1 pl0 pr0">{{resultModel[18].tobeRows}}</div></td>
                <td class="text-ct pd5"><div class="gd-1 pl0 pr0">{{resultModel[18].resultCn}}</div></td>
              </tr>      
              <tr>
                <td class="text-ct pd5"  rowspan="2"><button class="large-btn blue-btn pd5" style="width:60%" @click="transUserHstry()">방문로그 이관</button></td>
                <td class="text-lt pd5"><div class="gd-1 pl0 pr0">vst_log(방문로그)</div></td>
                <td class="text-rg pd5"><div class="gd-1 pl0 pr0">{{resultModel[19].asisRows}}</div></td>
                <td class="text-lt pd5"><div class="gd-1 pl0 pr0">isc_user_cntn_hstry(사용자접속로그)</div></td>
                <td class="text-rg pd5"><div class="gd-1 pl0 pr0">{{resultModel[19].tobeRows}}</div></td>
                <td class="text-ct pd5"><div class="gd-1 pl0 pr0">{{resultModel[19].resultCn}}</div></td>
              </tr>  
              <tr>               
                <td class="text-lt pd5"><div class="gd-1 pl0 pr0">vst_stats(방문통계)</div></td>
                <td class="text-rg pd5"><div class="gd-1 pl0 pr0">{{resultModel[20].asisRows}}</div></td>
                <td class="text-lt pd5"><div class="gd-1 pl0 pr0">isc_user_cntn_stats(파일다운통계)</div></td>
                <td class="text-rg pd5"><div class="gd-1 pl0 pr0">{{resultModel[20].tobeRows}}</div></td>
                <td class="text-ct pd5"><div class="gd-1 pl0 pr0">{{resultModel[20].resultCn}}</div></td>
              </tr>      
              <tr>
                <td class="text-ct pd5"  rowspan="2"><button class="large-btn blue-btn pd5" style="width:60%" @click="transFileHstry()">파일다운로드로그 이관</button></td>
                <td class="text-lt pd5"><div class="gd-1 pl0 pr0">file_dwld_log(파일다운로그)</div></td>
                <td class="text-rg pd5"><div class="gd-1 pl0 pr0">{{resultModel[21].asisRows}}</div></td>
                <td class="text-lt pd5"><div class="gd-1 pl0 pr0">isc_file_dwnld_hstry(파일다운로그)</div></td>
                <td class="text-rg pd5"><div class="gd-1 pl0 pr0">{{resultModel[21].tobeRows}}</div></td>
                <td class="text-ct pd5"><div class="gd-1 pl0 pr0">{{resultModel[21].resultCn}}</div></td>
              </tr>    
              <tr>               
                <td class="text-lt pd5"><div class="gd-1 pl0 pr0">file_dwld_log(파일다운로그)</div></td>
                <td class="text-rg pd5"><div class="gd-1 pl0 pr0">{{resultModel[22].asisRows}}</div></td>
                <td class="text-lt pd5"><div class="gd-1 pl0 pr0">isc_file_dwnld_stats(파일다운통계)</div></td>
                <td class="text-rg pd5"><div class="gd-1 pl0 pr0">{{resultModel[22].tobeRows}}</div></td>
                <td class="text-ct pd5"><div class="gd-1 pl0 pr0">{{resultModel[22].resultCn}}</div></td>
              </tr>      
              <tr>
                <td class="text-ct pd5"  rowspan="2"><button class="large-btn blue-btn pd5" style="width:60%" @click="transMenuHstry()">메뉴별 접속로그 이관</button></td>
                <td class="text-lt pd5"><div class="gd-1 pl0 pr0">page_acs_log(페이지 접속 로그)</div></td>
                <td class="text-rg pd5"><div class="gd-1 pl0 pr0">{{resultModel[23].asisRows}}</div></td>
                <td class="text-lt pd5"><div class="gd-1 pl0 pr0">isc_menu_cntn_hstry(메뉴_접속_이력)</div></td>
                <td class="text-rg pd5"><div class="gd-1 pl0 pr0">{{resultModel[23].tobeRows}}</div></td>
                <td class="text-ct pd5"><div class="gd-1 pl0 pr0">{{resultModel[23].resultCn}}</div></td>
              </tr>    
              <tr>               
                <td class="text-lt pd5"><div class="gd-1 pl0 pr0">page_acs_log(페이지 접속 로그)</div></td>
                <td class="text-rg pd5"><div class="gd-1 pl0 pr0">{{resultModel[24].asisRows}}</div></td>
                <td class="text-lt pd5"><div class="gd-1 pl0 pr0">isc_menu_cntn_stats(메뉴_접속_통계)</div></td>
                <td class="text-rg pd5"><div class="gd-1 pl0 pr0">{{resultModel[24].tobeRows}}</div></td>
                <td class="text-ct pd5"><div class="gd-1 pl0 pr0">{{resultModel[24].resultCn}}</div></td>
              </tr>                 
              <tr>
                <td class="text-ct pd5"  rowspan="2"><button class="large-btn blue-btn pd5" style="width:60%" @click="transLgnHstry()">로그인 로그 이관</button></td>
                <td class="text-lt pd5"><div class="gd-1 pl0 pr0">login_log(로그인_이력)</div></td>
                <td class="text-rg pd5"><div class="gd-1 pl0 pr0">{{resultModel[25].asisRows}}</div></td>
                <td class="text-lt pd5"><div class="gd-1 pl0 pr0">isc_lgn_hstry(로그인_이력)</div></td>
                <td class="text-rg pd5"><div class="gd-1 pl0 pr0">{{resultModel[25].tobeRows}}</div></td>
                <td class="text-ct pd5"><div class="gd-1 pl0 pr0">{{resultModel[25].resultCn}}</div></td>
              </tr>    
              <tr>               
                <td class="text-lt pd5"><div class="gd-1 pl0 pr0">login_stats(로그인 통계)</div></td>
                <td class="text-rg pd5"><div class="gd-1 pl0 pr0">{{resultModel[26].asisRows}}</div></td>
                <td class="text-lt pd5"><div class="gd-1 pl0 pr0">isc_lgn_stats(로그인 통계)</div></td>
                <td class="text-rg pd5"><div class="gd-1 pl0 pr0">{{resultModel[26].tobeRows}}</div></td>
                <td class="text-ct pd5"><div class="gd-1 pl0 pr0">{{resultModel[26].resultCn}}</div></td>
              </tr>
              <tr>
                <td class="text-ct pd5"  rowspan="2"><button class="large-btn blue-btn pd5" style="width:60%" @click="transBltbHstry()">게시글 조회 이관</button></td>               
                <td class="text-lt pd5"><div class="gd-1 pl0 pr0">post_view_log(게시글 조회 이력)</div></td>
                <td class="text-rg pd5"><div class="gd-1 pl0 pr0">{{resultModel[27].asisRows}}</div></td>
                <td class="text-lt pd5"><div class="gd-1 pl0 pr0">isc_bltb_cntn_hstry(게시글 조회 이력)</div></td>
                <td class="text-rg pd5"><div class="gd-1 pl0 pr0">{{resultModel[27].tobeRows}}</div></td>
                <td class="text-ct pd5"><div class="gd-1 pl0 pr0">{{resultModel[27].resultCn}}</div></td>
              </tr>
              <tr>               
                <td class="text-lt pd5"><div class="gd-1 pl0 pr0">post_view_log(게시글 조회 통계)</div></td>
                <td class="text-rg pd5"><div class="gd-1 pl0 pr0">{{resultModel[28].asisRows}}</div></td>
                <td class="text-lt pd5"><div class="gd-1 pl0 pr0">isc_bltb_cntn_hstry(게시글 조회 통계)</div></td>
                <td class="text-rg pd5"><div class="gd-1 pl0 pr0">{{resultModel[28].tobeRows}}</div></td>
                <td class="text-ct pd5"><div class="gd-1 pl0 pr0">{{resultModel[28].resultCn}}</div></td>
              </tr>                     
              <!-- 파일 이관 -->
          </tbody>
      </table>
    </div>
    <div class="flex justify-between align-center no-gutters">
      <div class="gd-1"></div>
      <div class="gd-10">
    
      </div>
      <div class="gd-1"></div>
    </div>    
  </div>
</template>

<script>

import { transFileMng, transFile, resultList , transMember, transEnt, transEntMember,transDscsnCtgry, transDscsn, transEvent
         , transNotice, transUpdateBbs, transUserHstry, transFileHstry, transMenuHstry, transLgnHstry, transBltbHstry
       } from '../../../resources/api/trans.js'

export default {
 data() {
    return {
      resultModel : [],
    }
  },
  created() {
    // 공통파일 관리 전환 결과 0
    this.resultModel.push({'transNm':'cmmn_file' ,'asisRows': 0, 'seq' : 0 , 'tobeRows':0 , 'resultCn' : '-'});

    for(let i = 0 ; i < 28; i++){
      this.resultModel.push({'transNm':'cmmn_file' ,'asisRows': 0, 'seq' : 0 , 'tobeRows':0 , 'resultCn' : '-'});
    }  

    this.resultList();
  },

  methods: {
    // 결과 확인
    async resultList() {           
        const res = await resultList();      
        if(res.data.data != null){
          for(let i = 0 ; i < res.data.data.length ; i++){
            this.resultModel[i] = res.data.data[i];
          }
        }               
      },
    // 공통 파일 관리 전환   
    async transFileMng() {     
      if(confirm('공통파일관리 테이블전환을 진행하시겠습니까?')){
        this.$setLoading(true);
        const res = await transFileMng();      
        alert('완료');
        if(res.data.data != null){
          this.resultModel[0] = res.data.data;
        }           
        this.$setLoading(false);
      }         
    },
    // 공통 파일 관리 전환   
    async transFile() {     
      if(confirm('공통파일관리 테이블전환을 진행하시겠습니까?')){
        this.$setLoading(true);
        const res = await transFile();      
        alert('완료');
        if(res.data.data != null){
          this.resultModel[1] = res.data.data;
        }           
        this.$setLoading(false);
      }         
    },

     // 회원  전환   
     async transMember() {     
      if(confirm('회원정보 전환을 진행하시겠습니까?')){
        this.$setLoading(true);
        const res = await transMember();      
        alert('완료');
        for(let i = 0 ; i < res.data.data.length ; i++){
            this.resultModel[i+2] = res.data.data[i];
          }    
        this.$setLoading(false);
      }         
    },

    // 기업 전환   
    async transEnt() {     
      if(confirm('기업정보 전환을 진행하시겠습니까?')){
        this.$setLoading(true);
        const res = await transEnt();      
        alert('완료');
        this.resultList();
        this.$setLoading(false);
      }         
    },

    // 기업회원 전환   
    async transEntMember() {     
      if(confirm('기업회원정보 전환을 진행하시겠습니까?')){
        this.$setLoading(true);
        const res = await transEntMember();      
        alert('완료');
        this.resultList();
        this.$setLoading(false);
      }         
    },

    // 상담카테고리 전환   
    async transDscsnCtgry() {     
      if(confirm('상담카테고리 전환을 진행하시겠습니까?')){
        this.$setLoading(true);
        const res = await transDscsnCtgry();      
        alert('완료');
        this.resultList();
        this.$setLoading(false);
      }         
    },
    
    // 상담카테고리 전환   
    async transDscsn() {     
      if(confirm('상담내용 전환을 진행하시겠습니까?')){
        this.$setLoading(true);
        const res = await transDscsn();      
        alert('완료');
        this.resultList();
        this.$setLoading(false);
      }         
    },
    
    // 상담카테고리 전환   
    async transEvent() {     
      if(confirm('알람 전환을 진행하시겠습니까?')){
        this.$setLoading(true);
        const res = await transEvent();      
        alert('완료');
        this.resultList();
        this.$setLoading(false);
      }         
    },
    
    // 게시판-공지사항   
    async transNotice() {     
      if(confirm('게시판-공지사항 전환을 진행하시겠습니까?')){
        this.$setLoading(true);
        try {
          const res = await transNotice();      
          alert('완료');
          this.resultList();
        } catch(error) {
          alert(error.response.data.message);
        } finally {
          this.$setLoading(false);
        }
      }         
    },

    // 게시판-업데이트
    async transUpdateBbs() {     
      if(confirm('게시판 업데이트를 진행하시겠습니까?')){
        this.$setLoading(true);
        try {
          const res = await transUpdateBbs();      
          alert('완료');
          this.resultList();
        } catch(error) {
          alert(error.response.data.message);
        } finally {
          this.$setLoading(false);
        }
      }         
    },

    // 방문로그 전환   
    async transUserHstry() {     
      if(confirm('방문로그 전환을 진행하시겠습니까?')){
        this.$setLoading(true);
        try {
          const res = await transUserHstry();
          alert(res.data.message);
          this.resultList();  
        } catch(error) {
          alert(error.response.data.message);
          this.resultList();  
        } finally {
          this.$setLoading(false);
        }
      }         
    },

    // 파일로그 전환   
    async transFileHstry() {     
      if(confirm('파일로그 전환을 진행하시겠습니까?')){
        this.$setLoading(true);
        try {
          const res = await transFileHstry();
          alert(res.data.message);
          this.resultList();  
        } catch(error) {
          alert(error.response.data.message);
          this.resultList();  
        } finally {
          this.$setLoading(false);
        }
      }         
    },

    // 메뉴접속로그 전환   
    async transMenuHstry() {     
      if(confirm('메뉴접속로그 전환을 진행하시겠습니까?')){
        this.$setLoading(true);
        try {
          const res = await transMenuHstry();
          alert(res.data.message);
          this.resultList();  
        } catch(error) {
          alert(error.response.data.message);
          this.resultList();  
        } finally {
          this.$setLoading(false);
        }
      }         
    },

    // 로그인 로그 전환   
    async transLgnHstry() {     
      if(confirm('로그인로그 전환을 진행하시겠습니까?')){
        this.$setLoading(true);
        try {
          const res = await transLgnHstry();
          alert(res.data.message);
          for(let i = 0 ; i < res.data.data.length ; i++){
            this.resultModel[i+25] = res.data.data[i];
          } 
          this.resultList();  
        } catch(error) {
          alert(error.response.data.message);
          this.resultList();  
        } finally {
          this.$setLoading(false);
        }
      }         
    },

    // 게시판조회로그 전환   
    async transBltbHstry() {     
      if(confirm('게시판조회로그 전환을 진행하시겠습니까?')){
        this.$setLoading(true);
        try {
          const res = await transBltbHstry();
          alert(res.data.message);
          this.resultList();  
        } catch(error) {
          alert(error.response.data.message);
          this.resultList();  
        } finally {
          this.$setLoading(false);
        }
      }         
    },
  },
  watch: {},
  computed: {},
  components: {
  
  },
  mounted() {},
};
</script>
