2 lines
3.8 KiB
JavaScript
2 lines
3.8 KiB
JavaScript
import{a1 as x,w as D,M as T,N as V,J as N,O as P}from"./element-plus.ab0703f2.js";import{_ as j}from"./index.vue_vue_type_script_setup_true_lang.5fc87b57.js";import{j as F,f as L,E as R,b as $,F as U}from"./index.ae42b2c0.js";import{u as q}from"./usePaging.fff444fa.js";import{d as C,ah as A,ap as J,o as i,c as M,W as t,Q as e,R as p,P as n,u as r,U as l,T as _,a as y,j as O}from"./@vue.340249d8.js";import"./lodash-es.edba6135.js";import"./@vueuse.e3650918.js";import"./@element-plus.558a564d.js";import"./@popperjs.36402333.js";import"./@ctrl.b082b0c1.js";import"./dayjs.9886411c.js";import"./axios.45058a27.js";import"./async-validator.fb49d0f5.js";import"./memoize-one.4ee5c96d.js";import"./normalize-wheel-es.8aeb3683.js";import"./@floating-ui.0f9ce7c3.js";import"./lodash.3d784a58.js";import"./vue-router.9ddb0e92.js";import"./pinia.97fe9b12.js";import"./css-color-function.5c1c877d.js";import"./color.97e03886.js";import"./clone.cfa55f7b.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./ms.564e106c.js";import"./nprogress.8c276ac9.js";import"./vue-clipboard3.44194d32.js";import"./clipboard.47836ecb.js";import"./echarts.8535e5a6.js";import"./zrender.3eba8991.js";import"./tslib.60310f1a.js";import"./highlight.js.31cd7941.js";import"./@highlightjs.309a94da.js";const Q={class:"flex"},W={class:"flex justify-end mt-4"},z=C({name:"scheduledTask"}),Tt=C({...z,setup(G){const{pager:s,getLists:m}=q({fetchFun:U,params:{}}),g=async b=>{await L.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await R({id:b}),m()};return m(),(b,f)=>{const E=$,u=D,h=A("router-link"),a=T,d=x,k=V,w=j,v=N,c=J("perms"),B=P;return i(),M("div",null,[t(v,{shadow:"never",class:"!border-none"},{default:e(()=>[p((i(),n(h,{to:r(F)("crontab.crontab/add:edit")},{default:e(()=>[t(u,{type:"primary",class:"mb-[16px]"},{icon:e(()=>[t(E,{name:"el-icon-Plus"})]),default:e(()=>[l(" \u65B0\u589E ")]),_:1})]),_:1},8,["to"])),[[c,["crontab.crontab/add","crontab.crontab/add:edit"]]]),p((i(),n(k,{ref:"paneTable",class:"m-t-24",data:r(s).lists,style:{width:"100%"}},{default:e(()=>[t(a,{prop:"name",label:"\u540D\u79F0","min-width":"120"}),t(a,{prop:"type_desc",label:"\u7C7B\u578B","min-width":"100"}),t(a,{prop:"command",label:"\u547D\u4EE4","min-width":"100"}),t(a,{prop:"params",label:"\u53C2\u6570","min-width":"80"}),t(a,{prop:"expression",label:"\u89C4\u5219","min-width":"100"}),t(a,{prop:"status",label:"\u72B6\u6001","min-width":"100"},{default:e(({row:o})=>[o.status==1?(i(),n(d,{key:0,type:"success"},{default:e(()=>[l("\u8FD0\u884C\u4E2D")]),_:1})):_("",!0),o.status==2?(i(),n(d,{key:1,type:"info"},{default:e(()=>[l("\u5DF2\u505C\u6B62")]),_:1})):_("",!0),o.status==3?(i(),n(d,{key:2,type:"danger"},{default:e(()=>[l("\u9519\u8BEF")]),_:1})):_("",!0)]),_:1}),t(a,{prop:"error",label:"\u9519\u8BEF\u539F\u56E0","min-width":"120"}),t(a,{prop:"last_time",label:"\u6700\u540E\u6267\u884C\u65F6\u95F4",width:"180"}),t(a,{prop:"time",label:"\u65F6\u957F","min-width":"100"}),t(a,{prop:"max_time",label:"\u6700\u5927\u65F6\u957F","min-width":"100"}),t(a,{label:"\u64CD\u4F5C",width:"120",fixed:"right"},{default:e(({row:o})=>[y("div",Q,[t(u,{type:"primary",link:""},{default:e(()=>[p((i(),n(h,{to:{path:r(F)("crontab.crontab/add:edit"),query:{id:o.id}}},{default:e(()=>[t(u,{type:"primary",link:""},{default:e(()=>[l(" \u7F16\u8F91 ")]),_:1})]),_:2},1032,["to"])),[[c,["crontab.crontab/edit","crontab.crontab/add:edit"]]])]),_:2},1024),p((i(),n(u,{type:"danger",link:"",onClick:H=>g(o.id)},{default:e(()=>[l(" \u5220\u9664 ")]),_:2},1032,["onClick"])),[[c,["crontab.crontab/delete"]]])])]),_:1})]),_:1},8,["data"])),[[B,r(s).loading]]),y("div",W,[t(w,{modelValue:r(s),"onUpdate:modelValue":f[0]||(f[0]=o=>O(s)?s.value=o:null),onChange:r(m)},null,8,["modelValue","onChange"])])]),_:1})])}}});export{Tt as default};
|