var H=Object.defineProperty,Q=Object.defineProperties;var Y=Object.getOwnPropertyDescriptors;var y=Object.getOwnPropertySymbols;var j=Object.prototype.hasOwnProperty,J=Object.prototype.propertyIsEnumerable;var D=(n,e,o)=>e in n?H(n,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):n[e]=o,R=(n,e)=>{for(var o in e||(e={}))j.call(e,o)&&D(n,o,e[o]);if(y)for(var o of y(e))J.call(e,o)&&D(n,o,e[o]);return n},x=(n,e)=>Q(n,Y(e));var m=(n,e,o)=>new Promise((u,c)=>{var b=a=>{try{f(o.next(a))}catch(_){c(_)}},d=a=>{try{f(o.throw(a))}catch(_){c(_)}},f=a=>a.done?u(a.value):Promise.resolve(a.value).then(b,d);f((o=o.apply(n,e)).next())});import{d as A,f as O,U as p,a2 as v,a3 as W,k as i,af as r,u as l,G as w,ad as Z,V as tt}from"./vue-vendor-CxLCUzY4.js";import"./index-LwlFn7Y4.js";import"./index-D2AmS0aU.js";import{s as ot,c as et,g as nt,a as it,b as at,d as rt,e as lt,f as st,h as mt,_ as pt}from"./NoticeModal-DXKuC0Sc.js";import ut from"./DetailModal-D2vB7MCo.js";import{aY as ct,a9 as U,b3 as dt}from"./index-B_2CoVdl.js";import{useListPage as ft}from"./useListPage-BEtybUiF.js";import{Q as _t}from"./componentMap-CzCGDP7x.js";import gt from"./BasicTable-Clbg3fHx.js";import"./antd-vue-vendor-CDWW6V_M.js";import"./BasicModal-D3g2CFhF.js";import"./ModalHeader-C-C0dUi_.js";import"./useTimeout-CB9F1PLu.js";import"./vxe-table-vendor-B5h3MVdD.js";import"./index-DAURrYyA.js";import"./useWindowSizeFn-C3WExEpc.js";import"./index-Dz2zbQB_.js";import"./index-exs4VcBw.js";import"./index-ByLO0zSl.js";import"./useIntersectionObserver-FVRzwlSd.js";import"./index-ARbUvvsq.js";import"./useForm-CcjrODHR.js";import"./JAreaLinkage-CSgDAlrn.js";import"./areaDataUtil-DFHnz1wu.js";import"./china-area-data-vendor-D0sJ9kfX.js";import"./JSelectUser-BQIJUcBR.js";import"./props-BCVPj-bG.js";import"./JSelectBiz-CJyWq5s2.js";import"./JSelectDept-wKz_Qtmc.js";import"./index-BKs2x_To.js";import"./bem-C6eT35UB.js";import"./props-BLY2qIO5.js";import"./useContextMenu-CSt5a1-F.js";import"./JCodeEditor-esTLnfS3.js";import"./useFormItem-CWa0w7fA.js";import"./htmlmixed-DRe7JlAp.js";import"./vue-B0b3nX1K.js";/* empty css             */import"./JAddInput-YFlAniYT.js";import"./index-CkL00Q0a.js";import"./depart.api-0qTriT9h.js";import"./JPopup-BJBYqoWe.js";import"./EasyCronInput-DclSHT47.js";import"./JEllipsis-Cn7GCKHR.js";import"./JDictSelectTag-CxpDdimB.js";import"./renderUtils-Cbe4E0PZ.js";import"./download-2tYEzlDW.js";import"./base64Conver-24EVOS6V.js";import"./index-Cgt544dC.js";import"./index-BZ9ST2iq.js";import"./useCountdown-ImUE7YaG.js";import"./useFormItemSingle-DM34aWgK.js";import"./JUpload-DzM-D4DX.js";import"./index-khU3p_On.js";import"./index-DPEnuI0R.js";import"./index-Cnb8BkwG.js";import"./injectionKey-DPVn4AgL.js";const bt=A({name:"system-notice"}),yo=A(x(R({},bt),{setup(n){const e=ct(),[o,{openModal:u}]=U(),[c,{openModal:b}]=U(),d=O(""),{prefixCls:f,onExportXls:a,onImportXls:_,tableContext:I,doRequest:M}=ft({designScope:"notice-template",tableProps:{title:"消息通知",api:nt,columns:et,formConfig:{schemas:ot}},exportConfig:{name:"消息通知列表",url:at},importConfig:{url:it}}),[N,{reload:g},{rowSelection:E,selectedRowKeys:S}]=I;function T(){u(!0,{isUpdate:!1})}function V(t){u(!0,{record:t,isUpdate:!0})}function $(t){return m(this,null,function*(){yield rt({id:t.id},g)})}function B(){return m(this,null,function*(){M(()=>mt({ids:S.value}))})}function G(t){return m(this,null,function*(){yield lt({id:t}),g()})}function K(t){return m(this,null,function*(){yield st({id:t}),g()})}function L(t){d.value=`${e.uploadUrl}/sys/annountCement/show/${t.id}?token=${dt()}`,b(!0)}function P(t){return[{label:"编辑",onClick:V.bind(null,t),ifShow:t.sendStatus==0}]}function X(t){return[{label:"删除",ifShow:t.sendStatus!=1,popConfirm:{title:"是否确认删除",confirm:$.bind(null,t)}},{label:"发布",ifShow:t.sendStatus==0,onClick:G.bind(null,t.id)},{label:"撤销",ifShow:t.sendStatus==1,popConfirm:{title:"确定要撤销吗？",confirm:K.bind(null,t.id)}},{label:"查看",onClick:L.bind(null,t)}]}return(t,s)=>{const C=p("a-button"),k=p("Icon"),q=p("a-menu-item"),z=p("a-menu"),F=p("a-dropdown");return v(),W("div",null,[i(l(gt),{onRegister:l(N),rowSelection:l(E)},{tableTitle:r(()=>[i(C,{preIcon:"ant-design:plus-outlined",type:"primary",onClick:T},{default:r(()=>s[0]||(s[0]=[w("新建")])),_:1}),l(S).length>0?(v(),Z(F,{key:0},{overlay:r(()=>[i(z,null,{default:r(()=>[i(q,{key:"1",onClick:B},{default:r(()=>[i(k,{icon:"ant-design:delete-outlined"}),s[1]||(s[1]=w(" 删除 "))]),_:1})]),_:1})]),default:r(()=>[i(C,null,{default:r(()=>[s[2]||(s[2]=w("批量操作 ")),i(k,{style:{fontsize:"12px"},icon:"ant-design:down-outlined"})]),_:1})]),_:1})):tt("",!0)]),action:r(({record:h})=>[i(l(_t),{actions:P(h),dropDownActions:X(h)},null,8,["actions","dropDownActions"])]),_:1},8,["onRegister","rowSelection"]),i(pt,{onRegister:l(o),onSuccess:l(g)},null,8,["onRegister","onSuccess"]),i(ut,{onRegister:l(c),frameSrc:d.value},null,8,["onRegister","frameSrc"])])}}}));export{yo as default};
