suyuan/public/admin/assets/index.f2ad57b9.js

2 lines
3.9 KiB
JavaScript

import{w as x,L as D,_ as T,M as V,I as L,N}from"./element-plus.5df6f736.js";import{_ as P}from"./index.vue_vue_type_script_setup_true_lang.1938e45e.js";import{k as F,f as R,b as $}from"./index.dab55926.js";import{g as j,h as q}from"./system.94eabce7.js";import{u as A}from"./usePaging.2a59f422.js";import{d as C,a3 as I,ae as J,o as i,c as K,T as t,K as e,L as p,J as n,u as r,Q as _,a as y,j as M,R as s}from"./@vue.108c970a.js";import"./@vueuse.d3d080b7.js";import"./@element-plus.d6eabd08.js";import"./lodash-es.29c53eac.js";import"./dayjs.50c3b6f7.js";import"./axios.c2a2014a.js";import"./async-validator.fb49d0f5.js";import"./@ctrl.82a509e0.js";import"./@popperjs.36402333.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./lodash.33f675f2.js";import"./vue-router.ed788fee.js";import"./pinia.eff1ffd5.js";import"./vue-demi.ebc8116b.js";import"./css-color-function.5d5b8bda.js";import"./color.da05fa89.js";import"./clone.06747a68.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.1c707d7b.js";import"./ms.a9ae1d6d.js";import"./nprogress.fc605139.js";import"./vue-clipboard3.dc900a40.js";import"./clipboard.6beb87aa.js";import"./echarts.8d7a50ae.js";import"./zrender.1084fa23.js";import"./tslib.60310f1a.js";import"./highlight.js.4ebdf9a4.js";import"./@highlightjs.241b9b5d.js";const Q=s(" \u65B0\u589E "),U=s("\u8FD0\u884C\u4E2D"),z=s("\u5DF2\u505C\u6B62"),G=s("\u9519\u8BEF"),H={class:"flex"},O=s(" \u7F16\u8F91 "),S=s(" \u5220\u9664 "),W={class:"flex justify-end mt-4"},X=C({name:"scheduledTask"}),qt=C({...X,setup(Y){const{pager:l,getLists:m}=A({fetchFun:j,params:{}}),g=async b=>{await R.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await q({id:b}),m()};return m(),(b,f)=>{const k=$,u=x,h=I("router-link"),o=D,d=T,w=V,E=P,v=L,c=J("perms"),B=N;return i(),K("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(k,{name:"el-icon-Plus"})]),default:e(()=>[Q]),_: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(()=>[U]),_:1})):_("",!0),a.status==2?(i(),n(d,{key:1,type:"info"},{default:e(()=>[z]),_:1})):_("",!0),a.status==3?(i(),n(d,{key:2,type:"danger"},{default:e(()=>[G]),_: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})=>[y("div",H,[t(u,{type:"primary",link:""},{default:e(()=>[p((i(),n(h,{to:{path:r(F)("crontab.crontab/add:edit"),query:{id:a.id}}},{default:e(()=>[t(u,{type:"primary",link:""},{default:e(()=>[O]),_: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(()=>[S]),_:2},1032,["onClick"])),[[c,["crontab.crontab/delete"]]])])]),_:1})]),_:1},8,["data"])),[[B,r(l).loading]]),y("div",W,[t(E,{modelValue:r(l),"onUpdate:modelValue":f[0]||(f[0]=a=>M(l)?l.value=a:null),onChange:r(m)},null,8,["modelValue","onChange"])])]),_:1})])}}});export{qt as default};