| | |
| | | <el-table-column label="操作" align="center" v-if="props.title === '图斑编辑'"> |
| | | <template #default="scope"> |
| | | <span class="operationspan" @click="handleDelete(scope.row)">删除</span> |
| | | <span class="operationspan" @click.stop="handleSelectionChange(scope.row)"> |
| | | <span class="operationspan" v-if="scope.row.is_exception == 2" @click.stop="handleSelectionChange(scope.row)"> |
| | | {{ isEditing && selectionIds === scope.row.id ? '取消编辑' : '编辑' }} |
| | | </span> |
| | | </template> |
| | |
| | | // 编辑 |
| | | const handleSelectionChange = row => { |
| | | let curRowIsSelect = row; |
| | | curRowIsSelect && handleLocationPolygon(row); |
| | | selectionIds.value = row.id; |
| | | selectionList.value = row; |
| | | curRowIsSelect && handleLocationPolygon(row); |
| | | |
| | | |
| | | if (isEditing.value) { |
| | | //当前已编辑 → 取消编辑(关闭绘制、重置状态) |