2 lines
4.8 KiB
JavaScript
2 lines
4.8 KiB
JavaScript
import{a1 as j,C as $,o as P,w as R,y as V,D as q}from"./element-plus.517d4382.js";import{_ as M}from"./index.vue_vue_type_script_setup_true_lang.f8507404.js";import{n as N,a as U}from"./index.8b1962e9.js";import{u as O}from"./vue-router.87ebc608.js";import{g as S,a as T,u as z}from"./consumer.a479d218.js";import{_ as H}from"./account-adjust.vue_vue_type_script_setup_true_lang.f8eff250.js";import{d as w,a0 as C,s as I,ai as L,o as m,c as G,V as e,M as t,a as d,T as r,U as u,O as _,L as f}from"./@vue.ab566ce7.js";import"./@vueuse.8fcae4c2.js";import"./@element-plus.b89f1627.js";import"./lodash-es.49f4af13.js";import"./dayjs.4afe12d3.js";import"./axios.37fc980d.js";import"./async-validator.fb49d0f5.js";import"./@ctrl.82a509e0.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./lodash.1d82ee7c.js";import"./pinia.b6700c26.js";import"./vue-demi.ebc8116b.js";import"./css-color-function.d0bec2c9.js";import"./color.ea90db3f.js";import"./clone.cbd692e6.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.ad6bc3c0.js";import"./ms.a9ae1d6d.js";import"./nprogress.bcdf1f46.js";import"./vue-clipboard3.c45111bf.js";import"./clipboard.1cb79a0d.js";import"./echarts.b30ab882.js";import"./tslib.60310f1a.js";import"./zrender.3760070d.js";import"./highlight.js.4ebdf9a4.js";import"./@highlightjs.62ff6725.js";import"./index.b17dae19.js";const J={class:"bg-page flex py-5 mb-10 items-center"},K={class:"basis-40 flex flex-col justify-center items-center"},Q=d("div",{class:"mb-2 text-tx-regular"},"\u7528\u6237\u5934\u50CF",-1),W={class:"basis-40 flex flex-col justify-center items-center"},X=d("div",{class:"text-tx-regular"},"\u8D26\u6237\u4F59\u989D",-1),Y={class:"mt-2 flex items-center"},Z=r(" \u8C03\u6574 "),ee=w({name:"consumerDetail"}),Oe=w({...ee,setup(te){const b=O(),a=C({avatar:"",channel:"",create_time:"",login_time:"",mobile:"",nickname:"",real_name:0,sex:0,sn:"",account:"",user_money:""}),i=C({show:!1,value:""}),D=I(),x=async()=>{const n=await S({id:b.query.id});Object.keys(a).forEach(o=>{a[o]=n[o]})},F=async(n,o)=>{N(n)||(await z({id:b.query.id,field:o,value:n}),x())},h=n=>{i.show=!0,i.value=n},A=async n=>{await T({user_id:b.query.id,...n}),i.show=!1,x()};return x(),(n,o)=>{const k=j,E=$,g=P,p=R,l=V,y=U,v=M,B=q,c=L("perms");return m(),G("div",null,[e(E,{class:"!border-none",shadow:"never"},{default:t(()=>[e(k,{content:"\u7528\u6237\u8BE6\u60C5",onBack:o[0]||(o[0]=s=>n.$router.back())})]),_:1}),e(E,{class:"mt-4 !border-none",header:"\u57FA\u672C\u8D44\u6599",shadow:"never"},{default:t(()=>[e(B,{ref_key:"formRef",ref:D,class:"ls-form",model:a,"label-width":"120px"},{default:t(()=>[d("div",J,[d("div",K,[Q,e(g,{src:a.avatar,size:58},null,8,["src"])]),d("div",W,[X,d("div",Y,[r(" \xA5"+u(a.user_money)+" ",1),_((m(),f(p,{type:"primary",link:"",onClick:o[1]||(o[1]=s=>h(a.user_money))},{default:t(()=>[Z]),_:1})),[[c,["user.user/adjustMoney"]]])])])]),e(l,{label:"\u7528\u6237\u7F16\u53F7\uFF1A"},{default:t(()=>[r(u(a.sn),1)]),_:1}),e(l,{label:"\u7528\u6237\u6635\u79F0\uFF1A"},{default:t(()=>[r(u(a.nickname),1)]),_:1}),e(l,{label:"\u8D26\u53F7\uFF1A"},{default:t(()=>[r(u(a.account)+" ",1),_((m(),f(v,{class:"ml-[10px]",onConfirm:o[2]||(o[2]=s=>F(s,"account")),limit:32},{default:t(()=>[e(p,{type:"primary",link:""},{default:t(()=>[e(y,{name:"el-icon-EditPen"})]),_:1})]),_:1})),[[c,["user.user/edit"]]])]),_:1}),e(l,{label:"\u771F\u5B9E\u59D3\u540D\uFF1A"},{default:t(()=>[r(u(a.real_name||"-")+" ",1),_((m(),f(v,{class:"ml-[10px]",onConfirm:o[3]||(o[3]=s=>F(s,"real_name")),limit:32},{default:t(()=>[e(p,{type:"primary",link:""},{default:t(()=>[e(y,{name:"el-icon-EditPen"})]),_:1})]),_:1})),[[c,["user.user/edit"]]])]),_:1}),e(l,{label:"\u6027\u522B\uFF1A"},{default:t(()=>[r(u(a.sex)+" ",1),_((m(),f(v,{class:"ml-[10px]",type:"select",options:[{label:"\u672A\u77E5",value:0},{label:"\u7537",value:1},{label:"\u5973",value:2}],onConfirm:o[4]||(o[4]=s=>F(s,"sex"))},{default:t(()=>[e(p,{type:"primary",link:""},{default:t(()=>[e(y,{name:"el-icon-EditPen"})]),_:1})]),_:1})),[[c,["user.user/edit"]]])]),_:1}),e(l,{label:"\u8054\u7CFB\u7535\u8BDD\uFF1A"},{default:t(()=>[r(u(a.mobile||"-")+" ",1),_((m(),f(v,{class:"ml-[10px]",type:"number",onConfirm:o[5]||(o[5]=s=>F(s,"mobile"))},{default:t(()=>[e(p,{type:"primary",link:""},{default:t(()=>[e(y,{name:"el-icon-EditPen"})]),_:1})]),_:1})),[[c,["user.user/edit"]]])]),_:1}),e(l,{label:"\u6CE8\u518C\u6765\u6E90\uFF1A"},{default:t(()=>[r(u(a.channel),1)]),_:1}),e(l,{label:"\u6CE8\u518C\u65F6\u95F4\uFF1A"},{default:t(()=>[r(u(a.create_time),1)]),_:1}),e(l,{label:"\u6700\u8FD1\u767B\u5F55\u65F6\u95F4\uFF1A"},{default:t(()=>[r(u(a.login_time),1)]),_:1})]),_:1},8,["model"])]),_:1}),e(H,{show:i.show,"onUpdate:show":o[6]||(o[6]=s=>i.show=s),value:i.value,onConfirm:A},null,8,["show","value"])])}}});export{Oe as default};
|