|
@@ -59,9 +59,9 @@
|
|
<script>
|
|
<script>
|
|
import householdTable from './stepPage/householdTable.vue';
|
|
import householdTable from './stepPage/householdTable.vue';
|
|
import vehicle from './vehicle.vue';
|
|
import vehicle from './vehicle.vue';
|
|
-import vehicleOutToIn from './vehicleOutToIn.vue'
|
|
|
|
|
|
+import vehicleOutToIn from './vehicleOutToIn.vue';
|
|
export default {
|
|
export default {
|
|
- components: { householdTable, vehicle,vehicleOutToIn },
|
|
|
|
|
|
+ components: { householdTable, vehicle, vehicleOutToIn },
|
|
name: 'ownerManagementDetails',
|
|
name: 'ownerManagementDetails',
|
|
data() {
|
|
data() {
|
|
let _this = this;
|
|
let _this = this;
|
|
@@ -286,15 +286,31 @@ export default {
|
|
this.tabsIndex = index;
|
|
this.tabsIndex = index;
|
|
},
|
|
},
|
|
close() {
|
|
close() {
|
|
- let activeRout = this.$route;
|
|
|
|
|
|
+ // let activeRout = this.$route;
|
|
|
|
+ // let tagsList = this.$store.getters['getTagsList'];
|
|
|
|
+ // tagsList.forEach((item, index) => {
|
|
|
|
+ // if (item.title == activeRout.meta.title || item.path == activeRout.path) {
|
|
|
|
+ // tagsList.splice(index, 1);
|
|
|
|
+ // history.go(-1);
|
|
|
|
+ // return true;
|
|
|
|
+ // }
|
|
|
|
+ // });
|
|
let tagsList = this.$store.getters['getTagsList'];
|
|
let tagsList = this.$store.getters['getTagsList'];
|
|
- tagsList.forEach((item, index) => {
|
|
|
|
- if (item.title == activeRout.meta.title || item.path == activeRout.path) {
|
|
|
|
- tagsList.splice(index, 1);
|
|
|
|
- history.go(-1);
|
|
|
|
- return true;
|
|
|
|
- }
|
|
|
|
- });
|
|
|
|
|
|
+ let activeRout = this.$route;
|
|
|
|
+ if (tagsList.length > 1) {
|
|
|
|
+ tagsList.forEach((item, index) => {
|
|
|
|
+ if (item.title == activeRout.meta.title || item.path == activeRout.path) {
|
|
|
|
+ tagsList.splice(index, 1);
|
|
|
|
+ this.$router.push({
|
|
|
|
+ path: tagsList[index - 1].path
|
|
|
|
+ });
|
|
|
|
+ }
|
|
|
|
+ });
|
|
|
|
+ } else {
|
|
|
|
+ this.$router.push({
|
|
|
|
+ path: '/'
|
|
|
|
+ });
|
|
|
|
+ }
|
|
},
|
|
},
|
|
getDetails() {
|
|
getDetails() {
|
|
this.$http
|
|
this.$http
|