import{b as L,d as k,T as D,a as I}from"./index-CgMrKa77.js";import{u as z,r as x,i as B,I as w}from"./info-B9hUVuc4.js";import{x as T,a7 as C,_ as E}from"./index-fNs72j9w.js";import{B as K,o as q,I as l,X as P,C as s,D as A,u as o,O as d,W as F,H as r,P as n,G as f,_ as R,U as O,au as N}from"./vue-DweYBrEc.js";import"./index-DMA3A9_B.js";const M={class:"default-main ba-table-box"},S={class:"mlr-12"},H={class:"table-header-operate-text"},V=K({name:"security/sensitiveDataLog",__name:"index",setup(G){const{t:e}=T.useI18n();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(k(["delete"]));const t=new L(new C(z),{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("Connection"),prop:"connection",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]});t.before.onTableDblclick=({row:a})=>(p(a[t.table.pk]),!1);const 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,B(a).then(u=>{t.form.extend.info=u.data.row,t.form.loading=!1})};return N("baTable",t),q(()=>{t.mount(),t.getData()}),(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(),A("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(D,{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(()=>[R((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",H,O(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(I),r(w)])}}}),$=E(V,[["__scopeId","data-v-bc67e98d"]]);export{$ as default};
