ERP-admin/build/admin/assets/index.25b81bb2.js

2 lines
4.5 KiB
JavaScript

import{w as S,O as j,Q as P,T as Q,R as U}from"./element-plus.681b9893.js";import{_ as z}from"./index.vue_vue_type_script_setup_true_lang.58d80c54.js";import{f as I,b as K}from"./index.0c8416f0.js";import{c as M,d as O}from"./role.54e7b2ac.js";import{u as q}from"./usePaging.6a6670f9.js";import{_ as G}from"./edit.vue_vue_type_script_setup_true_lang.5059fb12.js";import{_ as H}from"./auth.vue_vue_type_script_setup_true_lang.309fcf9f.js";import{d as D,s as F,r as g,ap as J,o as i,c as E,U as e,L as a,a as C,M as c,K as m,R as h,u as r,j as W,Q as B,n as y}from"./@vue.18505fe0.js";import"./lodash-es.bdeecbdb.js";import"./async-validator.fb49d0f5.js";import"./@vueuse.fbc6a400.js";import"./@element-plus.edbd5a83.js";import"./dayjs.a6528143.js";import"./@babel.16688d44.js";import"./@ctrl.b082b0c1.js";import"./normalize-wheel-es.8aeb3683.js";import"./@popperjs.36402333.js";import"./lodash.466e9fe4.js";import"./axios.4905d81f.js";import"./jspdf.54afd842.js";import"./fflate.fca59393.js";import"./vue-router.101084e3.js";import"./pinia.a969beab.js";import"./css-color-function.29b71fa4.js";import"./color.87d313dc.js";import"./clone.a63396d9.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"./vue-plugin-hiprint.a2d84e76.js";import"./jquery.c3f97e49.js";import"./jsbarcode.39151b53.js";import"./socket.io-client.0b5a7289.js";import"./engine.io-client.81030771.js";import"./engine.io-parser.c748e159.js";import"./@socket.io.77accf6a.js";import"./debug.b392f131.js";import"./socket.io-parser.b7256298.js";import"./html2canvas.0f5947bc.js";import"./canvg.a673c4b2.js";import"./core-js.97b94d69.js";import"./raf.407ad6ad.js";import"./performance-now.a710f6e4.js";import"./rgbcolor.20c71161.js";import"./svg-pathdata.eba17832.js";import"./stackblur-canvas.0fb5df18.js";import"./nprogress.3461658b.js";import"./vue-clipboard3.c63182fd.js";import"./clipboard.dd2c63d0.js";import"./echarts.5016c48c.js";import"./zrender.58d022a1.js";import"./tslib.60310f1a.js";import"./highlight.js.31cd7941.js";import"./@highlightjs.b0c09b66.js";import"./index.a7179cc9.js";import"./menu.c39d58e1.js";const X={class:"role-lists"},Y={class:"mt-4"},Z={class:"flex justify-end mt-4"},tt=D({name:"role"}),ne=D({...tt,setup(et){const d=F(),k=F(),_=g(!1),w=g(!1),{pager:p,getLists:u}=q({fetchFun:O}),$=async()=>{var o;_.value=!0,await y(),(o=d.value)==null||o.open("add")},R=async o=>{var t,n;_.value=!0,await y(),(t=d.value)==null||t.open("edit"),(n=d.value)==null||n.setFormData(o)},x=async o=>{var t,n;w.value=!0,await y(),(t=k.value)==null||t.open(),(n=k.value)==null||n.setFormData(o)},A=async o=>{await I.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await M({id:o}),u()};return u(),(o,t)=>{const n=K,f=S,l=j,V=P,T=z,L=Q,v=J("perms"),N=U;return i(),E("div",X,[e(L,{class:"!border-none",shadow:"never"},{default:a(()=>[C("div",null,[c((i(),m(f,{type:"primary",onClick:$},{icon:a(()=>[e(n,{name:"el-icon-Plus"})]),default:a(()=>[h(" \u65B0\u589E ")]),_:1})),[[v,["auth.role/add"]]])]),c((i(),E("div",Y,[C("div",null,[e(V,{data:r(p).lists,size:"large"},{default:a(()=>[e(l,{prop:"id",label:"ID","min-width":"100"}),e(l,{prop:"name",label:"\u540D\u79F0","min-width":"150"}),e(l,{prop:"desc",label:"\u5907\u6CE8","min-width":"150","show-overflow-tooltip":""}),e(l,{prop:"sort",label:"\u6392\u5E8F","min-width":"100"}),e(l,{prop:"num",label:"\u7BA1\u7406\u5458\u4EBA\u6570","min-width":"100"}),e(l,{prop:"create_time",label:"\u521B\u5EFA\u65F6\u95F4","min-width":"180"}),e(l,{label:"\u64CD\u4F5C",width:"200",fixed:"right"},{default:a(({row:s})=>[c((i(),m(f,{link:"",type:"primary",onClick:b=>R(s)},{default:a(()=>[h(" \u7F16\u8F91 ")]),_:2},1032,["onClick"])),[[v,["auth.role/edit"]]]),c((i(),m(f,{link:"",type:"primary",onClick:b=>x(s)},{default:a(()=>[h(" \u5206\u914D\u6743\u9650 ")]),_:2},1032,["onClick"])),[[v,["auth.role/edit"]]]),c((i(),m(f,{link:"",type:"danger",onClick:b=>A(s.id)},{default:a(()=>[h(" \u5220\u9664 ")]),_:2},1032,["onClick"])),[[v,["auth.role/delete"]]])]),_:1})]),_:1},8,["data"])]),C("div",Z,[e(T,{modelValue:r(p),"onUpdate:modelValue":t[0]||(t[0]=s=>W(p)?p.value=s:null),onChange:r(u)},null,8,["modelValue","onChange"])])])),[[N,r(p).loading]])]),_:1}),r(_)?(i(),m(G,{key:0,ref_key:"editRef",ref:d,onSuccess:r(u),onClose:t[1]||(t[1]=s=>_.value=!1)},null,8,["onSuccess"])):B("",!0),r(w)?(i(),m(H,{key:1,ref_key:"authRef",ref:k,onSuccess:r(u),onClose:t[2]||(t[2]=s=>w.value=!1)},null,8,["onSuccess"])):B("",!0)])}}});export{ne as default};