Commit 99527382 by tianlonglong

tll

1 parent 6b4a821b
......@@ -273,6 +273,7 @@ export default {
this.tableData = [];
this.getDeskList();
if (this.ptype == 1) {
console.log(444);
this.loadGateData();
} else {
this.drawFloorMap();
......@@ -402,6 +403,7 @@ export default {
.getBoundingClientRect().width;
item.cheight = (item.cwidth * item.height) / item.width;
that.canvasList = canvasList;
console.log(that.canvasList);
});
};
}
......
......@@ -288,10 +288,17 @@ export default {
areaId: this.searchForm.areaId,
})
.then((res) => {
console.log(res);
let data = res.data.data;
data.forEach((item) => {
item.name = this.areaObj.name;
let sd = this.tableData.filter(
(item1) => item1.deviceSerialNum == item.serialnum
);
if (sd) {
item.name = sd.map((item2) => item2.name).join(",");
} else {
item.name = "";
}
item.id = item.serialnum;
item.picUrl =
window._vionConfig.picUrl +
......@@ -303,6 +310,7 @@ export default {
(item.coordinate = JSON.parse(item.coordinate));
});
this.gateList = data;
console.log(this.gateList);
this.drawJoinMap();
});
// this.drawFloorMap();
......@@ -461,21 +469,24 @@ export default {
},
delCoord(data) {
data.coordinate = "";
this.$api.queueManagementApi.updateChannel(data).then((res) => {
let result = res.data;
if (result.code == 200) {
this.$message({
message: result.msg,
type: "success",
});
this.getTableData();
} else {
this.$message({
message: result.msg,
type: "error",
});
}
});
console.log(data, "gggggggg");
this.$api.queueManagementApi
.updateChannel({ ...data, deviceSerialNum: "" })
.then((res) => {
let result = res.data;
if (result.code == 200) {
this.$message({
message: result.msg,
type: "success",
});
this.getTableData();
} else {
this.$message({
message: result.msg,
type: "error",
});
}
});
},
editCoord(group) {
let { position, points, __zr, cdata, desk } = group;
......@@ -487,7 +498,8 @@ export default {
};
});
desk.coordinate = JSON.stringify(coordinate);
let params = Object.assign({}, desk);
let params = Object.assign({}, desk, { deviceSerialNum: cdata.id });
console.log(group, desk, "gggggg");
return this.$api.queueManagementApi.updateChannel(params);
},
},
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!