index-bGT7eoXQ.js 2.1 KB

1
  1. import{d as i,b as p,T as d}from"./baTable-MdxYOkAk.js";import{a1 as m}from"./index-EwE51S_X.js";import{d as n,a2 as b,a as h,av as f,o as _,K as g,e as s,f as k,u as t,y as q,C as y,j as r}from"./vue-A59npLRR.js";import{_ as w}from"./popupForm.vue_vue_type_script_setup_true_lang-oLQgn80v.js";import{T}from"./index-K8IR974I.js";import"./echarts-cxb9vJr1.js";import"./index-r6iTpmP6.js";import"./validate-_EUdkMt3.js";import"./index-XALue448.js";const v={class:"default-main ba-table-box"},C=n({name:"oauth/log"}),z=n({...C,setup(S){const{t:e}=b(),l=h(),c=i(["edit","delete"]),a=new p(new m("/admin/oauth.Log/"),{pk:"id",column:[{type:"selection",align:"center",operator:!1},{label:e("oauth.log.id"),prop:"id",align:"center",width:70,operator:"RANGE",sortable:"custom"},{label:e("oauth.log.user__username"),prop:"user.username",align:"center",operatorPlaceholder:e("Fuzzy query"),render:"tags",operator:"LIKE",replaceValue:{}},{label:e("oauth.log.source"),prop:"source",align:"center",render:"tag",operator:"=",sortable:!1,replaceValue:{qq:e("oauth.log.source qq"),wechat_scan:e("oauth.log.source wechat_scan"),wechat_mp:e("oauth.log.source wechat_mp")}},{label:e("oauth.log.uuid"),prop:"uuid",align:"center",operator:!1,sortable:!1},{label:e("oauth.log.create_time"),prop:"create_time",align:"center",render:"datetime",operator:"RANGE",sortable:"custom",width:160,timeFormat:"yyyy-mm-dd hh:MM:ss"},{label:e("operate"),align:"center",width:100,render:"buttons",buttons:c,operator:!1}],dblClickNotEditColumn:[void 0]},{defaultItems:{source:"qq"}});return f("baTable",a),_(()=>{var o;a.table.ref=l.value,a.mount(),(o=a.getIndex())==null||o.then(()=>{a.initSort(),a.dragSort()})}),(o,B)=>{const u=g("el-alert");return s(),k("div",v,[t(a).table.remark?(s(),q(u,{key:0,class:"ba-table-alert",title:t(a).table.remark,type:"info","show-icon":""},null,8,["title"])):y("",!0),r(T,{buttons:["refresh","add","edit","delete","comSearch","quickSearch","columnDisplay"],"quick-search-placeholder":t(e)("quick Search Placeholder",{fields:t(e)("oauth.log.quick Search Fields")})},null,8,["quick-search-placeholder"]),r(d,{ref_key:"tableRef",ref:l},null,512),r(w)])}}});export{z as default};