综合办公系统
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

projectInfo.vue 3.0KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. <!--
  2. * @Author: wrh
  3. * @Date: 2024-03-25 17:38:39
  4. * @LastEditors: wrh
  5. * @LastEditTime: 2026-02-27 11:09:38
  6. -->
  7. <template>
  8. <div>
  9. <el-table :data="tableData" style="width: 100%" height="660px" :row-style="{ height: '60px' }">
  10. <!-- <el-table-column type="expand">
  11. <template slot-scope="props">
  12. <div style="background-color: #F0F2F5;">
  13. <el-descriptions direction="vertical" :column="3" border>
  14. <el-descriptions-item label="工作内容">XXXXXX</el-descriptions-item>
  15. <el-descriptions-item label="工作量">XXXXXX</el-descriptions-item>
  16. <el-descriptions-item label="单位" :span="2">km²</el-descriptions-item>
  17. </el-descriptions>
  18. </div>
  19. </template>
  20. </el-table-column> -->
  21. <el-table-column label="项目编号" width="100px" prop="projectNumber">
  22. </el-table-column>
  23. <el-table-column label="项目名称" prop="projectName">
  24. </el-table-column>
  25. <el-table-column label="项目负责人" width="100px" prop="projectLeader">
  26. <template slot-scope="scope">
  27. {{ getUserName(scope.row.projectLeader) }}
  28. </template>
  29. </el-table-column>
  30. <el-table-column label="承担部门" prop="undertakingDeptName">
  31. </el-table-column>
  32. </el-table>
  33. <!-- <el-collapse v-model="activeNames" @change="handleChange">
  34. <el-collapse-item :name="item.projectNumber" v-for="item in tableData" :key="item.projectNumber">
  35. <template slot="title">
  36. <div>
  37. <svg-icon icon-class="ArrowRight" class="info-icon"></svg-icon> -->
  38. <!-- {{ item.projectNumber + ' ' + ' ' + item.projectName + ' ' + ' ' + item.projectLeaderUser.nickName }} -->
  39. <!-- </div>
  40. </template>
  41. <div>暂无信息,敬请期待</div>
  42. </el-collapse-item>
  43. </el-collapse> -->
  44. <pagination v-show="total > 0" :total="total" :page.sync="queryParams.pageNum" :limit.sync="queryParams.pageSize"
  45. @pagination="getListByProjectLeader" />
  46. </div>
  47. </template>
  48. <script>
  49. import { listProject } from "@/api/oa/project/project";
  50. export default {
  51. props: {
  52. userId: {
  53. type: Number
  54. }
  55. },
  56. data() {
  57. return {
  58. // 查询参数
  59. queryParams: {
  60. pageNum: 1,
  61. pageSize: 10,
  62. projectLeader: null
  63. },
  64. // 总条数
  65. total: 0,
  66. tableData: [],
  67. activeNames: ['1'],
  68. }
  69. },
  70. created() {
  71. this.getListByProjectLeader();
  72. },
  73. methods: {
  74. handleChange(val) {
  75. },
  76. getListByProjectLeader() {
  77. if (this.$route.query.userId)
  78. this.queryParams.projectLeader = this.$route.query.userId;
  79. else
  80. this.queryParams.projectLeader = this.userId;
  81. listProject(this.queryParams).then(res => {
  82. this.tableData = res.rows
  83. this.total = res.total
  84. });
  85. }
  86. }
  87. }
  88. </script>
  89. <style lang="scss" scoped>
  90. .info-icon {
  91. font-size: 20px;
  92. }
  93. </style>