ERP-admin/build/admin/assets/details.3d864fcc.js

2 lines
4.8 KiB
JavaScript

import{U as w,V as C,C as R,D as g,F as I}from"./element-plus.d8e0827b.js";import{P as T}from"./index.432b2bf9.js";import{i as L}from"./index.58242ff9.js";import{d as k,s as b,r as S,Z as N,o as d,c as s,U as a,L as t,u as o,T as V,a9 as y,K as B,R as D,S as x}from"./@vue.18505fe0.js";import"./lodash.466e9fe4.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";const P={class:"edit-popup"},j=k({name:"userDETAILS"}),xe=k({...j,props:{dictData:{type:Object,default:()=>({})}},emits:["success","close"],setup(i,{expose:E,emit:A}){const U=b(),f=b();S("add");const u=N({id:"",avatar:"",real_name:"",nickname:"",account:"",password:"",mobile:"",sex:"",is_disable:"",user_money:""}),c=async r=>{for(const e in u)r[e]!=null&&r[e]!=null&&(u[e]=r[e])};return E({open:()=>{var r;(r=f.value)==null||r.open()},setFormData:c,getDetail:async r=>{const e=await L({id:r.id});c(e)}}),(r,e)=>{const m=R,p=g,_=w,F=C,v=I;return d(),s("div",P,[a(T,{ref_key:"popupRef",ref:f,title:"\u8BE6\u60C5",async:!0,width:"550px",cancelButtonText:!1,confirmButtonText:!1},{default:t(()=>[a(v,{ref_key:"formRef",ref:U,model:o(u),"label-width":"90px"},{default:t(()=>[a(p,{label:"\u5934\u50CF",prop:"avatar"},{default:t(()=>[a(m,{modelValue:o(u).avatar,"onUpdate:modelValue":e[0]||(e[0]=l=>o(u).avatar=l),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u5934\u50CF",readonly:!0},null,8,["modelValue"])]),_:1}),a(p,{label:"\u771F\u5B9E\u59D3\u540D",prop:"real_name"},{default:t(()=>[a(m,{modelValue:o(u).real_name,"onUpdate:modelValue":e[1]||(e[1]=l=>o(u).real_name=l),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u771F\u5B9E\u59D3\u540D",readonly:!0},null,8,["modelValue"])]),_:1}),a(p,{label:"\u7528\u6237\u6635\u79F0",prop:"nickname"},{default:t(()=>[a(m,{modelValue:o(u).nickname,"onUpdate:modelValue":e[2]||(e[2]=l=>o(u).nickname=l),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u7528\u6237\u6635\u79F0",readonly:!0},null,8,["modelValue"])]),_:1}),a(p,{label:"\u7528\u6237\u8D26\u53F7",prop:"account"},{default:t(()=>[a(m,{modelValue:o(u).account,"onUpdate:modelValue":e[3]||(e[3]=l=>o(u).account=l),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u7528\u6237\u8D26\u53F7",readonly:!0},null,8,["modelValue"])]),_:1}),a(p,{label:"\u7528\u6237\u5BC6\u7801",prop:"password"},{default:t(()=>[a(m,{modelValue:o(u).password,"onUpdate:modelValue":e[4]||(e[4]=l=>o(u).password=l),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u7528\u6237\u5BC6\u7801",readonly:!0},null,8,["modelValue"])]),_:1}),a(p,{label:"\u7528\u6237\u7535\u8BDD",prop:"mobile"},{default:t(()=>[a(m,{modelValue:o(u).mobile,"onUpdate:modelValue":e[5]||(e[5]=l=>o(u).mobile=l),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u7528\u6237\u7535\u8BDD",readonly:!0},null,8,["modelValue"])]),_:1}),a(p,{label:"\u7528\u6237\u6027\u522B: [1=\u7537, 2=\u5973]",prop:"sex"},{default:t(()=>[a(F,{modelValue:o(u).sex,"onUpdate:modelValue":e[6]||(e[6]=l=>o(u).sex=l),placeholder:"\u8BF7\u9009\u62E9\u7528\u6237\u6027\u522B: [1=\u7537, 2=\u5973]",disabled:!0},{default:t(()=>[(d(!0),s(V,null,y(i.dictData.sex_type,(l,n)=>(d(),B(_,{key:n,label:parseInt(l.value)},{default:t(()=>[D(x(l.name),1)]),_:2},1032,["label"]))),128))]),_:1},8,["modelValue"])]),_:1}),a(p,{label:"\u662F\u5426\u7981\u7528: [0=\u5426, 1=\u662F]",prop:"is_disable"},{default:t(()=>[a(F,{modelValue:o(u).is_disable,"onUpdate:modelValue":e[7]||(e[7]=l=>o(u).is_disable=l),placeholder:"\u8BF7\u9009\u62E9\u662F\u5426\u7981\u7528: [0=\u5426, 1=\u662F]",disabled:!0},{default:t(()=>[(d(!0),s(V,null,y(i.dictData.system_disable,(l,n)=>(d(),B(_,{key:n,label:parseInt(l.value)},{default:t(()=>[D(x(l.name),1)]),_:2},1032,["label"]))),128))]),_:1},8,["modelValue"])]),_:1}),a(p,{label:"\u7528\u6237\u4F59\u989D",prop:"user_money"},{default:t(()=>[a(m,{modelValue:o(u).user_money,"onUpdate:modelValue":e[8]||(e[8]=l=>o(u).user_money=l),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u7528\u6237\u4F59\u989D",readonly:!0},null,8,["modelValue"])]),_:1})]),_:1},8,["model"])]),_:1},512)])}}});export{xe as default};