1
0
lxh 4 сар өмнө
parent
commit
a7115ec1b2

+ 2 - 1
src/views/vent/monitorManager/airDoor/components/door-content-r.vue

@@ -302,7 +302,7 @@ function handlerFz(item) {
 }
 //分组中添加或删除元素
 async function handlerAddorDel(item) {
-  if (isOpenFz.value && item.gateCentralizedControl) {
+  if (isOpenFz.value ) {
     item.iconControl = !item.iconControl
     // // let res = await editDoor({ gateCentralizedControl: isOpenFz.value, id: item.deviceID })
     // console.log(isOpenFz.value, '开启分组并且当前点击项已有分组')
@@ -314,6 +314,7 @@ async function handlerAddorDel(item) {
 
 watch(() => props.infoData, (newV, oldV) => {
   infoDatas.value = newV
+  isOpenFz.value = ''
   if (infoDatas.value.length) {
     infoDatas.value.forEach((el: any, index: number) => {
       el = Object.assign(el, el.readData)