<!--
 * @Author: ysh
 * @Date: 2024-04-26 17:08:19
 * @LastEditors: Please set LastEditors
 * @LastEditTime: 2024-04-28 16:59:42
-->
<template>
  <div>
    <div slot="header" class="nav-item">
      <div>
        <span class="el-icon-document"> 任务标题：{{ this.$route.meta.title }}</span>
        <el-tag style="margin-left:10px">发起人:{{ startUser }}</el-tag>
        <el-tag class="ml20">任务节点:{{ taskName }}</el-tag>
      </div>
      <div>
        <el-button type="primary" @click="drawer = true" size="mini" icon="el-icon-search">查看流转记录</el-button>
      </div>
    </div>
    <el-divider></el-divider>
    <el-drawer title="流转记录" :visible.sync="drawer" direction="rtl">
      <flow-note :flowRecordList="flowRecordList"></flow-note>
    </el-drawer>
  </div>

</template>

<script>
import flowNote from './flowNote.vue';
export default {
  components: { flowNote },
  props: {
    taskForm: {
      type: Object,
      require: true
    },
    taskName: {
      type: String,
      require: true
    },
    startUser: {
      type: String,
      require: true
    },
    flowRecordList: {
      type: Array,
      require: true
    }
  },
  data() {
    return {
      drawer: false
    }
  }
}
</script>

<style lang="scss" scoped>
.nav-item {
  display: flex;
  justify-content: space-between;
}
</style>