| | |
| | | <!-- |
| | | * @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> |
| | |
| | | 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) { |
| | |
| | | } |
| | | }, |
| | | 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) { |