1 |
- import{b as r,aq as o}from"./entry/index-CcR3XhtN-1721963535400.js";import{br as m}from"./antd-c1uHJHtu.js";import{l}from"./vue-YAQxJ0SI.js";const{t}=r(),s=[{label:"草稿",value:1},{label:"未开始",value:2},{label:"已开始",value:3}],p=[{label:t("好友"),value:1},{label:t("群组"),value:2},{label:t("企业微信联系人"),value:3}],f=[{title:"序号",dataIndex:"index",fixed:"left",customRender:({index:e})=>e+1},{title:"SOP名称",dataIndex:"name",fixed:"left"},{title:t("wechat.sopTask.type"),dataIndex:"type",customRender:({record:e})=>{const a=p.find(n=>n.value===e.status);return a?a.label:""}},{title:t("开始时间"),dataIndex:"planStartTime",customRender:({record:e})=>e.planStartTime?o(e.planStartTime):"不限制"},{title:t("结束时间"),dataIndex:"planEndTime",customRender:({record:e})=>e.planEndTime?o(e.planEndTime):"不限制"},{title:t("发送账号"),dataIndex:"botWxidList",customRender:({record:e})=>{var a;return l("div",(a=e.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:t("common.status"),dataIndex:"status",customRender:({record:e})=>{const a=s.find(n=>n.value===e.status);return a?a.label:""}},{title:t("common.createTime"),dataIndex:"createdAt",customRender:({record:e})=>o(e.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:8}},{field:"planEndTime",label:"结束时间",component:"DatePicker",componentProps:{showTime:!0,format:"YYYY-MM-DD HH:mm:ss"},colProps:{span:8}},{field:"status",label:"状态",component:"Select",componentProps:{options:s},colProps:{span:8}}],T=[{field:"id",label:"ID",component:"Input",show:!1},{field:"name",label:t("wechat.sopTask.name"),component:"Input",required:!0},{field:"botWxidList",label:t("wechat.sopTask.botWxidList"),component:"Input",required:!1,show:!1},{field:"type",label:t("wechat.sopTask.type"),component:"RadioGroup",required:!0,componentProps:{options:p}},{field:"planStartTime",label:t("wechat.sopTask.planStartTime"),component:"InputNumber",required:!1},{field:"planEndTime",label:t("wechat.sopTask.planEndTime"),component:"InputNumber",required:!1},{field:"status",label:t("wechat.sopTask.status"),component:"Select",defaultValue:1,componentProps:{options:s}}];export{f as c,T as f,b as s};
|