无人机管理后台前端(已迁走)
张含笑
2025-06-07 843cd70bd09418f1890e5e42f994da30e91390d2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
<template>
  <div class="dataCenter-table">
    <searchData></searchData>
    <!-- 表格部分 -->
    <div class="dataTable">
      <el-table stripe :data="tableData" :row-class-name="tableRowClassName" class="custom-header">
        <el-table-column type="selection" width="55" />
        <el-table-column label="序号" type="index" width="60" />
        <el-table-column prop="date" label="所属区域" />
        <el-table-column property="name" label="所属机巢" />
        <el-table-column property="address" label="任务名称" />
        <el-table-column prop="date" label="文件名称" />
        <el-table-column property="name" label="缩图" width="120">
          <template #default="scope">
            <!-- <img  :src="scope.row.img" alt="" /> -->
            <el-image
        :src="scope.row.img"
        :preview-src-list="[scope.row.img]"
        fit="cover"
        preview-teleported
      />
          </template>
        </el-table-column>
        <el-table-column prop="date" label="任务时间" />
        <el-table-column property="name" label="文件类别" />
        <el-table-column label="操作" width="150" align="center">
          <template #default="scope">
            <span class="look">查看</span>
            <span class="delete">删除</span>
            <span class="location">定位</span>
          </template>
        </el-table-column>
      </el-table>
    </div>
    <!-- 分页 -->
    <div class="pagination">
      <el-pagination
        v-model:current-page="jobListParams.current"
        v-model:page-size="jobListParams.size"
        :page-sizes="[10, 20, 30, 40]"
        :size="size"
        :disabled="disabled"
        background
        layout="total, sizes, prev, pager, next, jumper"
        :total="400"
        @size-change="handleSizeChange"
        @current-change="handleCurrentChange"
      />
    </div>
  </div>
</template>
 
<script setup>
import searchData from '@/views/dataCenter/components/searchData.vue';
import fy1 from '@/assets/images/workbench/fy1.png';
const jobListParams = reactive({
  current: 1,
  size: 10,
  searchParams: {},
});
const tableData = [
  {
    date: '2016-05-04',
    name: 'Aleyna Kutzner',
    address: 'Lohrbergstr',
    img: fy1,
  },
  {
    date: '2016-05-03',
    name: 'Helen Jacobi',
    address: '760 A Street, South ',
    img: fy1,
  },
  {
    date: '2016-05-02',
    name: 'Brandon',
    address: 'Arnold-Ohletz-Str. 41a,',
    img: fy1,
  },
 
  {
    date: '2016-05-01',
    name: 'Margie Smith',
    address: '23618 Windsor Drive, ',
    img: fy1,
  },
];
const handleSizeChange = () => {};
const handleCurrentChange = () => {};
</script>
 
<style scoped lang="scss">
.dataCenter-table {
  margin: 0 18px 16px 10px;
  background-color: #ffffff;
  padding: 14px 18px;
  .dataTable {
    height: 580px;
    overflow: auto;
    .look {
      color: #1c5cff;
      cursor: pointer;
    }
    .delete {
      color: #ff241c;
      margin: 0 10px;
      cursor: pointer;
    }
    .location {
      color: #19876d;
      cursor: pointer;
    }
  }
  .pagination {
    display: flex;
    justify-content: end;
    margin-top: 20px;
  }
}
:deep(.custom-header th.el-table__cell) {
  color: rgba(0, 0, 0, 0.85);
}
</style>