From b734877dae83b1097858e2456b8a1830d7b7ed74 Mon Sep 17 00:00:00 2001
From: gaosp <gaosp>
Date: 星期一, 11 三月 2024 07:46:32 +0800
Subject: [PATCH] 删除

---
 src/container/Map/Map.vue |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/container/Map/Map.vue b/src/container/Map/Map.vue
index 1927ba0..97e9d51 100644
--- a/src/container/Map/Map.vue
+++ b/src/container/Map/Map.vue
@@ -1,7 +1,7 @@
 <!--
  * @Date: 2024-01-05 23:47:53
  * @LastEditors: Sneed
- * @LastEditTime: 2024-03-10 21:13:23
+ * @LastEditTime: 2024-03-11 07:45:57
  * @FilePath: /belleson-frontend/Users/mache/Documents/demo/mdc/src/container/Map/Map.vue
 -->
 <template>
@@ -275,7 +275,7 @@
     methods: {
         delRow ()  {
             console.log(this.selection,this.select,this.map)
-            if (this.selection.length  == 1 && this.selection[0].rowspan ==1 && this.selection[0].colspan == 1) {
+            if (this.selection[0].rowspan ==1 && this.selection[0].colspan == 1) {
                 let rowIndex = this.selection[0].rowIndex
                 let flag = this.map[rowIndex].some(v => v.rowspan != 1 || v.colspan != 1)
                 if (flag) {
@@ -302,7 +302,7 @@
             }
         },
         delCol ()  {
-            if (this.selection.length  == 1 && this.selection[0].rowspan ==1 && this.selection[0].colspan == 1) {
+            if (this.selection[0].rowspan ==1 && this.selection[0].colspan == 1) {
                 let colIndex = this.selection[0].colIndex
                 let flag = this.map.some(v => v[colIndex].rowspan != 1 || v[colIndex].colspan != 1)
                 if (flag) {

--
Gitblit v1.9.3