ERP-admin/build/admin/assets/index.2c47f498.js

2 lines
6.0 KiB
JavaScript
Raw Normal View History

2024-05-10 18:16:25 +08:00
import{C as Q,D as Z,J as q,K as G,w as H,F as W,L as X,M as Y,o as ee,t as te,N as oe,O as ae}from"./element-plus.f1cfb480.js";import{_ as le}from"./index.vue_vue_type_script_setup_true_lang.dacce304.js";import{f as ne,b as ie}from"./index.52f16d07.js";import{_ as ue}from"./index.vue_vue_type_script_setup_true_lang.59f594dc.js";import{d as A,s as se,Z as me,r as re,i as pe,ap as de,o as u,c as k,U as e,L as a,u as o,aa as D,T as ce,a9 as _e,K as m,R as d,M as v,a as V,Q as C,j as fe,n as B}from"./@vue.663bc523.js";import{a as x,_ as ve,b as be,c as he}from"./edit.vue_vue_type_script_setup_true_lang.77e1249a.js";import{r as we}from"./role.09909827.js";import{a as Fe}from"./useDictOptions.4d097b09.js";import{u as ge}from"./usePaging.77fa9d39.js";import"./lodash-es.bdeecbdb.js";import"./async-validator.fb49d0f5.js";import"./@vueuse.4b5afb22.js";import"./@element-plus.8b1118e2.js";import"./dayjs.3f38f327.js";import"./axios.18becb61.js";import"./@ctrl.b082b0c1.js";import"./normalize-wheel-es.8aeb3683.js";import"./@popperjs.36402333.js";import"./lodash.403d4198.js";import"./vue-router.58fac957.js";import"./pinia.068f0ef2.js";import"./vue-demi.b3a9cad9.js";import"./css-color-function.e6143ca6.js";import"./color.d79aa98b.js";import"./clone.a63396d9.js";import"./color-convert.69e17089.js";import"./color-string.e356f5de.js";import"./color-name.e7a4e1d3.js";import"./nprogress.48cb4095.js";import"./vue-clipboard3.6d09ff6e.js";import"./clipboard.564aa4b9.js";import"./echarts.8485a033.js";import"./zrender.b2f30540.js";import"./highlight.js.31cd7941.js";import"./@highlightjs.85e4ac8b.js";import"./index.6c86ef69.js";import"./picker.0f66ac39.js";import"./index.d049a720.js";import"./index.52b1645e.js";import"./vuedraggable.917b44c2.js";import"./vue.648d3a8e.js";import"./sortablejs.86ceda0b.js";import"./post.8d98bcb7.js";import"./department.28dace94.js";const Ce={class:"admin"},Ee={class:"mt-4"},ye={class:"flex mt-4 justify-end"},ke=A({name:"admin"}),bt=A({...ke,setup(De){const b=se(),s=me({account:"",name:"",role_id:""}),h=re(!1),{pager:r,getLists:c,resetParams:$,resetPage:g}=ge({fetchFun:x,params:s}),K=l=>{be({id:l.id,avatar:l.avatar,account:l.account,name:l.name,role_id:l.role_id,job_id:l.job_id,dept_id:l.dept_id,disable:l.disable,multipoint_login:l.multipoint_login}).finally(()=>{c()})},U=async()=>{var l;h.value=!0,await B(),(l=b.value)==null||l.open("add")},L=async l=>{var n,_;h.value=!0,await B(),(n=b.value)==null||n.open("edit"),(_=b.value)==null||_.setFormData(l)},z=async l=>{await ne.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await he({id:l}),c()},{optionsData:N}=Fe({role:{api:we}});return pe(()=>{c()}),(l,n)=>{const _=Q,w=Z,E=q,P=G,f=H,R=ue,S=W,y=X,T=ie,i=Y,j=ee,I=te,M=oe,O=le,F=de("perms"),J=ae;return u(),k("div",Ce,[e(y,{class:"!border-none",shadow:"never"},{default:a(()=>[e(S,{class:"mb-[-16px]",model:o(s),inline:""},{default:a(()=>[e(w,{label:"\u7BA1\u7406\u5458\u8D26\u53F7"},{default:a(()=>[e(_,{modelValue:o(s).account,"onUpdate:modelValue":n[0]||(n[0]=t=>o(s).account=t),class:"w-[280px]",clearable:"",onKeyup:D(o(g),["enter"])},null,8,["modelValue","onKeyup"])]),_:1}),e(w,{label:"\u7BA1\u7406\u5458\u540D\u79F0"},{default:a(()=>[e(_,{modelValue:o(s).name,"onUpdate:modelValue":n[1]||(n[1]=t=>o(s).name=t),class:"w-[280px]",clearable:"",onKeyup:D(o(g),["enter"])},null,8,["modelValue","onKeyup"])]),_:1}),e(w,{label:"\u7BA1\u7406\u5458\u89D2\u8272"},{default:a(()=>[e(P,{class:"w-[280px]",modelValue:o(s).role_id,"onUpdate:modelValue":n[2]||(n[2]=t=>o(s).role_id=t)},{default:a(()=>[e(E,{label:"\u5168\u90E8",value:""}),(u(!0),k(ce,null,_e(o(N).role,(t,p)=>(u(),m(E,{key:p,label:t.name,value:t.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e(w,null,{default:a(()=>[e(f,{type:"primary",onClick:o(g)},{default:a(()=>[d("\u67E5\u8BE2")]),_:1},8,["onClick"]),e(f,{onClick:o($)},{default:a(()=>[d("\u91CD\u7F6E")]),_:1},8,["onClick"]),e(R,{class:"ml-2.5","fetch-fun":o(x),params:o(s),"page-size":o(r).size},null,8,["fetch-fun","params","page-size"])]),_:1})]),_:1},8,["model"])]),_:1}),v((u(),m(y,{class:"mt-4 !border