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-BN5Ac_IG.js";import"./index-CF_FJn6P.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-O9aVroyV.js";import ut from"./DetailModal-7egSsG-t.js";import{aY as ct,a9 as U,b3 as dt}from"./index-CYriLmQo.js";import{useListPage as ft}from"./useListPage-i3Wl0_Fg.js";import{Q as _t}from"./componentMap-7D1QIeNI.js";import gt from"./BasicTable-DAfCfXmD.js";import"./antd-vue-vendor-CDWW6V_M.js";import"./BasicModal-BBgVjypv.js";import"./ModalHeader-jGKMr-DQ.js";import"./useTimeout-DC8132dd.js";import"./vxe-table-vendor-B5h3MVdD.js";import"./index-CxQILSKV.js";import"./useWindowSizeFn-BxrEMPtP.js";import"./index-BRTtls-l.js";import"./index-DOuVMe-q.js";import"./index-ByLO0zSl.js";import"./useIntersectionObserver-FVRzwlSd.js";import"./index-BkgeZpOO.js";import"./useForm-8o5KRzWo.js";import"./JAreaLinkage-DFTeDmm8.js";import"./areaDataUtil-DFHnz1wu.js";import"./china-area-data-vendor-D0sJ9kfX.js";import"./JSelectUser-nVFm3ao2.js";import"./props-DoGpHXAD.js";import"./JSelectBiz-BW6f3e--.js";import"./JSelectDept-DorRVguN.js";import"./index-BTAl55Kt.js";import"./bem-2ra1afoV.js";import"./props-BLY2qIO5.js";import"./useContextMenu-DYyhcDf7.js";import"./JCodeEditor-_KZ8XnNK.js";import"./useFormItem-CWa0w7fA.js";import"./htmlmixed-DRe7JlAp.js";import"./vue-B0b3nX1K.js";/* empty css             */import"./JAddInput-CXT54-j9.js";import"./index-BTSd5ebC.js";import"./depart.api-C9T5xfw6.js";import"./JPopup-KP1kIsae.js";import"./EasyCronInput-XK54XB3r.js";import"./JEllipsis-287cEHxd.js";import"./JDictSelectTag-Jqy9TBcS.js";import"./renderUtils-CGtepdOw.js";import"./download-CkbK5et1.js";import"./base64Conver-24EVOS6V.js";import"./index-QMJkXEyl.js";import"./index-Bb_NRLur.js";import"./useCountdown-C3-PRPLY.js";import"./useFormItemSingle-DM34aWgK.js";import"./JUpload-pyrTRFCz.js";import"./index-Bx9Mnn3N.js";import"./index-B1-pj6uh.js";import"./index-isxCPgHp.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};
