forked from zhurui/management
1 line
4.2 KiB
JSON
1 line
4.2 KiB
JSON
{"remainingRequest":"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\\activiti\\process-deploy.vue?vue&type=script&lang=js&","dependencies":[{"path":"C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\src\\views\\modules\\activiti\\process-deploy.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":["//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\nimport Cookies from 'js-cookie'\nexport default {\n data () {\n return {\n visible: false,\n url: '',\n fileList: []\n }\n },\n methods: {\n init () {\n this.visible = true\n this.url = `${window.SITE_CONFIG['apiURL']}/activiti/process/deploy?access_token=${Cookies.get('access_token')}`\n this.fileList = []\n },\n // 上传之前\n beforeUploadHandle (file) {\n if (!/.+\\.zip$/.test(file.name) && !/.+\\.xml$/.test(file.name) && !/.+\\.bar$/.test(file.name) && !/.+\\.bpmn$/.test(file.name)) {\n this.$message.error(this.$t('upload.tip', { 'format': 'zip、xml、bar、bpmn' }))\n return false\n }\n },\n // 上传成功\n successHandle (res, file, fileList) {\n if (res.code !== 0) {\n return this.$message.error(res.msg)\n }\n this.$message({\n message: this.$t('prompt.success'),\n type: 'success',\n duration: 500,\n onClose: () => {\n this.visible = false\n this.$emit('refreshDataList')\n }\n })\n }\n }\n}\n",{"version":3,"sources":["process-deploy.vue"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAkBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA","file":"process-deploy.vue","sourceRoot":"src/views/modules/activiti","sourcesContent":["<template>\n <el-dialog :visible.sync=\"visible\" :title=\"$t('process.deployFile')\" :close-on-click-modal=\"false\" :close-on-press-escape=\"false\">\n <el-upload\n name=\"processFile\"\n :action=\"url\"\n :file-list=\"fileList\"\n drag\n :before-upload=\"beforeUploadHandle\"\n :on-success=\"successHandle\"\n class=\"text-center\">\n <i class=\"el-icon-upload\"></i>\n <div class=\"el-upload__text\" v-html=\"$t('upload.text')\"></div>\n <div class=\"el-upload__tip\" slot=\"tip\">{{ $t('upload.tip', { 'format': 'zip、xml、bar、bpmn' }) }}</div>\n </el-upload>\n </el-dialog>\n</template>\n\n<script>\nimport Cookies from 'js-cookie'\nexport default {\n data () {\n return {\n visible: false,\n url: '',\n fileList: []\n }\n },\n methods: {\n init () {\n this.visible = true\n this.url = `${window.SITE_CONFIG['apiURL']}/activiti/process/deploy?access_token=${Cookies.get('access_token')}`\n this.fileList = []\n },\n // 上传之前\n beforeUploadHandle (file) {\n if (!/.+\\.zip$/.test(file.name) && !/.+\\.xml$/.test(file.name) && !/.+\\.bar$/.test(file.name) && !/.+\\.bpmn$/.test(file.name)) {\n this.$message.error(this.$t('upload.tip', { 'format': 'zip、xml、bar、bpmn' }))\n return false\n }\n },\n // 上传成功\n successHandle (res, file, fileList) {\n if (res.code !== 0) {\n return this.$message.error(res.msg)\n }\n this.$message({\n message: this.$t('prompt.success'),\n type: 'success',\n duration: 500,\n onClose: () => {\n this.visible = false\n this.$emit('refreshDataList')\n }\n })\n }\n }\n}\n</script>\n"]}]} |