2 lines
14 KiB
JavaScript
2 lines
14 KiB
JavaScript
|
import{r as e,ad as a,D as l,bh as t,bI as o,bJ as s,c as d,e as i,N as r,w as n,l as p,m as u,ag as m,ak as _,O as c,g,bL as v,t as y,a5 as b,a6 as h,R as F,bA as f,ba as w,bK as k,b9 as x,bb as D,bB as C}from"./index.BE3jgw84.js";import{E as S}from"./el-card.aiCj8Oae.js";import{_ as j}from"./index.C6y0bHJg.js";import{_ as T}from"./index.CREDAfTv.js";import{E as q}from"./el-text.CHX4yJxC.js";import{h as U,a as V,b as L,i as R,j as O,k as z,l as E,m as N,n as J,u as P}from"./custom.BoqMaoae.js";import B from"./pay.uJwY-HJx.js";/* empty css *//* empty css */import"./index.Crw3TeMt.js";import"./el-tab-pane.CMwFEgma.js";const I={class:"operate"},A=["innerHTML"],G={__name:"task-list",setup(G){let H=[],M=[],K=[];const W=[{label:"待支付",value:"0"},{label:"待审核",value:"1"},{label:"进行中",value:"2"},{label:"审核拒绝",value:"3"},{label:"已完成",value:"4"},{label:"暂停",value:"5"},{label:"已取消",value:"6"}],Q=e(!1),X=a({columns:[{prop:"id",label:"ID",width:80,align:"center"},{prop:"title",label:"任务名称",align:"center"},{prop:"temp_name",label:"模板名称",align:"center"},{prop:"temp_type",label:"模板类型",align:"center",slot:"template_type_slot"},{prop:"groups",label:"群组",align:"center",slot:"group_slot"},{prop:"times",label:"频率",align:"center",slot:"times_slot"},{prop:"cycle",label:"周期",align:"center",slot:"cycle_slot"},{prop:"status",label:"状态",align:"center",slot:"status_slot"},{prop:"created_at",label:"创建时间",align:"center"},{prop:"operate",label:"操作",width:360,align:"center",slot:"operate",fixed:"right"}],tableData:[],searchFields:[{label:"任务名称",prop:"task_name",type:"input",value:""},{label:"模板名称",prop:"temp_name",type:"input",value:""},{label:"状态",prop:"status",type:"select",options:W,value:""},{prop:"created_at",label:"创建时间",type:"date",dateType:"datetimerange",value:[]}],total:0,page:1,per_page:10,loading:!1,countColumns:[{prop:"send_at",label:"发送时间",align:"center"},{prop:"group_name",label:"发送群组",align:"center"},{prop:"reason",label:"失败原因",align:"center",slot:"reason_slot"}],addForm:{title:"创建任务",fields:[{label:"任务名称",prop:"title",type:"input",value:""},{label:"选择模板",prop:"temp_id",type:"select",value:"",options:H},{label:"群组",prop:"groups",type:"input",value:"",disabled:!0},{label:"频率",prop:"times",type:"input",value:"",disabled:!0},{label:"周期",prop:"cycle",type:"input",value:"",disabled:!0},{label:"执行方式",prop:"exec_type",type:"select",value:"",options:[{label:"立即执行",value:1},{label:"定时执行",value:0}]},{label:"开始执行时间",prop:"next_run_time",type:"datetime",value:"",unshow:!0}],rules:{title:[{required:!0,message:"请输入任务名称",trigger:"blur"}],temp_id:[{required:!0,message:"请选择模板",trigger:"change"}],next_run_time:[{required:!1,message:"请输入开始执行时间",trigger:"change"}],exec_type:[{required:!0,message:"请选择执行方式",trigger:"change"}],content:[{required:!0,message:"请输入内容",trigger:"blur"}]},values:{title:"",temp_id:"",groups:"",next_run_time:"",exec_type:0,content:"",cycle:"",times:"",id:""}},btnLoading:!1,showFormDialog:!1,payForm:{title:"申请支付",fields:[{label:"任务ID",prop:"order_no",type:"input",value:"",disabled:!0},{label:"任务名称",prop:"task_id",type:"input",value:"",disabled:!0},{label:"USDT收款账号",prop:"task_id",type:"input",value:"",disabled:!0},{label:"USDT合约地址",prop:"task_id",type:"input",value:"",disabled:!0},{label:"付款金额",prop:"task_id",type:"input",value:"",disabled:!0},{label:"付款哈希凭证",prop:"hash_address",type:"input",value:""}],rules:{hash_address:[{required:!0,message:"请输入付款哈希凭证",trigger:"blur"}]},values:{id:"",hash_address:""}},showPayCodeDialog:!1}),Y=a({columns:[{prop:"shop_unique_code",label:"执行时间",align:"center"},{prop:"shop_unique_code",label:"发送成功率",align:"center"},{prop:"shop_unique_code",label:"失败原因",
|