import{d as w,h as c,Y as A,ai as H,r,aj as j,o as v,f as k,w as a,b as e,k as i,a2 as K,a7 as Y,a as G,l as d}from"./index.e3896b23.js";import{_ as J}from"./access-task-detail.vue_vue_type_script_setup_true_name_SrtAccessTaskDetailIndex_lang.19261ba8.js";import{g as B}from"./access.ed3b6ac4.js";import{_ as M}from"./readonly-studio.vue_vue_type_script_setup_true_lang.0062e564.js";const O=d("\u67E5\u8BE2"),P=d("\u5220\u9664"),Q=d("\u5B9E\u65F6\u65E5\u5FD7"),W=d("\u540C\u6B65\u7ED3\u679C"),X=d("\u5220\u9664"),Z=d("\u83B7\u53D6\u6700\u65B0\u65E5\u5FD7"),ee={style:{padding:"15px"}},te=w({name:"SrtTaskIndex"}),re=w({...te,setup(ae,{expose:T}){const p=c(!1),l=A({createdIsNeed:!1,dataListUrl:"/data-integrate/access/task-page",deleteUrl:"/data-integrate/access/task",queryForm:{dataAccessId:"",runStatus:""}}),D=u=>{l.queryForm.dataAccessId=u,p.value=!0,m()},C=c(),E=u=>{C.value.init(u)},_=c(!1),g=c(),h=c(),V=u=>{_.value=!0,h.value=u,B(u).then(t=>{g.value.setEditorValue(t.data.realTimeLog)})},x=()=>{B(h.value).then(u=>{g.value.setEditorValue(u.data.realTimeLog)})},{getDataList:m,selectionChangeHandle:L,sizeChangeHandle:S,currentChangeHandle:R,deleteBatchHandle:F}=H(l);return T({init:D}),(u,t)=>{const z=r("fast-select"),f=r("el-form-item"),s=r("el-button"),$=r("el-form"),o=r("el-table-column"),I=r("fast-table-column"),q=r("el-table"),N=r("el-pagination"),y=r("el-dialog"),U=j("loading");return v(),k(y,{modelValue:p.value,"onUpdate:modelValue":t[5]||(t[5]=n=>p.value=n),title:"\u6267\u884C\u8BB0\u5F55"},{default:a(()=>[e($,{inline:!0,model:l.queryForm,onKeyup:t[3]||(t[3]=K(n=>i(m)(),["enter"]))},{default:a(()=>[e(f,null,{default:a(()=>[e(z,{modelValue:l.queryForm.runStatus,"onUpdate:modelValue":t[0]||(t[0]=n=>l.queryForm.runStatus=n),placeholder:"\u8FD0\u884C\u72B6\u6001","dict-type":"run_status",clearable:""},null,8,["modelValue"])]),_:1}),e(f,null,{default:a(()=>[e(s,{type:"primary",onClick:t[1]||(t[1]=n=>i(m)())},{default:a(()=>[O]),_:1})]),_:1}),e(f,null,{default:a(()=>[e(s,{type:"danger",onClick:t[2]||(t[2]=n=>i(F)())},{default:a(()=>[P]),_:1})]),_:1})]),_:1},8,["model"]),Y((v(),k(q,{data:l.dataList,border:"",style:{width:"100%"},onSelectionChange:i(L)},{default:a(()=>[e(o,{type:"selection","header-align":"center",align:"center",width:"50"}),e(o,{prop:"id",label:"\u5E8F\u53F7","header-align":"center",align:"center"}),e(I,{prop:"runStatus",label:"\u8FD0\u884C\u72B6\u6001","header-align":"center",align:"center","dict-type":"run_status",width:"120px"}),e(o,{prop:"startTime",label:"\u5F00\u59CB\u65F6\u95F4","header-align":"center",align:"center",width:"160px"}),e(o,{prop:"endTime",label:"\u7ED3\u675F\u65F6\u95F4","header-align":"center",align:"center",width:"160px"}),e(o,{prop:"dataCount",label:"\u66F4\u65B0\u6570\u636E\u91CF","header-align":"center",align:"center"}),e(o,{prop:"tableSuccessCount",label:"\u6210\u529F\u8868\u6570\u91CF","header-align":"center",align:"center"}),e(o,{prop:"tableFailCount",label:"\u5931\u8D25\u8868\u6570\u91CF","header-align":"center",align:"center"}),e(o,{prop:"byteCount",label:"\u6570\u636E\u91CF\u5927\u5C0F","header-align":"center",align:"center"}),e(o,{prop:"createTime",label:"\u521B\u5EFA\u65F6\u95F4","header-align":"center",align:"center",width:"160px"}),e(o,{label:"\u64CD\u4F5C",fixed:"right","header-align":"center",align:"center",width:"260"},{default:a(n=>[e(s,{type:"primary",link:"",onClick:b=>V(n.row.id)},{default:a(()=>[Q]),_:2},1032,["onClick"]),e(s,{type:"primary",link:"",onClick:b=>E(n.row.id)},{default:a(()=>[W]),_:2},1032,["onClick"]),e(s,{type:"primary",link:"",onClick:b=>i(F)(n.row.id)},{default:a(()=>[X]),_:2},1032,["onClick"])]),_:1})]),_:1},8,["data","onSelectionChange"])),[[U,l.dataListLoading]]),e(N,{"current-page":l.page,"page-sizes":l.pageSizes,"page-size":l.limit,total:l.total,layout:"total, sizes, prev, pager, next, jumper",onSizeChange:i(S),onCurrentChange:i(R)},null,8,["current-page","page-sizes","page-size","total","onSizeChange","onCurrentChange"]),e(J,{ref_key:"accessTaskDetailRef",ref:C},null,512),e(y,{modelValue:_.value,"onUpdate:modelValue":t[4]||(t[4]=n=>_.value=n),title:"\u5B9E\u65F6\u65E5\u5FD7",width:"65%"},{default:a(()=>[e(s,{type:"primary",onClick:x},{default:a(()=>[Z]),_:1}),G("div",ee,[e(M,{id:"accessRealTimeLog",ref_key:"accessRealTimeLogRef",ref:g,style:{height:"500px"}},null,512)])]),_:1},8,["modelValue"])]),_:1},8,["modelValue"])}}});export{re as _};
