|
@@ -812,7 +812,6 @@ export default {
|
|
|
return state.benchList.mouseoverbenchid
|
|
|
},
|
|
|
images: (state) => {
|
|
|
- console.log(state.benchList.benchImgList, "imageList");
|
|
|
return state.benchList.benchImgList;
|
|
|
},
|
|
|
isOpenSquare: (state) => {
|
|
@@ -828,7 +827,6 @@ export default {
|
|
|
return state.taskList.taskList;
|
|
|
},
|
|
|
planList: (state) => {
|
|
|
- console.log(state.planList.planList, "planList==============");
|
|
|
let planList = state.planList.planList.concat(
|
|
|
state.planList.autoPlanList
|
|
|
);
|
|
@@ -905,7 +903,6 @@ export default {
|
|
|
|
|
|
// 调用定时器方法,返回定时器id,用于按条件清空
|
|
|
that.timerId = that.myInterval((count) => {
|
|
|
- // console.log(count)
|
|
|
this.$store.dispatch("benchList/fetchBenchList");
|
|
|
if (!this.waterdotrefresh) {
|
|
|
this.waterdotrefresh = true;
|
|
@@ -913,7 +910,6 @@ export default {
|
|
|
}
|
|
|
this.refreshBenchStatus()
|
|
|
if (count > 30000) {
|
|
|
- console.log("end");
|
|
|
that.clearMyInterval(that.timerId);
|
|
|
}
|
|
|
}, 10000);
|
|
@@ -938,7 +934,6 @@ export default {
|
|
|
async mounted() {
|
|
|
that = this;
|
|
|
//this.getBenchList();
|
|
|
- console.log(this.benchList, "benchList");
|
|
|
this.tabs[0].list = this.benchList;
|
|
|
this.tabs[1].list = this.taskList;
|
|
|
this.tabs[2].list = this.issueList;
|
|
@@ -963,21 +958,17 @@ export default {
|
|
|
|
|
|
var objRBL = this.remoteBenchList;
|
|
|
if (objRBL) {
|
|
|
- console.log("objRBL", objRBL);
|
|
|
wsArrayLength = objRBL.length;
|
|
|
for (var iW = 0; iW < objRBL.length; iW++) {
|
|
|
var i = JSON.parse(JSON.stringify(iW));
|
|
|
let benchId = JSON.parse(JSON.stringify(objRBL[i]));
|
|
|
setTimeout(() => {
|
|
|
- console.log("connect bench", benchId);
|
|
|
wsArray[i]
|
|
|
?.connectBench({ bench_id: String(benchId) })
|
|
|
.then((res) => {
|
|
|
- console.log("connect bench success", benchId);
|
|
|
self.getBenchImage(benchId, 1, wsArray[i], () => {});
|
|
|
})
|
|
|
.catch((err) => {
|
|
|
- console.log("connect bench failed", benchId);
|
|
|
this.$message({
|
|
|
message: "This bench is offline",
|
|
|
// message: "",
|
|
@@ -994,9 +985,7 @@ export default {
|
|
|
this.benchLog.unshift(param);
|
|
|
// document.getElementsByClassName("bmLogBottom")[0].scrollIntoView();
|
|
|
if (Object.keys(param.action).length != 0) {
|
|
|
- // console.log("actionType", param.action.actionType);
|
|
|
let position = param.action.pos;
|
|
|
- // console.log("position", position);
|
|
|
if (param.action.actionType == "swipe on") {
|
|
|
this.ifBmBenchTrailUpperCursorSwipe = true;
|
|
|
this.trailCursorPosition.left = (position[0] / 1540) * 100;
|
|
@@ -1027,9 +1016,7 @@ export default {
|
|
|
this.trailCursorPosition.left = ((position[0] * 2) / 1540) * 100;
|
|
|
this.trailCursorPosition.top = ((position[1] * 2) / 720) * 100;
|
|
|
} else if (param.action.actionType == "audio") {
|
|
|
- // console.log("newLog", param);
|
|
|
let fileName = param.action.file_name;
|
|
|
- console.log("audiofileName", fileName);
|
|
|
this.audioName = fileName;
|
|
|
bus.emit("planAudioEmit");
|
|
|
}
|
|
@@ -1089,7 +1076,6 @@ export default {
|
|
|
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) {
|
|
@@ -1146,7 +1132,6 @@ export default {
|
|
|
this.isShowCaseList = true;
|
|
|
},
|
|
|
submitManualCase(item) {
|
|
|
- console.log(this.currentCase, "manualcasedetail============");
|
|
|
this.isShowCaseCommit = true;
|
|
|
this.isShowCaseDetail = false;
|
|
|
},
|
|
@@ -1177,8 +1162,6 @@ export default {
|
|
|
this.isShowAutoCaseCommit = false;
|
|
|
},
|
|
|
selectRowPlan(id, auto, name) {
|
|
|
- console.log(id, "selectrowdata");
|
|
|
- debugger
|
|
|
if (!auto || auto == "undefined" || auto == "false") {
|
|
|
this.currentPlanId = id;
|
|
|
this.currentPlanName = name;
|
|
@@ -1254,7 +1237,6 @@ export default {
|
|
|
this.isShowIssueList = false;
|
|
|
this.isShowIssueDetail = true;
|
|
|
this.currentIssue = row;
|
|
|
- console.log(row, "==============issue============");
|
|
|
},
|
|
|
clickBackToPlanList() {
|
|
|
this.isShowPlanList = true;
|
|
@@ -1271,7 +1253,6 @@ export default {
|
|
|
for (var index = 0; index < items.length; index++) {
|
|
|
items[index].style.background = "#00000032";
|
|
|
let title = items[index].getElementsByClassName("item-title");
|
|
|
- console.log("textContent", title[0].textContent);
|
|
|
let itemOther = this.benchList.find(
|
|
|
(b) => parseInt(b.id) == parseInt(title[0].textContent)
|
|
|
);
|
|
@@ -1290,7 +1271,6 @@ export default {
|
|
|
this.$store.dispatch('benchList/setFilterBenchFlag', true);
|
|
|
},
|
|
|
onBlur(e) {
|
|
|
- console.log("=====----====", e.target.classList);
|
|
|
if (
|
|
|
Array.prototype.indexOf.call(e.target.classList, "ordinary-left") > -1
|
|
|
) {
|
|
@@ -1334,22 +1314,17 @@ export default {
|
|
|
page_size: 10000,
|
|
|
});
|
|
|
});
|
|
|
- console.log(task, "任务详情");
|
|
|
},
|
|
|
handleClickIssue(issueId) {
|
|
|
- console.log(issueId, "issueid");
|
|
|
},
|
|
|
showBenchPos(benchList) {
|
|
|
- console.log("benchList", benchList);
|
|
|
for (var item of benchList) {
|
|
|
var currentBench = this.benchList.find((b) => b.id == item.benchId);
|
|
|
if (currentBench) {
|
|
|
- //console.log('currentBench',currentBench);
|
|
|
currentBench.left = item.x - 548 + 48;
|
|
|
currentBench.top = item.y - 137 - 150 + 11;
|
|
|
currentBench.benchId = item.benchId;
|
|
|
currentBench.benchType = item.benchType;
|
|
|
- console.log('item.benchImg',item.benchImg);
|
|
|
currentBench.image = require("../../assets/bench_img/"+item.benchImg);
|
|
|
if (currentBench.benchType == 2) {
|
|
|
//currentBench.image = require("../../assets/mechine2.png");
|
|
@@ -1391,9 +1366,7 @@ export default {
|
|
|
}', '${item.auto}')">To Do</div>
|
|
|
</div>`;
|
|
|
},
|
|
|
- planRender(item) {
|
|
|
- console.log(item, "plan", this.autoTaskStatusMap[item.id]);
|
|
|
-
|
|
|
+ planRender(item) {
|
|
|
return `<div onClick="selectRowPlan('${item.uuid || item.id}', '${
|
|
|
item.auto
|
|
|
}', '${item.name}')" class="item-box" style="display:${
|
|
@@ -1440,16 +1413,13 @@ export default {
|
|
|
return "row-class";
|
|
|
},
|
|
|
getImgList(objRBL) {
|
|
|
- console.log("zmg3", objRBL);
|
|
|
let benchId = objRBL.pop();
|
|
|
if (benchId == null) {
|
|
|
- console.log("zmg2");
|
|
|
setTimeout(() => {
|
|
|
let href = window.location.href;
|
|
|
if (href.indexOf("benchid=") != -1) {
|
|
|
let benchid = href.substring(href.indexOf("benchid=") + 8);
|
|
|
let remoteBenchList = this.remoteBenchList;
|
|
|
- console.log("benchid", benchid);
|
|
|
console.log(
|
|
|
"item == benchId",
|
|
|
remoteBenchList.find((item) => item == benchid)
|
|
@@ -1462,8 +1432,6 @@ export default {
|
|
|
return;
|
|
|
}
|
|
|
let self = this;
|
|
|
-
|
|
|
- console.log("benchId", benchId);
|
|
|
ws.connectBench({ bench_id: String(benchId) })
|
|
|
.then((res) => {
|
|
|
ws.getImage(String(benchId), 1).then((res) => {
|
|
@@ -1475,7 +1443,6 @@ export default {
|
|
|
});
|
|
|
})
|
|
|
.catch((err) => {
|
|
|
- console.log("connect bench failed", benchId);
|
|
|
self.$message({
|
|
|
message: "This bench is offline",
|
|
|
// message: "",
|
|
@@ -1489,7 +1456,6 @@ export default {
|
|
|
});
|
|
|
},
|
|
|
itemRender(item) {
|
|
|
- // console.log(item, 'bench---item')
|
|
|
|
|
|
//item.image = require("../../assets/mechine.png");
|
|
|
//item.image = require("../../assets/bench_img/"+item.benchImg);
|
|
@@ -1558,7 +1524,6 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
handleInfoDblClick(benchId) {
|
|
|
- console.log("handleInfoDblClick", benchId);
|
|
|
this.currentBench = this.benchList.find((b) => b.id == benchId);
|
|
|
|
|
|
this.isDetailVisible = true;
|
|
@@ -1570,7 +1535,6 @@ export default {
|
|
|
this.handleGetImageData(data.data.data);
|
|
|
break;
|
|
|
}
|
|
|
- console.log(data);
|
|
|
},
|
|
|
handleGetImageData(data) {
|
|
|
this.mainSnapshot = "data:image/jpeg;base64," + data;
|
|
@@ -1583,11 +1547,9 @@ export default {
|
|
|
let self = this;
|
|
|
wsArrayLength++;
|
|
|
setTimeout(() => {
|
|
|
- console.log("connect bench", benchId);
|
|
|
wsArray[i]
|
|
|
?.connectBench({ bench_id: String(benchId) })
|
|
|
.then((res) => {
|
|
|
- console.log("connect bench success", benchId);
|
|
|
self.getBenchImage(benchId, 1, wsArray[i], () => {});
|
|
|
this.currentBench = this.benchList.find((b) => b.id == benchId) || {};
|
|
|
this.remoteBenchList.push(benchId)
|
|
@@ -1604,7 +1566,6 @@ export default {
|
|
|
}
|
|
|
})
|
|
|
.catch((err) => {
|
|
|
- console.log("connect bench failed", benchId);
|
|
|
this.$message({
|
|
|
message: "This bench is offline",
|
|
|
// message: "",
|
|
@@ -1633,10 +1594,7 @@ export default {
|
|
|
this.remoteBenchList.push(benchId)
|
|
|
this.$store.dispatch('benchList/addRemoteBenchList', benchId);
|
|
|
}
|
|
|
-
|
|
|
- console.log("benchList", this.benchList);
|
|
|
let bench = this.benchList.find((b) => b.id == benchId);
|
|
|
- console.log("selectedBench", bench);
|
|
|
if (this.previousSelectedBenchList.length) {
|
|
|
this.selectedBenchList = JSON.parse(
|
|
|
JSON.stringify(this.previousSelectedBenchList)
|
|
@@ -1650,7 +1608,6 @@ export default {
|
|
|
this.currentBench = bench;
|
|
|
bench.benchId = "'" + bench.benchId + "'";
|
|
|
this.selectedBenchList.push(bench);
|
|
|
- console.log("selected", this.selectedBenchList);
|
|
|
// this.images = this.selectedBenchList.map((s) => {
|
|
|
// return {
|
|
|
// url: "",
|
|
@@ -1690,7 +1647,6 @@ export default {
|
|
|
return;
|
|
|
}
|
|
|
this.selectedBenchList = [this.selectedBenchList[0]];
|
|
|
- console.log("selectedBenchList[0]", this.selectedBenchList);
|
|
|
let key = 0;
|
|
|
for (let i in this.benchList) {
|
|
|
this.benchList[i].selected = false;
|
|
@@ -1709,12 +1665,10 @@ export default {
|
|
|
this.connetedBenchId = String(benchId);
|
|
|
// this.connectedBenchData = this.benchList[key];
|
|
|
setTimeout(() => {
|
|
|
- console.log("connect bench", benchId);
|
|
|
ws.connectBench({ bench_id: String(benchId) })
|
|
|
.then((res) => {
|
|
|
self.isConnected = true;
|
|
|
this.$store.dispatch("common/setConnectedStatus", true);
|
|
|
- console.log("connect bench success");
|
|
|
this.currentScreen = "upper";
|
|
|
self.setSendAudioBus(benchId);
|
|
|
self.getBenchImage(benchId, 1, ws, () => {
|
|
@@ -1734,7 +1688,6 @@ export default {
|
|
|
}
|
|
|
})
|
|
|
.catch((err) => {
|
|
|
- console.log("connect bench failed");
|
|
|
this.benchList[key].acitveAnimation = false;
|
|
|
this.$message({
|
|
|
message: "This bench is offline",
|
|
@@ -1750,7 +1703,6 @@ export default {
|
|
|
} else {
|
|
|
this.currentScreen = "upper";
|
|
|
}
|
|
|
- console.log("this.currentScreen", this.currentScreen);
|
|
|
},
|
|
|
singleFingerTouch(id, x, y, screenType) {
|
|
|
let self = this;
|
|
@@ -1769,7 +1721,6 @@ export default {
|
|
|
controlCursorMouseDown(e) {
|
|
|
let self = this;
|
|
|
if (this.displayTapMode) {
|
|
|
- // console.log("e", e);
|
|
|
this.controlCursorPosition.left = e.offsetX;
|
|
|
this.controlCursorPosition.top = e.offsetY;
|
|
|
this.controlStartPoint.x = e.offsetX;
|
|
@@ -1809,7 +1760,6 @@ export default {
|
|
|
Math.abs(this.controlStartPoint.x - e.offsetX) > 30 ||
|
|
|
Math.abs(this.controlStartPoint.y - e.offsetY) > 30
|
|
|
) {
|
|
|
- // console.log("controlStartPoint", controlStartPoint);
|
|
|
self.singleFingerOperation(
|
|
|
e,
|
|
|
"swipe",
|
|
@@ -1828,7 +1778,6 @@ export default {
|
|
|
},
|
|
|
singleFingerOperation(e, operation, screenType, startPoint = {}) {
|
|
|
let self = this;
|
|
|
- console.log("singleFingerOperation", e, operation, screenType);
|
|
|
if (this.displayTapMode) {
|
|
|
let width = this.$refs.bmBenchRef.width;
|
|
|
let height = this.$refs.bmBenchRef.height;
|
|
@@ -1848,15 +1797,8 @@ export default {
|
|
|
x1 = Math.round(screenWidth * (startPoint.x / width));
|
|
|
y1 = Math.round(screenHeight * (startPoint.y / height));
|
|
|
}
|
|
|
-
|
|
|
- // console.log("x", x);
|
|
|
- // console.log("y", y);
|
|
|
-
|
|
|
- // console.log("x1", x1);
|
|
|
- // console.log("y1", y1);
|
|
|
let operationDesc = "";
|
|
|
if (operation == "tap") {
|
|
|
- console.log("selected", this.connetedBenchId, x, y);
|
|
|
self.singleFingerTouch(this.connetedBenchId, x, y, screenType);
|
|
|
// tap on lower x: 48 y: 292
|
|
|
operationDesc =
|
|
@@ -1927,7 +1869,6 @@ export default {
|
|
|
seriesData[0]++;
|
|
|
}
|
|
|
}
|
|
|
- console.log("seriesData", seriesData);
|
|
|
var option = {
|
|
|
tooltip: {
|
|
|
trigger: "axis",
|
|
@@ -2006,7 +1947,6 @@ export default {
|
|
|
let self = this;
|
|
|
ws.unsubscribeBenchStatus({ bench_id: this.connetedBenchId }).then(
|
|
|
(res) => {
|
|
|
- console.log("unsubscribeBenchStatus", res);
|
|
|
}
|
|
|
);
|
|
|
this.connetedBenchId = "";
|
|
@@ -2037,7 +1977,6 @@ export default {
|
|
|
|
|
|
selectAllBench() {
|
|
|
let self = this;
|
|
|
- console.log('this.benchList===', this.benchList.length)
|
|
|
if (this.selectedBenchList.length == this.benchList.length) {
|
|
|
this.selectedBenchList = [];
|
|
|
this.previousSelectedBenchList = [];
|
|
@@ -2070,7 +2009,6 @@ export default {
|
|
|
srv
|
|
|
.getBenchDetail(getBenchParam)
|
|
|
.then((res) => {
|
|
|
- // console.log("res", res);
|
|
|
this.benchList[index].status = res.data.data.status;
|
|
|
})
|
|
|
.catch((err) => {
|
|
@@ -2082,13 +2020,11 @@ export default {
|
|
|
if (this.ifShowLogBox) {
|
|
|
ws.unsubscribeBenchStatus({ bench_id: this.connetedBenchId }).then(
|
|
|
(res) => {
|
|
|
- console.log("unsubscribeBenchStatus", res);
|
|
|
}
|
|
|
);
|
|
|
} else {
|
|
|
ws.subscribeBenchStatus({ bench_id: this.connetedBenchId }).then(
|
|
|
(res) => {
|
|
|
- console.log("subscribeBenchStatus", res);
|
|
|
}
|
|
|
);
|
|
|
}
|
|
@@ -2101,7 +2037,6 @@ export default {
|
|
|
benchId: String(this.connetedBenchId),
|
|
|
}).then(
|
|
|
(res) => {
|
|
|
- console.log("connect_audio_device_res", res);
|
|
|
if (type == "playAudio") {
|
|
|
this.isRecording = !this.isRecording;
|
|
|
self.recordAudio();
|
|
@@ -2114,7 +2049,6 @@ export default {
|
|
|
},
|
|
|
recordAudio(data) {
|
|
|
let self = this;
|
|
|
- // console.log("selectedBenchList.value[0]", this.selectedBenchList[0]);
|
|
|
let channel = 1;
|
|
|
|
|
|
this.vadThreshold = 0;
|
|
@@ -2223,10 +2157,8 @@ export default {
|
|
|
benchId: this.connetedBenchId,
|
|
|
}).then(
|
|
|
(res) => {
|
|
|
- // console.log("res", res);
|
|
|
},
|
|
|
(rej) => {
|
|
|
- // console.log("rej", rej);
|
|
|
}
|
|
|
);
|
|
|
// $bus.$emit("stopPlayAudio", {
|
|
@@ -2296,7 +2228,6 @@ export default {
|
|
|
dataU8 = new Uint8Array(dataU8);
|
|
|
dataF32 = new Float32Array(dataU8.buffer);
|
|
|
if (!fill) {
|
|
|
- // console.log("dataF32-", dataF32);
|
|
|
let newDataF32 = new Float32Array(5120);
|
|
|
for (let i = 0; i < 5120; i++) {
|
|
|
if (i < dataF32.length) {
|
|
@@ -2306,7 +2237,6 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
dataF32 = newDataF32;
|
|
|
- // console.log("dataF32+", dataF32);
|
|
|
}
|
|
|
self.pcPlayAudio(dataF32, 1, 8000);
|
|
|
|
|
@@ -2341,9 +2271,6 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- // console.log("audioCtx", audioCtx);
|
|
|
- // console.log("nowBuffering", nowBuffering);
|
|
|
-
|
|
|
var source = audioCtx.createBufferSource();
|
|
|
source.buffer = myArrayBuffer;
|
|
|
source.connect(audioCtx.destination);
|
|
@@ -2370,7 +2297,6 @@ 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]);
|
|
@@ -2405,7 +2331,6 @@ export default {
|
|
|
// this.$set(this.benchList[key], "selected", false);
|
|
|
|
|
|
this.benchList[key].selected = false;
|
|
|
- console.log('划出。。。'+key+this.benchList[key].selected);
|
|
|
this.$forceUpdate();
|
|
|
},
|
|
|
clickBenchList() {
|
|
@@ -2488,7 +2413,6 @@ export default {
|
|
|
} catch (e) {
|
|
|
|
|
|
}
|
|
|
- console.log("benchId", benchId);
|
|
|
let selectedBench = this.benchList.find((i) => i.benchId == benchId);
|
|
|
bus.emit("benchInfoVisible", selectedBench);
|
|
|
this.$nextTick(() => {
|
|
@@ -2503,7 +2427,6 @@ export default {
|
|
|
for (var index = 0; index < items.length; index++) {
|
|
|
items[index].style.background = "#000000";
|
|
|
if (this.images[index].alt == benchId) {
|
|
|
- console.log("equal");
|
|
|
items[index].style.background = "#ffffff";
|
|
|
}
|
|
|
}
|
|
@@ -2530,7 +2453,6 @@ export default {
|
|
|
let items = document.getElementsByClassName("item-box");
|
|
|
for (var index = 0; index < items.length; index++) {
|
|
|
items[index].style.background = "#00000032";
|
|
|
- // console.log("textContent", title[0].textContent);
|
|
|
let itemOther = this.benchList.find(
|
|
|
(b) => b.id == items[index].dataset.index
|
|
|
);
|
|
@@ -2542,7 +2464,6 @@ export default {
|
|
|
this.selectedBenchId = benchId
|
|
|
}
|
|
|
}
|
|
|
- // console.log('this.currentBench', this.currentBench);
|
|
|
// bus.emit("benchInfoVisible", this.currentBench);
|
|
|
});
|
|
|
},
|
|
@@ -2563,7 +2484,6 @@ export default {
|
|
|
//});
|
|
|
this.benchDetail = this.benchList.find((b) => b.id == benchId);
|
|
|
//this.currentBench.style = "{background: rgba(0, 0, 0, 1)}"
|
|
|
- console.log("current bench", this.benchDetail);
|
|
|
this.isRemoteBtnVisible = true;
|
|
|
this.isDetailVisible = true;
|
|
|
});
|
|
@@ -2572,7 +2492,6 @@ export default {
|
|
|
let self = this;
|
|
|
setTimeout(() => {
|
|
|
wsRemote.getImage(String(benchId), screenType).then((res) => {
|
|
|
- console.log("getImageRes", res);
|
|
|
// let screen = screenType == 1 ? "upper" : "lower";
|
|
|
func();
|
|
|
if (screenType == 1) {
|
|
@@ -2605,7 +2524,6 @@ export default {
|
|
|
let self = this;
|
|
|
if (benchId == this.connetedBenchId) {
|
|
|
wsRemote.getImage(String(benchId), screenType).then((res) => {
|
|
|
- console.log("getImageRes", res);
|
|
|
// let screen = screenType == 1 ? "upper" : "lower";
|
|
|
//func();
|
|
|
{
|
|
@@ -2643,13 +2561,9 @@ export default {
|
|
|
this.selectBench(benchId);
|
|
|
},
|
|
|
handleClickImg(benchId, indexParam) {
|
|
|
- console.log(benchId)
|
|
|
this.selectedBenchId = benchId;
|
|
|
this.$nextTick(() => {
|
|
|
- console.log(this.currentBenchId)
|
|
|
if (benchId == this.currentBenchId) {
|
|
|
-
|
|
|
- console.log(this.brnchshow)
|
|
|
if(this.brnchshow){
|
|
|
benchId = 0;
|
|
|
let items = document.getElementsByClassName("grid-item-background");
|
|
@@ -2668,7 +2582,6 @@ export default {
|
|
|
for (var index = 0; index < items.length; index++) {
|
|
|
items[index].style.background = "#000000";
|
|
|
if (index == indexParam) {
|
|
|
- console.log("equal");
|
|
|
items[index].style.background = "#ffffff";
|
|
|
}
|
|
|
}
|
|
@@ -2691,7 +2604,6 @@ export default {
|
|
|
for (var index = 0; index < items.length; index++) {
|
|
|
items[index].style.background = "#00000032";
|
|
|
let title = items[index].getElementsByClassName("item-title");
|
|
|
- console.log("textContent", title[0].textContent);
|
|
|
let itemOther = this.benchList.find(
|
|
|
(b) => parseInt(b.id) == parseInt(title[0].textContent) || b.id == benchId
|
|
|
);
|
|
@@ -2709,23 +2621,19 @@ export default {
|
|
|
handleCloseImg(benchId) {
|
|
|
this.connetedBenchId = benchId;
|
|
|
this.disconnectBench()
|
|
|
- console.log("benchId", benchId, this.connetedBenchId);
|
|
|
var objRBL = this.remoteBenchList;
|
|
|
if (objRBL) {
|
|
|
for (var i = 0; i < objRBL.length; i++) {
|
|
|
if (parseInt(objRBL[i]) == parseInt(benchId)) {
|
|
|
- console.log("images", this.images);
|
|
|
|
|
|
for (var ii = 0; ii < this.images.length; ii++) {
|
|
|
if (parseInt(this.images[ii].alt) == parseInt(benchId)) {
|
|
|
this.images.splice(ii, 1);
|
|
|
- console.log("images", this.images);
|
|
|
break;
|
|
|
}
|
|
|
}
|
|
|
//delete objRBL[i];
|
|
|
objRBL.splice(i, 1);
|
|
|
- console.log("objRBL", objRBL);
|
|
|
while(this.remoteBenchList.length) {
|
|
|
this.remoteBenchList.pop();
|
|
|
this.$store.dispatch('benchList/popRemoteBenchList')
|
|
@@ -2747,9 +2655,7 @@ export default {
|
|
|
var readyCount = 0;
|
|
|
var occupiedCount = 0;
|
|
|
var offlineCount = 0;
|
|
|
- console.log("this.benchList", this.benchList.length);
|
|
|
this.benchList.forEach((element) => {
|
|
|
- //console.log('element',element);
|
|
|
if (element.status == "ready") {
|
|
|
readyCount++;
|
|
|
} else if (element.status == "error") {
|
|
@@ -2778,9 +2684,7 @@ export default {
|
|
|
});
|
|
|
},
|
|
|
benchList(newValue, oldValue) {
|
|
|
- console.log("newValue", newValue);
|
|
|
var objRBL = this.remoteBenchList;
|
|
|
- console.log("zmg1", objRBL);
|
|
|
var objRBLReverse = [];
|
|
|
if(objRBL)
|
|
|
{
|