WokerTask/public/admin/assets/detail copy.d85e7c70.js

2 lines
5.4 KiB
JavaScript

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.b0ecf6ae.js";import{_ as T}from"./index.vue_vue_type_script_setup_true_lang.00eabce0.js";import{s as z,b as H}from"./index.9e5a9063.js";import{u as K}from"./vue-router.9f65afb1.js";import{g as L,u as O,a as G}from"./consumer.ff489669.js";import{_ as J}from"./account-adjust.vue_vue_type_script_setup_true_lang.924f51fa.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.c80b8015.js";import"./lodash-es.29c53eac.js";import"./dayjs.e873ead7.js";import"./@amap.8a62addd.js";import"./async-validator.fb49d0f5.js";import"./@ctrl.82a509e0.js";import"./@popperjs.36402333.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./lodash.ffb5376d.js";import"./axios.f9df025a.js";import"./pinia.56356cb7.js";import"./vue-demi.b3a9cad9.js";import"./css-color-function.4b0c77cb.js";import"./color.992612d2.js";import"./clone.d8d3ae9a.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.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.3a572f9b.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"}),He=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")),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:"\u6027\u522B\uFF1A"},{default:t(()=>[u(i(s(o).sex)+" ",1),F((d(),b(x,{class:"ml-[10px]",type:"select",options:[{label:"\u672A\u77E5",value:0},{label:"\u7537",value:1},{label:"\u5973",value:2}],onConfirm:a[4]||(a[4]=n=>v(n,"sex"))},{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:"\u8054\u7CFB\u7535\u8BDD\uFF1A"},{default:t(()=>[u(i(s(o).mobile||"-")+" ",1),F((d(),b(x,{class:"ml-[10px]",type:"number",onConfirm:a[5]||(a[5]=n=>v(n,"mobile"))},{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:"\u6CE8\u518C\u6765\u6E90\uFF1A"},{default:t(()=>[u(i(s(o).channel),1)]),_:1})]),_:1}),e(r,{span:12},{default:t(()=>[e(m,{label:"\u6CE8\u518C\u65F6\u95F4\uFF1A"},{default:t(()=>[u(i(s(o).create_time),1)]),_:1})]),_:1}),e(r,{span:12},{default:t(()=>[e(m,{label:"\u6700\u8FD1\u767B\u5F55\u65F6\u95F4\uFF1A"},{default:t(()=>[u(i(s(o).login_time),1)]),_:1})]),_:1})]),_:1})]),_:1})]),_:1},8,["model"])]),_:1}),e(J,{show:s(p).show,"onUpdate:show":a[6]||(a[6]=n=>s(p).show=n),value:s(p).value,onConfirm:B},null,8,["show","value"])])}}});export{He as default};