tg_web_dist/js/task-list.fR9TfPWz.js

2 lines
14 KiB
JavaScript
Raw Normal View History

2025-07-04 17:06:01 +08:00
import{a_ as e,r as a,ad as t,D as l,bh as o,bI as s,bJ as d,c as r,e as i,N as n,w as u,l as p,m,ag as c,ak as _,O as g,bL as v,t as y,g as b,a5 as f,a6 as F,R as h,bA as k,ba as w,bK as x,b9 as D,bb as C,bB as j}from"./index.hhEe1BLx.js";import{E as S}from"./el-card.CFoxjjZH.js";import{_ as V}from"./index.DDDr3yXC.js";import{E as L}from"./el-link.B3EEJtkh.js";import{_ as T}from"./index.BYNGtUGT.js";import{E as O}from"./el-text.Cjee-Rf2.js";import{g as z}from"./template.DaD6jBtI.js";import{g as E}from"./group.BWltyn2O.js";import{c as J}from"./account.BgssadWX.js";/* empty css *//* empty css */import"./index.Bv1q6VZO.js";function N(a){return e({url:"/api/sensitiveWords/detect",method:"post",data:a})}const U={class:"operate"},q=["innerHTML"],R={__name:"task-list",setup(R){let B=[],I=[],A=[];let H=[{label:"未支付",value:0},{label:"待确认",value:1},{label:"已支付",value:2},{label:"已关闭",value:3},{label:"超时关闭",value:4},{label:"已退款",value:5},{label:"用户申请退款",value:6},{label:"退款被拒绝",value:7}];const M=[{label:"未开始",value:"0"},{label:"待审核",value:"1"},{label:"进行中",value:"2"},{label:"审核拒绝",value:"3"},{label:"已完成",value:"4"},{label:"暂停",value:"5"},{label:"已取消",value:"6"}],W=a(!1),G=a(""),K=t({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:"user_name",label:"创建人",align:"center"},{prop:"created_at",label:"创建时间",align:"center"},{prop:"usdt_hash_no",label:"交易hash",align:"center"},{prop:"pay_at",label:"支付时间",align:"center"},{prop:"order_status",label:"支付状态",align:"center",slot:"order_status_slot"},{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:M,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"}],taskData:[],addForm:{title:"创建任务",fields:[{label:"任务名称",prop:"title",type:"input",value:""},{label:"选择模板",prop:"temp_id",type:"select",value:"",options:B},{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,showViewDialog:!1});l(K.addForm,((e,a)=>{var t;if(""!=e.values.temp_id){let a=null==(t=null==A?void 0:A.find((a=>a.id==e.values.temp_id)))?void 0:t.group_ids,l=I.filter((e=>a.includes(e.value))).map