WokerTask/public/admin/assets/index.d40c0320.js

2 lines
3.8 KiB
JavaScript

import{a6 as x,w as D,O as V,P as T,I as L,Q as N}from"./element-plus.b0ecf6ae.js";import{_ as P}from"./index.vue_vue_type_script_setup_true_lang.ebbecf1a.js";import{k as F,f as R,b as $}from"./index.9e5a9063.js";import{g as Q,h as U}from"./system.19f24bd2.js";import{u as j}from"./usePaging.2ad8e1e6.js";import{d as C,a4 as q,af as A,o as i,c as I,U as t,L as e,M as p,K as n,u as r,R as l,Q as _,a as y,k as K}from"./@vue.51d7f2d8.js";import"./@vueuse.ec90c285.js";import"./@element-plus.c80b8015.js";import"./lodash-es.29c53eac.js";import"./dayjs.e873ead7.js";import"./@amap.8a62addd.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.ffb5376d.js";import"./axios.f9df025a.js";import"./vue-router.9f65afb1.js";import"./pinia.56356cb7.js";import"./vue-demi.b3a9cad9.js";import"./css-color-function.4b0c77cb.js";import"./color.992612d2.js";import"./clone.d8d3ae9a.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.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.40d5feba.js";const M={class:"flex"},O={class:"flex justify-end mt-4"},z=C({name:"scheduledTask"}),Vt=C({...z,setup(G){const{pager:s,getLists:m}=j({fetchFun:U,params:{}}),g=async f=>{await R.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await Q({id:f}),m()};return m(),(f,b)=>{const k=$,u=D,h=q("router-link"),a=V,d=x,w=T,E=P,v=L,c=A("perms"),B=N;return i(),I("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(()=>[l(" \u65B0\u589E ")]),_:1})]),_:1},8,["to"])),[[c,["crontab.crontab/add","crontab.crontab/add:edit"]]]),p((i(),n(w,{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",M,[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",O,[t(E,{modelValue:r(s),"onUpdate:modelValue":b[0]||(b[0]=o=>K(s)?s.value=o:null),onChange:r(m)},null,8,["modelValue","onChange"])])]),_:1})])}}});export{Vt as default};