engineering/public/admin/assets/index.9fd4b09a.js
2024-02-27 10:28:16 +08:00

2 lines
3.8 KiB
JavaScript

import{w as x,L as D,V,M as T,C as L,N}from"./element-plus.517d4382.js";import{_ as P}from"./index.vue_vue_type_script_setup_true_lang.5ae95555.js";import{l as C,f as $,a as M}from"./index.8b1962e9.js";import{g as R,h as j}from"./system.29634c61.js";import{u as q}from"./usePaging.f6660143.js";import{d as y,a5 as A,ai as O,o as i,c as S,V as t,M as e,O as p,L as n,u as r,S as _,a as F,k as U,T as s}from"./@vue.ab566ce7.js";import"./@vueuse.8fcae4c2.js";import"./@element-plus.b89f1627.js";import"./lodash-es.49f4af13.js";import"./dayjs.4afe12d3.js";import"./axios.37fc980d.js";import"./async-validator.fb49d0f5.js";import"./@ctrl.82a509e0.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./lodash.1d82ee7c.js";import"./vue-router.87ebc608.js";import"./pinia.b6700c26.js";import"./vue-demi.ebc8116b.js";import"./css-color-function.d0bec2c9.js";import"./color.ea90db3f.js";import"./clone.cbd692e6.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.ad6bc3c0.js";import"./ms.a9ae1d6d.js";import"./nprogress.bcdf1f46.js";import"./vue-clipboard3.c45111bf.js";import"./clipboard.1cb79a0d.js";import"./echarts.b30ab882.js";import"./tslib.60310f1a.js";import"./zrender.3760070d.js";import"./highlight.js.4ebdf9a4.js";import"./@highlightjs.62ff6725.js";const z=s(" \u65B0\u589E "),G=s("\u8FD0\u884C\u4E2D"),H=s("\u5DF2\u505C\u6B62"),I=s("\u9519\u8BEF"),J={class:"flex"},K=s(" \u7F16\u8F91 "),Q=s(" \u5220\u9664 "),W={class:"flex justify-end mt-4"},X=y({name:"scheduledTask"}),Rt=y({...X,setup(Y){const{pager:l,getLists:m}=q({fetchFun:R,params:{}}),g=async f=>{await $.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await j({id:f}),m()};return m(),(f,b)=>{const k=M,u=x,h=A("router-link"),o=D,d=V,w=T,E=P,v=L,c=O("perms"),B=N;return i(),S("div",null,[t(v,{shadow:"never",class:"!border-none"},{default:e(()=>[p((i(),n(h,{to:r(C)("crontab.crontab/add:edit")},{default:e(()=>[t(u,{type:"primary",class:"mb-[16px]"},{icon:e(()=>[t(k,{name:"el-icon-Plus"})]),default:e(()=>[z]),_:1})]),_:1},8,["to"])),[[c,["crontab.crontab/add","crontab.crontab/add:edit"]]]),p((i(),n(w,{ref:"paneTable",class:"m-t-24",data:r(l).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(),n(d,{key:0,type:"success"},{default:e(()=>[G]),_:1})):_("",!0),a.status==2?(i(),n(d,{key:1,type:"info"},{default:e(()=>[H]),_:1})):_("",!0),a.status==3?(i(),n(d,{key:2,type:"danger"},{default:e(()=>[I]),_: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})=>[F("div",J,[t(u,{type:"primary",link:""},{default:e(()=>[p((i(),n(h,{to:{path:r(C)("crontab.crontab/add:edit"),query:{id:a.id}}},{default:e(()=>[t(u,{type:"primary",link:""},{default:e(()=>[K]),_:1})]),_:2},1032,["to"])),[[c,["crontab.crontab/edit","crontab.crontab/add:edit"]]])]),_:2},1024),p((i(),n(u,{type:"danger",link:"",onClick:Z=>g(a.id)},{default:e(()=>[Q]),_:2},1032,["onClick"])),[[c,["crontab.crontab/delete"]]])])]),_:1})]),_:1},8,["data"])),[[B,r(l).loading]]),F("div",W,[t(E,{modelValue:r(l),"onUpdate:modelValue":b[0]||(b[0]=a=>U(l)?l.value=a:null),onChange:r(m)},null,8,["modelValue","onChange"])])]),_:1})])}}});export{Rt as default};