/* empty css             *//* empty css                   *//* empty css                  *//* empty css                   *//* empty css                  *//* empty css                    */import{_ as a}from"./index.vue_vue_type_script_setup_true_lang-e601cfd0.js";/* empty css                        *//* empty css                    *//* empty css               */import"./el-tooltip-4ed993c7.js";/* empty css                     */import{u as e}from"./useGetList-33a80877.js";import{n as t,a as l,b as s,c as o}from"./index-dd569ef4.js";import{d as i,n,q as r,z as d,o as u,c as p,a as m,w as c,F as v,p as f,l as _,Z as b,f as j,b as h,t as y,e as g,aa as x,ah as k,ab as V,aC as w,aD as C,X as q,y as z,a2 as L}from"./index-545c1a76.js";/* empty css                 *//* empty css                  */import"./http-795fd5dc.js";const T=["innerHTML"],H={class:"dialog-footer"},M=i({__name:"index",setup(i){const{data:M,query:U,search:D,reset:F,loading:G}=e("system/notices/notice/mine",!0),I=n((()=>{var a;return null==(a=M.value)?void 0:a.data})),N=r(!1),O=r({}),X=r([]),Z=r(0),A=()=>{l(O.value.id).then((a=>{D()})),N.value=!1},B=(a,e)=>{var t;a.props.name,Z.value=Number(null==(t=null==a?void 0:a.props)?void 0:t.name),U.value.notice_type_id=a.props.name,D()};return d((()=>{t().then((a=>{a.data.id&&(N.value=!0,O.value.id=a.data.id,O.value.title=a.data.title,O.value.content=a.data.content)})),U.value.notice_type_id=Z,D(),s({}).then((a=>{X.value=a.data,X.value.unshift({id:0,name:"全部"})}))})),(e,t)=>{const l=x,s=k,i=V,n=a,r=w,d=C,M=q,U=z,D=L;return u(),p(v,null,[m(d,{type:"border-card",modelValue:Z.value,"onUpdate:modelValue":t[0]||(t[0]=a=>Z.value=a),class:"tabs",onTabClick:B},{default:c((()=>[(u(!0),p(v,null,f(X.value,(a=>(u(),_(r,{key:a.id,label:a.name,name:a.id},{default:c((()=>[b((u(),_(i,{data:j(I),class:"mt-3"},{default:c((()=>[m(l,{prop:"created_at",width:"200",label:"时间"}),m(l,{prop:"title",label:"标题"},{default:c((a=>[m(s,{type:"success",class:"title",size:"default",effect:"dark",onClick:e=>{return t=a.row,void o(t.id).then((a=>{N.value=!0,O.value.id=a.data.id,O.value.title=a.data.title,O.value.content=a.data.content}));var t}},{default:c((()=>[h(y(a.row.title),1)])),_:2},1032,["onClick"])])),_:1})])),_:1},8,["data"])),[[D,j(G)]]),m(n)])),_:2},1032,["label","name"])))),128))])),_:1},8,["modelValue"]),m(U,{draggable:"",modelValue:N.value,"onUpdate:modelValue":t[1]||(t[1]=a=>N.value=a),title:O.value.title,width:"30%",center:""},{footer:c((()=>[g("span",H,[m(M,{onClick:A},{default:c((()=>[h("我知道了")])),_:1})])])),default:c((()=>[g("div",{class:"flex flex-wrap break-all",innerHTML:O.value.content},null,8,T)])),_:1},8,["modelValue","title"])],64)}}});export{M as default};
