From 30bc1b90567c6c63be755ed6b97c106622b79d07 Mon Sep 17 00:00:00 2001
From: zengh <123456>
Date: Wed, 08 Jun 2022 09:57:52 +0800
Subject: [PATCH] 新增逻辑修改
---
src/views/activitys/real.vue | 8 +++++---
src/views/activitys/real_xc.vue | 9 ++++++---
src/views/activitys/real_px.vue | 9 ++++++---
3 files changed, 17 insertions(+), 9 deletions(-)
diff --git a/src/views/activitys/real.vue b/src/views/activitys/real.vue
index a21726e..3dfb09a 100644
--- a/src/views/activitys/real.vue
+++ b/src/views/activitys/real.vue
@@ -899,9 +899,6 @@
});
},
beforeOpen(done, type) {
- this.form.timeList = [];
- this.form["timeList"][0]= this.form["time"];
- this.form["timeList"][1]= this.form["endtime"];
// console.log(type, "this.formthis.formthis.form");
// console.log(type);
// if (["edit", "view"].includes(type)) {
@@ -915,6 +912,11 @@
done();
return;
}
+
+ this.form.timeList = [];
+ this.form["timeList"][0]= this.form["time"];
+ this.form["timeList"][1]= this.form["endtime"];
+
if (this.form.line != "" && this.form != undefined) {
this.form["haveMap"] = "已绘制路径!";
} else {
diff --git a/src/views/activitys/real_px.vue b/src/views/activitys/real_px.vue
index 25da7a8..3a71123 100644
--- a/src/views/activitys/real_px.vue
+++ b/src/views/activitys/real_px.vue
@@ -925,9 +925,7 @@
});
},
beforeOpen(done, type) {
- this.form.timeList = [];
- this.form["timeList"][0]= this.form["time"];
- this.form["timeList"][1]= this.form["endtime"];
+
// console.log(type, "this.formthis.formthis.form");
// console.log(type);
// if (["edit", "view"].includes(type)) {
@@ -941,6 +939,11 @@
done();
return;
}
+
+ this.form.timeList = [];
+ this.form["timeList"][0]= this.form["time"];
+ this.form["timeList"][1]= this.form["endtime"];
+
if (this.form.line != "" && this.form != undefined) {
this.form["haveMap"] = "已绘制路径!";
} else {
diff --git a/src/views/activitys/real_xc.vue b/src/views/activitys/real_xc.vue
index 6ef4e8d..de61221 100644
--- a/src/views/activitys/real_xc.vue
+++ b/src/views/activitys/real_xc.vue
@@ -899,9 +899,7 @@
});
},
beforeOpen(done, type) {
- this.form.timeList = [];
- this.form["timeList"][0]= this.form["time"];
- this.form["timeList"][1]= this.form["endtime"];
+
// console.log(type, "this.formthis.formthis.form");
// console.log(type);
// if (["edit", "view"].includes(type)) {
@@ -915,6 +913,11 @@
done();
return;
}
+
+ this.form.timeList = [];
+ this.form["timeList"][0]= this.form["time"];
+ this.form["timeList"][1]= this.form["endtime"];
+
if (this.form.line != "" && this.form != undefined) {
this.form["haveMap"] = "已绘制路径!";
} else {
--
Gitblit v1.9.3