import{V as d,bk as g,ad as b,d as $,r as F,a as N,Z as u,N as R,i4 as B,cZ as V,c as z,o as I,w as p,j as r,W as M,l as i,X as D}from"./index-9PRMimni.js";import{B as L}from"./Table-0PViRYCf.js";import{_ as W}from"./TableAction.vue_vue_type_script_setup_true_lang-Bj_Y4LtN.js";import{B as E}from"./BasicForm-dL_oCSPM.js";import{u as X}from"./useForm-CKmgcynv.js";import"./Table.vue_vue_type_style_index_0_scoped_7b9e6ece_lang-BoW2DV_e.js";import"./vuedraggable.umd-Co2xEC3p.js";import"./Render.vue_vue_type_script_lang-DKUYY0Zw.js";import"./componentMap-CElCaWis.js";import"./propTypes-CebMRUpe.js";import"./format-DgF6KtHk.js";import"./omit-B2_8Y6O_.js";import"./_flatRest-DBrd2CHT.js";import"./flatten-DeoUZLdb.js";import"./print-CT_2hrjP.js";import"./basicModal.vue_vue_type_script_setup_true_lang-CsJydKhW.js";import"./basicModal.vue_vue_type_style_index_0_lang-8QZP7ApW.js";import"./useModal-CO65vga3.js";import"./componentSetting-DVhNDBTO.js";import"./useTimeout-BxFilWvD.js";import"./usePageCache-DluHn7Yy.js";import"./tabsView-BXskTdVh.js";import"./Flex-CTSf12gq.js";import"./SingleImageUpload-CNx4b9eC.js";import"./ImageUpload.vue_vue_type_style_index_0_scoped_cb086928_lang-D-28kXvw.js";import"./ImageUpload-DUsnro3W.js";import"./BasicUpload.vue_vue_type_style_index_0_scoped_a4d0e930_lang-DxRbtP01.js";import"./BasicForm.vue_vue_type_style_index_0_scoped_b9e995ec_lang-CEvcLwxD.js";import"./BasicSelect-C_uwzMkE.js";import"./BasicSelect.vue_vue_type_style_index_0_scoped_772d51cc_lang-Brp6PjEU.js";import"./dictionary-BRse4lkf.js";import"./index-DkvzUEqh.js";import"./index-kKnqLkWM.js";import"./AutoComplete-Dv1Bqed4.js";import"./TreeSelect-BZh2DeCh.js";const{t:l}=d();g();function q(){const n=[{label:l("monitor.statusSuccess"),value:!0},{label:l("monitor.statusFailed"),value:!1}];return{searchSchemas:[{field:"syncTime",component:"NDatePicker",label:l("monitor.syncTime"),componentProps:{type:"datetimerange",valueFormat:"yyyy-MM-dd HH:mm:ss",defaultTime:["00:00:00","23:59:59"],filterable:!0},giProps:{span:3}},{field:"syncStatus",component:"NSelect",label:l("monitor.syncStatus"),componentProps:{options:n,filterable:!0},giProps:{span:2}}]}}const{t:o}=d(),S=g();function A(){return{tableColumns:[{title:o("common.messagedefine.Num"),key:"num",width:80,render:(t,m)=>m+1},{title:o("monitor.syncTime"),key:"syncTime",width:200},{title:o("monitor.vesselVersion"),key:"vesselVersion",width:150},{title:o("monitor.syncType"),key:"syncType",width:150,render(t){return S.getLocale==="en"?t.syncTypeNameEn:t.syncTypeName}},{title:o("monitor.syncModule"),key:"syncModel",width:150},{title:o("monitor.direction"),key:"direction",width:200,render(t){return S.getLocale==="en"?t.direction:t.directionEn}},{title:o("monitor.fileSize"),key:"fileSize",width:150},{title:o("monitor.dataSize"),key:"dataSize",width:150},{title:o("monitor.syncStatus"),key:"syncStatus",width:150,render(t){return t.syncStatus?o("monitor.statusSuccess"):o("monitor.statusFailed")}}]}}const h="";function H(n){return b.Post(`${h}/data-trans-log/page`,n)}function O(n){return b.Post(`${h}/managed-file/resend/${n.syncContent}/${n.bsId}/${n.targetId}`)}const xt=$({__name:"index",setup(n){const{t}=d(),m=V(),y=F(),{searchSchemas:_}=q(),[w,{getFieldsValue:T}]=X({gridProps:{cols:12},schemas:_,labelWidth:"auto",labelPlacement:"top",showAdvancedButton:!1}),{tableColumns:k}=A(),C=N({width:100,title:t("common.optionsText"),key:"action",fixed:"right",align:"center",render(e){return u(W,{style:"text",actions:[{label:t("common.optionsViewText"),labelShow:!1,icon:u(R,{size:20},{default:()=>u(B)}),loading:e.loading,onClick:P.bind(null,e),ifShow(){return!e.syncStatus}}]})}});function v(e,s){return H({...e,...s})}async function P(e){e.loading=!0;try{await O(e),m.success(t("common.optionsSuccessText")),e.loading=!1,c(!1)}catch{e.loading=!1}}function c(e){y.value[e?"restReload":"reload"]()}return(e,s)=>{const f=M,x=D;return I(),z(x,null,{default:p(()=>[r(f,{class:"mb-3 proCard"},{default:p(()=>[r(i(E),{onRegister:i(w),onSubmit:s[0]||(s[0]=a=>c(!0)),onReset:s[1]||(s[1]=a=>c(!0))},null,8,["onRegister"])]),_:1}),r(f,{class:"proCard"},{default:p(()=>[r(i(L),{ref_key:"basicTableRef",ref:y,columns:i(k),request:a=>v(a,i(T)()),"row-key":a=>a.id,actionColumn:i(C),autoScrollX:!0,"virtual-scroll":""},null,8,["columns","request","row-key","actionColumn"])]),_:1})]),_:1})}}});export{xt as default};
