index-Vc5Hdxar.js 2.7 KB

1
  1. import{b as m,d as b,T as f}from"./baTable-MdxYOkAk.js";import{c as y,a1 as h}from"./index-EwE51S_X.js";import g from"./popupForm-Mb-jhFYJ.js";import{T as _}from"./index-K8IR974I.js";import{d as R,a2 as k,a as s,r as E,av as I,o as w,K as z,e as i,f as L,u as t,y as T,C as q,j as c}from"./vue-A59npLRR.js";import"./echarts-cxb9vJr1.js";import"./index-r6iTpmP6.js";import"./validate-_EUdkMt3.js";import"./index-XALue448.js";const d="/admin/security.DataRecycle/";function v(){return y({url:d+"add",method:"get"})}const C={class:"default-main ba-table-box"},G=R({name:"security/dataRecycle",__name:"index",setup(D){const{t:e}=k(),n=s(),p=s(),a=new m(new h(d),{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("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:b(["edit","delete"]),operator:!1}],dblClickNotEditColumn:[void 0,"status"]},{defaultItems:{status:"1"}},{toggleForm:({operate:o})=>{(o=="Add"||o=="Edit")&&(a.form.loading=!0,v().then(l=>{r.tableList=l.data.tables,r.controllerList=l.data.controllers,a.form.loading=!1}))}}),r=E({tableList:{},controllerList:{}});return I("baTable",a),w(()=>{a.table.ref=n.value,a.mount(),a.getIndex()}),(o,l)=>{const u=z("el-alert");return i(),L("div",C,[t(a).table.remark?(i(),T(u,{key:0,class:"ba-table-alert",title:t(a).table.remark,type:"info","show-icon":""},null,8,["title"])):q("",!0),c(_,{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"]),c(f,{ref_key:"tableRef",ref:n},null,512),c(g,{ref_key:"formRef",ref:p,"form-data":r},null,8,["form-data"])])}}});export{G as default};