2 lines
5.6 KiB
JavaScript
2 lines
5.6 KiB
JavaScript
import{U as R,J as q,o as N,w as U,D as V,a2 as M,a3 as S,F as z}from"./element-plus.ff90c99c.js";import{_ as H}from"./index.vue_vue_type_script_setup_true_lang.ec118b31.js";import{s as I,b as J}from"./index.2c97e227.js";import{u as O}from"./vue-router.6d4cf914.js";import{g as Q,u as T,a as W}from"./consumer.ae378259.js";import{_ as G}from"./account-adjust.vue_vue_type_script_setup_true_lang.24b24799.js";import{d as h,$ as D,s as K,aq as L,o as d,c as X,W as e,Q as t,u as s,a as _,U as r,V as i,R as F,P as b}from"./@vue.f8dfc830.js";import"./lodash-es.a73406b7.js";import"./@vueuse.a2e59ee9.js";import"./@element-plus.0374639c.js";import"./@popperjs.36402333.js";import"./@ctrl.b082b0c1.js";import"./dayjs.7f1be2bc.js";import"./@amap.8a62addd.js";import"./async-validator.fb49d0f5.js";import"./memoize-one.4ee5c96d.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./@floating-ui.34a21088.js";import"./lodash.2e6f447e.js";import"./axios.075403c9.js";import"./pinia.4b196199.js";import"./vue-demi.b3a9cad9.js";import"./css-color-function.b6f240ee.js";import"./color.35874cfa.js";import"./clone.d8e67888.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.e6aad81b.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.79024f1a.js";import"./index.9321816e.js";import"./index.vue_vue_type_style_index_0_scoped_95d1884e_lang.af59f801.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"}),Ge=h({...se,setup(le){const E=O(),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=K(),w=async()=>{const l=await Q({id:E.query.id});Object.keys(o).forEach(a=>{o[a]=l[a],a=="sex"&&(o[a]=Number(l[a]))})},v=async(l,a)=>{I(l)||(await T({id:E.query.id,field:a,value:l}),w())},g=l=>{p.show=!0,p.value=l},B=async l=>{await W({user_id:E.query.id,...l}),p.show=!1,w()};return w(),(l,a)=>{const k=R,C=q,j=N,c=U,m=V,u=M,y=J,x=H,$=S,P=z,f=L("perms");return d(),X("div",null,[e(C,{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(C,{class:"mt-4 !border-none",header:"\u57FA\u672C\u8D44\u6599",shadow:"never"},{default:t(()=>[e(P,{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,[r(" \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(()=>[r(" \u8C03\u6574 ")]),_:1})),[[f,["user.user/adjustMoney"]]])])])]),e(u,{span:24,class:"el-card pt-6"},{default:t(()=>[e($,null,{default:t(()=>[e(u,{span:12},{default:t(()=>[e(m,{label:"\u7528\u6237\u7F16\u53F7\uFF1A"},{default:t(()=>[r(i(s(o).sn),1)]),_:1})]),_:1}),e(u,{span:12},{default:t(()=>[e(m,{label:"\u7528\u6237\u6635\u79F0\uFF1A"},{default:t(()=>[r(i(s(o).nickname),1)]),_:1})]),_:1}),e(u,{span:12},{default:t(()=>[e(m,{label:"\u8D26\u53F7\uFF1A"},{default:t(()=>[r(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(u,{span:12},{default:t(()=>[e(m,{label:"\u771F\u5B9E\u59D3\u540D\uFF1A"},{default:t(()=>[r(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(u,{span:12},{default:t(()=>[e(m,{label:"\u6027\u522B\uFF1A"},{default:t(()=>[r(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(u,{span:12},{default:t(()=>[e(m,{label:"\u8054\u7CFB\u7535\u8BDD\uFF1A"},{default:t(()=>[r(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(u,{span:12},{default:t(()=>[e(m,{label:"\u6CE8\u518C\u6765\u6E90\uFF1A"},{default:t(()=>[r(i(s(o).channel),1)]),_:1})]),_:1}),e(u,{span:12},{default:t(()=>[e(m,{label:"\u6CE8\u518C\u65F6\u95F4\uFF1A"},{default:t(()=>[r(i(s(o).create_time),1)]),_:1})]),_:1}),e(u,{span:12},{default:t(()=>[e(m,{label:"\u6700\u8FD1\u767B\u5F55\u65F6\u95F4\uFF1A"},{default:t(()=>[r(i(s(o).login_time),1)]),_:1})]),_:1})]),_:1})]),_:1})]),_:1},8,["model"])]),_:1}),e(G,{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{Ge as default};
|