1 |
- import{aA as F,d as L,r as u,x as Z,b as q,o as i,c as z,f as e,A as t,a as l,F as T,R as A,C as c,a5 as H,D as n,k as j,E as b,S as J,U as K,V as Q,a9 as W,I as G,Q as O,J as $,W as ee,X as ae,aw as le,Y as te,Z as re,_ as se,__tla as pe}from"./index-286756b9.js";import{_ as ie,__tla as ne}from"./index-ed6c67a8.js";import{_ as oe,__tla as ue}from"./DictTag-f72b04ca.js";import{_ as ce,__tla as de}from"./ContentWrap-83998678.js";import{d as _e,__tla as me}from"./formatTime-83e416ef.js";import{a as fe,D as I,__tla as ye}from"./dict-82dca549.js";import{__tla as be}from"./index-fb47c94c.js";import"./color-6e929987.js";import{__tla as xe}from"./el-card-d3d5a654.js";let k,we=Promise.all([(()=>{try{return pe}catch{}})(),(()=>{try{return ne}catch{}})(),(()=>{try{return ue}catch{}})(),(()=>{try{return de}catch{}})(),(()=>{try{return me}catch{}})(),(()=>{try{return ye}catch{}})(),(()=>{try{return be}catch{}})(),(()=>{try{return xe}catch{}})()]).then(async()=>{k=se(L({name:"UserExperienceRecordList",__name:"UserExperienceRecordList",props:{userId:{type:Number,required:!0}},setup(V){const d=u(!0),x=u(0),w=u([]),r=Z({pageNo:1,pageSize:10,userId:null,bizId:null,bizType:null,title:null,description:null,experience:null,totalExperience:null,createTime:[]}),g=u(),_=async()=>{d.value=!0;try{const f=await(async s=>await F.get({url:"/member/experience-record/page",params:s}))(r);w.value=f.list,x.value=f.total}finally{d.value=!1}},m=()=>{r.pageNo=1,_()},R=()=>{g.value.resetFields(),m()},{userId:U}=V;return q(()=>{r.userId=U,_()}),(f,s)=>{const D=J,M=K,o=Q,N=W,Y=G,h=O,E=$,P=ee,v=ce,p=ae,y=le,C=oe,B=te,S=ie,X=re;return i(),z(T,null,[e(v,null,{default:t(()=>[e(P,{class:"-mb-15px",model:l(r),ref_key:"queryFormRef",ref:g,inline:!0,"label-width":"68px"},{default:t(()=>[e(o,{label:"\u4E1A\u52A1\u7C7B\u578B",prop:"bizType"},{default:t(()=>[e(M,{modelValue:l(r).bizType,"onUpdate:modelValue":s[0]||(s[0]=a=>l(r).bizType=a),placeholder:"\u8BF7\u9009\u62E9\u4E1A\u52A1\u7C7B\u578B",clearable:"",class:"!w-240px"},{default:t(()=>[(i(!0),z(T,null,A(l(fe)(l(I).MEMBER_EXPERIENCE_BIZ_TYPE),a=>(i(),c(D,{key:a.value,label:a.label,value:a.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e(o,{label:"\u6807\u9898",prop:"title"},{default:t(()=>[e(N,{modelValue:l(r).title,"onUpdate:modelValue":s[1]||(s[1]=a=>l(r).title=a),placeholder:"\u8BF7\u8F93\u5165\u6807\u9898",clearable:"",onKeyup:H(m,["enter"]),class:"!w-240px"},null,8,["modelValue"])]),_:1}),e(o,{label:"\u521B\u5EFA\u65F6\u95F4",prop:"createTime"},{default:t(()=>[e(Y,{modelValue:l(r).createTime,"onUpdate:modelValue":s[2]||(s[2]=a=>l(r).createTime=a),"value-format":"YYYY-MM-DD HH:mm:ss",type:"daterange","start-placeholder":"\u5F00\u59CB\u65E5\u671F","end-placeholder":"\u7ED3\u675F\u65E5\u671F","default-time":[new Date("1 00:00:00"),new Date("1 23:59:59")],class:"!w-240px"},null,8,["modelValue","default-time"])]),_:1}),e(o,null,{default:t(()=>[e(E,{onClick:m},{default:t(()=>[e(h,{icon:"ep:search",class:"mr-5px"}),n(" \u641C\u7D22")]),_:1}),e(E,{onClick:R},{default:t(()=>[e(h,{icon:"ep:refresh",class:"mr-5px"}),n(" \u91CD\u7F6E")]),_:1})]),_:1})]),_:1},8,["model"])]),_:1}),e(v,null,{default:t(()=>[j((i(),c(B,{data:l(w),stripe:!0,"show-overflow-tooltip":!0},{default:t(()=>[e(p,{label:"\u7F16\u53F7",align:"center",prop:"id",width:"150px"}),e(p,{label:"\u83B7\u5F97\u65F6\u95F4",align:"center",prop:"createTime",formatter:l(_e)},null,8,["formatter"]),e(p,{label:"\u7ECF\u9A8C",align:"center",prop:"experience",width:"150px"},{default:t(a=>[a.row.experience>0?(i(),c(y,{key:0,class:"ml-2",type:"success",effect:"dark"},{default:t(()=>[n(" +"+b(a.row.experience),1)]),_:2},1024)):(i(),c(y,{key:1,class:"ml-2",type:"danger",effect:"dark"},{default:t(()=>[n(b(a.row.experience),1)]),_:2},1024))]),_:1}),e(p,{label:"\u603B\u7ECF\u9A8C",align:"center",prop:"totalExperience",width:"150px"},{default:t(a=>[e(y,{class:"ml-2",effect:"dark"},{default:t(()=>[n(b(a.row.totalExperience),1)]),_:2},1024)]),_:1}),e(p,{label:"\u6807\u9898",align:"center",prop:"title",width:"150px"}),e(p,{label:"\u63CF\u8FF0",align:"center",prop:"description"}),e(p,{label:"\u4E1A\u52A1\u7F16\u53F7",align:"center",prop:"bizId",width:"150px"}),e(p,{label:"\u4E1A\u52A1\u7C7B\u578B",align:"center",prop:"bizType",width:"150px"},{default:t(a=>[e(C,{type:l(I).MEMBER_EXPERIENCE_BIZ_TYPE,value:a.row.bizType},null,8,["type","value"])]),_:1})]),_:1},8,["data"])),[[X,l(d)]]),e(S,{total:l(x),page:l(r).pageNo,"onUpdate:page":s[3]||(s[3]=a=>l(r).pageNo=a),limit:l(r).pageSize,"onUpdate:limit":s[4]||(s[4]=a=>l(r).pageSize=a),onPagination:_},null,8,["total","page","limit"])]),_:1})],64)}}}),[["__file","D:/zx/mall-newfeifan-zx-admin/src/views/member/user/detail/UserExperienceRecordList.vue"]])});export{we as __tla,k as default};
|