1 |
- import{b as g,T as y}from"./baTable-MdxYOkAk.js";import{u as I,a as k,P as L}from"./popupForm-EPtsp9rO.js";import{T as w}from"./index-K8IR974I.js";import{a1 as v}from"./index-EwE51S_X.js";import{d as E,a2 as C,a as N,a1 as T,r as q,av as x,aJ as R,w as S,K as u,aq as U,e as l,f as z,u as a,y as i,C as m,j as n,L as p,N as A,t as D,i as P,am as B}from"./vue-A59npLRR.js";import"./index-r6iTpmP6.js";import"./validate-_EUdkMt3.js";import"./index-XALue448.js";import"./echarts-cxb9vJr1.js";const F={class:"default-main ba-table-box"},G={class:"table-header-operate-text"},Y=E({name:"user/scoreLog",__name:"index",setup(K){const{t:e}=C(),d=N(),b=T().query.user_id??"",t=q({userInfo:{}}),r=new g(new v(I),{column:[{type:"selection",align:"center",operator:!1},{label:e("Id"),prop:"id",align:"center",operator:"=",operatorPlaceholder:e("Id"),width:70},{label:e("user.moneyLog.User ID"),prop:"user_id",align:"center",width:70},{label:e("user.moneyLog.User name"),prop:"user.username",align:"center",operator:"LIKE",operatorPlaceholder:e("Fuzzy query")},{label:e("user.moneyLog.User nickname"),prop:"user.nickname",align:"center",operator:"LIKE",operatorPlaceholder:e("Fuzzy query")},{label:e("user.scoreLog.Change points"),prop:"score",align:"center",operator:"RANGE",sortable:"custom"},{label:e("user.moneyLog.Before change"),prop:"before",align:"center",operator:"RANGE",sortable:"custom"},{label:e("user.moneyLog.After change"),prop:"after",align:"center",operator:"RANGE",sortable:"custom"},{label:e("user.moneyLog.remarks"),prop:"memo",align:"center",operator:"LIKE",operatorPlaceholder:e("Fuzzy query"),showOverflowTooltip:!0},{label:e("Create time"),prop:"create_time",align:"center",render:"datetime",sortable:"custom",operator:"RANGE",width:160}],dblClickNotEditColumn:["all"]},{defaultItems:{user_id:b,memo:""}},{},{onSubmit:()=>{s(r.comSearch.form.user_id)}});r.mount(),r.getIndex(),x("baTable",r);const s=o=>{o&&R(o)>0?k(o).then(c=>{t.userInfo=c.data.user}):t.userInfo={}};return s(r.comSearch.form.user_id),S(()=>r.comSearch.form.user_id,o=>{r.form.defaultItems.user_id=o,s(o)}),(o,c)=>{const f=u("el-alert"),h=u("el-button"),_=U("blur");return l(),z("div",F,[a(r).table.remark?(l(),i(f,{key:0,class:"ba-table-alert",title:a(r).table.remark,type:"info","show-icon":""},null,8,["title"])):m("",!0),n(w,{buttons:["refresh","add","comSearch","quickSearch","columnDisplay"],"quick-search-placeholder":a(e)("Quick search placeholder",{fields:a(e)("user.moneyLog.User name")+"/"+a(e)("user.moneyLog.User nickname")})},{default:p(()=>[a(A)(t.userInfo)?m("",!0):B((l(),i(h,{key:0,class:"table-header-operate"},{default:p(()=>[P("span",G,D(t.userInfo.username+"(ID:"+t.userInfo.id+") "+a(e)("user.scoreLog.integral")+":"+t.userInfo.score),1)]),_:1})),[[_]])]),_:1},8,["quick-search-placeholder"]),n(y,{ref_key:"tableRef",ref:d},null,512),n(L)])}}});export{Y as default};
|