PageSourceSearch

https://www.medalo.ai/js/HairLossLearning.CZ9LF7rF.js

js medalo.ai collected 2026-10-05 12:17:08 UTC 5,672 bytes, 1 lines download raw bytes

1import{_}from"./Loading.BO8yG02s.js";import P from"./Loading.AX4T9XNo.js";import f from"./HairLossLearningList.CtHn8Hm1.js";import L from"./HairLossLearningInsert.BOPQZ8Pb.js";import{c as v,z as a,j as u,s as g,g as i,D as b,V as w,B as l,W as p,b as m}from"./vendor-vue.DQyCMu5a.js";import{_ as H}from"./index.VRUltArI.js";import{h as V}from"./vendor-vuetify.Dvtop9lb.js";import{b3 as k}from"./vendor-misc.DlM92jT6.js";import"./vendor-axios.B9ygI19o.js";import"./vendor-moment.C5S46NFB.js";import"./vendor-quill.BiOiM682.js";import"./vendor-date-io.C_LH91PS.js";import"./vendor-maps.B8dKhpM0.js";/* empty css                     */import"./Paging.Codo259r.js";import"./LoadingPage.6ru2eo8t.js";const I={name:"HairLossLearning",components:{Loading:P,HairLossLearningList:f,HairLossLearningInsert:L},data(){return{loading:!1,lastDate:new Date,searchParam:{query:null,startDate:null,endDate:null},totalCnt:0,pageSize:10,pageNo:1,learningList:[],hairLossInsertPopFlag:!1,listCntOption:[{title:"10개씩 보기",value:10},{title:"20개씩 보기",value:20},{title:"30개씩 보기",value:30},{title:"50개씩 보기",value:50}],useInfo:null,listTitle:"HAIR_LOSS"}},computed:{disabledDates(){return{to:new Date(this.searchParam.startDate),from:new Date(this.lastDate)}},allowedDate(){let t=new Date(this.searchParam.startDate),e=new Date(this.lastDate),o=[];for(;t<=e;)o.push(new Date(t)),t.setDate(t.getDate()+1);return o}},watch:{"searchParam.startDate"(t){this.setLastDate(t)},pageSize(t){console.log(t),this.onActivePage(1)}},mounted(){this.setDefaultDate(),this.setLastDate(),this.searchParam.userId="",this.onActivePage(1)},methods:{onActivePage(t){this.pageNo=t,this.getHairlossThicknessRelearningList()},setDefaultDate(){this.searchParam.startDate=new Date().setDate(new Date().getDate()-30),this.searchParam.endDate=new Date().setDate(new Date().getDate())},setLastDate(t=this.searchParam.startDate){const e=new Date(t).getMonth()+1;this.lastDate=new Date(new Date(t).setMonth(e))},validateParam(){return this.searchParam.startDate?this.searchParam.endDate?this.searchParam.startDate>this.searchParam.endDate?(alert("시작일은 종료일보다 이전날짜로 입력해주세요."),!1):this.searchParam.endDate>this.searchParam.lastDate?(alert("시작일로부터 한달까지 조회 가능합니다."),!1):!0:(alert("종료일을 입력하세요."),!1):(alert("시작일을 입력하세요."),!1)},getHairlossThicknessRelearningList(){if(!this.validateParam())return;this.loading=!0;const t={page:this.pageNo,blockPage:this.pageSize,type:this.listTitle},e={success:o=>{console.log("탈모진단학습-response:",o),o?(this.learningList=o.items,this.totalCnt=o.totalCount):alert("일시적인 오류가 발생했습니다."),this.loading=!1},error:o=>{console.log(o),this.loading=!1}};this.$api.report.getHairlossThicknessRelearningList(t,e)},openHairlossInsertPop(){this.hairLossInsertPopFlag=!0},closeHairlossInsertPop(){this.hairLossInsertPopFlag=!1}}},y={class:"report-content__container"},C={class:"report-content__main"},S={class:"report-search__wrap"},A={class:"report-search__inner"},z={class:"report-search__item"},x={class:"report-search__item"},N={class:"pop-open-btn"},T={class:"report-table__info"},R={class:"total"};function q(t,e,o,B,s,n){const c=p("VueDatePicker"),d=p("HairLossLearningList"),h=p("HairLossLearningInsert"),D=_;return m(),v("div",y,[e[12]||(e[12]=a("h2",{class:"report-content__title"}," 탈모 진단 학습관리 ",-1)),a("div",C,[a("div",S,[a("ul",A,[a("li",z,[e[7]||(e[7]=a("label",{for:"query",class:"report-input__label"},"검색",-1)),b(a("input",{id:"query","onUpdate:modelValue":e[0]||(e[0]=r=>s.searchParam.query=r),type:"text",class:"report-input__text",placeholder:""},null,512),[[w,s.searchParam.query]])]),a("li",x,[e[8]||(e[8]=a("label",{for:"startDate",class:"report-input__label"},[l("기간"),a("span",{class:"repoert-pointer"},"*")],-1)),i(c,{id:"startDate",modelValue:s.searchParam.startDate,"onUpdate:modelValue":e[1]||(e[1]=r=>s.searchParam.startDate=r),placeholder:"시작일",format:t.formatDate1,"enable-time-picker":!1,class:"report-input__date"},null,8,["modelValue","format"]),e[9]||(e[9]=a("span",{class:"txt"},"~",-1)),i(c,{id:"endDate",modelValue:s.searchParam.endDate,"onUpdate:modelValue":e[2]||(e[2]=r=>s.searchParam.endDate=r),placeholder:"종료일",format:t.formatDate1,"enable-time-picker":!1,"allowed-dates":n.allowedDate,class:"report-input__date"},null,8,["modelValue","format","allowed-dates"])])]),a("button",{type:"button",class:"report-btn__text report-btn__primary",onClick:e[3]||(e[3]=r=>n.onActivePage(1))}," 검색 "),a("div",N,[a("button",{type:"button",class:"report-btn__text report-btn__secondary",onClick:e[4]||(e[4]=(...r)=>n.openHairlossInsertPop&&n.openHairlossInsertPop(...r))}," 탈모 진단 학습 등록 ")])]),a("div",T,[a("div",R,[e[10]||(e[10]=l(" 총 ")),a("strong",null,k(s.totalCnt),1),e[11]||(e[11]=l("건 "))]),i(V,{modelValue:s.pageSize,"onUpdate:modelValue":e[5]||(e[5]=r=>s.pageSize=r),items:s.listCntOption,class:"report-select__small"},null,8,["modelValue","items"])]),i(d,{"learning-list":s.learningList,"total-cnt":s.totalCnt,"page-size":s.pageSize,"page-no":s.pageNo,onOnActivePage:n.onActivePage,onGetHairLossRelearningList:n.getHairlossThicknessRelearningList},null,8,["learning-list","total-cnt","page-size","page-no","onOnActivePage","onGetHairLossRelearningList"])]),s.hairLossInsertPopFlag?(m(),u(h,{key:0,onClosePopup:n.closeHairlossInsertPop,onListSetup:e[6]||(e[6]=r=>n.onActivePage(1))},null,8,["onClosePopup"])):g("",!0),s.loading?(m(),u(D,{key:1})):g("",!0)])}const te=H(I,[["render",q],["__scopeId","data-v-7c3206e8"]]);export{te as default};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.