1import{a as Y,u as $,r as b,i as M,k as _,b as a,o as n,l as h,d as e,t as i,z as c,y as f,F as C,q as D,s as R,m as U,A as x}from"./vendor.BjW0zFP3.js";import{u as V}from"./useContent.CPblaIUe.js";import{u as E}from"./useSiblingMenus.baq1R_QG.js";import{a as P,e as u}from"./_plugin-vue_export-helper.DJUfQMMV.js";import"./main.DaTv1l0w.js";import"./userStore.CkP9GW7I.js";import"./utils.Cj7E1OwU.js";const j={id:"sub-container"},q={class:"wrap"},z={id:"contents"},H={class:"sub-container"},I={class:"sub-title display-flex-title"},G={class:"pageTitle"},J={class:"con00"},K={key:0,class:"tab-4depth-group"},O={class:"tab-4depth"},Q={key:1,class:"board-view mt30"},W={key:2,class:"board-view mt30"},X={class:"table-responsive"},Z={class:"tbl_write"},tt={colspan:"5"},et={key:0,style:{color:"#e74c3c","font-weight":"bold"}},st={key:0},ot={colspan:"5"},at={class:"mLeft10"},nt=["onClick"],lt={colspan:"6",class:"post-content"},rt=["innerHTML"],it={key:3,class:"board-view mt30"},dt={__name:"CommonDefaultBoardDetail",setup(ct){const p=Y(),g=$(),{menuTitle:B}=V(),{siblingMenus:y,isActiveMenu:F}=E(),m=b(!1),o=b(null),w=b("Y"),L=async()=>{try{m.value=!0;const s=p.params.id;if(!s)return;const t=await u.get(`/ris/api/v1/public/bbs-posts/${s}`);t.data&&t.data.data&&(o.value=t.data.data,await T(s),o.value.bbsSn&&N(o.value.bbsSn))}catch{o.value=null}finally{m.value=!1}},N=async s=>{try{const t=await u.get(`/ris/api/v1/public/bbs/${s}`);t.data&&t.data.data&&(w.value=t.data.data.fileAtchUseYn||"Y")}catch{}},k=()=>{const s=p.meta?.parentRoute;if(s)g.push(s);else{const t=p.path.split("/");t.pop(),g.push(t.join("/"))}},S=async s=>{try{const t=await u.post("/ris/api/v1/public/files/download-url",{fileType:"board",customPath:o.value?.bbsSn,fileName:s.tmprFileNm,downloadFileName:s.orgnflNm}),d=t.data?.presignedUrl||t.data?.data?.presignedUrl;if(!d)throw new Error("ë¤ì´ë¡ë URLì ë°ì ì ììµëë¤");const l=document.createElement("a");l.href=d,l.download=s.orgnflNm,l.target="_blank",document.body.appendChild(l),l.click(),document.body.removeChild(l)}catch{alert(`íì¼ ë¤ì´ë¡ë ì¤ ì¤ë¥ê° ë°ìíìµëë¤. 2íì¼ëª : ${s.orgnflNm}`)}},A=s=>{if(!s)return"-";const t=new Date(s),d=t.getFullYear(),l=String(t.getMonth()+1).padStart(2,"0"),v=String(t.getDate()).padStart(2,"0");return`${d}-${l}-${v}`},T=async s=>{try{const t=await u.get(`/ris/api/v1/public/atch-files/by-pstg/${s}`);t.data&&t.data.data&&(o.value.atchFileList=t.data.data)}catch{o.value.atchFileList=[]}};return M(()=>{L()}),(s,t)=>{const d=_("AppBreadcrumb"),l=_("AppLeftmenu"),v=_("router-link");return n(),a("div",j,[h(d),e("div",q,[e("div",z,[h(l),e("div",H,[e("div",I,[e("h2",G,i(c(B)),1)]),e("div",J,[c(y).length>0?(n(),a("div",K,[e("ul",O,[(n(!0),a(C,null,D(c(y),r=>(n(),a("li",{key:r.menuCd,class:R({active:c(F)(r.url)})},[h(v,{to:r.url,target:r.target},{default:U(()=>[e("span",null,i(r.menuNm),1)]),_:2},1032,["to","target"])],2))),128))])])):f("",!0),m.value?(n(),a("div",Q,t[0]||(t[0]=[e("div",{style:{"text-align":"center",padding:"100px 0"}}," ë¡ë© ì¤... ",-1)]))):o.value?(n(),a("div",W,[e("div",X,[e("table",Z,[t[7]||(t[7]=e("caption",null,"ê²ìê¸ ìì¸",-1)),e("tbody",null,[e("tr",null,[t[1]||(t[1]=e("th",{style:{width:"120px"}},"ì 목",-1)),e("td",tt,[o.value.ntcYn==="Y"?(n(),a("span",et,"[ê³µì§] ")):f("",!0),x(" "+i(o.value.pstatTtl),1)])]),e("tr",null,[t[2]||(t[2]=e("th",null,"ìì±ì",-1)),e("td",null,i(o.value.wrtrNm||"ê´ë¦¬ì"),1),t[3]||(t[3]=e("th",{style:{width:"100px"}},"ìì±ì¼",-1)),e("td",null,i(A(o.value.regDt)),1),t[4]||(t[4]=e("th",{style:{width:"80px"}},"ì¡°í",-1)),e("td",null,i(o.value.inqCnt||0),1)]),w.value==="Y"&&o.value.atchFileList&&o.value.atchFileList.length>0?(n(),a("tr",st,[t[6]||(t[6]=e("th",null,"첨ë¶íì¼",-1)),e("td",ot,[(n(!0),a(C,null,D(o.value.atchFileList,r=>(n(),a("div",{key:r.atchFileSn,class:"file-item"},[e("span",at,i(r.orgnflNm),1),e("a",{class:"down",href:"javascript:void(0);",onClick:ut=>S(r)},t[5]||(t[5]=[e("span",{class:"btn btn-dark btn-history"},[x("ë¤ì´ë¡ë  "),e("i",{class:"material-icons-outlined i_font16"},"save_alt")],-1)]),8,nt)]))),128))])])):f("",!0),e("tr",null,[e("td",lt,[e("div",{innerHTML:o.value.pstatCn||"ë´ì©ì´ ììµëë¤."},null,8,rt)])])])])]),e("div",{class:"btn-group center mt30"},[e("button",{type:"button",class:"krds-btn medium",onClick:k},t[8]||(t[8]=[e("span",null,"목ë¡ì¼ë¡",-1)]))])])):(n(),a("div",it,[t[10]||(t[10]=e("div",{style:{"text-align":"center",padding:"100px 0"}}," ê²ìê¸ì ì°¾ì ì ììµëë¤. ",-1)),e("div",{class:"btn-group center mt30"},[e("button",{type:"button",class:"krds-btn medium",onClick:k},t[9]||(t[9]=[e("span",null,"목ë¡ì¼ë¡",-1)]))])]))])])])])])}}},gt=P(dt,[["__scopeId","data-v-bef2477a"]]);export{gt 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.