WokerTask/public/admin/assets/index.82953da9.js

2 lines
4.0 KiB
JavaScript
Raw Normal View History

2024-01-24 10:03:39 +08:00
import{a7 as x,w as D,P as T,Q as V,J as P,R as N}from"./element-plus.ff90c99c.js";import{_ as R}from"./index.vue_vue_type_script_setup_true_lang.44dbc460.js";import{k as F,f as L,b as $}from"./index.2c97e227.js";import{g as j,h as q}from"./system.000e0218.js";import{u as Q}from"./usePaging.bd7a7dec.js";import{d as y,ag as U,aq as A,o as i,c as J,W as t,Q as e,R as p,P as r,u as n,U as l,T as _,a as g,j as W}from"./@vue.f8dfc830.js";import"./lodash-es.a73406b7.js";import"./@vueuse.a2e59ee9.js";import"./@element-plus.0374639c.js";import"./@popperjs.36402333.js";import"./@ctrl.b082b0c1.js";import"./dayjs.7f1be2bc.js";import"./@amap.8a62addd.js";import"./async-validator.fb49d0f5.js";import"./memoize-one.4ee5c96d.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./@floating-ui.34a21088.js";import"./lodash.2e6f447e.js";import"./axios.075403c9.js";import"./vue-router.6d4cf914.js";import"./pinia.4b196199.js";import"./vue-demi.b3a9cad9.js";import"./css-color-function.b6f240ee.js";import"./color.35874cfa.js";import"./clone.d8e67888.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.e6aad81b.js";import"./ms.a9ae1d6d.js";import"./nprogress.f73355d0.js";import"./vue-clipboard3.dca5bca3.js";import"./clipboard.16e4491b.js";import"./echarts.ac57a99a.js";import"./zrender.d54ce080.js";import"./tslib.60310f1a.js";import"./highlight.js.dba6fa1b.js";import"./@highlightjs.79024f1a.js";const z={class:"flex"},G={class:"flex justify-end mt-4"},H=y({name:"scheduledTask"}),Lt=y({...H,setup(I){const{pager:s,getLists:m}=Q({fetchFun:q,params:{}}),C=async b=>{await L.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await j({id:b}),m()};return m(),(b,f)=>{const k=$,u=D,h=U("router-link"),o=T,d=x,w=V,E=R,v=P,c=A("perms"),B=N;return i(),J("div",null,[t(v,{shadow:"never",class:"!border-none"},{default:e(()=>[p((i(),r(h,{to:n(F)("crontab.crontab/add:edit")},{default:e(()=>[t(u,{type:"primary",class:"mb-[16px]"},{icon:e(()=>[t(k,{name:"el-icon-Plus"})]),default:e(()=>[l(" \u65B0\u589E ")]),_:1})]),_:1},8,["to"])),[[c,["crontab.crontab/add","crontab.crontab/add:edit"]]]),p((i(),r(w,{ref:"paneTable",class:"m-t-24",data:n(s).lists,style:{width:"100%"}},{default:e(()=>[t(o,{prop:"name",label:"\u540D\u79F0","min-width":"120"}),t(o,{prop:"type_desc",label:"\u7C7B\u578B","min-width":"100"}),t(o,{prop:"command",label:"\u547D\u4EE4","min-width":"100"}),t(o,{prop:"params",label:"\u53C2\u6570","min-width":"80"}),t(o,{prop:"expression",label:"\u89C4\u5219","min-width":"100"}),t(o,{prop:"status",label:"\u72B6\u6001","min-width":"100"},{default:e(({row:a})=>[a.status==1?(i(),r(d,{key:0,type:"success"},{default:e(()=>[l("\u8FD0\u884C\u4E2D")]),_:1})):_("",!0),a.status==2?(i(),r(d,{key:1,type:"info"},{default:e(()=>[l("\u5DF2\u505C\u6B62")]),_:1})):_("",!0),a.status==3?(i(),r(d,{key:2,type:"danger"},{default:e(()=>[l("\u9519\u8BEF")]),_:1})):_("",!0)]),_:1}),t(o,{prop:"error",label:"\u9519\u8BEF\u539F\u56E0","min-width":"120"}),t(o,{prop:"last_time",label:"\u6700\u540E\u6267\u884C\u65F6\u95F4",width:"180"}),t(o,{prop:"time",label:"\u65F6\u957F","min-width":"100"}),t(o,{prop:"max_time",label:"\u6700\u5927\u65F6\u957F","min-width":"100"}),t(o,{label:"\u64CD\u4F5C",width:"120",fixed:"right"},{default:e(({row:a})=>[g("div",z,[t(u,{type:"primary",link:""},{default:e(()=>[p((i(),r(h,{to:{path:n(F)("crontab.crontab/add:edit"),query:{id:a.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(),r(u,{type:"danger",link:"",onClick:K=>C(a.id)},{default:e(()=>[l(" \u5220\u9664 ")]),_:2},1032,["onClick"])),[[c,["crontab.crontab/delete"]]])])]),_:1})]),_:1},8,["data"])),[[B,n(s).loading]]),g("div",G,[t(E,{modelValue:n(s),"onUpdate:modelValue":f[0]||(f[0]=a=>W(s)?s.value=a:null),onChange:n(m)},null,8,["modelValue","onChange"])])]),_:1})])}}});export{Lt as default};