Commit 830be8f2 by 吴娟华

'1.2.10'

1 parent 51c474fe
...@@ -729,6 +729,7 @@ export default { ...@@ -729,6 +729,7 @@ export default {
freqLoading: false, freqLoading: false,
isViewMode: false, isViewMode: false,
importing: false,
}; };
}, },
watch: { watch: {
...@@ -1112,8 +1113,10 @@ export default { ...@@ -1112,8 +1113,10 @@ export default {
break; break;
case "import": case "import":
console.log(this.importForm.file); console.log(this.importForm.file);
if(this.importing) return
var data = new FormData(); var data = new FormData();
data.append("file", this.importForm.file); data.append("file", this.importForm.file);
this.importing = true
axios({ axios({
headers: { headers: {
"Content-Type": "multipart/form-data", "Content-Type": "multipart/form-data",
...@@ -1124,6 +1127,7 @@ export default { ...@@ -1124,6 +1127,7 @@ export default {
data, data,
}).then((res) => { }).then((res) => {
console.log(res); console.log(res);
this.importing = false
if (res.data.code == 200) { if (res.data.code == 200) {
this.exportData = res.data.data; this.exportData = res.data.data;
} else { } else {
...@@ -1493,7 +1497,8 @@ export default { ...@@ -1493,7 +1497,8 @@ export default {
//let routeData = this.$router.resolve({ path: '../oEshield#/monitor/monitor', query: { snArr: JSON.stringify([snO])}}); //let routeData = this.$router.resolve({ path: '../oEshield#/monitor/monitor', query: { snArr: JSON.stringify([snO])}});
// window.open(routeData.href, '_blank'); // window.open(routeData.href, '_blank');
location.href = '../oEshield#/monitor/monitor?vin='+this.vehicleForm.vin //location.href = '/trialRun#/vehicleSubmit'//'/oEshield#/monitor/monitor?vin='+this.vehicleForm.vin
history.pushState(null, 'name', '/oEshield#/monitor/monitor?vin='+this.vehicleForm.vin)
} }
}, },
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!