(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0aab47"],{"11c4":function(e,t,a){"use strict";a.r(t);var l=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("page-header",[e._v(" 文件管理 ")]),a("el-form",{staticClass:"demo-form-inline",attrs:{inline:!0,model:e.query,size:"small"}},[a("el-form-item",{attrs:{label:"文件名称"}},[a("el-input",{attrs:{placeholder:""},model:{value:e.query.name,callback:function(t){e.$set(e.query,"name",t)},expression:"query.name"}})],1),a("el-form-item",[a("el-button",{attrs:{type:"primary"},on:{click:e.doSearch}},[e._v("查询")])],1)],1),a("el-table",{staticStyle:{width:"100%"},attrs:{data:e.files,"row-key":"id",border:"",lazy:"",load:e.load,"tree-props":{children:"children",hasChildren:"hasChildren"}}},[a("el-table-column",{attrs:{type:"index",width:"50"}}),a("el-table-column",{attrs:{prop:"name",label:"文件名称"}}),a("el-table-column",{attrs:{prop:"signInfo",label:"唯一索引"}}),a("el-table-column",{attrs:{prop:"suffix",label:"类型",width:"100"}}),a("el-table-column",{attrs:{label:"大小",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(e._f("byteSize")(t.row.size)))])]}}])}),a("el-table-column",{attrs:{label:"创建日期",width:"180"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(e._f("date")(t.row.createDate)))])]}}])}),a("el-table-column",{attrs:{label:"操作",width:"150"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{attrs:{size:"mini",type:"default"},on:{click:function(a){return e.handlerDetails(t.$index,t.row)}}},[e._v("详情")])]}}])})],1),a("el-pagination",{attrs:{background:"",layout:"prev, pager, next","page-size":e.query.pageSize,total:e.pager.total},on:{"current-change":e.currentChanged}}),a("el-dialog",{attrs:{title:"文档详细",visible:e.visible,width:"30%"},on:{"update:visible":function(t){e.visible=t}}},[a("el-form",{attrs:{"label-width":"100px","label-suffix":"："}},[a("el-form-item",{attrs:{label:"文档时间"}},[e._v(" "+e._s(e.detailData.name)+" ")]),a("el-form-item",{attrs:{label:"文件索引"}},[e._v(" "+e._s(e.detailData.signInfo)+" ")]),a("el-form-item",{attrs:{label:"文件大小"}},[e._v(" "+e._s(e.detailData.size)+" ")]),a("el-form-item",{attrs:{label:"上传时间"}},[e._v(" "+e._s(e._f("date")(e.detailData.createDate))+" ")]),a("el-form-item",{attrs:{label:"文件后缀"}},[e._v(" "+e._s(e.detailData.suffix)+" ")])],1)],1)],1)},i=[],n=a("424e"),r={components:{},data:function(){return{visible:!1,detailData:{},query:{pageNum:1,pageSize:12,name:""},pager:{total:0},files:[]}},computed:{},watch:{},methods:{load:function(){var e=this;Object(n["f"])(this.query).then((function(t){var a=t.code,l=t.data;t.message;if(0==a){l.current;var i=l.records,n=(l.pages,l.total);e.files=i,e.pager.total=n}}))},handlerDetails:function(e,t){this.visible=!0,this.detailData=t},doSearch:function(){this.query.pageNum=1,this.load()},currentChanged:function(e){this.query.pageNum=e,this.load()}},created:function(){this.load()},mounted:function(){}},s=r,o=a("2877"),u=Object(o["a"])(s,l,i,!1,null,"4cf8a3f4",null);t["default"]=u.exports}}]);
//# sourceMappingURL=chunk-2d0aab47.356fd751.js.map