无人机管理后台前端(已迁走)
张含笑
2025-08-26 b2f7b2c66b5d5e1355de45231e4728d3a6e8127b
src/views/resource/patchManagement.vue
@@ -17,9 +17,9 @@
      </template>
      <template #menu="scope">
        <el-button type="primary" text icon="el-icon-view" @click="uploadPatch(scope.row)">详情
        <el-button type="primary" text icon="el-icon-view" @click="uploadPatch(scope.row,'detail')">详情
        </el-button>
        <el-button type="primary" text icon="el-icon-edit" @click="uploadPatch(scope.row)">编辑
        <el-button type="primary" text icon="el-icon-edit" @click="uploadPatch(scope.row,'edit')">编辑
        </el-button>
        <el-button type="primary" text icon="el-icon-delete" @click="handleDebug(scope.row)">删除
        </el-button>
@@ -30,7 +30,7 @@
      <avue-form ref="form" :option="debugOption" v-model="debugForm" @submit="handleSubmit" />
    </el-dialog>
    <!-- 图斑详情 -->
  <SpotDetails v-model:show="uploadPatchDialog"></SpotDetails>
  <SpotDetails v-model:show="uploadPatchDialog" :title="spotDetailsTitle"></SpotDetails>
    <!-- <patchDetails ref="patchDetails" /> -->
  </basic-container>
</template>
@@ -44,7 +44,7 @@
import func from '@/utils/func'
import patchDetails from '@/views/resource/components/patchDetails.vue'
import SpotDetails from '@/views/resource/components/spotDetails.vue';
const spotDetailsTitle = ref('');
const store = useStore()
const router = useRouter()
@@ -351,9 +351,10 @@
  })
}
// 上传图斑
const uploadPatch = () => {
  uploadPatchDialog.value = true
// 图斑详情/编辑
const uploadPatch = (row, type = 'detail') => {
  uploadPatchDialog.value = true;
  spotDetailsTitle.value = type === 'detail' ? '图斑详情' : '图斑编辑';
}
// 跳转至图斑类型管理页面