<template>
|
<div class="dataCenter-table">
|
<searchData></searchData>
|
<!-- 表格部分 -->
|
<div class="dataTable">
|
<el-table stripe :data="tableData" 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]"
|
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>
|