ERP-admin/build/admin/assets/index.39778fad.js

2 lines
5.9 KiB
JavaScript
Raw Normal View History

2024-05-21 15:15:41 +08:00
import{C as Q,D as q,K as M,L as Z,w as z,F as G,T as H,O as J,b as W,Q as X,R as Y}from"./element-plus.d8e0827b.js";import{_ as ee}from"./index.vue_vue_type_script_setup_true_lang.b67c1046.js";import{i as le,f as te,l as ae,b as oe,m as ue}from"./index.58242ff9.js";import{u as se}from"./usePaging.6a6670f9.js";import{u as ne}from"./useDictOptions.f8f89444.js";import{d as U,s as ie,r as V,Z as re,ap as pe,o as i,c as x,U as e,L as a,u as t,T as me,a9 as de,K as p,R as c,M as f,a as C,S as ce,j as _e,Q as fe,n as B}from"./@vue.18505fe0.js";import"./lodash.466e9fe4.js";import{_ as be}from"./edit.vue_vue_type_script_setup_true_name_userEdit_lang.c416f7ae.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"./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"./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"./picker.197acc10.js";import"./index.432b2bf9.js";import"./index.606807f5.js";import"./index.97ac23f5.js";import"./vuedraggable.9f282753.js";import"./vue.e5198d72.js";import"./sortablejs.6fa237f8.js";const ve={class:"mt-4"},Fe={class:"flex mt-4 justify-end"},we=U({name:"userLists"}),dl=U({...we,setup(De){const b=ie(),v=V(!1),u=re({nickname:"",account:"",mobile:"",is_disable:""}),D=V([]),L=s=>{D.value=s.map(({id:o})=>o)},{dictData:g}=ne("sex_type,system_disable"),{pager:_,getLists:F,resetParams:S,resetPage:$}=se({fetchFun:ue,params:u}),R=async()=>{var s;v.value=!0,await B(),(s=b.value)==null||s.open("add")},T=async s=>{var m,r;let o=await le({id:s.id});v.value=!0,await B(),(m=b.value)==null||m.open("edit"),(r=b.value)==null||r.setFormData(o)},h=async s=>{await te.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await ae({id:s}),F()};return F(),(s,o)=>{const m=Q,r=q,y=M,P=Z,d=z,I=G,E=H,N=oe,n=J,j=W,A=X,K=ee,w=pe("perms"),O=Y;return i(),x("div",null,[e(E,{class:"!border-none mb-4",shadow:"never"},{default:a(()=>[e(I,{class:"mb-[-16px]",model:t(u),inline:""},{default:a(()=>[e(r,{label:"\u7528\u6237\u6635\u79F0",prop:"nickname"},{default:a(()=>[e(m,{class:"w-[280px]",modelValue:t(u).nickname,"onUpdate:modelValue":o[0]||(o[0]=l=>t(u).nickname=l),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u7528\u6237\u6635\u79F0"},null,8,["modelValue"])]),_:1}),e(r,{label:"\u7528\u6237\u8D26\u53F7",prop:"account"},{default:a(()=>[e(m,{class:"w-[280px]",modelValue:t(u).account,"onUpdate:modelValue":o[1]||(o[1]=l=>t(u).account=l),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u7528\u6237\u8D26\u53F7"},null,8,["modelValue"])]),_:1}),e(r,{label:"\u7528\u6237\u7535\u8BDD",prop:"mobile"},{default:a(()=>[e(m,{class:"w-[280px]",modelValue:t(u).mobile,"onUpdate:modelValue":o[2]||(o[2]=l=>t(u).mobile=l),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u7528\u6237\u7535\u8BDD"},null,8,["modelValue"])]),_:1}),e(r,{label:"\u662F\u5426\u7981\u7528",prop:"is_disable"},{default:a(()=>[e(P,{class:"w-[280px]",modelValue:t(u).is_disable,"onUpdate:modelValue":o[3]||(o[3]=l=>t(u).is_disable=l),clearable:"",placeholder:"\u8BF7\u9009\u62E9\u662F\u5426\u7981\u7528"},{default:a(()=>[e(y,{label:"\u5168\u90E8",value:""}),(i(!0),x(me,null,de(t(g).system_disable,(l,k)=>(i(),p(y,{key:k,label:l.name,value:l.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e(r,null,{default:a(()=>[e(d,{type:"primary",onClick:t($)},{default:a(()=>[c("\u67E5\u8BE2")]),_:1},