|
|
@@ -95,16 +95,18 @@ export default {
|
|
|
},
|
|
|
created() {
|
|
|
this.urlParameter = this.$route.query;
|
|
|
- this.chainId = this.$route.query.chainId + '';
|
|
|
- this.visitId = this.$route.query.visitId;
|
|
|
+ this.chainId = this.$route.query.chainId || '';
|
|
|
+ this.visitId = localStorage.getItem('visitId') || this.$route.query.visitId;
|
|
|
this.chainCode = this.$route.query.chainCode;
|
|
|
- this.rdId = this.$route.query.rdId + '';
|
|
|
- this.lat = this.$route.query.lat + '';
|
|
|
- this.lon = this.$route.query.lon + '';
|
|
|
- this.visitModel = this.$route.query.visitModel + '';
|
|
|
+ this.rdId = this.$route.query.rdId || '';
|
|
|
+ this.lat = this.$route.query.lat || '';
|
|
|
+ this.lon = this.$route.query.lon || '';
|
|
|
+ this.visitModel = this.$route.query.visitModel || '';
|
|
|
this.imgs = [];
|
|
|
this.remark = '';
|
|
|
this.abnormalReason = '';
|
|
|
+ },
|
|
|
+ mounted() {
|
|
|
this.addVisits();
|
|
|
this.getPhotoTypeList();
|
|
|
},
|