Files
tekelanew_acs/acs/nladmin-ui/node_modules/.cache/babel-loader/531e0acc9aa010f08afa67e87bf05860.json
2024-12-05 09:33:18 +08:00

1 line
3.9 KiB
JSON
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{"remainingRequest":"D:\\data\\hanguodoushan\\acs2\\nladmin-ui\\node_modules\\babel-loader\\lib\\index.js!D:\\data\\hanguodoushan\\acs2\\nladmin-ui\\node_modules\\cache-loader\\dist\\cjs.js??ref--0-0!D:\\data\\hanguodoushan\\acs2\\nladmin-ui\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\data\\hanguodoushan\\acs2\\nladmin-ui\\src\\views\\acs\\device\\UploadDialog.vue?vue&type=script&lang=js","dependencies":[{"path":"D:\\data\\hanguodoushan\\acs2\\nladmin-ui\\src\\views\\acs\\device\\UploadDialog.vue","mtime":1732871026560},{"path":"D:\\data\\hanguodoushan\\acs2\\nladmin-ui\\babel.config.js","mtime":1732871025888},{"path":"D:\\data\\hanguodoushan\\acs2\\nladmin-ui\\node_modules\\cache-loader\\dist\\cjs.js","mtime":1732872824662},{"path":"D:\\data\\hanguodoushan\\acs2\\nladmin-ui\\node_modules\\babel-loader\\lib\\index.js","mtime":1732872825017},{"path":"D:\\data\\hanguodoushan\\acs2\\nladmin-ui\\node_modules\\cache-loader\\dist\\cjs.js","mtime":1732872824662},{"path":"D:\\data\\hanguodoushan\\acs2\\nladmin-ui\\node_modules\\vue-loader\\lib\\index.js","mtime":1732872825835}],"contextDependencies":[],"result":["\"use strict\";\n\nvar _interopRequireWildcard = require(\"D:/data/hanguodoushan/acs2/nladmin-ui/node_modules/@babel/runtime/helpers/interopRequireWildcard.js\");\nvar _interopRequireDefault = require(\"D:/data/hanguodoushan/acs2/nladmin-ui/node_modules/@babel/runtime/helpers/interopRequireDefault.js\");\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\nrequire(\"core-js/modules/es6.function.name\");\nvar _device = _interopRequireDefault(require(\"@/api/acs/device/device\"));\nvar _crud = _interopRequireWildcard(require(\"@crud/crud\"));\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//\nvar _default = exports.default = {\n name: 'UploadDialog',\n mixins: [(0, _crud.crud)()],\n components: {},\n props: {\n dialogShow: {\n type: Boolean,\n default: false\n },\n openParam: {\n type: String\n }\n },\n data: function data() {\n return {\n dialogVisible: false,\n fileList: [],\n file1: ''\n };\n },\n watch: {\n dialogShow: {\n handler: function handler(newValue, oldValue) {\n this.dialogVisible = newValue;\n }\n },\n openParam: {\n handler: function handler(newValue, oldValue) {\n this.opendtlParam = newValue;\n }\n }\n },\n methods: {\n open: function open() {},\n close: function close() {\n this.$emit('update:dialogShow', false);\n },\n is_one: function is_one() {\n this.crud.notify('只能上传一个excel文件', _crud.default.NOTIFICATION_TYPE.WARNING);\n },\n // 文件校验方法\n beforeAvatarUpload: function beforeAvatarUpload(file) {\n // 不能导入大小超过2Mb的文件\n if (file.size > 10 * 1024 * 1024) {\n return false;\n }\n return true;\n },\n // 文件发生改变就会触发的事件\n uploadByJsqd: function uploadByJsqd(file) {\n this.file1 = file;\n },\n submit: function submit() {\n var _this = this;\n if (this.beforeAvatarUpload(this.file1)) {\n this.fileList.name = this.file1.name;\n this.fileList.url = '';\n var formdata = new FormData();\n formdata.append('file', this.file1.raw);\n // excelImport请求接口 formdata传递参数\n _device.default.excelImport(formdata).then(function (res) {\n _this.crud.notify('导入成功', _crud.default.NOTIFICATION_TYPE.SUCCESS);\n _this.$emit('tableChanged3', '');\n _this.$emit('update:dialogShow', false);\n });\n } else {\n this.crud.notify('文件过大请上传小于10MB的文件〜', _crud.default.NOTIFICATION_TYPE.WARNING);\n }\n }\n }\n};",null]}