multiStoreAdmin/build/store/assets/index.9bc17ddb.js

2 lines
3.9 KiB
JavaScript
Raw Normal View History

2024-08-13 15:26:03 +08:00
import{w as L,M as P,N as j,J as U,O as z}from"./element-plus.6b125791.js";import{_ as I}from"./index.vue_vue_type_script_setup_true_lang.305bb481.js";import{f as J,b as M}from"./index.f3fea0a5.js";import{c as O,d as Q}from"./role.1ad1f9de.js";import{u as W}from"./usePaging.fff444fa.js";import{_ as q}from"./edit.vue_vue_type_script_setup_true_lang.90c4162c.js";import{_ as G}from"./auth.vue_vue_type_script_setup_true_lang.c3c76752.js";import{d as D,s as F,r as g,ap as H,o as a,c as E,W as t,Q as i,a as C,R as c,P as u,U as h,u as n,j as K,T as B,n as y}from"./@vue.340249d8.js";import"./lodash-es.edba6135.js";import"./@vueuse.e3650918.js";import"./@element-plus.558a564d.js";import"./@popperjs.36402333.js";import"./@ctrl.b082b0c1.js";import"./dayjs.6b964ca4.js";import"./axios.ebd1d4d0.js";import"./async-validator.fb49d0f5.js";import"./memoize-one.4ee5c96d.js";import"./normalize-wheel-es.8aeb3683.js";import"./@floating-ui.0f9ce7c3.js";import"./lodash.ab1d8f92.js";import"./vue-router.9ddb0e92.js";import"./pinia.97fe9b12.js";import"./css-color-function.7a4c1284.js";import"./color.10b8b3bd.js";import"./clone.623e4e2d.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.518a19eb.js";import"./vue-clipboard3.c098b37d.js";import"./clipboard.a67a48a7.js";import"./echarts.8535e5a6.js";import"./zrender.3eba8991.js";import"./tslib.60310f1a.js";import"./highlight.js.31cd7941.js";import"./@highlightjs.309a94da.js";import"./index.7d5c2e85.js";import"./menu.fa3ac25b.js";const X={class:"role-lists"},Y={class:"mt-4"},Z={class:"flex justify-end mt-4"},ee=D({name:"role"}),Je=D({...ee,setup(te){const d=F(),k=F(),_=g(!1),w=g(!1),{pager:m,getLists:p}=W({fetchFun:Q}),$=async()=>{var o;_.value=!0,await y(),(o=d.value)==null||o.open("add")},x=async o=>{var e,l;_.value=!0,await y(),(e=d.value)==null||e.open("edit"),(l=d.value)==null||l.setFormData(o)},A=async o=>{var e,l;w.value=!0,await y(),(e=k.value)==null||e.open(),(l=k.value)==null||l.setFormData(o)},R=async o=>{await J.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await O({id:o}),p()};return p(),(o,e)=>{const l=M,f=L,s=P,V=j,N=I,T=U,v=H("perms"),S=z;return a(),E("div",X,[t(T,{class:"!border-none",shadow:"never"},{default:i(()=>[C("div",null,[c((a(),u(f,{type:"primary",onClick:$},{icon:i(()=>[t(l,{name:"el-icon-Plus"})]),default:i(()=>[h(" \u65B0\u589E ")]),_:1})),[[v,["auth.role/add"]]])]),c((a(),E("div",Y,[C("div",null,[t(V,{data:n(m).lists,size:"large"},{default:i(()=>[t(s,{prop:"id",label:"ID","min-width":"100"}),t(s,{prop:"name",label:"\u540D\u79F0","min-width":"150"}),t(s,{prop:"desc",label:"\u5907\u6CE8","min-width":"150","show-overflow-tooltip":""}),t(s,{prop:"sort",label:"\u6392\u5E8F","min-width":"100"}),t(s,{prop:"num",label:"\u7BA1\u7406\u5458\u4EBA\u6570","min-width":"100"}),t(s,{prop:"create_time",label:"\u521B\u5EFA\u65F6\u95F4","min-width":"180"}),t(s,{label:"\u64CD\u4F5C",width:"200",fixed:"right"},{default:i(({row:r})=>[c((a(),u(f,{link:"",type:"primary",onClick:b=>x(r)},{default:i(()=>[h(" \u7F16\u8F91 ")]),_:2},1032,["onClick"])),[[v,["auth.role/edit"]]]),c((a(),u(f,{link:"",type:"primary",onClick:b=>A(r)},{default:i(()=>[h(" \u5206\u914D\u6743\u9650 ")]),_:2},1032,["onClick"])),[[v,["auth.role/edit"]]]),c((a(),u(f,{link:"",type:"danger",onClick:b=>R(r.id)},{default:i(()=>[h(" \u5220\u9664 ")]),_:2},1032,["onClick"])),[[v,["auth.role/delete"]]])]),_:1})]),_:1},8,["data"])]),C("div",Z,[t(N,{modelValue:n(m),"onUpdate:modelValue":e[0]||(e[0]=r=>K(m)?m.value=r:null),onChange:n(p)},null,8,["modelValue","onChange"])])])),[[S,n(m).loading]])]),_:1}),n(_)?(a(),u(q,{key:0,ref_key:"editRef",ref:d,onSuccess:n(p),onClose:e[1]||(e[1]=r=>_.value=!1)},null,8,["onSuccess"])):B("",!0),n(w)?(a(),u(G,{key:1,ref_key:"authRef",ref:k,onSuccess:n(p),onClose:e[2]||(e[2]=r=>w.value=!1)},null,8,["onSuccess"])):B("",!0)])}}});export{Je as default};