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

2 lines
4.0 KiB
JavaScript
Raw Normal View History

2024-02-03 14:29:19 +08:00
import{T as R,J as S,w as T,P as N,t as P,Q as U,R as L}from"./element-plus.ff90c99c.js";import{_ as j}from"./index.vue_vue_type_script_setup_true_lang.44dbc460.js";import{f as Q,b as q}from"./index.a6925776.js";import{d as z,e as J,f as W}from"./article.80704200.js";import{u as G}from"./usePaging.bd7a7dec.js";import{_ as H}from"./edit.vue_vue_type_script_setup_true_lang.b10fed16.js";import{d as F,s as I,r as K,aq as M,o as n,c as O,W as t,Q as i,R as p,u as r,P as d,a as w,U as h,j as X,T as Y,n as g}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.3e731b89.js";import"./axios.c2babb35.js";import"./vue-router.6d4cf914.js";import"./pinia.4b196199.js";import"./vue-demi.b3a9cad9.js";import"./css-color-function.3a7f085f.js";import"./color.5ae3e2dd.js";import"./clone.7bcb5228.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.37836f15.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";import"./index.0edf4687.js";import"./index.vue_vue_type_style_index_0_scoped_95d1884e_lang.af59f801.js";const Z={class:"flex justify-end mt-4"},ee=F({name:"articleColumn"}),Ge=F({...ee,setup(te){const _=I(),f=K(!1),{pager:s,getLists:l}=G({fetchFun:W}),b=async()=>{var o;f.value=!0,await g(),(o=_.value)==null||o.open("add")},k=async o=>{var e,u;f.value=!0,await g(),(e=_.value)==null||e.open("edit"),(u=_.value)==null||u.getDetail(o)},y=async o=>{await Q.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await z({id:o}),l()},A=async(o,e)=>{try{await J({id:e,is_show:o}),l()}catch{l()}};return l(),(o,e)=>{const u=R,E=S,B=q,v=T,m=N,V=P,D=U,x=j,C=M("perms"),$=L;return n(),O("div",null,[t(E,{class:"!border-none",shadow:"never"},{default:i(()=>[t(u,{type:"warning",title:"\u6E29\u99A8\u63D0\u793A\uFF1A\u7528\u4E8E\u7BA1\u7406\u7F51\u7AD9\u7684\u5206\u7C7B\uFF0C\u53EA\u53EF\u6DFB\u52A0\u5230\u4E00\u7EA7",closable:!1,"show-icon":""})]),_:1}),p((n(),d(E,{class:"!border-none mt-4",shadow:"never"},{default:i(()=>[w("div",null,[p((n(),d(v,{class:"mb-4",type:"primary",onClick:e[0]||(e[0]=a=>b())},{icon:i(()=>[t(B,{name:"el-icon-Plus"})]),default:i(()=>[h(" \u65B0\u589E ")]),_:1})),[[C,["article.articleCate/add"]]])]),t(D,{size:"large",data:r(s).lists},{default:i(()=>[t(m,{label:"\u680F\u76EE\u540D\u79F0",prop:"name","min-width":"120"}),t(m,{label:"\u6587\u7AE0\u6570",prop:"article_count","min-width":"120"}),t(m,{label:"\u72B6\u6001","min-width":"120"},{default:i(({row:a})=>[p(t(V,{modelValue:a.is_show,"onUpdate:modelValue":c=>a.is_show=c,"active-value":1,"inactive-value":0,onChange:c=>A(c,a.id)},null,8,["modelValue","onUpdate:modelValue","onChange"]),[[C,["article.articleCate/updateStatus"]]])]),_:1}),t(m,{label:"\u6392\u5E8F",prop:"sort","min-width":"120"}),t(m,{label:"\u64CD\u4F5C",width:"120",fixed:"right"},{default:i(({row:a})=>[p((n(),d(v,{type:"primary",link:"",onClick:c=>k(a)},{default:i(()=>[h(" \u7F16\u8F91 ")]),_:2},1032,["onClick"])),[[C,["article.articleCate/edit"]]]),p((n(),d(v,{type:"danger",link:"",onClick:c=>y(a.id)},{default:i(()=>[h(" \u5220\u9664 ")]),_:2},1032,["onClick"])),[[C,["article.articleCate/delete"]]])]),_:1})]),_:1},8,["data"]),w("div",Z,[t(x,{modelValue:r(s),"onUpdate:modelValue":e[1]||(e[1]=a=>X(s)?s.value=a:null),onChange:r(l)},null,8,["modelValue","onChange"])])]),_:1})),[[$,r(s).loading]]),r(f)?(n(),d(H,{key:0,ref_key:"editRef",ref:_,onSuccess:r(l),onClose:e[2]||(e[2]=a=>f.value=!1)},null,8,["onSuccess"])):Y(""