{"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\\ImgPreviewUploadAccessor.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\yhxt-web\\src\\components\\common\\ImgPreviewUploadAccessor.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":["import \"core-js/modules/es6.array.find-index\";\nimport \"core-js/modules/es6.function.name\";\nimport \"core-js/modules/web.dom.iterable\";\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//\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 dadToSon: {\n type: Object\n }\n },\n data: function data() {\n return {\n updata: {\n sourceId: this.dadToSon.sourceId\n },\n dialogImageUrl: '',\n updialogVisible: false,\n fileList: this.dadToSon.fileList,\n imgUrl: this.url,\n loading: false // disabled: false, //按钮禁用控制\n\n };\n },\n created: function created() {},\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/minioWorkOrderUpload';\n }\n }),\n methods: {\n uploadBeforeFile: function uploadBeforeFile(file) {\n this.loading = true;\n },\n onProgress: function onProgress(event, file, fileList) {\n console.log(fileList, 'dddddddd');\n },\n error: function error() {\n this.loading = false;\n },\n success: function success(response, file, fileList) {\n console.log(file, fileList);\n this.loading = false; // console.log(response, file, fileList, 'ddddddddd')\n\n this.$message({\n type: response ? 'success' : 'warning',\n message: response ? '上传成功' : '上传失败'\n });\n var imgList = [];\n fileList.forEach(function (item) {\n if (!item.id) {\n if (item.response) {\n imgList.push({\n name: item.name,\n size: item.size,\n url: item.response,\n type: item.raw.type,\n uid: item.uid\n });\n }\n } else {\n imgList.push(item);\n }\n });\n this.fileList = fileList;\n this.$emit('sonToDad', imgList);\n },\n //删除事件\n handleRemove: function handleRemove(file) {\n var INdex = this.fileList.findIndex(function (item) {\n return item.uid == file.uid;\n });\n this.fileList.splice(INdex, 1);\n var imgList = [];\n this.fileList.forEach(function (item) {\n if (!item.id) {\n if (item.response) {\n imgList.push({\n name: item.name,\n size: item.size,\n url: item.response,\n type: item.raw.type,\n uid: item.uid\n });\n }\n } else {\n imgList.push(item);\n }\n });\n this.$emit('sonToDad', imgList);\n\n if (file.id) {\n basicData.deleteEnclosureManagement(file.id).then(function (res) {});\n }\n },\n handlePictureCardPreview: function handlePictureCardPreview(file) {\n this.dialogImageUrl = file.url;\n this.updialogVisible = true;\n },\n handleDownload: function handleDownload(file) {\n // console.log(file)\n if (file.id) {\n window.open(file.url);\n } else {\n this.$message.info('请先保存附件');\n } // this.$emit('downFile',file)\n\n }\n }\n};",null]}