{"remainingRequest":"/data/jenkins/workspace/test-v5in-source-front-01/src/badp-bcxin-5.x/obpm-designer-web/node_modules/thread-loader/dist/cjs.js!/data/jenkins/workspace/test-v5in-source-front-01/src/badp-bcxin-5.x/obpm-designer-web/node_modules/babel-loader/lib/index.js!/data/jenkins/workspace/test-v5in-source-front-01/src/badp-bcxin-5.x/obpm-designer-web/node_modules/cache-loader/dist/cjs.js??ref--0-0!/data/jenkins/workspace/test-v5in-source-front-01/src/badp-bcxin-5.x/obpm-designer-web/node_modules/vue-loader/lib/index.js??vue-loader-options!/data/jenkins/workspace/test-v5in-source-front-01/src/badp-bcxin-5.x/obpm-designer-web/src/components/Common/fileUpload.vue?vue&type=script&lang=js&","dependencies":[{"path":"/data/jenkins/workspace/test-v5in-source-front-01/src/badp-bcxin-5.x/obpm-designer-web/src/components/Common/fileUpload.vue","mtime":1701674859498},{"path":"/data/jenkins/workspace/test-v5in-source-front-01/src/badp-bcxin-5.x/obpm-designer-web/node_modules/cache-loader/dist/cjs.js","mtime":1701674874584},{"path":"/data/jenkins/workspace/test-v5in-source-front-01/src/badp-bcxin-5.x/obpm-designer-web/node_modules/thread-loader/dist/cjs.js","mtime":1701674873947},{"path":"/data/jenkins/workspace/test-v5in-source-front-01/src/badp-bcxin-5.x/obpm-designer-web/node_modules/babel-loader/lib/index.js","mtime":1701674874357},{"path":"/data/jenkins/workspace/test-v5in-source-front-01/src/badp-bcxin-5.x/obpm-designer-web/node_modules/cache-loader/dist/cjs.js","mtime":1701674874584},{"path":"/data/jenkins/workspace/test-v5in-source-front-01/src/badp-bcxin-5.x/obpm-designer-web/node_modules/vue-loader/lib/index.js","mtime":1701674874903}],"contextDependencies":[],"result":["import _toConsumableArray from \"/data/jenkins/workspace/test-v5in-source-front-01/src/badp-bcxin-5.x/obpm-designer-web/node_modules/@babel/runtime-corejs2/helpers/esm/toConsumableArray\";\nimport \"core-js/modules/web.dom.iterable\";\nimport \"core-js/modules/es6.function.name\";\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 { getLogoUrl } from \"@/service/CommontoolsAPI.js\";\nexport default {\n data: function data() {\n return {\n icons: [],\n fileData: [],\n data: {\n path: '/uploads/lib/icon/upload',\n filePath: ''\n },\n loading: false,\n limitNum: 1\n };\n },\n created: function created() {\n this.fileData = [];\n var year = new Date().getFullYear();\n this.data.filePath = '/uploads/' + year;\n },\n computed: {\n fileUploadVisible: {\n get: function get() {\n return this.visible;\n },\n set: function set(val) {\n this.$emit(\"update:visible\", val);\n }\n }\n },\n props: [\"visible\"],\n methods: {\n beforeUpload: function beforeUpload(file) {\n console.log(file);\n var testmsg = file.name.substring(file.name.lastIndexOf('.') + 1);\n var extension = testmsg === 'jpg' || testmsg === 'JPG' || testmsg === 'png' || testmsg === 'PNG' || testmsg === 'jpeg' || testmsg === 'JPEG' || testmsg === 'gif' || testmsg === 'GIF';\n\n if (!extension) {\n this.$message({\n message: this.$t('msg.just_jpg_png'),\n type: 'error'\n });\n return false;\n }\n\n return extension;\n },\n removeImage: function removeImage(file) {\n var delIcon = [];\n file.response.data.forEach(function (elm) {\n delIcon.push(elm.filePath);\n });\n this.$emit(\"del\", delIcon);\n },\n uploadImageSuccess: function uploadImageSuccess(res) {\n if (res.errcode == 0) {\n var preIconsUp = _toConsumableArray(this.fileData);\n\n this.fileData = [].concat(_toConsumableArray(preIconsUp), _toConsumableArray(res.data));\n } else {\n this.$message({\n showClose: true,\n message: res.errmsg,\n type: \"error\"\n });\n this.$refs.upload.clearFiles();\n }\n },\n uploadError: function uploadError(err) {\n this.$message({\n showClose: true,\n message: this.$t('msg.upload_err') + JSON.parse(err.message).message,\n type: 'error'\n });\n },\n onSaveImage: function onSaveImage() {\n this.fileUploadVisible = false;\n this.$emit(\"checkUpload\", this.fileData);\n },\n onIconBack: function onIconBack() {\n var delIcon = [];\n this.fileData.forEach(function (elm) {\n delIcon.push(elm.filePath);\n });\n if (delIcon.length > 0) this.$emit(\"del\", delIcon);\n this.fileUploadVisible = false;\n },\n getUrl: function getUrl() {\n return getLogoUrl(\"/api/designtime/applications/uploads?path=\" + this.data.path + \"&icon=true\");\n }\n }\n};",null]}