multiStoreAdmin/build/store/assets/index.b7c924bf.js

2 lines
3.8 KiB
JavaScript

import{_ as x,w as D,L as T,M as V,I as N,N as L}from"./element-plus.9175fe58.js";import{_ as P}from"./index.vue_vue_type_script_setup_true_lang.0fb3ad1e.js";import{j as F,f as j,E as $,b as M,F as R}from"./index.026c5631.js";import{u as q}from"./usePaging.d25ebf19.js";import{d as C,af as A,am as I,o as n,c as O,W as t,O as e,P as p,M as i,u as r,T as l,S as _,a as y,j as S}from"./@vue.c3e77981.js";import"./@vueuse.a48d0173.js";import"./@element-plus.12c58ce2.js";import"./lodash-es.2b5acb28.js";import"./dayjs.1f51da93.js";import"./axios.13991fdc.js";import"./async-validator.fb49d0f5.js";import"./@ctrl.b082b0c1.js";import"./@popperjs.36402333.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./lodash.6c5d06b3.js";import"./vue-router.43c06794.js";import"./pinia.b5130627.js";import"./css-color-function.23ed6179.js";import"./color.9c368256.js";import"./clone.e9277309.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.212df0f4.js";import"./vue-clipboard3.f310ddad.js";import"./clipboard.141ef824.js";import"./echarts.8535e5a6.js";import"./zrender.3eba8991.js";import"./tslib.60310f1a.js";import"./highlight.js.31cd7941.js";import"./@highlightjs.b8b719e9.js";const U={class:"flex"},W={class:"flex justify-end mt-4"},z=C({name:"scheduledTask"}),Dt=C({...z,setup(G){const{pager:s,getLists:m}=q({fetchFun:R,params:{}}),g=async b=>{await j.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await $({id:b}),m()};return m(),(b,f)=>{const E=M,u=D,h=A("router-link"),a=T,d=x,k=V,w=P,v=N,c=I("perms"),B=L;return n(),O("div",null,[t(v,{shadow:"never",class:"!border-none"},{default:e(()=>[p((n(),i(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((n(),i(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?(n(),i(d,{key:0,type:"success"},{default:e(()=>[l("\u8FD0\u884C\u4E2D")]),_:1})):_("",!0),o.status==2?(n(),i(d,{key:1,type:"info"},{default:e(()=>[l("\u5DF2\u505C\u6B62")]),_:1})):_("",!0),o.status==3?(n(),i(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",U,[t(u,{type:"primary",link:""},{default:e(()=>[p((n(),i(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((n(),i(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=>S(s)?s.value=o:null),onChange:r(m)},null,8,["modelValue","onChange"])])]),_:1})])}}});export{Dt as default};