import{b as k,T as x,a as w}from"./index-434d719f.js";import{e as I}from"./controllerUrls-941681c3.js";import{r as T,i as z,I as v}from"./info-f06a1ff4.js";import{f as B,ai as q,a4 as E,aj as C,_ as D}from"./index-ba596ae9.js";import{h as y,B as P,p as i,l as A,k as o,M as u,a4 as K,q as l,N as n,o as f,a6 as F,V as N,t as c,as as S,a7 as V}from"./vue-a39e6937.js";import"./index-7e56a0fa.js";const H={class:"default-main ba-table-box"},M={class:"mlr-12"},O={class:"table-header-operate-text"},j=y({name:"security/dataRecycleLog"}),G=y({...j,setup(J){const{t:e}=B();let s=[{render:"tipButton",name:"info",title:"info",text:"",type:"primary",icon:"fa fa-search-plus",class:"table-row-info",disabledTip:!1,click:a=>{p(a[t.table.pk])}},{render:"confirmButton",name:"restore",title:"security.dataRecycleLog.restore",text:"",type:"success",icon:"el-icon-RefreshRight",class:"table-row-edit",popconfirm:{confirmButtonText:e("security.dataRecycleLog.restore"),cancelButtonText:e("Cancel"),confirmButtonType:"success",title:e("security.dataRecycleLog.Are you sure to restore the selected records?")},disabledTip:!1,click:a=>{d([a[t.table.pk]])}}];s=s.concat(q(["delete"]));const t=new k(new E(I),{column:[{type:"selection",align:"center",operator:!1},{label:e("id"),prop:"id",align:"center",operator:"LIKE",operatorPlaceholder:e("Fuzzy query"),width:70},{label:e("security.dataRecycleLog.Operation administrator"),prop:"admin.nickname",align:"center",operator:"LIKE",operatorPlaceholder:e("Fuzzy query")},{label:e("security.dataRecycleLog.Recycling rule name"),prop:"recycle.name",align:"center",operator:"LIKE",operatorPlaceholder:e("Fuzzy query")},{label:e("security.dataRecycleLog.controller"),prop:"recycle.controller_as",align:"center",operator:"LIKE",operatorPlaceholder:e("Fuzzy query")},{label:e("security.dataRecycleLog.data sheet"),prop:"data_table",align:"center",operator:"LIKE",operatorPlaceholder:e("Fuzzy query")},{label:e("security.dataRecycleLog.DeletedData"),prop:"data",align:"center",operator:"LIKE",operatorPlaceholder:e("security.dataRecycleLog.Arbitrary fragment fuzzy query"),"show-overflow-tooltip":!0},{label:"IP",prop:"ip",align:"center",operator:"LIKE",operatorPlaceholder:e("Fuzzy query")},{show:!1,label:"User Agent",prop:"useragent",align:"center",operator:"LIKE",operatorPlaceholder:e("Fuzzy query"),"show-overflow-tooltip":!0},{label:e("security.dataRecycleLog.Delete time"),prop:"createtime",align:"center",render:"datetime",sortable:"custom",operator:"RANGE",width:160},{label:e("operate"),align:"center",width:120,render:"buttons",buttons:s,operator:!1}],dblClickNotEditColumn:[void 0]},{},{onTableDblclick:({row:a})=>(p(a[t.table.pk]),!1)}),d=a=>{T(a).then(r=>{t.onTableHeaderAction("refresh",{})})},b=()=>{d(t.getSelectionIds())},p=a=>{t.form.extend.info={},t.form.operate="info",t.form.loading=!0,z(a).then(r=>{r.data.row.data=r.data.row.data?[{label:e("security.dataRecycleLog.Click to expand"),children:C(r.data.row.data)}]:[],t.form.extend.info=r.data.row,t.form.loading=!1})};return S("baTable",t),P(()=>{t.mount(),t.getIndex()}),(a,r)=>{const m=c("el-alert"),_=c("Icon"),h=c("el-button"),g=c("el-tooltip"),R=c("el-popconfirm"),L=V("blur");return i(),A("div",H,[o(t).table.remark?(i(),u(m,{key:0,class:"ba-table-alert",title:o(t).table.remark,type:"info","show-icon":""},null,8,["title"])):K("",!0),l(x,{buttons:["refresh","delete","comSearch","quickSearch","columnDisplay"],"quick-search-placeholder":o(e)("quick Search Placeholder",{fields:o(e)("security.dataRecycleLog.Rule name")})},{default:n(()=>[l(R,{onConfirm:b,"confirm-button-text":o(e)("security.dataRecycleLog.restore"),"cancel-button-text":o(e)("Cancel"),confirmButtonType:"success",title:o(e)("security.dataRecycleLog.Are you sure to restore the selected records?"),disabled:!(o(t).table.selection.length>0)},{reference:n(()=>[f("div",M,[l(g,{content:o(e)("security.dataRecycleLog.Restore the selected record to the original data table"),placement:"top"},{default:n(()=>[F((i(),u(h,{disabled:!(o(t).table.selection.length>0),class:"table-header-operate",type:"success"},{default:n(()=>[l(_,{color:"#ffffff",name:"el-icon-RefreshRight"}),f("span",O,N(o(e)("security.dataRecycleLog.restore")),1)]),_:1},8,["disabled"])),[[L]])]),_:1},8,["content"])])]),_:1},8,["confirm-button-text","cancel-button-text","title","disabled"])]),_:1},8,["quick-search-placeholder"]),l(w),l(v)])}}});const Z=D(G,[["__scopeId","data-v-16f1a8c2"]]);export{Z as default};
