import{_ as e}from"./index.vue_vue_type_script_setup_true_lang-a66505b9.js";import{u as a}from"./useGetList-4b13a7ea.js";import{n as t,a as l,b as s,c as n}from"./index-6a44cdb4.js";import{d,m as u,k as i,p as o,r,K as v,o as c,c as p,a as m,w as f,F as _,q as b,j as h,J as g,f as k,b as y,t as j,e as x}from"./index-018fb6dd.js";import"./http-338d117f.js";/* empty css             */const w=["innerHTML"],V={class:"dialog-footer"},C=d({__name:"index",setup(d){const{data:C,query:T,search:H,reset:L,loading:q}=a("system/notices/notice/mine",!0),M=u((()=>{var e;return null==(e=C.value)?void 0:e.data})),U=i(!1),z=i({}),F=i([]),G=i(0),I=()=>{l(z.value.id).then((e=>{H()})),U.value=!1},J=(e,a)=>{var t;e.props.name,G.value=Number(null==(t=null==e?void 0:e.props)?void 0:t.name),T.value.notice_type_id=e.props.name,H()};return o((()=>{t().then((e=>{e.data.id&&(U.value=!0,z.value.id=e.data.id,z.value.title=e.data.title,z.value.content=e.data.content)})),T.value.notice_type_id=G,H(),s({}).then((e=>{F.value=e.data,F.value.unshift({id:0,name:"全部"})}))})),(a,t)=>{const l=r("el-table-column"),s=r("el-tag"),d=r("el-table"),u=e,i=r("el-tab-pane"),o=r("el-tabs"),C=r("el-button"),T=r("el-dialog"),H=v("loading");return c(),p(_,null,[m(o,{type:"border-card",modelValue:G.value,"onUpdate:modelValue":t[0]||(t[0]=e=>G.value=e),class:"tabs",onTabClick:J},{default:f((()=>[(c(!0),p(_,null,b(F.value,(e=>(c(),h(i,{key:e.id,label:e.name,name:e.id},{default:f((()=>[g((c(),h(d,{data:k(M),class:"mt-3"},{default:f((()=>[m(l,{prop:"created_at",width:"200",label:"时间"}),m(l,{prop:"title",label:"标题"},{default:f((e=>[m(s,{type:"success",class:"title",size:"default",effect:"dark",onClick:a=>{return t=e.row,void n(t.id).then((e=>{U.value=!0,z.value.id=e.data.id,z.value.title=e.data.title,z.value.content=e.data.content}));var t}},{default:f((()=>[y(j(e.row.title),1)])),_:2},1032,["onClick"])])),_:1})])),_:1},8,["data"])),[[H,k(q)]]),m(u)])),_:2},1032,["label","name"])))),128))])),_:1},8,["modelValue"]),m(T,{draggable:"",modelValue:U.value,"onUpdate:modelValue":t[1]||(t[1]=e=>U.value=e),title:z.value.title,width:"30%",center:""},{footer:f((()=>[x("span",V,[m(C,{onClick:I},{default:f((()=>[y("我知道了")])),_:1})])])),default:f((()=>[x("div",{class:"flex flex-wrap break-all",innerHTML:z.value.content},null,8,w)])),_:1},8,["modelValue","title"])],64)}}});export{C as default};
