|
@@ -4,6 +4,7 @@
|
|
<div class="iconBtn backBtn" @click="goBack" v-if="goBackVisible"></div>
|
|
<div class="iconBtn backBtn" @click="goBack" v-if="goBackVisible"></div>
|
|
<div class="iconBtn mapBtn" @click="modeChange"></div>
|
|
<div class="iconBtn mapBtn" @click="modeChange"></div>
|
|
<div class="iconBtn homeBtn" @click="goHome"></div>
|
|
<div class="iconBtn homeBtn" @click="goHome"></div>
|
|
|
|
+ <div class="iconBtn squareBtn" @click="goSquare"></div>
|
|
</div>
|
|
</div>
|
|
<input
|
|
<input
|
|
placeholder="Search Bench"
|
|
placeholder="Search Bench"
|
|
@@ -23,6 +24,7 @@
|
|
</template>
|
|
</template>
|
|
|
|
|
|
<script>
|
|
<script>
|
|
|
|
+import bus from "../../service/bus";
|
|
export default {
|
|
export default {
|
|
props: {},
|
|
props: {},
|
|
data() {
|
|
data() {
|
|
@@ -89,13 +91,17 @@ export default {
|
|
window.open("http://139.196.158.57/#/Overview", "_blank");
|
|
window.open("http://139.196.158.57/#/Overview", "_blank");
|
|
},
|
|
},
|
|
goHome() {
|
|
goHome() {
|
|
- this.$router.push({
|
|
|
|
- path: '/',
|
|
|
|
- query:{
|
|
|
|
- m: '8b934420_ZJUb_b6f9'
|
|
|
|
- }
|
|
|
|
- })
|
|
|
|
|
|
+ bus.emit("goHome");
|
|
|
|
+ // this.$router.push({
|
|
|
|
+ // path: '/',
|
|
|
|
+ // query:{
|
|
|
|
+ // m: '8b934420_ZJUb_b6f9'
|
|
|
|
+ // }
|
|
|
|
+ // })
|
|
},
|
|
},
|
|
|
|
+ goSquare(){
|
|
|
|
+ this.$store.dispatch("common/setSquareStatus", true);
|
|
|
|
+ }
|
|
},
|
|
},
|
|
};
|
|
};
|
|
</script>
|
|
</script>
|
|
@@ -181,6 +187,12 @@ export default {
|
|
background-image: url(../../assets/home.png);
|
|
background-image: url(../../assets/home.png);
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+.squareBtn{
|
|
|
|
+ height: 23px;
|
|
|
|
+ width: 23px;
|
|
|
|
+ background-image: url(../../assets/square.png);
|
|
|
|
+}
|
|
|
|
+
|
|
.jumpBtn {
|
|
.jumpBtn {
|
|
margin: 0 6px;
|
|
margin: 0 6px;
|
|
width: 30px;
|
|
width: 30px;
|