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