{"remainingRequest":"D:\\jenkins\\workspace\\yhxt-web\\node_modules\\thread-loader\\dist\\cjs.js!D:\\jenkins\\workspace\\yhxt-web\\node_modules\\babel-loader\\lib\\index.js!D:\\jenkins\\workspace\\yhxt-web\\node_modules\\cache-loader\\dist\\cjs.js??ref--0-0!D:\\jenkins\\workspace\\yhxt-web\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\jenkins\\workspace\\yhxt-web\\src\\components\\common\\ImgPreviewUpload.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\yhxt-web\\src\\components\\common\\ImgPreviewUpload.vue","mtime":1667326393685},{"path":"D:\\jenkins\\workspace\\yhxt-web\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\yhxt-web\\node_modules\\thread-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\yhxt-web\\node_modules\\babel-loader\\lib\\index.js","mtime":315532800000},{"path":"D:\\jenkins\\workspace\\yhxt-web\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\yhxt-web\\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//\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 { mapState } from 'vuex';\nimport basicData from '@/api/basicData.js';\nimport req from '@/request.js';\nexport default {\n props: {\n accept: {\n type: String\n },\n disabled: {\n type: Boolean\n },\n url: {\n type: String,\n default: ''\n }\n },\n data: function data() {\n return {\n updata: {\n bizPath: 'car_photo'\n },\n dialogImageUrl: '',\n updialogVisible: false,\n fileList: this.fileList // imgUrl: this.url,\n // disabled: false, //按钮禁用控制\n\n };\n },\n // watch: {\n // url: function(newVal) {\n // this.imgUrl = newVal\n // }\n // },\n computed: mapState({\n deleteUrl: function deleteUrl() {\n return window.context.yhxt + '/bizMigrantBuildersInformation/v1/updateMigrantWorkersInformation';\n },\n headers: function headers(state) {\n return {\n Authorization: \"Bearer \".concat(state.login.currentUser.token)\n };\n },\n upload: function upload() {\n return window.context.portal + '/bizAccessory/v1/minioUpload';\n },\n imgUrl: function imgUrl() {\n return this.url;\n }\n }),\n methods: {\n handleExceed: function handleExceed(file, fileList) {\n if (file.length > this.limit) {\n this.$message.warning(\"\\u4E0A\\u4F20\\u4E2A\\u6570\\u8D85\\u8FC7\\u9650\\u5236\\u4E2A\\u6570\\uFF0C\\u6700\\u591A\\u4E0A\\u4F201\\u4E2A\\uFF01\\uFF01\\uFF01\");\n }\n },\n success: function success(response, file, fileList) {\n console.log(response, file, fileList);\n this.imgUrl = response.value.url;\n this.fileList = fileList;\n this.$emit('imageUrl', response.value.url);\n },\n //删除事件\n handleRemove: function handleRemove() {\n this.fileList = [];\n this.imgUrl = '';\n this.$emit('imageUrl', '');\n },\n handlePictureCardPreview: function handlePictureCardPreview() {\n this.dialogImageUrl = this.imgUrl;\n this.updialogVisible = true;\n },\n handleDownload: function handleDownload(file) {\n var _this = this;\n\n // console.log(file)\n if (file.id) {\n req.downloadGet(window.context.yhxt + \"/bizAccessory/v1/minIoAllDownFile?bizPath=car_photo&ids=\".concat(file.id)).then(function (res) {\n if (res) {\n _this.$message.success('下载成功');\n }\n });\n } else {\n this.$message.info('请先保存附件');\n } // this.$emit('downFile',file)\n\n }\n }\n};",null]}