|
@@ -191,9 +191,12 @@
|
|
|
<el-col :span="3" class="btn-item">
|
|
|
<img @click="pressPtt" src="../../images/robot.png" />
|
|
|
</el-col>
|
|
|
- <el-col :span="3" class="btn-item">
|
|
|
+ <el-col :span="3" class="btn-item" @click="clickBenchList">
|
|
|
<img @click="gotoGrid" src="../../images/grid.png" />
|
|
|
</el-col>
|
|
|
+ <el-col :span="3" class="btn-item">
|
|
|
+ <img @click="disconnectBench" src="../../images/disconnect.png" />
|
|
|
+ </el-col>
|
|
|
</el-row>
|
|
|
</div>
|
|
|
<div class="origin-right">
|
|
@@ -504,17 +507,6 @@ export default {
|
|
|
img: res.data.data,
|
|
|
});
|
|
|
self.getImgList(objRBL);
|
|
|
- //// let screen = screenType == 1 ? "upper" : "lower";
|
|
|
- //if (screenType == 1) {
|
|
|
- // self.benchImgUpper = "data:image/png;base64," + res.data.data;
|
|
|
- //} else {
|
|
|
- // self.benchImgLower = "data:image/png;base64," + res.data.data;
|
|
|
- //}
|
|
|
- // let screen = res.data.screen_type;
|
|
|
- //if (benchId == this.connetedBenchId) {
|
|
|
- // self.getBenchImage(benchId, screenType, func);
|
|
|
- // this.$store.dispatch('benchList/setBenchImgList', {benchId, img: res.data.data});
|
|
|
- //}
|
|
|
});
|
|
|
})
|
|
|
.catch((err) => {
|
|
@@ -793,7 +785,9 @@ export default {
|
|
|
});
|
|
|
if (screenType == "DUO") {
|
|
|
self.getBenchImage(String(benchId), 2, () => {
|
|
|
- this.benchDisplayLowerVisible = true;
|
|
|
+ if (this.connetedBenchId) {
|
|
|
+ this.benchDisplayLowerVisible = true;
|
|
|
+ }
|
|
|
});
|
|
|
} else {
|
|
|
this.benchDisplayLowerVisible = false;
|
|
@@ -1533,6 +1527,19 @@ export default {
|
|
|
});
|
|
|
}
|
|
|
},
|
|
|
+ clickBenchList() {
|
|
|
+ window.location.href = "/squarePage?m=8b934420_ZJUb_b6f9";
|
|
|
+ },
|
|
|
+ disconnectBench() {
|
|
|
+ ws.disconnectBench({ bench_id: String(this.connetedBenchId) }).then(
|
|
|
+ (res) => {
|
|
|
+ this.connetedBenchId = "";
|
|
|
+ this.currentBench = {};
|
|
|
+ this.benchDisplayVisible = false;
|
|
|
+ this.benchDisplayLowerVisible = false;
|
|
|
+ }
|
|
|
+ );
|
|
|
+ },
|
|
|
},
|
|
|
watch: {
|
|
|
benchDisplayVisible(newValue, oldValue) {
|