batchMsg.data-BlcISv5B.js 2.0 KB

1
  1. import{b as c,aq as r,bl as l}from"./entry/index-BOVpYCVt-1731915664217.js";import{g as o}from"./label-DhDYDDvs.js";const{t:e}=c(),d=[{title:e("wechat.batchMsg.batchNo"),dataIndex:"batchNo",width:200,fixed:!0},{title:"任务名称",dataIndex:"taskName",fixed:!0},{title:e("wechat.batchMsg.fromwxid"),dataIndex:"fromwxid"},{title:e("wechat.batchMsg.tag"),dataIndex:"tag"},{title:"计划开始时间",dataIndex:"startTimeStr"},{title:e("wechat.batchMsg.total"),dataIndex:"total"},{title:e("wechat.batchMsg.success"),dataIndex:"success"},{title:e("wechat.batchMsg.fail"),dataIndex:"fail"},{title:e("common.status"),dataIndex:"status",customRender:({record:t})=>{switch(t.status){case 0:return"未开始";case 1:return"发送中";case 2:return"发送完成";case 3:return"发送中止";default:return"未知"}}},{title:e("common.createTime"),dataIndex:"createdAt",customRender:({record:t})=>r(t.createdAt)}],m=[{field:"batchNo",label:e("wechat.batchMsg.batchNo"),component:"Input",colProps:{span:8}},{field:"fromwxid",label:e("wechat.batchMsg.fromwxid"),component:"Input",colProps:{span:8}},{field:"msg",label:e("wechat.batchMsg.msg"),component:"Input",colProps:{span:8}}],p=[{field:"fromwxid",label:e("wechat.batchMsg.fromwxid"),component:"ApiSelect",componentProps:{api:l,params:{page:1,pageSize:100,type:2},immediate:!1,resultField:"data.data",labelField:"nickname",valueField:"wxid"},required:!0},{field:"msg",label:e("wechat.batchMsg.msg"),component:"InputTextArea",required:!0},{field:"labels",label:e("wechat.batchMsg.tag"),component:"ApiSelect",componentProps:()=>({api:t=>o(t).then(a=>(a.data.unshift({label:"全部",value:"全部"}),a.data.map(s=>({label:s.label,value:s.label})))),params:{page:1,pageSize:1e3,type:1},mode:"tags",tokenSeparators:[","]}),required:!0},{field:"startTimeStr",label:e("wechat.batchMsg.startTime"),component:"DatePicker",componentProps:{showTime:!0},helpMessage:"定时发送时间,不填写或填写当前时间或小于当前时间则立刻发送",required:!1}];export{d as c,p as f,m as s};