index-8OVJGCfi.js 2.7 KB

1
  1. import{d as s,b as m,T as c}from"./baTable-MdxYOkAk.js";import{a1 as u}from"./index-EwE51S_X.js";import{d as b,a2 as f,a as _,av as h,o as g,K as y,e as n,f as k,u as r,y as E,C as T,j as o}from"./vue-A59npLRR.js";import w from"./popupForm-TdMifzR7.js";import x from"./preImportDialog-MNr9oblx.js";import{T as N}from"./index-K8IR974I.js";import{a as q}from"./dataimport-YAr5iWFf.js";import"./echarts-cxb9vJr1.js";import"./index-r6iTpmP6.js";import"./validate-_EUdkMt3.js";import"./index-XALue448.js";const v={class:"default-main ba-table-box"},K=b({name:"routine/dataimport",__name:"index",setup(A){const{t:e}=f(),l=_(),d=s(["delete"]),a=new m(new u("/admin/routine.Dataimport/"),{pk:"id",column:[{type:"selection",align:"center",operator:!1},{label:e("routine.dataimport.id"),prop:"id",align:"center",width:70,operator:"RANGE",sortable:"custom"},{label:e("routine.dataimport.data_table"),prop:"data_table",align:"center",operatorPlaceholder:e("Fuzzy query"),operator:"LIKE",sortable:!1},{label:e("routine.dataimport.admin_id"),prop:"admin.username",align:"center",operatorPlaceholder:e("Fuzzy query"),render:"tags",operator:"LIKE",replaceValue:{}},{label:e("routine.dataimport.records"),prop:"records",align:"center",operator:"RANGE",sortable:!0},{label:e("routine.dataimport.import_success_records"),prop:"import_success_records",align:"center",operator:"RANGE",sortable:!0},{label:e("routine.dataimport.radio"),prop:"radio",align:"center",render:"tag",operator:"=",sortable:!1,replaceValue:{upload:e("routine.dataimport.radio upload"),import:e("routine.dataimport.radio import"),cancel:e("routine.dataimport.radio cancel")}},{label:e("routine.dataimport.create_time"),prop:"create_time",align:"center",render:"datetime",operator:"RANGE",sortable:"custom",width:160,timeFormat:"yyyy-mm-dd hh:MM:ss"},{label:e("Operate"),align:"center",width:100,render:"buttons",buttons:d,operator:!1}],dblClickNotEditColumn:[void 0]},{defaultItems:{radio:"upload"}},{toggleForm:({operate:t})=>{t=="Add"&&(a.form.loading=!0,a.form.extend.fileUploadStatus="wait",q().then(i=>{a.form.extend.tableList=i.data.tables}).finally(()=>{a.form.loading=!1}))}});return h("baTable",a),g(()=>{var t;a.table.ref=l.value,a.mount(),(t=a.getIndex())==null||t.then(()=>{a.initSort(),a.dragSort()})}),(t,i)=>{const p=y("el-alert");return n(),k("div",v,[r(a).table.remark?(n(),E(p,{key:0,class:"ba-table-alert",title:r(a).table.remark,type:"info","show-icon":""},null,8,["title"])):T("",!0),o(N,{buttons:["refresh","add","delete","comSearch","quickSearch","columnDisplay"],"quick-search-placeholder":r(e)("Quick search placeholder",{fields:r(e)("routine.dataimport.quick Search Fields")})},null,8,["quick-search-placeholder"]),o(c,{ref_key:"tableRef",ref:l},null,512),o(w),o(x)])}}});export{K as default};