import{d as B,Y as N,h as b,ai as R,r as i,aj as k,o as c,c as O,a7 as _,a8 as A,a as y,b as e,w as n,k as o,f as m,a2 as K,l as u,t as C,al as T,F as Y}from"./index.e3896b23.js";import{_ as G}from"./add-or-update.vue_vue_type_script_setup_true_lang.a947df21.js";const J=u("\u67E5\u8BE2"),M=u("\u65B0\u589E"),P=u("\u5220\u9664"),Q=["href"],W={style:{"margin-left":"20px"}},X=u("\u4E0B\u8F7D"),Z=u("\u5220\u9664"),ee=B({name:"Data-integrateFileIndex"}),le=B({...ee,setup(te,{expose:E}){const t=N({createdIsNeed:!1,projectId:"",path:"",fileCategoryId:"",dataListUrl:"/data-integrate/file/page",deleteUrl:"/data-integrate/file",queryForm:{name:"",fileCategoryId:"",type:""}}),F=b(!1),z=(s,l,g)=>{t.queryForm.fileCategoryId=s,t.path=l,t.fileCategoryId=s,t.projectId=g,f(),F.value=!0},v=b(),D=s=>{v.value.init(s,t.fileCategoryId,t.path,t.projectId)},{getDataList:f,selectionChangeHandle:I,sizeChangeHandle:U,currentChangeHandle:x,deleteBatchHandle:w,downloadHandle:V}=R(t);return E({init:z}),(s,l)=>{const g=i("el-input"),p=i("el-form-item"),d=i("el-button"),S=i("el-form"),r=i("el-table-column"),q=i("fast-creator-column"),L=i("el-table"),$=i("el-pagination"),h=k("auth"),H=k("loading");return c(),O(Y,null,[_(y("div",null,[e(S,{inline:!0,model:t.queryForm,onKeyup:l[5]||(l[5]=K(a=>o(f)(),["enter"]))},{default:n(()=>[e(p,null,{default:n(()=>[e(g,{modelValue:t.queryForm.name,"onUpdate:modelValue":l[0]||(l[0]=a=>t.queryForm.name=a),placeholder:"\u540D\u79F0"},null,8,["modelValue"])]),_:1}),e(p,null,{default:n(()=>[e(g,{modelValue:t.queryForm.type,"onUpdate:modelValue":l[1]||(l[1]=a=>t.queryForm.type=a),placeholder:"\u6587\u4EF6\u7C7B\u578B"},null,8,["modelValue"])]),_:1}),e(p,null,{default:n(()=>[e(d,{type:"primary",onClick:l[2]||(l[2]=a=>o(f)())},{default:n(()=>[J]),_:1})]),_:1}),e(p,null,{default:n(()=>[_((c(),m(d,{type:"primary",onClick:l[3]||(l[3]=a=>D())},{default:n(()=>[M]),_:1})),[[h,"data-integrate:file:save"]])]),_:1}),e(p,null,{default:n(()=>[_((c(),m(d,{type:"danger",onClick:l[4]||(l[4]=a=>o(w)())},{default:n(()=>[P]),_:1})),[[h,"data-integrate:file:delete"]])]),_:1})]),_:1},8,["model"]),_((c(),m(L,{data:t.dataList,border:"",style:{width:"100%"},onSelectionChange:o(I)},{default:n(()=>[e(r,{type:"selection","header-align":"center",align:"center",width:"50"}),e(r,{"show-overflow-tooltip":"",prop:"name",label:"\u540D\u79F0","header-align":"center",align:"center"}),e(r,{"show-overflow-tooltip":"",prop:"fileCategoryId",label:"\u6240\u5C5E\u5206\u7EC4","header-align":"center",align:"center"},{default:n(()=>[u(C(t.path),1)]),_:1}),e(r,{prop:"type",label:"\u6587\u4EF6\u7C7B\u578B","header-align":"center",align:"center"}),e(r,{prop:"fileUrl",label:"\u6587\u4EF6\u5730\u5740","header-align":"center",align:"center"},{default:n(a=>[e(d,{type:"primary",link:""},{default:n(()=>[y("a",{href:a.row.fileUrl,target:"_blank"},"\u70B9\u51FB\u524D\u5F80",8,Q)]),_:2},1024)]),_:1}),e(r,{prop:"size",label:"\u6587\u4EF6\u5927\u5C0F","header-align":"center",align:"center"},{default:n(a=>[u(C(a.row.size?o(T)(a.row.size):""),1)]),_:1}),e(r,{type:"expand",label:"\u63CF\u8FF0",width:"80"},{default:n(a=>[y("div",W,C(a.row.description?a.row.description:"\u65E0\u63CF\u8FF0\u4FE1\u606F\uFF01"),1)]),_:1}),e(q,{prop:"creator",label:"\u521B\u5EFA\u8005","header-align":"center",align:"center"}),e(r,{prop:"createTime",label:"\u521B\u5EFA\u65F6\u95F4","header-align":"center",align:"center"}),e(r,{label:"\u64CD\u4F5C",fixed:"right","header-align":"center",align:"center",width:"180"},{default:n(a=>[e(d,{type:"primary",link:"",onClick:j=>o(V)(a.row.fileUrl,a.row.name)},{default:n(()=>[X]),_:2},1032,["onClick"]),_((c(),m(d,{type:"primary",link:"",onClick:j=>o(w)(a.row.id)},{default:n(()=>[Z]),_:2},1032,["onClick"])),[[h,"data-integrate:file:delete"]])]),_:1})]),_:1},8,["data","onSelectionChange"])),[[H,t.dataListLoading]]),e($,{"current-page":t.page,"page-sizes":t.pageSizes,"page-size":t.limit,total:t.total,layout:"total, sizes, prev, pager, next, jumper",onSizeChange:o(U),onCurrentChange:o(x)},null,8,["current-page","page-sizes","page-size","total","onSizeChange","onCurrentChange"])],512),[[A,F.value]]),e(G,{ref_key:"addOrUpdateRef",ref:v,onRefreshDataList:o(f)},null,8,["onRefreshDataList"])],64)}}});export{le as _};
