code-origin/server/public/admin/assets/detail.52079c05.js

2 lines
4.9 KiB
JavaScript
Executable File

import{P as j,I as $,o as P,w as R,C as q,D as M}from"./element-plus.317dd699.js";import{_ as N}from"./index.vue_vue_type_script_setup_true_lang.a60e2335.js";import{l as S,b as U}from"./index.ffa405f0.js";import{u as V}from"./vue-router.12d45bc3.js";import{g as I,a as T,u as z}from"./consumer.14da642a.js";import{_ as H}from"./account-adjust.vue_vue_type_script_setup_true_lang.c21e7735.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 u,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.f7363e4f.js";import"./axios.3af9fe4b.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.873faf2b.js";import"./pinia.dfca86b4.js";import"./vue-demi.ebc8116b.js";import"./css-color-function.1a2c9cae.js";import"./color.3050aad5.js";import"./clone.3b081931.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.21f7a9fd.js";import"./ms.a9ae1d6d.js";import"./nprogress.fd69c5bf.js";import"./vue-clipboard3.9796a14d.js";import"./clipboard.2bdac801.js";import"./echarts.8d7a50ae.js";import"./zrender.1084fa23.js";import"./tslib.60310f1a.js";import"./highlight.js.4ebdf9a4.js";import"./@highlightjs.2cdc8407.js";import"./index.882ba4be.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"}),Ie=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 l=await I({id:v.query.id});Object.keys(a).forEach(o=>{a[o]=l[o]})},F=async(l,o)=>{S(l)||(await z({id:v.query.id,field:o,value:l}),x())},h=l=>{i.show=!0,i.value=l},A=async l=>{await T({user_id:v.query.id,...l}),i.show=!1,x()};return x(),(l,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=>l.$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"+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(n,{label:"\u7528\u6237\u7F16\u53F7\uFF1A"},{default:t(()=>[r(u(a.sn),1)]),_:1}),e(n,{label:"\u7528\u6237\u6635\u79F0\uFF1A"},{default:t(()=>[r(u(a.nickname),1)]),_:1}),e(n,{label:"\u8D26\u53F7\uFF1A"},{default:t(()=>[r(u(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(u(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(u(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(u(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(u(a.channel),1)]),_:1}),e(n,{label:"\u6CE8\u518C\u65F6\u95F4\uFF1A"},{default:t(()=>[r(u(a.create_time),1)]),_:1}),e(n,{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{Ie as default};