1 |
- import{d as L,b as k,T as x}from"./baTable-MdxYOkAk.js";import{u as I,r as T,i as w,I as z}from"./info-pKQul2DW.js";import{T as v}from"./index-K8IR974I.js";import{a1 as B,ai as C,_ as q}from"./index-EwE51S_X.js";import{d as E,a2 as D,av as P,o as A,K as c,aq as K,e as i,f as F,u as o,y as u,C as N,j as r,L as n,t as O,i as f,am as S}from"./vue-A59npLRR.js";import"./index-XALue448.js";import"./echarts-cxb9vJr1.js";const V={class:"default-main ba-table-box"},H={class:"mlr-12"},j={class:"table-header-operate-text"},G=E({name:"security/dataRecycleLog",__name:"index",setup(J){const{t:e}=D();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(L(["delete"]));const t=new k(new B(I),{column:[{type:"selection",align:"center",operator:!1},{label:e("Id"),prop:"id",align:"center",operator:"=",operatorPlaceholder:e("Id"),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"),showOverflowTooltip:!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"),showOverflowTooltip:!0},{label:e("security.dataRecycleLog.Delete time"),prop:"create_time",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(()=>{t.onTableHeaderAction("refresh",{})})},m=()=>{d(t.getSelectionIds())},p=a=>{t.form.extend.info={},t.form.operate="Info",t.form.loading=!0,w(a).then(l=>{l.data.row.data=l.data.row.data?[{label:e("security.dataRecycleLog.Click to expand"),children:C(l.data.row.data)}]:[],t.form.extend.info=l.data.row,t.form.loading=!1})};return P("baTable",t),A(()=>{t.mount(),t.getIndex()}),(a,l)=>{const y=c("el-alert"),b=c("Icon"),h=c("el-button"),g=c("el-tooltip"),_=c("el-popconfirm"),R=K("blur");return i(),F("div",V,[o(t).table.remark?(i(),u(y,{key:0,class:"ba-table-alert",title:o(t).table.remark,type:"info","show-icon":""},null,8,["title"])):N("",!0),r(v,{buttons:["refresh","delete","comSearch","quickSearch","columnDisplay"],"quick-search-placeholder":o(e)("Quick search placeholder",{fields:o(e)("security.dataRecycleLog.Rule name")})},{default:n(()=>[r(_,{onConfirm:m,"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",H,[r(g,{content:o(e)("security.dataRecycleLog.Restore the selected record to the original data table"),placement:"top"},{default:n(()=>[S((i(),u(h,{disabled:!(o(t).table.selection.length>0),class:"table-header-operate",type:"success"},{default:n(()=>[r(b,{color:"#ffffff",name:"el-icon-RefreshRight"}),f("span",j,O(o(e)("security.dataRecycleLog.restore")),1)]),_:1},8,["disabled"])),[[R]])]),_:1},8,["content"])])]),_:1},8,["confirm-button-text","cancel-button-text","title","disabled"])]),_:1},8,["quick-search-placeholder"]),r(x),r(z)])}}}),Z=q(G,[["__scopeId","data-v-e3d8b037"]]);export{Z as default};
|