"use strict";(self["webpackChunkvoghion_vue_admin"]=self["webpackChunkvoghion_vue_admin"]||[]).push([[19120],{19120:function(e,t,a){a.r(t),a.d(t,{default:function(){return d}});var r=function(){var e=this,t=e._self._c;return t("el-card",[t("el-form",{attrs:{model:e.formData,inline:""}},[t("el-form-item",{attrs:{label:"创建人："}},[t("el-input",{attrs:{placeholder:"请输入创建人"},model:{value:e.formData.creator,callback:function(t){e.$set(e.formData,"creator",t)},expression:"formData.creator"}})],1),t("el-form-item",{attrs:{label:"创建时间："}},[t("el-date-picker",{staticClass:"g-ml-lg",attrs:{type:"daterange","value-format":"yyyy-MM-dd","start-placeholder":"开始时间","end-placeholder":"结束时间",clearable:""},model:{value:e.date,callback:function(t){e.date=t},expression:"date"}})],1),t("el-form-item",[t("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.fetchDataSource(1)}}},[e._v("搜索")]),t("el-button",{on:{click:e.onReset}},[e._v("重置")]),t("el-button",{attrs:{type:"primary"},on:{click:e.onBatchExport}},[e._v("批量导出")])],1)],1),t("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{data:e.dataSource.records,"row-key":"workFlowId",border:""}},e._l(e.columns,(function(a){return t("el-table-column",e._b({key:a.prop,attrs:{"header-align":"center",align:"center"}},"el-table-column",a,!1))})),1),t("div",{staticClass:"g-pagination-container"},[t("el-pagination",{attrs:{"current-page":e.dataSource.pageNow,"page-sizes":[20,50,100],"page-size":e.dataSource.pageSize,layout:"sizes, prev, pager, next, jumper",background:"",total:e.dataSource.rowCount},on:{"size-change":function(t){return e.fetchDataSource(null,t)},"current-change":function(t){return e.fetchDataSource(t)}}})],1)],1)},o=[],n=a(7896),l=a(98395),c={data(){return{loading:!1,formData:{},dataSource:{pageSize:20,pageNow:1,records:[],rowCount:0},columns:[{prop:"id",label:"ID"},{prop:"fileName",label:"文件名"},{prop:"cdnUrl",label:"CDN链接"},{prop:"status",label:"状态"},{prop:"creator",label:"创建人"},{prop:"createTime",label:"创建时间"}]}},computed:{date:{get:function(){const{startTime:e,endTime:t}=this.formData;return e?[e,t]:[]},set:function(e){const[t,a]=e||[];this.formData={...this.formData,startTime:t?`${t} 00:00:00`:"",endTime:a?`${a} 23:59:59`:""}}}},mounted(){this.fetchDataSource(1)},methods:{onBatchExport(){(0,n.Ne)("/buss-common/upload/tx/upload/export",Object.values(this.formData).length?this.formData:null).then((e=>{"false"===e&&this.$message.warning("导出数据为空")}))},onReset(){this.formData={},this.fetchDataSource(1)},fetchDataSource(e,t){this.loading=!0,(0,l.S5)({...this.formData,pageNow:e||this.dataSource.pageNow,pageSize:t||this.dataSource.pageSize}).then((e=>{e&&(this.dataSource={...e,records:e.records||[]})})).finally((()=>{this.loading=!1}))}}},i=c,u=a(81656),s=(0,u.A)(i,r,o,!1,null,null,null),d=s.exports},98395:function(e,t,a){a.d(t,{Fj:function(){return l},S5:function(){return c},iU:function(){return n}});var r=a(7896);const o="/buss-common/upload";function n(e){return(0,r.Ay)(`${o}/tx/getTempCredential`,{method:"GET",params:e})}function l(e){return(0,r.Ay)(`${o}/tx/transfer`,{method:"POST",data:e})}function c(e){return(0,r.Ay)(`${o}/tx/upload/page`,{method:"POST",data:e})}}}]);