teamManager.vue 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. <template>
  2. <div class="page">
  3. <el-table :data="list" border cell-class-name="vertical-top-cell" v-loading="loading" empty-text="暂无团队" max-height="578px" style="margin-top: 18px;">
  4. <el-table-column label="序号" width="50">
  5. <template #default="scope">
  6. {{ scope.$index + 1 }}
  7. </template>
  8. </el-table-column>
  9. <el-table-column label="团队名称" prop="xx"></el-table-column>
  10. <el-table-column label="所在公司" prop="xx"></el-table-column>
  11. <el-table-column label="所属地区" prop="xx"></el-table-column>
  12. <el-table-column label="所属行业" prop="xx"></el-table-column>
  13. <el-table-column label="团队职能类型" prop="xx"></el-table-column>
  14. <el-table-column label="团队架构类型" prop="xx"></el-table-column>
  15. <el-table-column label="团队规模" prop="xx"></el-table-column>
  16. <el-table-column label="团队层级" prop="xx"></el-table-column>
  17. <el-table-column label="团队简介" prop="xx" show-overflow-tooltip></el-table-column>
  18. <el-table-column label="创建时间" prop="xx"></el-table-column>
  19. </el-table>
  20. <el-row style="display: flex;justify-content: center;">
  21. <el-pagination
  22. @size-change="handleSizeChange"
  23. @current-change="handleCurrentChange"
  24. :current-page="queryParams.page"
  25. :page-sizes="[5, 10, 20, 50]"
  26. :page-size="10"
  27. layout="total, sizes, prev, pager, next, jumper"
  28. :total="total"
  29. v-show="total > 0">
  30. </el-pagination>
  31. </el-row>
  32. </div>
  33. </template>
  34. <script setup name="">
  35. const props = defineProps({
  36. list:{
  37. typeof:Array,
  38. default:()=>[]
  39. }
  40. });
  41. import { ref, getCurrentInstance } from 'vue'
  42. const { proxy } = getCurrentInstance();
  43. const queryParams = ref({
  44. page: 1,
  45. pageSize: 10
  46. })
  47. const total = ref(0)
  48. const loading = ref(false)
  49. const handleSizeChange = (val) => {
  50. queryParams.value.pageSize = val;
  51. proxy.$emit('handleSizeChange', queryParams);
  52. }
  53. const handleCurrentChange = (val) => {
  54. queryParams.value.page = val;
  55. proxy.$emit('handleCurrentChange', queryParams);
  56. }
  57. </script>
  58. <style scoped lang="scss">
  59. </style>