无人机管理后台前端(已迁走)
chenyao
2025-06-17 cccca4aeb6fa86358ff7081ba77bbbf63beb26bb
feat: 优化文件上传和任务管理
5 files modified
61 ■■■■ changed files
src/assets/images/uoload-success.png patch | view | raw | blame | history
src/assets/images/upload-error.png patch | view | raw | blame | history
src/views/job/components/TaskIntermediateContent/TaskIntermediateContent.vue 31 ●●●● patch | view | raw | blame | history
src/views/job/components/TaskTop/TaskIndustry.vue 15 ●●●●● patch | view | raw | blame | history
src/views/system/userinfo.vue 15 ●●●● patch | view | raw | blame | history
src/assets/images/uoload-success.png

src/assets/images/upload-error.png

src/views/job/components/TaskIntermediateContent/TaskIntermediateContent.vue
@@ -3,13 +3,7 @@
    <div class="task-intermediate-content">
        <SearchBox @search="searchClick" @addTask="handleAddTask"></SearchBox>
        <div class="task-table">
            <el-table
            stripe
                :data="jobListData"
                :row-class-name="tableRowClassName"
                :row-style="{ height: '54px', fontSize: '14px', 'text-align': 'center' }"
                :header-cell-style="{ 'text-align': 'center', height: '36px', fontSize: '14px' }"
            >
            <el-table border stripe :data="jobListData" class="custom-header">
                <el-table-column label="序号" type="index" width="60">
                    <template #default="{ $index }">
                        {{ ($index + 1 + (jobListParams.current - 1) * jobListParams.size).toString().padStart(2, '0') }}
@@ -53,8 +47,8 @@
                        <span>{{ scope.row.event_number ? scope.row.event_number : '/' }}</span>
                    </template>
                </el-table-column>
                <el-table-column prop="cycle_time_value" label="任务时间" />
                <el-table-column prop="creator_name" label="创建人" align="center" />
                <el-table-column prop="cycle_time_value" label="任务时间" show-overflow-tooltip />
                <el-table-column prop="creator_name" label="创建人" align="center" show-overflow-tooltip />
                <el-table-column label="操作" width="200" align="center">
                    <template #default="scope">
                        <div
@@ -274,18 +268,21 @@
            color: #3efe96;
        }
    }
    :deep(.el-table) {
            --el-table-tr-bg-color: #ffffff;
            --el-table-striped-bg-color: #EFEFEF;
    // :deep(.el-table) {
    //         --el-table-tr-bg-color: #ffffff;
    //         --el-table-striped-bg-color: #EFEFEF;
            
            .el-table__body tr.el-table__row--striped td {
                background-color: var(--el-table-striped-bg-color);
            }
    }
    //         .el-table__body tr.el-table__row--striped td {
    //             background-color: var(--el-table-striped-bg-color);
    //         }
    // }
    // 分页
    :deep(.custom-header th.el-table__cell) {
        color: rgba(0, 0, 0, 0.85);
    }
    :deep(.el-pagination) {
        display: flex;
        justify-content: center;
        justify-content: flex-end;
    }
    :deep(.el-pagination button) {
        background: center center no-repeat none !important;
src/views/job/components/TaskTop/TaskIndustry.vue
@@ -38,17 +38,12 @@
        {
            name: '机巢事件统计',
            type: 'pie',
            roseType: 'radius',
            radius: ['20%', '70%'],
            center: ['50%', '45%'],
            // roseType: 'radius',
            radius: ['40%', '70%'],
            // center: ['50%', '45%'],
            // radius: '70%', // 设置饼图的半径
            center: ['50%', '50%'], // 调整饼图位置
            data: [],
            // [
            //   { name: '国土类', value: 0, itemStyle: { color: '#3D7FFF' } },
            //   { name: '城管类', value: 0, itemStyle: { color: '#8277E9' } },
            //   { name: '消防类', value: 0, itemStyle: { color: '#FFB77E' } },
            //   { name: '林业类', value: 0, itemStyle: { color: '#44D7B6' } },
            //   { name: '公安类', value: 0, itemStyle: { color: '#62F4FF' } }
            // ],
            label: {
                show: true,
                position: 'outside',
src/views/system/userinfo.vue
@@ -111,7 +111,9 @@
    <!-- 密钥上传 -->
    <div class="upload-file" v-else-if="checked === 2">
      <img v-if="isSuccess === 'success'" :src="uploadSuccess" alt="" />
      <div v-if="isSuccess === 'success'">上传成功</div>
      <img v-if="isSuccess === 'error'" :src="uploadError" alt="" />
      <div v-if="isSuccess === 'error'">上传失败</div>
      <el-upload
        action="/upload"
        accept=".lic"
@@ -419,12 +421,17 @@
  .upload-btn {
    width: 93px;
    height: 38px;
    line-height: 38px;
    background: #1b3e6c;
    background: #DDEBFF;
    border-radius: 8px 8px 8px 8px;
    border: 1px solid #ffffff;
    color: #fff;
    border: 1px solid #409EFF;
    text-align: center;
    font-family: Source Han Sans CN, Source Han Sans CN;
    font-weight: bold;
    font-size: 14px;
    color: #228CFA;
    line-height: 38px;
    text-align: center;
    margin-top: 10px;
  }
  .password-time {
    margin-top: 50px;