(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-e3f6aaca"],{"40c5":function(e,t,n){"use strict";n.r(t);var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("el-table",{staticStyle:{width:"100%"},attrs:{data:e.viewer.showFiles,size:"small"},on:{"row-click":e.handleRowClickEvent}},[n("el-table-column",{attrs:{label:"文件名",width:"400"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("div",{staticClass:"img-box-tip"},[n("img",{class:{imgs:"pdf"==t.row.suffix},attrs:{src:e.thumbIcon(t.row),alt:""}}),n("span",{attrs:{title:t.row.name}},[e._v(e._s(t.row.name))])])]}}])}),n("el-table-column",{attrs:{label:"文件类型",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(" "+e._s(t.row.suffix||"文件夹")+" ")]}}])}),n("el-table-column",{attrs:{prop:"ownerName",label:"所有者",align:"center"}}),n("el-table-column",{attrs:{label:"大小",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(" "+e._s(e._f("byteSize")(t.row.size))+" ")]}}])}),n("el-table-column",{attrs:{label:"创建时间",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(" "+e._s(e._f("date")(t.row.createDate))+" ")]}}])}),n("el-table-column",{attrs:{label:"操作",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-button",{attrs:{type:"text",size:"small",icon:"el-icon-delete"},on:{click:function(n){return n.stopPropagation(),e.removeDocBtn(t.row)}}},[e._v("删除")])]}}])})],1),n("el-pagination",{staticClass:"pagebox",attrs:{background:"","current-page":e.query.pageNum,"page-size":e.query.pageSize,layout:"prev, pager, next",total:e.total},on:{"current-change":e.handleCurrentChange}}),n("ReadFile",{ref:"readFile"})],1)},r=[],s=(n("4160"),n("b0c0"),n("159b"),n("4795"),n("e853")),i=n("eca0"),o=n.n(i),c=n("dba3"),l=n.n(c),u=n("7254"),d=n.n(u),f=n("71a1"),h=n.n(f),p=n("e1b5"),m=n.n(p),g=n("0a03"),b=n.n(g),w=n("73e5"),v=n.n(w),y=n("2f59"),k=n.n(y),_=n("d493"),$=n.n(_),x=n("ff0b"),E={def:o.a,unknown:l.a,png:d.a,jpg:d.a,jpeg:d.a,bmp:d.a,ofd:h.a,doc:b.a,docx:b.a,mp3:m.a,mp4:m.a,pdf:k.a,ppt:v.a,pptx:v.a,xls:$.a,xlsx:$.a},S={data:function(){return{checkedLabel:"",viewerKey:"my",query:{pageNum:1,pageSize:10},systemTag:[],newObj:{}}},components:{ReadFile:x["a"]},inject:["setQuery"],watch:{$route:function(e){this.forArrayEvent(e.params.id)}},computed:{viewer:function(){return this.$store.state.doc.viewer[this.viewerKey]},total:function(){return this.$store.state.doc.viewer[this.viewerKey].paging.total||0},dict:function(){return this.$store.state.dict.dicts}},mounted:function(){this.forArrayEvent(this.$route.params.id)},methods:{forArrayEvent:function(e){var t=this;setTimeout((function(){t.dict.doc.forEach((function(n){n.id==e&&(t.checkedLabel=n.label)})),t.searchListEvent()}),200)},searchListEvent:function(){this.systemTag=[],this.systemTag.push(this.checkedLabel),this.newObj={miji:[],tag:[],systemTag:"全部"==this.checkedLabel?[]:this.systemTag},this.setQuery(this.newObj,this.query,!1)},thumbIcon:function(e){var t="unknown";return E.hasOwnProperty(e.suffix)&&(t=e.suffix),E[t]},handleRowClickEvent:function(e,t,n){var a=this;0==e.type||(null!=e.documentId&&(e.i=e.documentId),s["p"].getReaderUrl(e.shareId,e.documentId||e.id,e.documentId,e.name).then((function(e){var t=e.code,n=e.data,r=e.message;0==t?a.$refs["readFile"].showReadFile(a.$options.filters["readerUrl"](n.url)):1==t?a.$message.error(r):a.$message.error(r||"您不能查看当前文件")})))},removeDocBtn:function(e){var t=this;this.$store.dispatch("doc/checkedRemove",{vkey:this.viewerKey,id:[e.id]}).then((function(e){e?(t.$message({message:"删除成功",type:"success"}),t.forArrayEvent(t.$route.params.id)):t.$message.error("删除失败")}))["catch"]((function(e){t.$message.error(e)}))},handleCurrentChange:function(e){this.query.pageNum=e,this.searchListEvent()}}},j=S,C=(n("b46d"),n("2877")),z=Object(C["a"])(j,a,r,!1,null,"d03c1982",null);t["default"]=z.exports},b46d:function(e,t,n){"use strict";n("cc77")},cc77:function(e,t,n){}}]);
//# sourceMappingURL=chunk-e3f6aaca.93a5c9c2.js.map