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-gyz1IdHU.js";import"./index-zKZnG1QC.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-3moZ9_kF.js";import ut from"./DetailModal-rYmHVwZh.js";import{aY as ct,a9 as U,b3 as dt}from"./index-Cy4uayzW.js";import{useListPage as ft}from"./useListPage-TMORxSEa.js";import{Q as _t}from"./componentMap-0iK4HQBq.js";import gt from"./BasicTable-CgafrQwz.js";import"./antd-vue-vendor-CahNzUUa.js";import"./BasicModal-sKcs_9Ir.js";import"./ModalHeader-ByCVDoqO.js";import"./useTimeout-gJpgadD6.js";import"./vxe-table-vendor-Cdi8WfTx.js";import"./index-Bdn0r8CG.js";import"./useWindowSizeFn-DDyhhqyw.js";import"./index-CYoRlduV.js";import"./index-DYB8Ashr.js";import"./index-CrdW4fN1.js";import"./useIntersectionObserver-FVRzwlSd.js";import"./index-BN26Feep.js";import"./useForm-DfoT2G6J.js";import"./JAreaLinkage-CTMEfTuh.js";import"./areaDataUtil-Dk3xkGfK.js";import"./china-area-data-vendor-ByvEpbzN.js";import"./JSelectUser-B98pRPrS.js";import"./props-CtlWAg-s.js";import"./JSelectBiz-vYDBA0SK.js";import"./JSelectDept-D-TUaHvK.js";import"./index-CNQBnF3P.js";import"./bem-IZKqD41e.js";import"./props-CG-jAkbI.js";import"./useContextMenu-Q6J5bB_u.js";import"./JCodeEditor-U9QIstNN.js";import"./useFormItem-IOFWTdED.js";import"./htmlmixed-DoVLO6sG.js";import"./vue-DY75b9GC.js";/* empty css             */import"./JAddInput-DP4caUmw.js";import"./index-tDBMxW9-.js";import"./depart.api-B8q8MC-j.js";import"./JPopup-CVHkQZFq.js";import"./EasyCronInput-CZdChTcP.js";import"./JEllipsis-TuDc52fh.js";import"./JDictSelectTag-CalJXNVe.js";import"./JImageUpload-C5OCTlCG.js";import"./renderUtils-BcsccCoe.js";import"./download-Bn4f3tzD.js";import"./base64Conver-24EVOS6V.js";import"./index-D6H6KsT6.js";import"./index-CLxBW_h0.js";import"./useCountdown-2P9HvnfJ.js";import"./useFormItemSingle-BEyrYQqf.js";import"./JUpload-DSWoDwh2.js";import"./index-B4vNk56t.js";import"./index-Dc7Jr5-j.js";import"./index-Dm1rPBfc.js";import"./injectionKey-DPVn4AgL.js";const bt=A({name:"system-notice"}),Do=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{Do as default};
