无人机管理后台前端(已迁走)
张含笑
2025-08-25 80283182ffdce61f3f5ed3f36ede94c00cad2d53
src/views/resource/patchManagement.vue
@@ -5,7 +5,7 @@
      @search-change="searchChange" @search-reset="searchReset" @selection-change="selectionChange"
      @current-change="currentChange" @size-change="sizeChange" @refresh-change="refreshChange" @on-load="onLoad">
      <template #menu-left>
        <el-button type="primary" icon="el-icon-upload" @click="uploadPatch">
        <el-button type="primary" icon="el-icon-upload" @click=" handleDebug">
          上传图斑
        </el-button>
        <el-button type="primary" icon="el-icon-setting" @click="goTypeManagement">
@@ -17,20 +17,21 @@
      </template>
      <template #menu="scope">
        <el-button type="primary" text icon="el-icon-video-play" @click="handleDebug(scope.row)">详情
        <el-button type="primary" text icon="el-icon-view" @click="uploadPatch(scope.row)">详情
        </el-button>
        <el-button type="primary" text icon="el-icon-video-play" @click="handleDebug(scope.row)">编辑
        <el-button type="primary" text icon="el-icon-edit" @click="uploadPatch(scope.row)">编辑
        </el-button>
        <el-button type="primary" text icon="el-icon-video-play" @click="handleDebug(scope.row)">删除
        <el-button type="primary" text icon="el-icon-delete" @click="handleDebug(scope.row)">删除
        </el-button>
      </template>
    </avue-crud>
    <el-dialog title="对象存储上传调试" append-to-body v-model="box" width="550px">
    <el-dialog title="上传图斑" append-to-body v-model="box" width="550px">
      <avue-form ref="form" :option="debugOption" v-model="debugForm" @submit="handleSubmit" />
    </el-dialog>
    <patchDetails ref="patchDetails" />
    <!-- 图斑详情 -->
  <SpotDetails v-model:show="uploadPatchDialog"></SpotDetails>
    <!-- <patchDetails ref="patchDetails" /> -->
  </basic-container>
</template>
@@ -42,6 +43,7 @@
import { getListPage, getDetail, add, update, remove, enable, disable } from '@/api/resource/oss'
import func from '@/utils/func'
import patchDetails from '@/views/resource/components/patchDetails.vue'
import SpotDetails from '@/views/resource/components/spotDetails.vue';
const store = useStore()
const router = useRouter()
@@ -351,7 +353,7 @@
// 上传图斑
const uploadPatch = () => {
  uploadPatchDialog.value.open()
  uploadPatchDialog.value = true
}
// 跳转至图斑类型管理页面