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