relatedTasks.vue 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <template>
  2. <div class="relatedTasks pl-4 pr-4 pt-3 pb-3 h-full flex flex-col">
  3. <div class="flex justify-between">
  4. <div class="title">相关任务</div>
  5. <div>
  6. <el-button type="primary">新建任务</el-button>
  7. </div>
  8. </div>
  9. <div class="flex-1 overflow-auto pt-3">
  10. <el-table :data="relatedTaskstable" border style="width: 100%;height: 100%;">
  11. <el-table-column prop="taskName" label="任务名称">
  12. <template #default="scope">
  13. <el-button link type="primary" size="large">{{
  14. scope.row.taskName
  15. }}</el-button>
  16. </template>
  17. </el-table-column>
  18. <el-table-column prop="priority" label="优先级" width="130" />
  19. <el-table-column prop="status" label="状态" width="130" />
  20. <el-table-column prop="executor" label="执行人" width="130" />
  21. <el-table-column prop="startTime" label="开始时间" width="130" />
  22. <el-table-column prop="endTime" label="截至时间" width="130" />
  23. </el-table>
  24. </div>
  25. </div>
  26. </template>
  27. <script lang="ts" setup>
  28. import { ref, reactive, onMounted, onUnmounted, defineExpose, inject } from 'vue'
  29. const relatedTaskstable = ref([])
  30. // 生命周期钩子
  31. onMounted(() => {
  32. });
  33. </script>
  34. <style scoped lang="scss">
  35. .relatedTasks {
  36. .title {
  37. font-size: 18px;
  38. color: #000
  39. }
  40. }
  41. </style>