无人机管理后台前端(已迁走)
张含笑
2025-09-06 cb63ca6594b3f0817d24de4c03ba5dd930136748
feat:图斑
2 files modified
7 ■■■■■ changed files
src/views/resource/components/DrawPolygon.vue 2 ●●● patch | view | raw | blame | history
src/views/resource/components/spotDetails.vue 5 ●●●●● patch | view | raw | blame | history
src/views/resource/components/DrawPolygon.vue
@@ -293,7 +293,7 @@
  background: rgba(0, 0, 0, 0.6);
  white-space: nowrap;
  border-radius: 4px;
pointer-events: none;
  &::after {
    content: '';
    position: absolute;
src/views/resource/components/spotDetails.vue
@@ -83,7 +83,7 @@
              <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>
@@ -485,9 +485,10 @@
// 编辑
const handleSelectionChange = row => {
  let curRowIsSelect = row;
    curRowIsSelect && handleLocationPolygon(row);
  selectionIds.value = row.id;
  selectionList.value = row;
  curRowIsSelect && handleLocationPolygon(row);
  if (isEditing.value) {
    //当前已编辑 → 取消编辑(关闭绘制、重置状态)