TaskTable.vue
1.47 KB
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
<template>
<d2-table
class='my-row-height'
ref='Table'
:hasNum='true'
:tableParams='withdrawalTableParams'
:searchForm='taskTableSearchForm'
:getListApi='getListApi'
:pageConf='pageConf'
>
</d2-table>
</template>
<script>
import { taskManagementApi } from '@/api/taskManagement'
export default {
name: 'TaskTable',
props:{
taskTableSearchForm:{
type:Object,
default:{}
}
},
data() {
return {
pageConf: {
pageSize: 'pageSize',
pageNum: 'pageNum',
totalCount: 'data.count'
},
getListApi: taskManagementApi.findStaffMissionPageList,
withdrawalTableParams: {
// btnId: new Date().getTime() + parseInt(Math.random() * 1000),
listName: 'data.data',
tableColumns: [
{
label: '员工名称',
prop: 'staffName'
},
{
label: '微信昵称',
prop: 'staffNickName'
},
{
label: '员工手机号',
prop: 'staffPhone'
},
{
label: '部门',
prop: 'staffDepartName'
},
{
label: '任务状态',
prop: 'completeStatusName'
},
{
label: '已获得收益',
prop: 'gainScore'
}
]
}
}
}
}
</script>
<style scoped>
.my-row-height >>> .el-table__body-wrapper .el-table__row {
height: 48px;
}
</style>