file.js 3.6 KB

12
  1. (global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/file/file"],{1039:function(e,n,t){"use strict";(function(e,n){var r=t(4);t(26);r(t(25));var o=r(t(1040));e.__webpack_require_UNI_MP_PLUGIN__=t,n(o.default)}).call(this,t(1)["default"],t(2)["createPage"])},1040:function(e,n,t){"use strict";t.r(n);var r=t(1041),o=t(1043);for(var i in o)["default"].indexOf(i)<0&&function(e){t.d(n,e,(function(){return o[e]}))}(i);t(1045);var a,c=t(32),s=Object(c["default"])(o["default"],r["render"],r["staticRenderFns"],!1,null,null,null,!1,r["components"],a);s.options.__file="pages/file/file.vue",n["default"]=s.exports},1041:function(e,n,t){"use strict";t.r(n);var r=t(1042);t.d(n,"render",(function(){return r["render"]})),t.d(n,"staticRenderFns",(function(){return r["staticRenderFns"]})),t.d(n,"recyclableRender",(function(){return r["recyclableRender"]})),t.d(n,"components",(function(){return r["components"]}))},1042:function(e,n,t){"use strict";var r;t.r(n),t.d(n,"render",(function(){return o})),t.d(n,"staticRenderFns",(function(){return a})),t.d(n,"recyclableRender",(function(){return i})),t.d(n,"components",(function(){return r}));try{r={mescrollEmpty:function(){return Promise.all([t.e("common/vendor"),t.e("uni_modules/mescroll-uni/components/mescroll-empty/mescroll-empty")]).then(t.bind(null,495))}}}catch(c){if(-1===c.message.indexOf("Cannot find module")||-1===c.message.indexOf(".vue"))throw c;console.error(c.message),console.error("1. 排查组件名称拼写是否正确"),console.error("2. 排查组件是否符合 easycom 规范,文档:https://uniapp.dcloud.net.cn/collocation/pages?id=easycom"),console.error("3. 若组件不符合 easycom 规范,需手动引入,并在 components 中注册该组件")}var o=function(){var e=this,n=e.$createElement,t=(e._self._c,e.tableData.length),r=0!==t?e.__map(e.tableData,(function(n,t){var r=e.__get_orig(n),o=n.directory?null:e.returnImage(n);return{$orig:r,m0:o}})):null;e.$mp.data=Object.assign({},{$root:{g0:t,l0:r}})},i=!1,a=[];o._withStripped=!0},1043:function(e,n,t){"use strict";t.r(n);var r=t(1044),o=t.n(r);for(var i in r)["default"].indexOf(i)<0&&function(e){t.d(n,e,(function(){return r[e]}))}(i);n["default"]=o.a},1044:function(e,n,t){"use strict";(function(e){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r=t(457),o=t(1048),i={doc:"doc.png",docx:"doc.png",jpg:"jpg.png",jpeg:"jpg.png",mp3:"mp3.png",mp4:"mp4.png",pdf:"pdf.png",png:"png.png",ppt:"ppt.png",pptx:"pptx.png",txt:"txt.png",xls:"xls.png",xlsx:"xls.png",zip:"zip.png"},a={data:function(){return{option:{tip:"当前文件夹暂无数据"},tableData:[],parentId:""}},onLoad:function(n){this.parentId=n.parentId,e.setNavigationBarTitle({title:n.title}),this.projectDirList()},methods:{returnImage:function(e){console.log(e);var n=e.name.split("."),t=n[n.length-1].toLowerCase(),r=i[t]||"nofile.png";return"../../static/image/datacenter/"+r},projectDirList:function(){var e=this;(0,r.getProjectDirList)(this.parentId).then((function(n){200===n.code&&(e.tableData=n.data.sort((function(e,n){return n.directory-e.directory})))}))},clickFolder:function(e){var n=this;e.directory&&(0,o.projectPermission)({id:e.id,oldPermission:e.permissions,type:"access",name:e.name,folderList:[e.name]},(function(){n.$navigateTo("/pages/file/file?parentId="+e.id+"&title="+e.name)}))}}};n.default=a}).call(this,t(2)["default"])},1045:function(e,n,t){"use strict";t.r(n);var r=t(1046),o=t.n(r);for(var i in r)["default"].indexOf(i)<0&&function(e){t.d(n,e,(function(){return r[e]}))}(i);n["default"]=o.a},1046:function(e,n,t){}},[[1039,"common/runtime","common/vendor"]]]);
  2. //# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/file/file.js.map