1
陶杰
2024-11-25 bbfcba8c21dadac21e1aaea809073771b10b5cc5
src/views/area/main-container.vue
@@ -273,7 +273,10 @@
      const areaInfo = await getAreaModuleBycode(this.code)
      if(areaInfo&&areaInfo.areaModuleItems){
        let areaModuleItems=areaInfo.areaModuleItems
        this.totalElements = areaModuleItems.areaConfigNum === 0 ? 1000 : areaModuleItems.areaConfigNum;
        if(areaModuleItems.areaConfigNum){
          this.totalElements = areaModuleItems.areaConfigNum;
        }
        this.areaUrl =areaModuleItems.url
      }
@@ -762,10 +765,7 @@
    // 点击增加
    handleClickToAddItem(index,item){
      debugger;
      // this.cur_device_info = item.deviceInfo
      // this.cur_device_info.areaRow=item.row
      // this.cur_device_info.areaCell=item.cell
      this.cur_item=item
      // 如果存在设备的话则直接返回
      if(item?.deviceInfo?.id) return;
@@ -898,6 +898,7 @@
    showDeviceInfo(index, item,event) {
      this.isDragging = false;
      event.stopPropagation(); // 阻止事件冒泡
      if(item.deviceInfo){
      // 如果点击的是同一个元素,则切换显示状态
      if (this.selectedIndex === index) {
        this.show_device_info = !this.show_device_info;
@@ -907,6 +908,7 @@
        this.show_device_info = true;
        this.cur_device_info = item.deviceInfo;
      }
      }
    },
  },
};