index-ba08c266.js 2.8 KB

1
  1. import{b as y,T as k,a as I}from"./index-434d719f.js";import{k as L}from"./controllerUrls-941681c3.js";import{a as E,P as q}from"./popupForm-bed4640b.js";import{f as w,a4 as v}from"./index-ba596ae9.js";import{h as d,y as N,r as S,aB as z,F as C,p as l,l as P,k as a,M as u,a4 as i,q as n,N as m,i as R,a6 as T,o as U,V as x,O as A,t as p,as as B,a7 as D}from"./vue-a39e6937.js";import"./index-7e56a0fa.js";import"./index-f0d8af94.js";import"./validate-4ecec794.js";const F={class:"default-main ba-table-box"},G={class:"table-header-operate-text"},K=d({name:"user/scoreLog"}),Y=d({...K,setup(V){const{t:e}=w(),f=N(),b=A().query.user_id??"",t=S({userInfo:{}}),r=new y(new v(L),{column:[{type:"selection",align:"center",operator:!1},{label:e("id"),prop:"id",align:"center",operator:"LIKE",operatorPlaceholder:e("Fuzzy query"),width:70},{label:e("user.moneyLog.User ID"),prop:"user_id",align:"center",operator:"=",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"),"show-overflow-tooltip":!0},{label:e("createtime"),prop:"createtime",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(),B("baTable",r);const s=o=>{o&&z(o)>0?E(o).then(c=>{t.userInfo=c.data.user}):t.userInfo={}};return s(r.comSearch.form.user_id),C(()=>r.comSearch.form.user_id,o=>{r.form.defaultItems.user_id=o,s(o)}),(o,c)=>{const h=p("el-alert"),_=p("el-button"),g=D("blur");return l(),P("div",F,[a(r).table.remark?(l(),u(h,{key:0,class:"ba-table-alert",title:a(r).table.remark,type:"info","show-icon":""},null,8,["title"])):i("",!0),n(k,{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:m(()=>[a(R)(t.userInfo)?i("",!0):T((l(),u(_,{key:0,class:"table-header-operate"},{default:m(()=>[U("span",G,x(t.userInfo.username+"(ID:"+t.userInfo.id+") "+a(e)("user.scoreLog.integral")+":"+t.userInfo.score),1)]),_:1})),[[g]])]),_:1},8,["quick-search-placeholder"]),n(I,{ref_key:"tableRef",ref:f},null,512),n(q)])}}});export{Y as default};