唐润平:解决了编辑模式bug(合并后)
This commit is contained in:
@@ -12,7 +12,7 @@ function addEquipment(targetPoint, formInfo) {
|
||||
if (targetPoint.hasDevice) {
|
||||
return;
|
||||
}
|
||||
console.log("info", formInfo);
|
||||
|
||||
switch (formInfo.equipmentType) {
|
||||
case "frequency":
|
||||
handleFanEqu.call(this, targetPoint, formInfo);
|
||||
@@ -36,7 +36,7 @@ function addEquipment(targetPoint, formInfo) {
|
||||
// function handleValveEqu(targetPoint, equipmentInfo) {
|
||||
|
||||
// }
|
||||
let allline = new Array
|
||||
// let allline = new Array();
|
||||
// 其他传感器
|
||||
function handleOtherEqu(targetPoint, equipmentInfo) {
|
||||
const equMesh = this.equMap.get("equ_sensors").clone();
|
||||
@@ -69,14 +69,14 @@ function handleOtherEqu(targetPoint, equipmentInfo) {
|
||||
targetPoint.visible = false;
|
||||
targetPoint.hasWall = true;
|
||||
//处理风压阀的代码片段
|
||||
let lineIndex = targetPoint.name.slice(7, 9)
|
||||
if (allline.includes(Number(lineIndex))) {
|
||||
allline.slice(array.indexOf(lineIndex), 1)
|
||||
console.log('dadad');
|
||||
} else {
|
||||
allline.push(Number(lineIndex))
|
||||
}
|
||||
console.log(allline);
|
||||
// let lineIndex = targetPoint.name.slice(7, 9);
|
||||
// if (allline.includes(Number(lineIndex))) {
|
||||
// allline.slice(array.indexOf(lineIndex), 1);
|
||||
// console.log("dadad");
|
||||
// } else {
|
||||
// allline.push(Number(lineIndex));
|
||||
// }
|
||||
// console.log(allline);
|
||||
// console.log(allline);
|
||||
// allline.forEach((item, index, array) => {
|
||||
// if (array.includes(item)) {
|
||||
|
||||
Reference in New Issue
Block a user