|
@@ -78,7 +78,9 @@
|
|
|
}"
|
|
|
:class="item.status"
|
|
|
@mouseover="bmMapItemSelect(key)"
|
|
|
+ @mouseleave="bmMapItemOut(key)"
|
|
|
>
|
|
|
+
|
|
|
<Transition v-if="item.selected">
|
|
|
<template>
|
|
|
<div
|
|
@@ -885,6 +887,7 @@ export default {
|
|
|
window.handleClickImg = this.handleClickImg;
|
|
|
let that = this;
|
|
|
window.bmMapItemSelect = this.bmMapItemSelect.bind(this);
|
|
|
+ window.bmMapItemOut = this.bmMapItemOut.bind(this);
|
|
|
window.bmMapItemUnSelect = this.bmMapItemUnSelect.bind(this);
|
|
|
window.handleClickIssue = this.handleClickIssue.bind(this);
|
|
|
window.selectBench = this.selectBench.bind(this);
|
|
@@ -895,6 +898,11 @@ export default {
|
|
|
});
|
|
|
|
|
|
window.bmMapItemActivate = this.bmMapItemActivate;
|
|
|
+
|
|
|
+ this.$store.dispatch("benchList/fetchBenchList").then(()=>{
|
|
|
+ this.getImageName();
|
|
|
+ });
|
|
|
+
|
|
|
// 调用定时器方法,返回定时器id,用于按条件清空
|
|
|
that.timerId = that.myInterval((count) => {
|
|
|
// console.log(count)
|
|
@@ -1069,6 +1077,29 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
|
+ getImageName() {
|
|
|
+ var sqlstr = "SELECT * FROM dat_bench_extend order by bench_id asc";
|
|
|
+ let msg = {
|
|
|
+ cmd: "query", // server端要进行判断的
|
|
|
+ data: {
|
|
|
+ name: "name", // 这个无所谓怎么写,有就行
|
|
|
+ sql: sqlstr,
|
|
|
+ },
|
|
|
+ };
|
|
|
+ window.vm.$socket.emit("REPT", msg, (datas) => {
|
|
|
+ let result = datas.data;
|
|
|
+ for (var item of result) {
|
|
|
+ console.log("hhhh",item)
|
|
|
+
|
|
|
+ var currentBench = this.benchList.find((a) => a.id == item.bench_id);
|
|
|
+ if (currentBench) {
|
|
|
+ currentBench.image = require("../../assets/bench_img/"+item.bench_img);
|
|
|
+ }
|
|
|
+ this.tabs[0].list = this.benchList;
|
|
|
+
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
changeCurrentBench(benchId) {
|
|
|
this.isDetailVisible = false;
|
|
|
if (this.isOpen3d) {
|
|
@@ -2339,6 +2370,7 @@ export default {
|
|
|
this.platform = null;
|
|
|
this.benchList.forEach((b) => (b.selected = false));
|
|
|
this.benchList[key].selected = !this.benchList[key].selected;
|
|
|
+ console.log('划入。。。'+key+this.benchList[key].selected);
|
|
|
if (this.benchList[key].selected) {
|
|
|
this.currentBench = this.benchList[key];
|
|
|
this.selectedBenchList.push(this.benchList[key]);
|
|
@@ -2367,7 +2399,15 @@ export default {
|
|
|
self.initBmInfoNsChart();
|
|
|
});
|
|
|
}
|
|
|
+ this.$forceUpdate();
|
|
|
},
|
|
|
+ bmMapItemOut(key){
|
|
|
+ // this.$set(this.benchList[key], "selected", false);
|
|
|
+
|
|
|
+ this.benchList[key].selected = false;
|
|
|
+ console.log('划出。。。'+key+this.benchList[key].selected);
|
|
|
+ this.$forceUpdate();
|
|
|
+ },
|
|
|
clickBenchList() {
|
|
|
// window.location.href = "/squarePage?m=8b934420_ZJUb_b6f9";
|
|
|
this.$store.dispatch("common/setSquareStatus", true);
|