ERP-admin/build/admin/assets/index.dec670b4.js

2 lines
5.8 KiB
JavaScript
Raw Normal View History

2024-05-16 10:05:14 +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.8c800afc.js";import{_ as ee}from"./index.vue_vue_type_script_setup_true_lang.7b224fce.js";import{i as le,f as ae,l as te,b as oe,m as ue}from"./index.2398c167.js";import{u as se}from"./usePaging.6a6670f9.js";import{u as ne}from"./useDictOptions.080d297e.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 t,u as a,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.be6e4bb5.js";import{_ as be}from"./edit.vue_vue_type_script_setup_true_name_userEdit_lang.204f0c8b.js";import"./lodash-es.bdeecbdb.js";import"./async-validator.fb49d0f5.js";import"./@vueuse.fbc6a400.js";import"./@element-plus.edbd5a83.js";import"./dayjs.ef95d8c0.js";import"./axios.77245e3c.js";import"./@ctrl.b082b0c1.js";import"./normalize-wheel-es.8aeb3683.js";import"./@popperjs.36402333.js";import"./vue-router.886c5f5a.js";import"./pinia.a969beab.js";import"./css-color-function.6061d63f.js";import"./color.1580a89c.js";import"./clone.4ed29f58.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.b29ee5e2.js";import"./vue-clipboard3.15c43b43.js";import"./clipboard.4a3580c9.js";import"./echarts.5016c48c.js";import"./zrender.58d022a1.js";import"./tslib.60310f1a.js";import"./highlight.js.31cd7941.js";import"./@highlightjs.b0c09b66.js";import"./picker.e9a187d6.js";import"./index.d0a14c5a.js";import"./index.427ee87d.js";import"./index.bc8c239a.js";import"./vuedraggable.11c6ad82.js";import"./vue.09510228.js";import"./sortablejs.b9072078.js";const ve={class:"mt-4"},Fe={class:"flex mt-4 justify-end"},we=U({name:"userLists"}),rl=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 ae.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await te({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:t(()=>[e(I,{class:"mb-[-16px]",model:a(u),inline:""},{default:t(()=>[e(r,{label:"\u7528\u6237\u6635\u79F0",prop:"nickname"},{default:t(()=>[e(m,{class:"w-[280px]",modelValue:a(u).nickname,"onUpdate:modelValue":o[0]||(o[0]=l=>a(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:t(()=>[e(m,{class:"w-[280px]",modelValue:a(u).account,"onUpdate:modelValue":o[1]||(o[1]=l=>a(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:t(()=>[e(m,{class:"w-[280px]",modelValue:a(u).mobile,"onUpdate:modelValue":o[2]||(o[2]=l=>a(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:t(()=>[e(P,{class:"w-[280px]",modelValue:a(u).is_disable,"onUpdate:modelValue":o[3]||(o[3]=l=>a(u).is_disable=l),clearable:"",placeholder:"\u8BF7\u9009\u62E9\u662F\u5426\u7981\u7528"},{default:t(()=>[e(y,{label:"\u5168\u90E8",value:""}),(i(!0),x(me,null,de(a(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:t(()=>[e(d,{type:"primary",onClick:a($)},{default:t(()=>[c("\u67E5\u8BE2")]),_:1},8,["onClick"]),e(d,{onClick:a(S)},{default:t(()=>[c("\u91CD\u7F6E")]),_:1},8,["onClick