WokerTask/public/admin/assets/detail copy.7a1762da.js

2 lines
5.5 KiB
JavaScript
Raw Normal View History

2023-12-27 14:06:33 +08:00
import{T as P,I as N,o as q,w as M,C as S,a1 as U,a2 as V,D as I}from"./element-plus.9816852d.js";import{_ as T}from"./index.vue_vue_type_script_setup_true_lang.e9eaddcf.js";import{m as z,b as H}from"./index.4eaf9bd5.js";import{u as K}from"./vue-router.9f65afb1.js";import{g as L,u as O,a as G}from"./consumer.8f0c95fa.js";import{_ as J}from"./account-adjust.vue_vue_type_script_setup_true_lang.95d78934.js";import{d as h,$ as D,s as Q,af as W,o as d,c as X,U as e,L as t,u as s,a as _,R as u,S as i,M as F,K as b}from"./@vue.51d7f2d8.js";import"./@vueuse.ec90c285.js";import"./@element-plus.a074d1f6.js";import"./lodash-es.29c53eac.js";import"./dayjs.576af3ba.js";import"./@amap.8a62addd.js";import"./async-validator.fb49d0f5.js";import"./@ctrl.b082b0c1.js";import"./@popperjs.36402333.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./lodash.675f209e.js";import"./axios.54f807ba.js";import"./pinia.56356cb7.js";import"./vue-demi.b3a9cad9.js";import"./css-color-function.0a5c0f85.js";import"./color.e5eb3bba.js";import"./clone.546d9b81.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.aee266dc.js";import"./ms.a9ae1d6d.js";import"./nprogress.f73355d0.js";import"./vue-clipboard3.dca5bca3.js";import"./clipboard.16e4491b.js";import"./echarts.ac57a99a.js";import"./zrender.d54ce080.js";import"./tslib.60310f1a.js";import"./highlight.js.dba6fa1b.js";import"./@highlightjs.40d5feba.js";import"./index.2d3a3dd9.js";import"./index.vue_vue_type_style_index_0_scoped_95d1884e_lang.0fc4c9f8.js";const Y={class:"bg-page flex py-5 mb-10 items-center"},Z={class:"basis-40 flex flex-col justify-center items-center"},ee=_("div",{class:"mb-2 text-tx-regular"},"\u7528\u6237\u5934\u50CF",-1),te={class:"basis-40 flex flex-col justify-center items-center"},ae=_("div",{class:"text-tx-regular"},"\u8D26\u6237\u4F59\u989D",-1),oe={class:"mt-2 flex items-center"},se=h({name:"consumerDetail"}),Oe=h({...se,setup(le){const E=K(),o=D({avatar:"",channel:"",create_time:"",login_time:"",mobile:"",nickname:"",real_name:0,sex:0,sn:"",account:"",user_money:""}),p=D({show:!1,value:""}),A=Q(),C=async()=>{const l=await L({id:E.query.id});Object.keys(o).forEach(a=>{o[a]=l[a],a=="sex"&&(o[a]=Number(l[a]))})},v=async(l,a)=>{z(l)||(await O({id:E.query.id,field:a,value:l}),C())},g=l=>{p.show=!0,p.value=l},B=async l=>{await G({user_id:E.query.id,...l}),p.show=!1,C()};return C(),(l,a)=>{const k=P,w=N,j=q,c=M,m=S,r=U,y=H,x=T,$=V,R=I,f=W("perms");return d(),X("div",null,[e(w,{class:"!border-none",shadow:"never"},{default:t(()=>[e(k,{content:"\u7528\u6237\u8BE6\u60C5",onBack:a[0]||(a[0]=n=>l.$router.back())})]),_:1}),e(w,{class:"mt-4 !border-none",header:"\u57FA\u672C\u8D44\u6599",shadow:"never"},{default:t(()=>[e(R,{ref_key:"formRef",ref:A,class:"ls-form",model:s(o),"label-width":"120px"},{default:t(()=>[_("div",Y,[_("div",Z,[ee,e(j,{src:s(o).avatar,size:58},null,8,["src"])]),_("div",te,[ae,_("div",oe,[u(" \xA5"+i(s(o).user_money)+" ",1),F((d(),b(c,{type:"primary",link:"",onClick:a[1]||(a[1]=n=>g(s(o).user_money))},{default:t(()=>[u(" \u8C03\u6574 ")]),_:1})),[[f,["user.user/adjustMoney"]]])])])]),e(r,{span:24,class:"el-card pt-6"},{default:t(()=>[e($,null,{default:t(()=>[e(r,{span:12},{default:t(()=>[e(m,{label:"\u7528\u6237\u7F16\u53F7\uFF1A"},{default:t(()=>[u(i(s(o).sn),1)]),_:1})]),_:1}),e(r,{span:12},{default:t(()=>[e(m,{label:"\u7528\u6237\u6635\u79F0\uFF1A"},{default:t(()=>[u(i(s(o).nickname),1)]),_:1})]),_:1}),e(r,{span:12},{default:t(()=>[e(m,{label:"\u8D26\u53F7\uFF1A"},{default:t(()=>[u(i(s(o).account)+" ",1),F((d(),b(x,{class:"ml-[10px]",onConfirm:a[2]||(a[2]=n=>v(n,"account")),limit:32},{default:t(()=>[e(c,{type:"primary",link:""},{default:t(()=>[e(y,{name:"el-icon-EditPen"})]),_:1})]),_:1})),[[f,["user.user/edit"]]])]),_:1})]),_:1}),e(r,{span:12},{default:t(()=>[e(m,{label:"\u771F\u5B9E\u59D3\u540D\uFF1A"},{default:t(()=>[u(i(s(o).real_name||"-")+" ",1),F((d(),b(x,{class:"ml-[10px]",onConfirm:a[3]||(a[3]=n=>v(n,"real_name")),limi