import{d as E,Q as J,J as K,r as m,A as O,b as Q,a1 as W,o as d,c as X,k as a,B as e,a as s,a2 as Y,O as i,P as k,g as f,F as Z,a7 as j,S as G,U as H,V as I,W as L,X as M,aD as $,Y as T,Z as aa}from"./index-CHTXMeh8.js";import{_ as ea}from"./index.vue_vue_type_script_setup_true_lang-Cenk7Bi3.js";import{_ as la}from"./ContentWrap.vue_vue_type_script_setup_true_lang-BjvrLlUT.js";import{_ as ta,g as sa,d as ia,p as na,r as ra,a as oa}from"./ScheduleJobForm.vue_vue_type_script_setup_true_lang-DqbZBvGI.js";import"./index-DVe591HI.js";import"./el-card-Bdk9qx7q.js";import"./Dialog.vue_vue_type_style_index_0_lang-DH0TiLYN.js";const ca=E({name:"DataSchedule",__name:"index",setup(pa){const r=J(),{t:U}=K(),w=m(!0),C=m(0),x=m([]),n=O({pageNo:1,pageSize:10,name:void 0,address:void 0}),v=m();m(!1);const o=async()=>{w.value=!0;try{const y=await sa(n);x.value=y.list,C.value=y.total}finally{w.value=!1}},g=()=>{n.pageNo=1,o()},V=()=>{v.value.resetFields(),g()},N=m(),S=(y,t)=>{N.value.open(y,t)};return Q(async()=>{await o()}),(y,t)=>{const D=j,z=G,b=H,c=I,R=L,F=la,u=M,P=$,q=T,A=ea,h=W("hasPermi"),B=aa;return d(),X(Z,null,[a(F,null,{default:e(()=>[a(R,{class:"-mb-15px",model:s(n),ref_key:"queryFormRef",ref:v,inline:!0,"label-width":"80px"},{default:e(()=>[a(z,{label:"bean\u540D\u79F0",prop:"beanName"},{default:e(()=>[a(D,{modelValue:s(n).beanName,"onUpdate:modelValue":t[0]||(t[0]=l=>s(n).beanName=l),placeholder:"\u8BF7\u8F93\u5165bean\u540D\u79F0",clearable:"",onKeyup:Y(g,["enter"]),class:"!w-240px"},null,8,["modelValue"])]),_:1}),a(z,null,{default:e(()=>[a(c,{onClick:g},{default:e(()=>[a(b,{icon:"ep:search",class:"mr-5px"}),i(" \u641C\u7D22 ")]),_:1}),a(c,{onClick:V},{default:e(()=>[a(b,{icon:"ep:refresh",class:"mr-5px"}),i(" \u91CD\u7F6E ")]),_:1}),k((d(),f(c,{type:"primary",plain:"",onClick:t[1]||(t[1]=l=>S("create"))},{default:e(()=>[a(b,{icon:"ep:plus",class:"mr-5px"}),i(" \u65B0\u589E ")]),_:1})),[[h,["data:schedule:create"]]])]),_:1})]),_:1},8,["model"])]),_:1}),a(F,null,{default:e(()=>[k((d(),f(q,{data:s(x)},{default:e(()=>[a(u,{label:"bean\u540D\u79F0",align:"center",prop:"beanName"}),a(u,{label:"\u53C2\u6570",align:"center",prop:"params"}),a(u,{label:"cron\u8868\u8FBE\u5F0F",align:"center",prop:"cronExpression"}),a(u,{label:"\u5907\u6CE8",align:"center",prop:"remark"}),a(u,{label:"\u72B6\u6001",align:"center",prop:"status"},{default:e(l=>[l.row.status===1?(d(),f(P,{key:0,size:"small"},{default:e(()=>[i("\u6B63\u5E38")]),_:1})):(d(),f(P,{key:1,size:"small",type:"danger"},{default:e(()=>[i("\u6682\u505C")]),_:1}))]),_:1}),a(u,{label:"\u64CD\u4F5C",align:"center","min-width":"110",fixed:"right"},{default:e(l=>[k((d(),f(c,{link:"",type:"primary",onClick:_=>S("update",l.row.id)},{default:e(()=>[i(" \u7F16\u8F91 ")]),_:2},1032,["onClick"])),[[h,["data:schedule:update"]]]),k((d(),f(c,{link:"",type:"danger",onClick:_=>(async p=>{try{await r.delConfirm(),await ia(p),r.success(U("common.delSuccess")),await o()}catch{}})(l.row.id)},{default:e(()=>[i(" \u5220\u9664 ")]),_:2},1032,["onClick"])),[[h,["data:schedule:delete"]]]),a(c,{link:"",type:"primary",onClick:_=>(async p=>{try{await r.confirm("\u786E\u8BA4\u6682\u505C\uFF1F","\u6682\u505C\u5B9A\u65F6"),await na(p),r.success("\u6682\u505C\u6210\u529F"),await o()}catch{}})(l.row.id)},{default:e(()=>[i(" \u6682\u505C ")]),_:2},1032,["onClick"]),a(c,{link:"",type:"primary",onClick:_=>(async p=>{try{await r.confirm("\u786E\u8BA4\u6062\u590D\uFF1F","\u6062\u590D\u5B9A\u65F6"),await ra(p),r.success("\u6062\u590D\u6210\u529F"),await o()}catch{}})(l.row.id)},{default:e(()=>[i(" \u6062\u590D ")]),_:2},1032,["onClick"]),a(c,{link:"",type:"primary",onClick:_=>(async p=>{try{await r.confirm("\u786E\u8BA4\u6267\u884C\uFF1F","\u6267\u884C\u5B9A\u65F6"),await oa(p),r.success("\u6267\u884C\u6210\u529F"),await o()}catch{}})(l.row.id)},{default:e(()=>[i(" \u6267\u884C ")]),_:2},1032,["onClick"])]),_:1})]),_:1},8,["data"])),[[B,s(w)]]),a(A,{total:s(C),page:s(n).pageNo,"onUpdate:page":t[2]||(t[2]=l=>s(n).pageNo=l),limit:s(n).pageSize,"onUpdate:limit":t[3]||(t[3]=l=>s(n).pageSize=l),onPagination:o},null,8,["total","page","limit"])]),_:1}),a(ta,{ref_key:"formRef",ref:N,onSuccess:o},null,512)],64)}}});export{ca as default};
|