diff --git a/src/components/draw-app/dialogs/CiCjList.vue b/src/components/draw-app/dialogs/CiCjList.vue index dbc6aef..db1bc07 100644 --- a/src/components/draw-app/dialogs/CiCjList.vue +++ b/src/components/draw-app/dialogs/CiCjList.vue @@ -7,7 +7,12 @@ resizableWidth resizableHeight > -
+
@@ -117,7 +120,11 @@ let ciCjList = sceneCiCjQdListMap.get( let ciQdList = sceneCiCjQdListMap.get( `${lineStore.sceneName}+ciQdList` ) as relayCabinetGraphicData.CiQd; - +setCellMessage.value.rows = Math.max(ciCjList.dsCount, ciQdList.dsCount); +setCellMessage.value.cols = Math.max( + ciCjList.cjList.length, + ciQdList.qdList.length +); const dialogWidth = computed(() => { if (setCellMessage.value.cols * 134 + 85 <= 1157) { return setCellMessage.value.cols * 134 + 85; @@ -146,11 +153,6 @@ watch( ); onMounted(() => { - setCellMessage.value.rows = Math.max(ciCjList.dsCount, ciQdList.dsCount); - setCellMessage.value.cols = Math.max( - ciCjList.cjList.length, - ciQdList.qdList.length - ); tabList.value[0].ListMap = updateCiCjListMap(); tabList.value[1].ListMap = updateCiQdListMap(); }); @@ -233,7 +235,8 @@ function onMouseOver(e: MouseEvent) {