detailsPage.vue 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  1. <template>
  2. <div class="detailsPage">
  3. <el-descriptions title="" :column="2" size="" border style="margin-bottom: 20px;">
  4. <el-descriptions-item>
  5. <template slot="label">
  6. <i class="el-icon-user"></i> 任务名称
  7. </template>
  8. {{ row.name }}
  9. </el-descriptions-item>
  10. <el-descriptions-item>
  11. <template slot="label">
  12. <i class="el-icon-mobile-phone"></i> 所属项目
  13. </template>
  14. {{ row.name }}
  15. </el-descriptions-item>
  16. <el-descriptions-item>
  17. <template slot="label">
  18. <i class="el-icon-location-outline"></i> 所属流程
  19. </template>
  20. {{ row.taskPath }}
  21. </el-descriptions-item>
  22. <el-descriptions-item>
  23. <template slot="label">
  24. <i class="el-icon-tickets"></i> 截止时间
  25. </template>
  26. {{ row.endTime }}
  27. </el-descriptions-item>
  28. </el-descriptions>
  29. <el-table :data="tableData" border>
  30. <el-table-column prop="name" label="文件名称" align="center"></el-table-column>
  31. <el-table-column prop="time" label="文件上传时间" align="center"> </el-table-column>
  32. <el-table-column prop="type" label="文件类型" align="center"> </el-table-column>
  33. <el-table-column label="操作" align="center" width="120px">
  34. <template slot-scope="scope">
  35. <div>
  36. <el-dropdown split-button type="primary" size="small" @command="handleCommand($event, scope.row)"
  37. @click="handleQuote(scope.row)">
  38. <span>引 用</span>
  39. <el-dropdown-menu slot="dropdown">
  40. <el-dropdown-item command="1">预览</el-dropdown-item>
  41. <el-dropdown-item command="2">下载</el-dropdown-item>
  42. </el-dropdown-menu>
  43. </el-dropdown>
  44. </div>
  45. </template>
  46. </el-table-column>
  47. </el-table>
  48. <div class="div_margin">说明:</div>
  49. <el-input type="textarea" :rows="3" readonly v-model="row.description"></el-input>
  50. </div>
  51. </template>
  52. <script>
  53. export default {
  54. props: ['row'],
  55. data() {
  56. return {
  57. tableData: [
  58. {
  59. name: '创新文件',
  60. time: '2023-10-8',
  61. type: 'excel',
  62. }
  63. ],//任务详情文件
  64. }
  65. },
  66. watch: {},
  67. computed: {},
  68. mounted() {
  69. // this.getDetails()
  70. },
  71. methods: {
  72. // 获取数据
  73. getDetails() {
  74. let params = {
  75. taskId: row.id
  76. }
  77. this.$api.query(params).then(res => {
  78. if (res.code == 200) {
  79. this.activities = res.data.projectTaskVOS//审查历史
  80. }
  81. })
  82. },
  83. // 引用
  84. handleQuote(row) {
  85. this.$emit('quote', row)
  86. },
  87. // 引用下拉菜单等处理
  88. handleCommand(ev, row) {
  89. switch (ev) {
  90. case '1'://预览
  91. break;
  92. case '2'://下载
  93. break;
  94. default:
  95. break;
  96. }
  97. },
  98. },
  99. }
  100. </script>
  101. <style lang="scss" scoped>
  102. .detailsPage {
  103. .div_margin {
  104. margin: 20px 0 10px 0;
  105. }
  106. }
  107. </style>