TransFlow/node_modules/.cache/vue-loader/27a0625b3fe78d47567bfdb6d9b...

1 line
3.8 KiB
JSON

{"remainingRequest":"E:\\视频边缘计算管理平台\\TransFlow\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!E:\\视频边缘计算管理平台\\TransFlow\\src\\views\\SystemSettings\\ImportSettings.vue?vue&type=script&lang=js&","dependencies":[{"path":"E:\\视频边缘计算管理平台\\TransFlow\\src\\views\\SystemSettings\\ImportSettings.vue","mtime":1672209720437},{"path":"E:\\视频边缘计算管理平台\\TransFlow\\node_modules\\cache-loader\\dist\\cjs.js","mtime":1672206975777},{"path":"E:\\视频边缘计算管理平台\\TransFlow\\node_modules\\babel-loader\\lib\\index.js","mtime":1672206975618},{"path":"E:\\视频边缘计算管理平台\\TransFlow\\node_modules\\cache-loader\\dist\\cjs.js","mtime":1672206975777},{"path":"E:\\视频边缘计算管理平台\\TransFlow\\node_modules\\vue-loader\\lib\\index.js","mtime":1672206979279}],"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\r\nexport default {\r\n data() {\r\n return {\r\n fileList: [],\r\n }\r\n },\r\n methods: {\r\n submitUpload() {\r\n this.$refs.upload.submit();\r\n console.log(this.$refs.upload, '上传');\r\n },\r\n // 成功\r\n fileSuccess(response, file, fileList) {\r\n console.log(response, file, fileList, '成功');\r\n },\r\n // 失败\r\n fileError(err, file, fileList){\r\n console.log(err, file, fileList, '失败');\r\n },\r\n // 上传中\r\n fileProgress(event, file, fileList){\r\n console.log(event, file, fileList, '上传中');\r\n }\r\n }\r\n}\r\n",{"version":3,"sources":["ImportSettings.vue"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAyBA;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":"ImportSettings.vue","sourceRoot":"src/views/SystemSettings","sourcesContent":["<template>\r\n <div class=\"content-box\">\r\n <div class=\"container\">\r\n <p class=\"title\">导入设置</p>\r\n <!-- <div class=\"test-div\">\r\n <i class=\"el-icon-edit\"></i>\r\n <i class=\"el-icon-share\"></i>\r\n <i class=\"el-icon-delete\"></i>\r\n </div> -->\r\n\r\n <el-upload class=\"upload-demo\" ref=\"upload\" action=\"https://jsonplaceholder.typicode.com/posts/\"\r\n :file-list=\"fileList\" :auto-upload=\"false\" @on-success=\"fileSuccess\" @on-error=\"fileError\" @on-progress=\"fileProgress\">\r\n <el-button slot=\"trigger\" size=\"small\" type=\"primary\">选取文件</el-button>\r\n <el-button style=\"margin-left: 10px;\" size=\"small\" type=\"success\" @click=\"submitUpload\">导入</el-button>\r\n </el-upload>\r\n\r\n <div class=\"warning\">\r\n <i class=\"el-icon-warning\" style=\"color: #409EFF; margin: 0 3px 0 10px;\"></i>范围1-8、默认6\r\n 将一个保存好的系统设置文件导入本系统。导入后将覆盖现有的所有分析和用户设置,并重启系统,未保存的数据可能会丢失,请谨慎使用.\r\n </div>\r\n </div>\r\n </div>\r\n</template>\r\n\r\n<script>\r\nexport default {\r\n data() {\r\n return {\r\n fileList: [],\r\n }\r\n },\r\n methods: {\r\n submitUpload() {\r\n this.$refs.upload.submit();\r\n console.log(this.$refs.upload, '上传');\r\n },\r\n // 成功\r\n fileSuccess(response, file, fileList) {\r\n console.log(response, file, fileList, '成功');\r\n },\r\n // 失败\r\n fileError(err, file, fileList){\r\n console.log(err, file, fileList, '失败');\r\n },\r\n // 上传中\r\n fileProgress(event, file, fileList){\r\n console.log(event, file, fileList, '上传中');\r\n }\r\n }\r\n}\r\n</script>\r\n\r\n<style>\r\n.test-div i {\r\n font-size: 25px;\r\n}\r\n\r\n.warning {\r\n margin-top: 10px;\r\n width: 35%;\r\n}\r\n</style>"]}]}