1 |
- import{b as p,aq as o}from"./entry/index-CP6zkLsN-1726190694502.js";import{bC as m}from"./antd-Bp5u6ujY.js";import{l}from"./vue-CmlY4eyV.js";const{t:e}=p(),s=[{label:"草稿",value:1},{label:"未开始",value:2},{label:"已开始",value:3}],r=[{label:e("好友"),value:1},{label:e("群组"),value:2},{label:e("企业微信联系人"),value:3}],f=[{title:"序号",dataIndex:"index",width:50,fixed:"left",customRender:({index:t})=>t+1},{title:"SOP名称",dataIndex:"name",fixed:"left",width:130},{title:e("开始时间"),dataIndex:"planStartTime",customRender:({record:t})=>t.planStartTime?o(t.planStartTime):"不限制"},{title:e("结束时间"),dataIndex:"planEndTime",customRender:({record:t})=>t.planEndTime?o(t.planEndTime):"不限制"},{title:e("发送账号"),dataIndex:"botWxidList",customRender:({record:t})=>{var a;return l("div",(a=t.botWxidList)==null?void 0:a.map((n,i)=>l("div",{key:i,style:{display:"flex",alignItems:"center"}},[l(m,{style:{marginRight:"8px",fontSize:"20px",color:"#00BB29"}}),n])))}},{title:e("common.status"),dataIndex:"status",customRender:({record:t})=>{const a=s.find(n=>n.value===t.status);return a?a.label:""}},{title:e("common.createTime"),dataIndex:"createdAt",customRender:({record:t})=>o(t.createdAt)}],b=[{field:"name",label:"SOP名称",component:"Input",colProps:{span:8}},{field:"planStartTime",label:"开始时间",component:"DatePicker",componentProps:{showTime:!0,format:"YYYY-MM-DD HH:mm:ss"},colProps:{span:7}},{field:"planEndTime",label:"结束时间",component:"DatePicker",componentProps:{showTime:!0,format:"YYYY-MM-DD HH:mm:ss"},colProps:{span:7}},{field:"status",label:"状态",component:"Select",componentProps:{options:s},colProps:{span:5}}],T=[{field:"id",label:"ID",component:"Input",show:!1},{field:"name",label:e("wechat.sopTask.name"),component:"Input",required:!0},{field:"botWxidList",label:e("wechat.sopTask.botWxidList"),component:"Input",required:!1,show:!1},{field:"type",label:e("wechat.sopTask.type"),component:"RadioGroup",required:!0,componentProps:{options:r}},{field:"planStartTime",label:e("wechat.sopTask.planStartTime"),component:"InputNumber",required:!1},{field:"planEndTime",label:e("wechat.sopTask.planEndTime"),component:"InputNumber",required:!1},{field:"status",label:e("wechat.sopTask.status"),component:"Select",defaultValue:1,componentProps:{options:s}}];export{f as c,T as f,b as s};
|