|
@@ -213,22 +213,23 @@ export default {
|
|
|
restartProcessButtion: false,
|
|
restartProcessButtion: false,
|
|
|
wuliaoTable: false,
|
|
wuliaoTable: false,
|
|
|
wuliaoList: [],
|
|
wuliaoList: [],
|
|
|
|
|
+ urlParameter: {},
|
|
|
};
|
|
};
|
|
|
},
|
|
},
|
|
|
created() {
|
|
created() {
|
|
|
- this.urlParameter = this.$route.query;
|
|
|
|
|
- this.storeId = this.$route.query.storeId + '';
|
|
|
|
|
- this.visitId = this.$route.query.visitId;
|
|
|
|
|
- this.rdId = this.$route.query.rdId + '';
|
|
|
|
|
- this.addressLine = this.$route.query.addressLine + '';
|
|
|
|
|
- this.storeCategory = this.$route.query.storeCategory + '';
|
|
|
|
|
- this.storeName = this.$route.query.storeName + '';
|
|
|
|
|
- this.contactName = this.$route.query.contactName + '';
|
|
|
|
|
- this.visitModel = this.$route.query.visitModel + '';
|
|
|
|
|
- this.lat = this.$route.query.lat + '';
|
|
|
|
|
- this.lon = this.$route.query.lon + '';
|
|
|
|
|
- sessionStorage.setItem('visitModel', '1');
|
|
|
|
|
- this.uType = localStorage.getItem('uType');
|
|
|
|
|
|
|
+ // this.urlParameter = this.$route.query;
|
|
|
|
|
+ // this.storeId = this.$route.query.storeId + '';
|
|
|
|
|
+ // this.visitId = this.$route.query.visitId;
|
|
|
|
|
+ // this.rdId = this.$route.query.rdId + '';
|
|
|
|
|
+ // this.addressLine = this.$route.query.addressLine + '';
|
|
|
|
|
+ // this.storeCategory = this.$route.query.storeCategory + '';
|
|
|
|
|
+ // this.storeName = this.$route.query.storeName + '';
|
|
|
|
|
+ // this.contactName = this.$route.query.contactName + '';
|
|
|
|
|
+ // this.visitModel = this.$route.query.visitModel + '';
|
|
|
|
|
+ // this.lat = this.$route.query.lat + '';
|
|
|
|
|
+ // this.lon = this.$route.query.lon + '';
|
|
|
|
|
+ // sessionStorage.setItem('visitModel', '1');
|
|
|
|
|
+ // this.uType = localStorage.getItem('uType');
|
|
|
},
|
|
},
|
|
|
beforeRouteLeave(to, from, next) {
|
|
beforeRouteLeave(to, from, next) {
|
|
|
if (to.path == '/deviceWithin/index' && from.path == '/storeVisitpage') {
|
|
if (to.path == '/deviceWithin/index' && from.path == '/storeVisitpage') {
|
|
@@ -239,6 +240,9 @@ export default {
|
|
|
next();
|
|
next();
|
|
|
},
|
|
},
|
|
|
activated() {
|
|
activated() {
|
|
|
|
|
+ // 是否请求任务列表接口
|
|
|
|
|
+ let getRequestFlage = localStorage.getItem('getRequestFlage');
|
|
|
|
|
+ if (getRequestFlage != 'true') return;
|
|
|
this.urlParameter = this.$route.query;
|
|
this.urlParameter = this.$route.query;
|
|
|
this.storeId = this.$route.query.storeId + '';
|
|
this.storeId = this.$route.query.storeId + '';
|
|
|
this.visitId = this.$route.query.visitId;
|
|
this.visitId = this.$route.query.visitId;
|
|
@@ -252,9 +256,6 @@ export default {
|
|
|
this.lon = this.$route.query.lon + '';
|
|
this.lon = this.$route.query.lon + '';
|
|
|
// this.list = [];
|
|
// this.list = [];
|
|
|
this.uType = localStorage.getItem('uType');
|
|
this.uType = localStorage.getItem('uType');
|
|
|
- // 是否请求任务列表接口
|
|
|
|
|
- let getRequestFlage = localStorage.getItem('getRequestFlage');
|
|
|
|
|
- if (getRequestFlage != 'true') return;
|
|
|
|
|
this.list = [];
|
|
this.list = [];
|
|
|
if (this.$route.query.type != 'edit') {
|
|
if (this.$route.query.type != 'edit') {
|
|
|
this.timeShow = true;
|
|
this.timeShow = true;
|