(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-b4ab3520"],{"57b3":function(t,e,n){},"8e80":function(t,e,n){"use strict";n("57b3")},d823:function(t,e,n){"use strict";n.r(e);var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return"xls"!==t.type?n("div",{staticClass:"project-search"},[0!==t.dataList.length?n("div",{staticStyle:{width:"50%"}},t._l(t.dataList,(function(e){return n("div",{key:e.id,staticClass:"listClass"},[n("img",{staticStyle:{width:"150px",height:"150px",padding:"10px 10px 10px 0"},attrs:{src:e.url,alt:""}}),n("div",{domProps:{innerHTML:t._s(e.content)}})])})),0):n("div",{staticStyle:{width:"50%","font-size":"25px",margin:"300px auto",color:"#909399","text-align":"center"}},[t._v(" 暂无解析数据 ")]),n("div",{staticStyle:{width:"50%"}},[n("file-preview",{attrs:{"file-url":t.documentUrl,"file-type":t.type}})],1)]):n("div",[t.excelDataList.length>0?n("div",{staticClass:"excel-table"},t._l(t.excelDataList,(function(e,r){return n("div",{key:r},[n("table",[n("thead",[n("tr",t._l(e.data[0],(function(e,r){return n("th",{key:r},[t._v(" "+t._s(e)+" ")])})),0)]),n("tbody",t._l(e.data.slice(1),(function(e,r){return n("tr",{key:r},t._l(e,(function(e,r){return n("td",{key:r},[t._v(" "+t._s(e)+" ")])})),0)})),0)])])})),0):n("div",{staticClass:"no-data"},[t._v("暂无数据")])])},u=[],i=n("5530"),c=(n("4de4"),n("caad"),n("d81d"),n("fb6a"),n("d3b7"),n("ac1f"),n("2532"),n("466d"),n("841c"),n("2ca0"),n("498a"),n("2f62")),a=n("db6a"),o=(n("f7e6"),n("3be9")),d={components:{FilePreview:o["default"]},computed:Object(i["a"])({},Object(c["b"])(["roleInfo","authList"])),data:function(){return{queryForm:{document_id:""},dataList:[],conten:"",documentUrl:"",type:"",excelDataList:[],isFileViewable:!1,supportedFileTypes:["pdf","doc","docx","xls","xlsx","ppt","pptx","txt","jpg","jpeg","png","gif"]}},mounted:function(){this.queryForm.document_id=this.$route.query.id,this.type=this.$route.query.type,this.checkFileType(),this.search()},methods:{checkAuth:function(t){return this.roleInfo.is_admin,!0},checkFileType:function(){this.isFileViewable=this.supportedFileTypes.includes(this.type)},search:function(){var t=this;Object(a["o"])(this.queryForm).then((function(e){t.dataList=e.data.tasks,t.isFileViewable?t.documentUrl=e.data.documentUrl:console.log("文件类型不支持预览")})).catch((function(t){console.error("获取数据时出错:",t)}))},parseExcelData:function(t){return t.filter((function(t){return t.content})).map((function(t,e){var n=t.content;if("string"!==typeof n)return null;var r=n.match(/^#.*?\n/);r&&(n=n.slice(r[0].length));var u=n.split("\n").map((function(t){return t.trim()})).filter((function(t){return""!==t})).filter((function(t){return!t.match(/^\|[-:]+\|[-:]+\|$/)})).map((function(t){return t.split("|").map((function(t){return t.trim()})).filter((function(t){return""!==t}))}));return u.length>0&&u[0].some((function(t){return t.startsWith("Unnamed:")}))&&u.shift(),{title:t.title||"Sheet ".concat(e+1),data:u}})).filter((function(t){return null!==t&&t.data.length>0}))}}},s=d,l=(n("8e80"),n("2877")),f=Object(l["a"])(s,r,u,!1,null,"05222c55",null);e["default"]=f.exports},db6a:function(t,e,n){"use strict";n.d(e,"l",(function(){return u})),n.d(e,"d",(function(){return i})),n.d(e,"e",(function(){return c})),n.d(e,"h",(function(){return a})),n.d(e,"f",(function(){return o})),n.d(e,"m",(function(){return d})),n.d(e,"n",(function(){return s})),n.d(e,"a",(function(){return l})),n.d(e,"o",(function(){return f})),n.d(e,"b",(function(){return p})),n.d(e,"j",(function(){return h})),n.d(e,"i",(function(){return m})),n.d(e,"q",(function(){return b})),n.d(e,"k",(function(){return y})),n.d(e,"r",(function(){return k})),n.d(e,"g",(function(){return j})),n.d(e,"c",(function(){return v})),n.d(e,"p",(function(){return x}));var r=n("b775");function u(t){return Object(r["a"])({url:"/kbm/selectBucketInfo",method:"post",data:t})}function i(t){return Object(r["a"])({url:"/minio/createBucket",method:"post",data:t})}function c(t){return Object(r["a"])({url:"/kbm/deleteBucket",method:"post",data:t})}function a(t){return Object(r["a"])({url:"/kbm/getFileInfo",method:"post",data:t})}function o(t){return Object(r["a"])({url:"/kbm/deleteDocument",method:"post",data:t})}function d(t){return Object(r["a"])({url:"/kbm/getUrl",method:"post",data:t})}function s(t){return Object(r["a"])({url:"/kbm/updateName",method:"post",data:t})}function l(t){return Object(r["a"])({url:"/kbm/analysis",method:"post",data:t})}function f(t){return Object(r["a"])({url:"/kbm/searchTaskInfo",method:"post",data:t})}function p(t){return Object(r["a"])({url:"/kbm/batchAnalysis",method:"post",data:t})}function h(t){return Object(r["a"])({url:"/kbm/getSuffixName",method:"post",data:t})}function m(t){return Object(r["a"])({url:"/kbm/getRunStatus",method:"post",data:t})}function b(t){return Object(r["a"])({url:"/docType/selectTypeList",method:"post",data:t})}function y(t){return Object(r["a"])({url:"/docType/insertType",method:"post",data:t})}function k(t){return Object(r["a"])({url:"/docType/updateType",method:"post",data:t})}function j(t){return Object(r["a"])({url:"/docType/delete",method:"post",data:t})}function v(t){return Object(r["a"])({url:"/kbm/batchMove",method:"post",data:t})}function x(t){return Object(r["a"])({url:"/docType/selectType0",method:"post",data:t})}}}]);