You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1 lines
1.6 KiB
1 lines
1.6 KiB
import{g as x,r as l,i as V,o as r,k as d,w as n,a as o,d as a,j as N,t as i,e as c,a0 as S,a4 as k}from"./index-CsSGZIOI.js";const T={style:{"text-align":"center",width:"100%","letter-spacing":"0.5rem"}},B={style:{"text-align":"right",width:"100%"}},M=["innerHTML"],H={__name:"viewDialog",emits:["refresh"],setup(C,{expose:p,emit:g}){const m=g,e=x({isShowDialog:!1,form:{},row:{},loading:!1});function u(s){_(),e.loading=!0,e.row=s,S(s.messageId).then(t=>{e.form=t.data}).finally(()=>e.loading=!1),s.isRead||k(s.id).then(()=>{m("refresh")}),e.isShowDialog=!0}function _(){e.form={id:null,messageType:0,title:"",content:"",status:0}}return p({openDialog:u}),(s,t)=>{const f=l("Edit"),h=l("el-icon"),w=l("el-divider"),v=l("el-scrollbar"),y=l("el-dialog"),D=V("loading");return r(),d(y,{modelValue:e.isShowDialog,"onUpdate:modelValue":t[0]||(t[0]=b=>e.isShowDialog=b),draggable:"","close-on-click-modal":!1,width:"80%",top:"1vh","append-to-body":""},{header:n(()=>[o("div",null,[a(h,{class:"el-custom-dialog-icon"},{default:n(()=>[a(f)]),_:1}),t[1]||(t[1]=o("span",null,"公告通知",-1))])]),default:n(()=>[N((r(),d(v,{class:"app-container",style:{padding:"0rem 2rem"},height:"90vh"},{default:n(()=>[o("section",T,[o("h1",null,i(e.row.title),1)]),a(w,{style:{margin:"0"}}),o("section",B,[o("span",null,"发布人:"+i(e.row.publisherName),1),t[2]||(t[2]=c(" ")),o("span",null,"发布机构:"+i(e.row.publisherOrgName),1),t[3]||(t[3]=c(" ")),o("span",null,"发布时间:"+i(e.row.publishAt),1)]),o("section",{style:{width:"100%","padding-top":"1rem"},innerHTML:e.form.content},null,8,M)]),_:1})),[[D,e.loading]])]),_:1},8,["modelValue"])}}};export{H as default};
|
|
|