1 line
5.4 KiB
JSON
1 line
5.4 KiB
JSON
|
{"remainingRequest":"C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\node_modules\\babel-loader\\lib\\index.js!C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\node_modules\\cache-loader\\dist\\cjs.js??ref--0-0!C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\src\\views\\modules\\equipmentManage\\five-access-upload.vue?vue&type=script&lang=js&","dependencies":[{"path":"C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\src\\views\\modules\\equipmentManage\\five-access-upload.vue","mtime":1614735254000},{"path":"C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\node_modules\\babel-loader\\lib\\index.js","mtime":499162500000},{"path":"C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\node_modules\\vue-loader\\lib\\index.js","mtime":499162500000}],"contextDependencies":[],"result":["import \"core-js/modules/es6.function.name\";\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\nimport Cookies from 'js-cookie';\nexport default {\n data: function data() {\n return {\n visible: false,\n url: '',\n fileList: [],\n headers: {\n Authorization: 'Bearer ' + Cookies.get('access_token') || ''\n }\n };\n },\n methods: {\n init: function init(id) {\n this.visible = true;\n this.url = \"\".concat(window.SITE_CONFIG['apiURL'], \"/system/fvscdevice/setUpScree\");\n this.fileList = [];\n },\n // 上传之前\n beforeUploadHandle: function beforeUploadHandle(file) {\n if (!/.+\\.jpg$/.test(file.name) && !/.+\\.png$/.test(file.name)) {\n this.$message.error(this.$t('upload.tip', {\n 'format': 'jpg、png'\n }));\n return false;\n }\n },\n // 上传成功\n successHandle: function successHandle(res, file, fileList) {\n var _this = this;\n\n if (res.code !== 0) {\n return this.$message.error(res.msg);\n }\n\n this.$message({\n message: this.$t('prompt.success'),\n type: 'success',\n duration: 500,\n onClose: function onClose() {\n _this.visible = false;\n }\n });\n }\n }\n};",{"version":3,"sources":["five-access-upload.vue"],"names":[],"mappings":";;;;;;;;;;;;;AAaA,OAAA,OAAA,MAAA,WAAA;AACA,eAAA;AACA,EAAA,IADA,kBACA;AACA,WAAA;AACA,MAAA,OAAA,EAAA,KADA;AAEA,MAAA,GAAA,EAAA,EAFA;AAGA,MAAA,QAAA,EAAA,EAHA;AAIA,MAAA,OAAA,EAAA;AACA,QAAA,aAAA,EAAA,YAAA,OAAA,CAAA,GAAA,CAAA,cAAA,CAAA,IAAA;AADA;AAJA,KAAA;AAQA,GAVA;AAWA,EAAA,OAAA,EAAA;AACA,IAAA,IADA,gBACA,EADA,EACA;AACA,WAAA,OAAA,GAAA,IAAA;AACA,WAAA,GAAA,aACA,MAAA,CAAA,WAAA,CAAA,QAAA,CADA;AAEA,WAAA,QAAA,GAAA,EAAA;AACA,KANA;AAOA;AACA,IAAA,kBARA,8BAQA,IARA,EAQA;AACA,UAAA,CAAA,WAAA,IAAA,CAAA,IAAA,CAAA,IAAA,CAAA,IAAA,CAAA,WAAA,IAAA,CAAA,IAAA,CAAA,IAAA,CAAA,EAAA;AACA,aAAA,QAAA,CAAA,KAAA,CAAA,KAAA,EAAA,CAAA,YAAA,EAAA;AACA,oBAAA;AADA,SAAA,CAAA;AAGA,eAAA,KAAA;AACA;AACA,KAfA;AAgBA;AACA,IAAA,aAjBA,yBAiBA,GAjBA,EAiBA,IAjBA,EAiBA,QAjBA,EAiBA;AAAA;;AACA,UAAA,GAAA,CAAA,IAAA,KAAA,CAAA,EAAA;AACA,eAAA,KAAA,QAAA,CAAA,KAAA,CAAA,GAAA,CAAA,GAAA,CAAA;AACA;;AACA,WAAA,QAAA,CAAA;AACA,QAAA,OAAA,EAAA,KAAA,EAAA,CAAA,gBAAA,CADA;AAEA,QAAA,IAAA,EAAA,SAFA;AAGA,QAAA,QAAA,EAAA,GAHA;AAIA,QAAA,OAAA,EAAA,mBAAA;AACA,UAAA,KAAA,CAAA,OAAA,GAAA,KAAA;AACA;AANA,OAAA;AAQA;AA7BA;AAXA,CAAA","sourcesContent":["<template>\n\t<el-dialog :visible.sync=\"visible\" :title=\"$t('oss.upload')\" :close-on-click-modal=\"false\" :close-on-press-escape=\"false\"\n\t :append-to-body=true>\n\t\t<el-upload name=\"file\" :action=\"url\" :file-list=\"fileList\" drag multiple :before-upload=\"beforeUploadHandle\"\n\t\t :on-success=\"successHandle\" class=\"text-center\" :headers=\"headers\">\n\t\t\t<i class=\"el-icon-upload\"></i>\n\t\t\t<div class=\"el-upload__text\" v-html
|