(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-7f501334"],{"1a69":function(e,t,a){"use strict";a.r(t);var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("el-table",{staticStyle:{width:"100%"},attrs:{data:e.viewer.showFiles,size:"small"},on:{"row-click":e.handleRowClickEvent}},[a("el-table-column",{attrs:{label:"文件名",width:"400"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"img-box-tip"},[a("img",{class:{imgs:"pdf"==t.row.suffix},attrs:{src:e.thumbIcon(t.row),alt:""}}),a("span",{attrs:{title:t.row.name}},[e._v(e._s(t.row.name))])])]}}])}),a("el-table-column",{attrs:{label:"文件类型",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(" "+e._s(t.row.suffix||"文件夹")+" ")]}}])}),a("el-table-column",{attrs:{prop:"ownerName",label:"所有者",align:"center"}}),a("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))+" ")]}}])}),a("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))+" ")]}}])}),a("el-table-column",{attrs:{label:"操作",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{attrs:{type:"text",size:"small",icon:"el-icon-delete"},on:{click:function(a){return a.stopPropagation(),e.unnioDocBtn(t.row)}}},[e._v("删除")])]}}])})],1),a("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}}),a("ReadFile",{ref:"readFile"})],1)},s=[],i=(a("4160"),a("a434"),a("b0c0"),a("159b"),a("e853")),r=a("eca0"),o=a.n(r),c=a("dba3"),l=a.n(c),u=a("7254"),d=a.n(u),f=a("71a1"),h=a.n(f),g=a("e1b5"),p=a.n(g),m=a("0a03"),w=a.n(m),b=a("73e5"),v=a.n(b),y=a("2f59"),k=a.n(y),_=a("d493"),$=a.n(_),x=a("ff0b"),E={def:o.a,unknown:l.a,png:d.a,jpg:d.a,jpeg:d.a,bmp:d.a,ofd:h.a,doc:w.a,docx:w.a,mp3:p.a,mp4:p.a,ppt:v.a,pptx:v.a,pdf:k.a,xls:$.a,xlsx:$.a},L={data:function(){return{checkedLabel:"",viewerKey:"my",query:{pageNum:1,pageSize:10},tag:[],newObj:{},tableData:[],id:""}},inject:["setQuery"],watch:{$route:function(e){this.id=e.params.id,this.getTagAllList(e.params.id)}},components:{ReadFile:x["a"]},computed:{viewer:function(){return this.$store.state.doc.viewer[this.viewerKey]},total:function(){return this.$store.state.doc.viewer[this.viewerKey].paging.total||0}},mounted:function(){this.id=this.$route.params.id,this.getTagAllList(this.$route.params.id)},methods:{getTagAllList:function(e){var t=this;i["c"].getTagList({pageNum:1,pageSize:999999}).then((function(a){0==a.code?(t.tableData=a.data,t.forArrayEvent(e)):t.$message.error(a.message)}))["catch"]((function(e){t.$message.error(e.message)}))},forArrayEvent:function(e){var t=this;this.tableData.forEach((function(a){a.id==e&&(t.checkedLabel=a.tagName)})),this.searchListEvent()},searchListEvent:function(){this.tag=[],this.tag.push(this.checkedLabel),this.newObj={miji:[],systemTag:[],tag:this.tag},this.setQuery(this.newObj,this.query,!0)},thumbIcon:function(e){var t="unknown";return E.hasOwnProperty(e.suffix)&&(t=e.suffix),E[t]},handleRowClickEvent:function(e,t,a){var n=this;0==e.type||(null!=e.documentId&&(e.i=e.documentId),i["p"].getReaderUrl(e.shareId,e.documentId||e.id,e.documentId,e.name).then((function(e){var t=e.code,a=e.data,s=e.message;0==t?n.$refs["readFile"].showReadFile(n.$options.filters["readerUrl"](a.url)):1==t?n.$message.error(s):n.$message.error(s||"您不能查看当前文件")})))},unnioDocBtn:function(e){var t=this;i["c"].unnioDocTagData({documentId:e.id,ids:[this.id]}).then((function(a){0==a.code?(t.$message({message:"删除成功",type:"success"}),t.viewer.showFiles.forEach((function(a,n){a.id==e.id&&t.viewer.showFiles.splice(n,1)}))):t.$message.error(a.message)}))["catch"]((function(e){t.$message.error(e.message)}))},handleCurrentChange:function(e){this.query.pageNum=e,this.searchListEvent()}}},S=L,j=(a("4a82"),a("2877")),z=Object(j["a"])(S,n,s,!1,null,"0e5f6a70",null);t["default"]=z.exports},"4a82":function(e,t,a){"use strict";a("d847")},d847:function(e,t,a){}}]);
//# sourceMappingURL=chunk-7f501334.a42bb01c.js.map