|
@@ -46,7 +46,7 @@ export default {
|
|
});
|
|
});
|
|
this.$store.commit("setGlobal", list);
|
|
this.$store.commit("setGlobal", list);
|
|
if (list.servicing === 1) {
|
|
if (list.servicing === 1) {
|
|
- this.$router.push("servicing");
|
|
|
|
|
|
+ this.$router.replace("servicing");
|
|
}
|
|
}
|
|
if (list.js === 0) {
|
|
if (list.js === 0) {
|
|
this.createJs(list.point);
|
|
this.createJs(list.point);
|
|
@@ -63,7 +63,7 @@ export default {
|
|
}
|
|
}
|
|
if (res.data.onOffStatus !== 1) {
|
|
if (res.data.onOffStatus !== 1) {
|
|
if (res.data.channelStatus === 0) {
|
|
if (res.data.channelStatus === 0) {
|
|
- this.$router.push("servicing");
|
|
|
|
|
|
+ this.$router.replace("servicing");
|
|
return false;
|
|
return false;
|
|
} else {
|
|
} else {
|
|
if (this.$store.state.global.sensors === 0) {
|
|
if (this.$store.state.global.sensors === 0) {
|
|
@@ -80,7 +80,7 @@ export default {
|
|
}
|
|
}
|
|
} else {
|
|
} else {
|
|
if (res.data.channelStatus === 0) {
|
|
if (res.data.channelStatus === 0) {
|
|
- this.$router.push("servicing");
|
|
|
|
|
|
+ this.$router.replace("servicing");
|
|
return false;
|
|
return false;
|
|
} else {
|
|
} else {
|
|
if (this.$store.state.global.sensors === 0) {
|
|
if (this.$store.state.global.sensors === 0) {
|
|
@@ -93,7 +93,7 @@ export default {
|
|
|
|
|
|
}
|
|
}
|
|
} else {
|
|
} else {
|
|
- this.$router.push("servicing");
|
|
|
|
|
|
+ this.$router.replace("servicing");
|
|
}
|
|
}
|
|
});
|
|
});
|
|
},
|
|
},
|
|
@@ -118,7 +118,7 @@ export default {
|
|
|
|
|
|
this.$store.commit("setGlobal", list);
|
|
this.$store.commit("setGlobal", list);
|
|
if (list.servicing === 1) {
|
|
if (list.servicing === 1) {
|
|
- this.$router.push("servicing");
|
|
|
|
|
|
+ this.$router.replace("servicing");
|
|
}
|
|
}
|
|
if (list.js === 0) {
|
|
if (list.js === 0) {
|
|
this.createJs(list.point);
|
|
this.createJs(list.point);
|
|
@@ -126,7 +126,7 @@ export default {
|
|
}
|
|
}
|
|
if (res.data.onOffStatus !== 1) {
|
|
if (res.data.onOffStatus !== 1) {
|
|
if (res.data.channelStatus === 0) {
|
|
if (res.data.channelStatus === 0) {
|
|
- this.$router.push("servicing");
|
|
|
|
|
|
+ this.$router.replace("servicing");
|
|
return false;
|
|
return false;
|
|
} else {
|
|
} else {
|
|
if (this.$store.state.global.sensors === 0) {
|
|
if (this.$store.state.global.sensors === 0) {
|
|
@@ -143,7 +143,7 @@ export default {
|
|
}
|
|
}
|
|
} else {
|
|
} else {
|
|
if (res.data.channelStatus === 0) {
|
|
if (res.data.channelStatus === 0) {
|
|
- this.$router.push("servicing");
|
|
|
|
|
|
+ this.$router.replace("servicing");
|
|
return false;
|
|
return false;
|
|
} else {
|
|
} else {
|
|
if (this.$store.state.global.sensors === 0) {
|
|
if (this.$store.state.global.sensors === 0) {
|
|
@@ -455,4 +455,4 @@ export default {
|
|
};
|
|
};
|
|
</script>
|
|
</script>
|
|
<style lang="scss">
|
|
<style lang="scss">
|
|
-</style>
|
|
|
|
|
|
+</style>
|