{"remainingRequest":"D:\\jenkins\\workspace\\bzzgj-fvue\\node_modules\\thread-loader\\dist\\cjs.js!D:\\jenkins\\workspace\\bzzgj-fvue\\node_modules\\babel-loader\\lib\\index.js!D:\\jenkins\\workspace\\bzzgj-fvue\\node_modules\\cache-loader\\dist\\cjs.js??ref--0-0!D:\\jenkins\\workspace\\bzzgj-fvue\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\jenkins\\workspace\\bzzgj-fvue\\src\\components\\fileUpload\\index.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\bzzgj-fvue\\src\\components\\fileUpload\\index.vue","mtime":1687342878005},{"path":"D:\\jenkins\\workspace\\bzzgj-fvue\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\bzzgj-fvue\\node_modules\\thread-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\bzzgj-fvue\\node_modules\\babel-loader\\lib\\index.js","mtime":315532800000},{"path":"D:\\jenkins\\workspace\\bzzgj-fvue\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\bzzgj-fvue\\node_modules\\vue-loader\\lib\\index.js","mtime":499162500000}],"contextDependencies":[],"result":["//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\nimport CommonApi from '@/views/Manage/CommonApi.js';\nimport { mapState } from 'vuex';\nexport default {\n name: 'fileUpload',\n // 文件上传\n data: function data() {\n return {\n CommonApi: CommonApi,\n pdfImg: require('@/assets/img/pdf.png'),\n wordImg: require('@/assets/img/word.png'),\n imgInfo: require('@/assets/img/img.png'),\n xlsImg: require('@/assets/img/xls.png'),\n defaultImg: require('@/assets/img/default.png')\n };\n },\n props: {\n fileList: {\n type: Array,\n default: []\n }\n },\n computed: mapState({\n header: function header(state) {\n return {\n Authorization: \"Bearer \".concat(state.login.currentUser.token)\n };\n }\n }),\n created: function created() {},\n methods: {\n // 删除文件\n attachmentHandleFileDelete: function attachmentHandleFileDelete(file) {\n this.$emit('attachmentHandleFileDelete', file);\n },\n // 下载文件\n downFile: function downFile(file) {\n // this.$emit('downFile', file)\n CommonApi.downloadFile(file.id);\n },\n // 上传成功前钩子函数\n attachmentBeforeUpload: function attachmentBeforeUpload(file) {\n // this.$emit('attachmentBeforeUpload', file)\n var isLt1M = file.size / 1024 / 1024 < 100;\n\n if (!isLt1M) {\n this.$message.error('上传文件不能超过 100MB!');\n }\n\n return isLt1M;\n },\n // 上传成功后函数\n attachmentUploadSuccess: function attachmentUploadSuccess(res, file, fileList) {\n this.$emit('attachmentUploadSuccess', res, file, fileList);\n }\n }\n};",null]}