/* empty css             *//* empty css                   *//* empty css                  *//* empty css                   *//* empty css                  *//* empty css                    */import{_ as a}from"./index.vue_vue_type_script_setup_true_lang-e74be938.js";/* empty css                        *//* empty css                    *//* empty css               */import"./el-tooltip-4ed993c7.js";/* empty css                  *//* empty css                     */import{u as e}from"./useGetList-d550ec92.js";import{n as t,a as l,b as s,c as o}from"./index-31cd0771.js";import{d as i,p as n,m as r,x as u,o as d,c as p,a as m,w as c,F as v,y as _,l as f,Z as b,f as j,b as h,t as x,e as y,aa as g,ah as k,ab as w,aw as V,ax as C,W as T,v as H,a2 as L}from"./index-41bf27b7.js";/* empty css                 *//* empty css                  */import"./http-e55ef919.js";const M=["innerHTML"],U={class:"dialog-footer"},W=i({__name:"index",setup(i){const{data:W,query:q,search:z,reset:F,loading:G}=e("system/notices/notice/mine",!0),N=n((()=>{var a;return null==(a=W.value)?void 0:a.data})),O=r(!1),Q=r({}),R=r([]),S=r(0),X=()=>{l(Q.value.id).then((a=>{z()})),O.value=!1},Y=(a,e)=>{var t;a.props.name,S.value=Number(null==(t=null==a?void 0:a.props)?void 0:t.name),q.value.notice_type_id=a.props.name,z()};return u((()=>{t().then((a=>{a.data.id&&(O.value=!0,Q.value.id=a.data.id,Q.value.title=a.data.title,Q.value.content=a.data.content)})),q.value.notice_type_id=S,z(),s({}).then((a=>{R.value=a.data,R.value.unshift({id:0,name:"全部"})}))})),(e,t)=>{const l=g,s=k,i=w,n=a,r=V,u=C,W=T,q=H,z=L;return d(),p(v,null,[m(u,{type:"border-card",modelValue:S.value,"onUpdate:modelValue":t[0]||(t[0]=a=>S.value=a),class:"tabs",onTabClick:Y},{default:c((()=>[(d(!0),p(v,null,_(R.value,(a=>(d(),f(r,{key:a.id,label:a.name,name:a.id},{default:c((()=>[b((d(),f(i,{data:j(N),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=>{O.value=!0,Q.value.id=a.data.id,Q.value.title=a.data.title,Q.value.content=a.data.content}));var t}},{default:c((()=>[h(x(a.row.title),1)])),_:2},1032,["onClick"])])),_:1})])),_:1},8,["data"])),[[z,j(G)]]),m(n)])),_:2},1032,["label","name"])))),128))])),_:1},8,["modelValue"]),m(q,{draggable:"",modelValue:O.value,"onUpdate:modelValue":t[1]||(t[1]=a=>O.value=a),title:Q.value.title,width:"30%",center:""},{footer:c((()=>[y("span",U,[m(W,{onClick:X},{default:c((()=>[h("我知道了")])),_:1})])])),default:c((()=>[y("div",{class:"flex flex-wrap break-all",innerHTML:Q.value.content},null,8,M)])),_:1},8,["modelValue","title"])],64)}}});export{W as default};
