2 lines
4.8 KiB
JavaScript
2 lines
4.8 KiB
JavaScript
import{P as j,I as $,o as P,w as R,C as q,D as M}from"./element-plus.44a1c90c.js";import{_ as N}from"./index.vue_vue_type_script_setup_true_lang.2ee53823.js";import{m as S,b as U}from"./index.600d25a3.js";import{u as V}from"./vue-router.12d45bc3.js";import{g as I,a as T,u as z}from"./consumer.255f6f9e.js";import{_ as H}from"./account-adjust.vue_vue_type_script_setup_true_lang.1c3a2361.js";import{d as w,$ as C,s as K,af as L,o as m,c as O,U as e,L as t,a as d,S as r,T as l,M as _,K as f}from"./@vue.e8706010.js";import"./@vueuse.1e5a6e21.js";import"./@element-plus.196c7323.js";import"./lodash-es.29c53eac.js";import"./dayjs.d871e3e1.js";import"./axios.263e335e.js";import"./async-validator.fb49d0f5.js";import"./@ctrl.82a509e0.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./lodash.e8c2b926.js";import"./pinia.dfca86b4.js";import"./vue-demi.ebc8116b.js";import"./css-color-function.49c13ae5.js";import"./color.6f36a052.js";import"./clone.0bac550d.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.762f2b8b.js";import"./ms.a9ae1d6d.js";import"./nprogress.f7d60be2.js";import"./vue-clipboard3.536bdb56.js";import"./clipboard.cadf3e40.js";import"./echarts.8d7a50ae.js";import"./zrender.1084fa23.js";import"./tslib.60310f1a.js";import"./highlight.js.4ebdf9a4.js";import"./@highlightjs.2cdc8407.js";import"./index.92f6d7ca.js";const G={class:"bg-page flex py-5 mb-10 items-center"},J={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"}),Ve=w({...ee,setup(te){const v=V(),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=K(),x=async()=>{const u=await I({id:v.query.id});Object.keys(a).forEach(o=>{a[o]=u[o]})},F=async(u,o)=>{S(u)||(await z({id:v.query.id,field:o,value:u}),x())},h=u=>{i.show=!0,i.value=u},A=async u=>{await T({user_id:v.query.id,...u}),i.show=!1,x()};return x(),(u,o)=>{const k=j,E=$,g=P,p=R,n=q,y=U,b=N,B=M,c=L("perms");return m(),O("div",null,[e(E,{class:"!border-none",shadow:"never"},{default:t(()=>[e(k,{content:"\u7528\u6237\u8BE6\u60C5",onBack:o[0]||(o[0]=s=>u.$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",G,[d("div",J,[Q,e(g,{src:a.avatar,size:58},null,8,["src"])]),d("div",W,[X,d("div",Y,[r(" \xA5"+l(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(n,{label:"\u7528\u6237\u7F16\u53F7\uFF1A"},{default:t(()=>[r(l(a.sn),1)]),_:1}),e(n,{label:"\u7528\u6237\u6635\u79F0\uFF1A"},{default:t(()=>[r(l(a.nickname),1)]),_:1}),e(n,{label:"\u8D26\u53F7\uFF1A"},{default:t(()=>[r(l(a.account)+" ",1),_((m(),f(b,{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(n,{label:"\u771F\u5B9E\u59D3\u540D\uFF1A"},{default:t(()=>[r(l(a.real_name||"-")+" ",1),_((m(),f(b,{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(n,{label:"\u6027\u522B\uFF1A"},{default:t(()=>[r(l(a.sex)+" ",1),_((m(),f(b,{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(n,{label:"\u8054\u7CFB\u7535\u8BDD\uFF1A"},{default:t(()=>[r(l(a.mobile||"-")+" ",1),_((m(),f(b,{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(n,{label:"\u6CE8\u518C\u6765\u6E90\uFF1A"},{default:t(()=>[r(l(a.channel),1)]),_:1}),e(n,{label:"\u6CE8\u518C\u65F6\u95F4\uFF1A"},{default:t(()=>[r(l(a.create_time),1)]),_:1}),e(n,{label:"\u6700\u8FD1\u767B\u5F55\u65F6\u95F4\uFF1A"},{default:t(()=>[r(l(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{Ve as default};
|