PageSourceSearch

https://sogang.ac.kr/_nuxt/index.e7088cd1.js

js sogang.ac.kr collected 2026-10-01 10:15:02 UTC 11,698 bytes, 1 lines download raw bytes

1import{P as U}from"./Pagination.ffd64910.js";import{_ as K}from"./nuxt-link.2c6c65e7.js";import{_ as Y,g as $,f as j,A as W,o,c as a,a as t,j as h,m as n,F as A,k as N,s as i,t as x,E as G,p as J,e as Q,r as y,h as X,G as Z,i as ee,b as q,d as V,w as L,v as te,B as se,H as oe,q as D}from"./entry.a61df3f4.js";import{_ as ae}from"./arow.ba6b3e91.js";import{_ as le}from"./search.8f3b9707.js";import{s as E}from"./style.6fc4cd5a.js";import{N as ne}from"./NoData.095a5383.js";import{T as re}from"./Title.e6a4cacc.js";import{S as ce}from"./SelectBox.5257592b.js";import{_ as z,a as B,b as H,c as ie,d as ue}from"./paper-clip-replace.3f0875eb.js";import{_ as pe}from"./paper-clip.0d005ce8.js";import{u as de}from"./auth.91c4ff1a.js";import{c as xe}from"./checkArticleAccess.ed88c8e2.js";import{u as S}from"./useSgBbsDataEn.263aac17.js";import{f as _e}from"./formateDate.e79d8e1d.js";import"./next.a5adf93b.js";const f=p=>(J("data-v-13264483"),p=p(),Q(),p),he={class:"hidden overflow-x-auto md:block"},fe={class:"w-full xl:table-fixed"},ge=f(()=>t("caption",null,null,-1)),we=f(()=>t("col",{class:"w-[7%]"},null,-1)),ye=f(()=>t("col",{class:"max-w-[200px]"},null,-1)),ve=f(()=>t("col",{class:"w-[14%]"},null,-1)),me={key:0,class:"w-[7%]"},be=f(()=>t("col",{class:"w-[14%]"},null,-1)),ke=f(()=>t("col",{class:"w-[7%]"},null,-1)),Te={key:1,class:"w-[7%]"},Pe={class:"bg-[#F2F2F2]"},Fe={class:"border-t-[3px] border-t-[#353535] border-b-[1px] bg-[#F2F2F2]"},Ce=f(()=>t("tfoot",null,null,-1)),Ae=["onClick"],Ne=["innerHTML"],qe={key:0,alt:"icons8-lock",class:"w-3 h-3",src:z},Ve={key:1,class:"w-2 h-2 ml-1",alt:"ic_new",src:B},De=["onClick"],Ee={key:0,alt:"Paperclip",class:"object-cover w-6 h-6 overflow-hidden",src:H},Ie={key:1,alt:"Paperclip",class:"object-cover w-6 h-6 overflow-hidden",src:ie},Le={class:"block md:hidden"},Se=["onClick"],$e={key:1,class:"w-[56px] h-[30px] flex justify-center items-center bg-[#A72018] text-[#FFFFFF]"},je={class:"flex gap-4"},ze={class:"min-w-[90%] mt-2 space-y-2"},Be={class:"text-[#454545] text-[16px] font-[500] flex items-center"},He=["innerHTML"],Oe={key:0,alt:"icons8-lock",class:"w-3 h-3",src:z},Me={key:1,class:"w-2 h-2 ml-1",alt:"icon-new",src:B},Re={class:"flex items-center gap-2"},Ue={class:"text-[#727272] text-[12px] font-normal"},Ke=f(()=>t("div",{class:"h-3 w-[1px] bg-[#727272]"},null,-1)),Ye={class:"text-[#727272] text-[12px] font-normal"},We=f(()=>t("div",{class:"h-3 w-[1px] bg-[#727272]"},null,-1)),Ge={class:"text-[#727272] text-[12px] font-normal"},Je={key:0,class:"flex w-full items-start justify-end"},Qe={key:0,class:"line-height-140"},Xe={key:0,alt:"Paperclip",class:"object-contain w-6 h-6 hidden lg:block",src:H},Ze={key:1,alt:"paper-clip-replace",class:"object-contain w-6 h-6 lg:hidden mt-2",src:ue},et={key:2,alt:"paper-clip",class:"object-contain w-6 h-6",src:pe},tt={__name:"TableActivityCampus",props:{className:{type:String,required:!1},tableHeaders:{type:Array,require:!0},tableData:{type:Array,require:!0},currentPage:{type:Number,require:!0},namePage:{type:Boolean,default:!1},pageSize:{type:Number},qaresponse:{type:Boolean,default:!1},isPhotoView:{type:Boolean,default:!1}},emits:["click"],setup(p,{emit:T}){const v=p;de();const m=$(),u=j(),d=async r=>{if(!r.secret&&!G("token")&&u.name!=="Participant"){await m.push({name:"Login",query:{redirect:u.fullPath}});return}const g=await xe(r.pkId,"V");if((g==null?void 0:g.data)===!1){alert("읽을수 있는 권한이 없습니다.");return}T("click",r)},_=W(()=>{var r;return((r=v.tableData[0])==null?void 0:r.isPhotoTopView)===!1?v.tableHeaders.filter((g,e)=>e!=3):v.tableHeaders});return(r,g)=>(o(),a("div",null,[t("div",he,[t("table",fe,[ge,t("colgroup",null,[we,ye,ve,h(_)[3]=="첨부파일"||h(_)[3]=="File"?(o(),a("col",me)):n("",!0),be,ke,h(_)[6]?(o(),a("col",Te)):n("",!0)]),t("thead",Pe,[t("tr",Fe,[(o(!0),a(A,null,N(h(_),(e,b)=>(o(),a("th",{key:b,class:i([p.className,"text-[16px] font-medium text-[#212121] lg:px-6 py-4 text-center whitespace-nowrap zoom-text"]),scope:"col"},x(e),3))),128))])]),Ce,t("tbody",null,[(o(!0),a(A,null,N(p.tableData,(e,b)=>(o(),a("tr",{class:i([e.isTop?"bg-[#FDF5F4]":"bg-white","transition duration-300 ease-in-out border-b cursor-pointer hover:bg-gray-100"]),onClick:w=>d(e)},[t("td",{class:i([e.isTop?"text-[#861F1C]":"","px-6 py-4 whitespace-nowrap text-[16px] font-normal text-[#757575] text-center zoom-text"])},x(e.isTop?"TOP":e.no||e.rownum),3),t("td",{class:i([e.isTop?"text-[#861F1C]":"","py-4 lg:px-6 whitespace-nowrap text-[16px] font-normal text-[#757575] text-start"])},[t("div",{class:i([p.qaresponse?"xl:w-[534px] md:w-[182px]":"xl:w-[630px] md:w-[278px]","flex items-center min-w-full"])},[t("p",{class:"zoom-text truncate",innerHTML:e==null?void 0:e.title},null,8,Ne),!e.secret&&h(u).name!=="Participant"?(o(),a("img",qe)):n("",!0),e.isNew?(o(),a("img",Ve)):n("",!0)],2)],2),t("td",{class:i([e.isTop?"text-[#861F1C]":"","lg:px-6 py-4 whitespace-nowrap text-[16px] font-normal text-[#757575] text-center md:w-[100px] lg:w-[8%] zoom-text"])},x(e.userName),3),e.isPhotoTopView===!0||e.isPhotoTopView===null?(o(),a("td",{key:0,class:i([e.isTop?"text-[#861F1C]":"","lg:px-6 py-4 whitespace-nowrap text-[16px] font-normal text-[#757575] text-center"])},[e.files.length>0?(o(),a("div",{key:0,class:"flex items-center justify-center gap-1",onClick:w=>d(e)},[e.isTop?(o(),a("img",Ee)):(o(),a("img",Ie))],8,De)):n("",!0)],2)):n("",!0),t("td",{class:i([e.isTop?"text-[#861F1C]":"","lg:px-6 py-4 whitespace-nowrap text-[16px] font-normal text-[#757575] text-center w-[8%] zoom-text"])},x(e.regDate),3),t("td",{class:i([e.isTop?"text-[#861F1C]":"","px-6 py-4 whitespace-nowrap text-[16px] font-normal text-[#757575] text-center zoom-text"])}
1,x(e.viewCount.toLocaleString()),3),p.qaresponse?(o(),a("td",{key:1,class:i([[e.isTop?"text-[#861F1C]":"",e.qaresponse?"lg:px-6":"px-6"],"py-4 whitespace-nowrap text-[16px] font-normal text-[#757575] flex justify-center text-center"])},[t("div",{class:i([e.qaresponse?"bg-[#A72018]":"bg-[#A8A8A8]","w-[56px] h-[30px] flex justify-center items-center text-[#FFFFFF] zoom-text"])},x(e.qaresponse?"완료":"대기"),3)],2)):n("",!0)],10,Ae))),256))])])]),t("div",Le,[(o(!0),a(A,null,N(p.tableData,(e,b)=>(o(),a("div",{key:e.id,class:i([[b==0?"border-t-[3px] border-t-[#353535]":"",e.isTop?"bg-[#FDF5F4]":""],"border-b-[1px] cursor-pointer border-b-[#D3D3D3] py-4"]),onClick:w=>d(e)},[p.qaresponse?(o(),a("div",{key:0,class:i([e.qaresponse?"bg-[#A72018]":"bg-[#A8A8A8]","w-[56px] h-[30px] flex justify-center items-center text-[#FFFFFF]"])},x(e.qaresponse?"완료":"대기"),3)):n("",!0),e.isTop?(o(),a("div",$e," TOP ")):n("",!0),t("div",je,[t("div",ze,[t("div",Be,[t("p",{class:i([e.isTop?"font-bold":"","break-all truncate"]),innerHTML:e.title},null,10,He),!e.secret&&h(u).name!=="Participant"?(o(),a("img",Oe)):n("",!0),e.isNew?(o(),a("img",Me)):n("",!0)]),t("div",Re,[t("div",Ue,x(e.regDate),1),Ke,t("div",Ye,x(e.userName),1),We,t("div",Ge," 조회 "+x(e.viewCount),1)])]),e.isPhotoTopView===!0||e.isPhotoTopView===null?(o(),a("div",Je,[e.files.length>0?(o(),a("div",Qe,[e.isTop?(o(),a("img",Xe)):n("",!0),e.isTop?(o(),a("img",Ze)):(o(),a("img",et))])):n("",!0)])):n("",!0)])],10,Se))),128))])]))}},st=Y(tt,[["__scopeId","data-v-13264483"]]),ot={class:"container mx-auto mb-[162px]"},at={class:"flex flex-col items-start justify-between pb-4 mt-10 md:items-center md:flex-row gap-y-5"},lt={class:"text-[#595959] text-[16px] font-normal order-2 md:order-1 zoom-text"},nt={class:"text-[#861F1C]"},rt={class:"flex flex-col order-1 w-full gap-2 md:w-auto md:flex-row md:order-2"},ct=t("img",{src:ae,alt:"arow"},null,-1),it={class:"relative w-full md:w-auto"},ut=t("label",{for:"searchText",class:"hidden"},null,-1),pt=["onKeyup"],dt={class:"lg:mt-[78px] mt-[40px] relative"},xt={key:0},_t={class:"lg:absolute lg:-top-[18px] right-0 lg:mt-0 mt-[40px] flex justify-end"},Vt={__name:"index",setup(p){const T=y([{value:"TITLE",label:"제목"},{value:"CONTENT",label:"내용"},{value:"USERNAME",label:"작성자"}]),v=$(),m=j(),u=y(m.query.keyword||""),d=y(m.query.option||"TITLE"),_=y(m.query.category||"All"),r=y({totalPages:1,currentPage:Number(m.query.page)||1}),g=y(!1),e=X(),b=["번호","제목","작성자","첨부파일","등록일","조회수"],w=y(""),I=y(0),O=async()=>{try{const{data:l}=await S.checkAuth({configId:1301,bbsAuth:"W"});g.value=l}catch(l){console.log(l)}},P=async()=>{e.setIsLoading(!0);try{const{data:l}=await S.getBoardList({pageNum:r.value.currentPage,pageSize:15,bbsConfigFk:1301,category:_.value=="All"?"":_.value,title:d.value=="TITLE"?u.value.trim():"",content:d.value=="CONTENT"?u.value.trim():"",username:d.value=="USERNAME"?u.value.trim():""}),c=l.list.map(s=>({rownum:s.rownum,title:s.title,secret:(s==null?void 0:s.secret)=="Y",userName:s.displayName,regDate:_e(s.regDate),viewCount:s.viewCount,isPhotoTopView:(s==null?void 0:s.isPhotoTopView)=="Y"?!0:(s==null?void 0:s.isPhotoTopView)=="N"?!1:null,isTop:(s==null?void 0:s.isTop)=="Y",pkId:s.pkId,isNew:(s==null?void 0:s.isNew)=="ON",files:[s.fileValue1,s.fileValue2,s.fileValue3,s.fileValue4,s.fileValue5].filter(k=>!!k&&k)}));r.value.totalPages=l.pages,I.value=l.total,w.value=c.filter(s=>s!==null)}catch(l){l.statusCode==404&&alert("이용정지된 게시판입니다."),console.log("err",l)}e.setIsLoading(!1)},M=async l=>{const c={page:l,category:_.value,option:d.value,keyword:u.value};Object.keys(c).forEach(s=>{c[s]||delete c[s]}),v.push({query:c}),r.value.currentPage=l,await P()},F=async()=>{r.value.currentPage=1;const l={page:r.value.currentPage,category:_.value,option:d.value,keyword:u.value};Object.keys(l).forEach(c=>{l[c]||delete l[c]}),v.push({query:l}),e.setIsLoading(!0),await P(),e.setIsLoading(!1)};Z(u,l=>{l||F()});const R=l=>{v.push({name:"campusTourAnnouncementDetail",params:{pkId:l.pkId},query:{redirect:m.fullPath}})};return ee(async()=>{e.setIsLoading(!0),await P(),await O(),e.setIsLoading(!1)}),(l,c)=>{const s=U,k=K;return o(),a("div",ot,[q(re,{text:"공지사항"}),t("div",at,[t("div",lt,[V(" 총 "),t("span",nt,x(I.value),1),V("건의 게시물이 있습니다 ")]),t("div",rt,[q(ce,{options:T.value,modelValue:d.value,"onUpdate:modelValue":c[0]||(c[0]=C=>d.value=C),"class-selected":h(E).label,"class-wrap-option":h(E).wrapOption,"class-option":h(E).option,placeholder:"제목",placement:"bottomLeft"},{icon:L(()=>[ct]),_:1},8,["options","modelValue","class-selected","class-wrap-option","class-option"]),t("div",it,[ut,te(t("input",{id:"searchText",type:"text","onUpdate:modelValue":c[1]||(c[1]=C=>u.value=C),placeholder:"검색어를 입력해주세요",onKeyup:oe(F,["enter"]),class:"focus:outline-none px-4 py-[10px] zoom-text text-[14px] focus:border-[#1E1E1E] text-[#1E1E1E] border-[1px] border-[#D3D3D3] md:w-[300px] h-[42px] w-full"},null,40,pt),[[se,u.value]]),t("img",{onClick:F,src:le,alt:"search",class:"absolute -translate-y-1/2 right-3 top-1/2 cursor-pointer"})])])]),w.value.length>0?(o(),D(st,{key:0,"table-headers":b,"table-data":w.value,currentPage:r.value.currentPage,pageSize:15,onClick:R},null,8,["table-data","currentPage"])):n("",!0),w.value.length==0?(o(),D(ne,{key:1,content:"등록된 정보가 없습니다."})):n("",!0),t("div",dt,[w.value.length>0?(o(),a("div",xt,[q(s,{totalPages:r.value.totalPages,currentPage:r.value.currentPage,onPageChanged:M},null,8,["totalPages","currentPage"])])):n("",!0),t("div",_t,[g.value?(o(),D(k,{key:0,to:{name:"campusTourAnnouncementWrite",query:{configPkId:"1301"}},class:"md:px-[60px] w-[104px] zoom-text py-5 md:w-full text-center bg-[#861F1C] hover:bg-[#791C19] text-white font-bold text-[16px] inline-block cursor-pointer"},{default:L(()=>[V(" 등록하기 ")]),_:1})):n("",!0)])])])}}};export{Vt 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.