无人机管理后台前端(已迁走)
张含笑
2025-08-12 6f51376903c55e753a8baaee40b154a524efda29
feat:样式调整
4 files modified
25 ■■■■■ changed files
src/api/dataCenter/dataCenter.js 8 ●●●●● patch | view | raw | blame | history
src/utils/util.js 10 ●●●●● patch | view | raw | blame | history
src/views/dataCenter/components/searchData.vue 1 ●●●● patch | view | raw | blame | history
src/views/dataCenter/dataCenter.vue 6 ●●●● patch | view | raw | blame | history
src/api/dataCenter/dataCenter.js
@@ -88,4 +88,12 @@
        method: 'get',
        params,
    })
}
// 附件下载
export const attachDownload = (data) => {
    return request({
        url: `/blade-resource/attach/download`,
        method: 'post',
        data
    })
}
src/utils/util.js
@@ -459,6 +459,16 @@
    return `${url.substring(0, lastDotIndex)}_show${url.substring(lastDotIndex)}`
}
/**
 * 获取正射路径
 * @param url
 * @returns {string}
 */
export const getzsShowImg = url => {
    if (!url) return ''
    const lastDotIndex = url.lastIndexOf('.')
    return `${url.substring(0, lastDotIndex)}_show.jpeg`
}
// key驼峰转换为下划线
export function camelToSnake (obj) {
  if (typeof obj !== 'object' || obj === null) {
src/views/dataCenter/components/searchData.vue
@@ -140,7 +140,6 @@
const userAreaCode = computed(() => store.getters.userInfo.detail.areaCode);
const selectedAreaCode = computed(() => store.state.user.selectedAreaCode);
const htsjzx = computed(() => store.state.common.downloadProgress?.htsjzx || 100)
const emit = defineEmits(['search', 'downFun', 'allDownFun','handleswitchFolders']);
const startTime = dayjs().subtract(6, 'day').startOf('day');
const endTime = dayjs().endOf('day');
src/views/dataCenter/dataCenter.vue
@@ -885,6 +885,8 @@
  min-height: 0; /* 关键:解决 flex 容器中的最小高度问题 */
  align-content: flex-start; /* 让内容从顶部开始排列 */
            .filePackage {
          display: flex;
    justify-content: center;
                width: 260px;
                height: 146px;
                border-radius: 4px 4px 4px 4px;
@@ -894,7 +896,7 @@
                img {
                    width: 111px;
                    height: 111px;
                    margin-left: 56px;
                }
                .el-checkbox {
@@ -909,6 +911,8 @@
                    left: 0;
                    height: 23px;
                    width: 100%;
          padding: 0 10px;
          box-sizing: border-box;
                    background: rgba(22, 56, 101, 0.3);
                    border-radius: 0px 0px 4px 4px;
                    font-family: Source Han Sans CN, Source Han Sans CN;