import{d as L,b as k,T as D}from"./baTable-MdxYOkAk.js";import{u as I,r as x,i as z,I as B}from"./info-hHbxYcEa.js";import{T}from"./index-K8IR974I.js";import{a1 as w,_ as C}from"./index-EwE51S_X.js";import{d as K,a2 as q,av as E,o as A,K as l,aq as P,e as s,f as R,u as o,y as d,C as F,j as r,L as n,t as N,i as f,am as O}from"./vue-A59npLRR.js";import"./index-XALue448.js";import"./echarts-cxb9vJr1.js";const M={class:"default-main ba-table-box"},S={class:"mlr-12"},V={class:"table-header-operate-text"},H=K({name:"security/sensitiveDataLog",__name:"index",setup(j){const{t:e}=q();let i=[{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:"rollback",title:"security.sensitiveDataLog.RollBACK",text:"",type:"success",icon:"fa fa-sign-in",class:"table-row-edit",popconfirm:{confirmButtonText:e("security.sensitiveDataLog.RollBACK"),cancelButtonText:e("Cancel"),confirmButtonType:"success",title:e("security.sensitiveDataLog.Are you sure you want to rollback the record?")},disabledTip:!1,click:a=>{c([a[t.table.pk]])}}];i=i.concat(L(["delete"]));const t=new k(new w(I),{column:[{type:"selection",align:"center",operator:!1},{label:e("Id"),prop:"id",align:"center",operator:"=",operatorPlaceholder:e("Id"),width:70},{label:e("security.sensitiveDataLog.Operation administrator"),prop:"admin.nickname",align:"center",operator:"LIKE",operatorPlaceholder:e("Fuzzy query")},{label:e("security.sensitiveDataLog.Rule name"),prop:"sensitive.name",align:"center",operator:"LIKE",operatorPlaceholder:e("Fuzzy query")},{label:e("security.sensitiveDataLog.controller"),prop:"sensitive.controller_as",align:"center",operator:"LIKE",operatorPlaceholder:e("Fuzzy query")},{label:e("security.sensitiveDataLog.data sheet"),prop:"data_table",align:"center",operator:"LIKE",operatorPlaceholder:e("Fuzzy query")},{label:e("security.sensitiveDataLog.Modify line"),prop:"id_value",align:"center",operator:"LIKE",operatorPlaceholder:e("Fuzzy query")},{label:e("security.sensitiveDataLog.Modification"),prop:"data_comment",align:"center",operator:"LIKE",operatorPlaceholder:e("Fuzzy query")},{label:e("security.sensitiveDataLog.Before modification"),prop:"before",align:"center",operator:"LIKE",operatorPlaceholder:e("Fuzzy query"),showOverflowTooltip:!0},{label:e("security.sensitiveDataLog.After modification"),prop:"after",align:"center",operator:"LIKE",operatorPlaceholder:e("Fuzzy query"),showOverflowTooltip:!0},{label:"IP",prop:"ip",align:"center",operator:"LIKE",operatorPlaceholder:e("Fuzzy query")},{label:e("security.sensitiveDataLog.Modification time"),prop:"create_time",align:"center",render:"datetime",sortable:"custom",operator:"RANGE",width:160},{label:e("Operate"),align:"center",width:120,render:"buttons",buttons:i,operator:!1}],dblClickNotEditColumn:[void 0]},{},{onTableDblclick:({row:a})=>(p(a[t.table.pk]),!1)}),c=a=>{x(a).then(()=>{t.onTableHeaderAction("refresh",{})})},b=()=>{c(t.getSelectionIds())},p=a=>{t.form.extend.info={},t.form.operate="Info",t.form.loading=!0,z(a).then(u=>{t.form.extend.info=u.data.row,t.form.loading=!1})};return E("baTable",t),A(()=>{t.mount(),t.getIndex()}),(a,u)=>{const m=l("el-alert"),y=l("Icon"),_=l("el-button"),h=l("el-tooltip"),g=l("el-popconfirm"),v=P("blur");return s(),R("div",M,[o(t).table.remark?(s(),d(m,{key:0,class:"ba-table-alert",title:o(t).table.remark,type:"info","show-icon":""},null,8,["title"])):F("",!0),r(T,{buttons:["refresh","delete","comSearch","quickSearch","columnDisplay"],"quick-search-placeholder":o(e)("Quick search placeholder",{fields:o(e)("security.sensitiveDataLog.Rule name")})},{default:n(()=>[r(g,{onConfirm:b,"confirm-button-text":o(e)("security.sensitiveDataLog.RollBACK"),"cancel-button-text":o(e)("Cancel"),confirmButtonType:"success",title:o(e)("security.sensitiveDataLog.Are you sure you want to rollback the record?"),disabled:!(o(t).table.selection.length>0)},{reference:n(()=>[f("div",S,[r(h,{content:o(e)("security.sensitiveDataLog.Rollback the selected record to the original data table"),placement:"top"},{default:n(()=>[O((s(),d(_,{disabled:!(o(t).table.selection.length>0),class:"table-header-operate",type:"success"},{default:n(()=>[r(y,{size:"16",color:"#ffffff",name:"fa fa-sign-in"}),f("span",V,N(o(e)("security.sensitiveDataLog.RollBACK")),1)]),_:1},8,["disabled"])),[[v]])]),_:1},8,["content"])])]),_:1},8,["confirm-button-text","cancel-button-text","title","disabled"])]),_:1},8,["quick-search-placeholder"]),r(D),r(B)])}}}),Y=C(H,[["__scopeId","data-v-55057be8"]]);export{Y as default};