import{d as h,Y as k,L as x,ai as V,r as n,aj as I,o as g,f,w as l,a as c,b as e,k as u,a2 as q,a7 as U,l as p,t as F,al as L}from"./index.e3896b23.js";const S={class:"fileResourceDiv"},H=p("\u67E5\u8BE2"),R=["href"],N={style:{"margin-left":"20px"}},j=p("\u4E0B\u8F7D"),A=h({name:"DataAssetsFileResource"}),G=h({...A,setup($){const a=k({createdIsNeed:!1,projectId:"",path:"",fileCategoryId:"",dataListUrl:"/data-integrate/file/page-resource",deleteUrl:"/data-integrate/file",queryForm:{name:"",fileCategoryId:"",type:""}});x(()=>{const _=sessionStorage.getItem("fileResourceId");a.queryForm.resourceId=_,i()});const{getDataList:i,selectionChangeHandle:K,sizeChangeHandle:y,currentChangeHandle:C,deleteBatchHandle:T,downloadHandle:w}=V(a);return(_,o)=>{const m=n("el-input"),s=n("el-form-item"),d=n("el-button"),b=n("el-form"),r=n("el-table-column"),v=n("fast-creator-column"),B=n("el-table"),z=n("el-pagination"),E=n("el-card"),D=I("loading");return g(),f(E,null,{default:l(()=>[c("div",S,[e(b,{inline:!0,model:a.queryForm,onKeyup:o[3]||(o[3]=q(t=>u(i)(),["enter"]))},{default:l(()=>[e(s,null,{default:l(()=>[e(m,{modelValue:a.queryForm.name,"onUpdate:modelValue":o[0]||(o[0]=t=>a.queryForm.name=t),placeholder:"\u540D\u79F0"},null,8,["modelValue"])]),_:1}),e(s,null,{default:l(()=>[e(m,{modelValue:a.queryForm.type,"onUpdate:modelValue":o[1]||(o[1]=t=>a.queryForm.type=t),placeholder:"\u6587\u4EF6\u7C7B\u578B"},null,8,["modelValue"])]),_:1}),e(s,null,{default:l(()=>[e(d,{type:"primary",onClick:o[2]||(o[2]=t=>u(i)())},{default:l(()=>[H]),_:1})]),_:1})]),_:1},8,["model"]),U((g(),f(B,{data:a.dataList,border:"",style:{width:"100%"}},{default:l(()=>[e(r,{"show-overflow-tooltip":"",prop:"name",label:"\u540D\u79F0","header-align":"center",align:"center"}),e(r,{prop:"group","show-overflow-tooltip":"",label:"\u6240\u5C5E\u5206\u7EC4","header-align":"center",align:"center"}),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:l(t=>[e(d,{type:"primary",link:""},{default:l(()=>[c("a",{href:t.row.fileUrl,target:"_blank"},"\u70B9\u51FB\u524D\u5F80",8,R)]),_:2},1024)]),_:1}),e(r,{prop:"size",label:"\u6587\u4EF6\u5927\u5C0F","header-align":"center",align:"center"},{default:l(t=>[p(F(t.row.size?u(L)(t.row.size):""),1)]),_:1}),e(r,{type:"expand",label:"\u63CF\u8FF0",width:"80"},{default:l(t=>[c("div",N,F(t.row.description?t.row.description:"\u65E0\u63CF\u8FF0\u4FE1\u606F\uFF01"),1)]),_:1}),e(v,{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:l(t=>[e(d,{type:"primary",link:"",onClick:M=>u(w)(t.row.fileUrl,t.row.name)},{default:l(()=>[j]),_:2},1032,["onClick"])]),_:1})]),_:1},8,["data"])),[[D,a.dataListLoading]]),e(z,{"current-page":a.page,"page-sizes":a.pageSizes,"page-size":a.limit,total:a.total,layout:"total, sizes, prev, pager, next, jumper",onSizeChange:u(y),onCurrentChange:u(C)},null,8,["current-page","page-sizes","page-size","total","onSizeChange","onCurrentChange"])])]),_:1})}}});export{G as default};
