index-CbNTqnsP.js 2.3 KB

1
  1. var u=(e,c,o)=>new Promise((i,s)=>{var m=t=>{try{a(o.next(t))}catch(r){s(r)}},n=t=>{try{a(o.throw(t))}catch(r){s(r)}},a=t=>t.done?i(t.value):Promise.resolve(t.value).then(m,n);a((o=o.apply(e,c)).next())});import{B as f,u as b}from"./useTable-C16d97Pc.js";import{T as w}from"./index-CX4KF_X2.js";import{ao as _,v as B,_ as C}from"./entry/index-aWM9ONEg-1721905115166.js";import{u as T}from"./index-DsWc2dai.js";import{B as M,g as S,c as k,s as y}from"./BatchMsgDrawer-xXMNUqHq.js";import{d as D,f as v,a7 as p,_ as h,$ as g,k as d,a9 as l,G as R,a1 as x,F as I,ab as $}from"./vue-YAQxJ0SI.js";import"./useForm-BUs7QBU2.js";import"./index-CbXq8_QU.js";import"./antd-c1uHJHtu.js";import"./tree-BeOocfO0.js";import"./copyTextToClipboard-BoCUzXqE.js";import"./index-BzTU6kMb.js";import"./index-AVXO_uSC.js";import"./index-BLu-LcKy.js";import"./index-D8KFrDWL.js";import"./index-CWChM6mK.js";import"./useWindowSizeFn-Ca3SEPFY.js";import"./plugin-BtkwVqDc.js";import"./onMountedOrActivated-9LbCg5GM.js";import"./sortable.esm-CnNXHMH-.js";import"./useSortable-2hwmyCqe.js";import"./wx-CwRNw7sH.js";import"./label-2aVeLrfm.js";const F=D({name:"BatchMsgManagement",components:{BasicTable:f,BatchMsgDrawer:M,TableAction:w,Button:_},setup(){const{t:e}=B.useI18n(),c=v(),[o,{openDrawer:i}]=T(),[s,{reload:m}]=b({title:e("wechat.batchMsg.batchMsgList"),api:S,columns:k,formConfig:{labelWidth:120,schemas:y},useSearchForm:!0,showTableSetting:!0,bordered:!1,showIndexColumn:!1,clickToRowSelect:!1,actionColumn:{width:30,title:e("common.action"),dataIndex:"action",fixed:void 0},rowKey:"id",rowSelection:{type:"checkbox",columnWidth:20,onChange:(t,r)=>{c.value=t}}});function n(){i(!0,{isUpdate:!1})}function a(){return u(this,null,function*(){yield m()})}return{t:e,registerTable:s,registerDrawer:o,handleCreate:n,handleSuccess:a}}});function N(e,c,o,i,s,m){const n=p("a-button"),a=p("BasicTable"),t=p("BatchMsgDrawer");return h(),g("div",null,[d(a,{onRegister:e.registerTable},{tableTitle:l(()=>[]),toolbar:l(()=>[d(n,{type:"primary",onClick:e.handleCreate},{default:l(()=>[R(x(e.t("wechat.batchMsg.addBatchMsg")),1)]),_:1},8,["onClick"])]),bodyCell:l(({column:r,record:V})=>[r.key==="action"?(h(),g(I,{key:0},[],64)):$("",!0)]),_:1},8,["onRegister"]),d(t,{onRegister:e.registerDrawer,onSuccess:e.handleSuccess},null,8,["onRegister","onSuccess"])])}const ne=C(F,[["render",N]]);export{ne as default};