1 |
- var P=Object.defineProperty,U=Object.defineProperties;var V=Object.getOwnPropertyDescriptors;var x=Object.getOwnPropertySymbols;var O=Object.prototype.hasOwnProperty,j=Object.prototype.propertyIsEnumerable;var B=(o,t,a)=>t in o?P(o,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):o[t]=a,I=(o,t)=>{for(var a in t||(t={}))O.call(t,a)&&B(o,a,t[a]);if(x)for(var a of x(t))j.call(t,a)&&B(o,a,t[a]);return o},M=(o,t)=>U(o,V(t));var p=(o,t,a)=>new Promise((C,u)=>{var s=n=>{try{c(a.next(n))}catch(m){u(m)}},l=n=>{try{c(a.throw(n))}catch(m){u(m)}},c=n=>n.done?C(n.value):Promise.resolve(n.value).then(s,l);c((a=a.apply(o,t)).next())});import{v as A,ao as F,P as q,_ as G}from"./entry/index-DJx93RYF-1731481145019.js";import{u as H,B as K}from"./useTable-B6PunZL5.js";import{T as W}from"./index-BIj58_Cj.js";import{d as z,f,S as J,a9 as Q,_ as h,$ as X,k as y,a7 as b,a6 as v,u as i,G as S,a2 as T,a0 as w,H as Y}from"./vue-B5pbXMv7.js";import{u as Z}from"./index-CzIUqxsa.js";import{i as $}from"./index-BQgPd3bX.js";import ee from"./userPhasesDrawer-DUGehJOa.js";import{c as te,s as ae}from"./batchMsg.data-CALSM7OD.js";import{a as oe,d as ne,s as le}from"./batchMsg-jo3ZZF1y.js";import{M as se,j as ie}from"./antd-CBeLo_oO.js";import"./useForm-pwHPrILC.js";import"./index-D_SNX-7K.js";import"./tree-BtJaOqz0.js";import"./copyTextToClipboard-Dngb1Nn3.js";import"./index-BDsRYE32.js";import"./index-wDJjh9Os.js";import"./index-BzfGKMh3.js";import"./index-DkGmfgEA.js";import"./index-Cuu0w1HY.js";import"./useWindowSizeFn-BxA6-zLj.js";import"./plugin-C2XGVjF6.js";import"./uuid-BUBnBT7J.js";import"./onMountedOrActivated-C3HH8-CK.js";import"./sortable.esm-BEDva30o.js";import"./useSortable-lvT7rWOs.js";import"./ExclamationCircleOutlined-Ca0mYuiu.js";import"./label-D2isa3-f.js";import"./msgContant-DTOnzvKM.js";import"./customIcons-3Gdl5jeZ.js";import"./file-UkiX_CBa.js";const re=z({__name:"index",setup(o){const{t}=A.useI18n(),a=f(),C=J();f(!1);const u=f(!1),s=f(!1);Z();let l=f(null);const[c,{reload:n}]=H({title:t("wechat.batchMsg.batchMsgList"),api:e=>oe(M(I({},e),{type:1})),columns:te,formConfig:{labelWidth:120,schemas:ae},useSearchForm:!0,showTableSetting:!0,bordered:!1,showIndexColumn:!1,clickToRowSelect:!1,scroll:{x:1800,y:500},actionColumn:{width:220,title:t("common.action"),dataIndex:"action",fixed:"right"},rowKey:"id"});function m(){l.value=null,s.value=!0}function k(e){C.push({path:q.SEND_RECORD,query:{id:e.id}})}function R(e){return p(this,null,function*(){yield n()})}function D(e){return p(this,null,function*(){se.confirm({title:t("common.deleteConfirm"),icon:y($.ExclamationCircleOutlined),onOk(){return p(this,null,function*(){(yield ne({ids:a.value})).code===0&&(u.value=!1,yield n())})},onCancel(){}})})}function E(e){return p(this,null,function*(){(yield le({id:e.id})).code===0&&(ie.success("中止成功"),yield n())})}function g(e){s.value=!0,l.value=e.id}function L(e){return e.status===0?[{onClick:E.bind(null,e),label:"终止"},{onClick:g.bind(null,e),label:"预览"},{onClick:k.bind(null,e),label:"发送记录"}]:e.status===1?[{onClick:g.bind(null,e),label:"预览"},{onClick:k.bind(null,e),label:"发送记录"}]:e.status===2?[{onClick:g.bind(null,e),label:"预览"},{onClick:k.bind(null,e),label:"发送记录"}]:e.status===3?[{onClick:g.bind(null,e),label:"预览"}]:[]}return(e,d)=>{const _=Q("a-button");return h(),X("div",null,[y(i(K),{onRegister:i(c)},{tableTitle:b(()=>[u.value?(h(),v(i(F),{key:0,type:"primary",danger:"",preIcon:"ant-design:delete-outlined",onClick:D},{default:b(()=>[S(T(i(t)("common.delete")),1)]),_:1})):w("",!0)]),toolbar:b(()=>[y(_,{type:"primary",onClick:m},{default:b(()=>[S(T(i(t)("wechat.batchMsg.addBatchMsg")),1)]),_:1})]),bodyCell:b(({column:r,record:N})=>[r.key==="action"?(h(),v(i(W),{key:0,actions:L(N)},null,8,["actions"])):w("",!0)]),_:1},8,["onRegister"]),s.value?(h(),v(ee,{key:0,visible:s.value,"onUpdate:open":d[0]||(d[0]=r=>s.value=r),msgId:i(l),"onUpdate:getMsgList":R,"onUpdate:msgId":d[1]||(d[1]=r=>Y(l)?l.value=r:l=r)},null,8,["visible","msgId"])):w("",!0)])}}}),Ae=G(re,[["__scopeId","data-v-1f812c73"]]);export{Ae as default};
|