无人机管理后台前端(已迁走)
张含笑
2025-09-02 bb8dda927e031ad0dea7a126b9e62ae76ace0f47
feat:调整
3 files modified
26 ■■■■ changed files
src/api/patchManagement/index.js 7 ●●●●● patch | view | raw | blame | history
src/views/resource/components/spotDetails.vue 18 ●●●●● patch | view | raw | blame | history
src/views/resource/patchManagement.vue 1 ●●●● patch | view | raw | blame | history
src/api/patchManagement/index.js
@@ -73,13 +73,6 @@
    })
}
// 导出
// export const exportExcel = ids => {
//     return request({
//         url: `/drone-device-core/patches/api/v1/Patches/getExcel?ids=${ids}`,
//         method: 'get',
//         responseType: 'blob',
//     })
// }
export const exportExcel = data => {
    return request({
        url: `/drone-device-core/patches/api/v1/Patches/exportExcel`,
src/views/resource/components/spotDetails.vue
@@ -89,7 +89,8 @@
                :current-page="params.page"
                :page-size="params.pageSize"
                background
                layout="prev, pager, next"
                layout="prev, pager, next, ..."
                :pager-count="3"
                prev-text="上一页"
                next-text="下一页"
                :total="total"
@@ -695,13 +696,14 @@
    background: transparent !important;
  }
  :deep(.el-pagination) {
    .btn-prev,
    .btn-next {
      padding: 5px 13px;
      padding: 5px 6px;
    }
  }
  :deep(.el-pager li) {
    margin: 0 0.4rem;
    margin: 0 0.1rem;
    background: rgba(34, 34, 34, 0.9) !important;
    box-shadow: 0px 4px 72px 0px rgba(0, 0, 0, 0.25) !important;
    border-radius: 8px 8px 8px 8px !important;
@@ -720,18 +722,20 @@
    border-radius: 8px 8px 8px 8px !important;
  }
  .pagination-container {
    margin-top: auto;
    padding: 10px 0;
  margin-top: auto;
     padding: 8px 5px !important;
    background: white;
    display: flex;
    justify-content: center;
    height: 20px;
    height: auto; // 取消固定高度20px,避免内容被截断
    margin: 24px 0 14px 0;
    width: 100%;
     box-sizing: border-box
  }
}
.el-table {
  flex: 1; /* 让表格占据剩余空间 */
  flex: 1;
  overflow: auto;
}
.btnGroups {
src/views/resource/patchManagement.vue
@@ -136,6 +136,7 @@
const query = ref({});
const loading = ref(true);
const box = ref(false);
const page = ref({
  pageSize: 20,
  currentPage: 1,