import{b as d,d as p,T as u,a as m}from"./index-CgMrKa77.js";import{c as b,x as y,a7 as f}from"./index-fNs72j9w.js";import h from"./popupForm-DeqPO3oP.js";import{B as g,a8 as _,o as R,I as k,C as n,D as E,u as t,O as I,W as z,H as o,au as q}from"./vue-DweYBrEc.js";import"./index-DMA3A9_B.js";import"./index-BlEwok4a.js";import"./validate-CEOscgyN.js";const s="/admin/security.DataRecycle/";function w(){return b({url:s+"add",method:"get"})}const x={class:"default-main ba-table-box"},B=g({name:"security/dataRecycle",__name:"index",setup(C){const{t:e}=y.useI18n(),l=_("tableRef"),a=new d(new f(s),{column:[{type:"selection",align:"center",operator:!1},{label:"ID",prop:"id",align:"center",operator:"=",operatorPlaceholder:e("Id"),width:70},{label:e("security.dataRecycle.Rule name"),prop:"name",align:"center",operator:"LIKE",operatorPlaceholder:e("Fuzzy query")},{label:e("security.dataRecycle.controller"),prop:"controller",align:"center",operator:"LIKE",operatorPlaceholder:e("Fuzzy query")},{label:e("Connection"),prop:"connection",align:"center",operator:"LIKE",operatorPlaceholder:e("Fuzzy query")},{label:e("security.dataRecycle.data sheet"),prop:"data_table",align:"center",operator:"LIKE",operatorPlaceholder:e("Fuzzy query")},{label:e("security.dataRecycle.Data table primary key"),prop:"primary_key",align:"center",operator:"LIKE",operatorPlaceholder:e("Fuzzy query"),width:100},{label:e("State"),prop:"status",align:"center",render:"tag",custom:{0:"danger",1:"success"},replaceValue:{0:e("Disable"),1:e("security.dataRecycle.Deleting monitoring")}},{label:e("Update time"),prop:"update_time",align:"center",render:"datetime",sortable:"custom",operator:"RANGE",width:160},{label:e("Create time"),prop:"create_time",align:"center",render:"datetime",sortable:"custom",operator:"RANGE",width:160},{label:e("Operate"),align:"center",width:"130",render:"buttons",buttons:p(["edit","delete"]),operator:!1}],dblClickNotEditColumn:[void 0,"status"]},{defaultItems:{status:1}});return a.before.toggleForm=({operate:r})=>{(r=="Add"||r=="Edit")&&(a.form.loading=!0,w().then(c=>{a.form.extend.controllerList=c.data.controllers,a.form.loading=!1}))},q("baTable",a),R(()=>{a.table.ref=l.value,a.mount(),a.getData()}),(r,c)=>{const i=k("el-alert");return n(),E("div",x,[t(a).table.remark?(n(),I(i,{key:0,class:"ba-table-alert",title:t(a).table.remark,type:"info","show-icon":""},null,8,["title"])):z("",!0),o(u,{buttons:["refresh","add","edit","delete","comSearch","quickSearch","columnDisplay"],"quick-search-placeholder":t(e)("Quick search placeholder",{fields:t(e)("security.dataRecycle.Rule name")})},null,8,["quick-search-placeholder"]),o(m,{ref_key:"tableRef",ref:l},null,512),o(h)])}}});export{B as default};
