TaskTable.vue 1.47 KB
<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>