<template>
  <div>
    <!-- 新增監造日報functionBar -->
    <div class="shadow" v-show="$route.name === 'SupervisionCreate'">
      <b-button class="btn1">
        <b-icon-cursor></b-icon-cursor> 儲存
      </b-button>
      <b-button class="btn1">
        <b-icon-pencil></b-icon-pencil> 編輯
      </b-button>
      <b-button
        class="btn"
      >
        <b-icon-printer></b-icon-printer> 書函輸出
      </b-button>
    </div>
  </div>
</template>
<script>
import { mapState, mapActions } from 'vuex'
export default {
  data () {
    return {
    }
  },
  methods: {
    ...mapActions('supervision', ['post', 'patch', 'lookupSupervision'])
  },
  computed: {
    ...mapState({
      supervision: state => state.supervision.supervision
    })
  }
}
</script>
<style scoped>
.shadow {
  background-color: #ffff;

  height: 65px;
  width: 100%;
  box-shadow: 2px 2px 20px rgba(0, 0, 0, 5);
  position: fixed;
  top: 55px;
  z-index: 500;
}
.btn {
  background-color: white;
  font-size: 16px;
  margin-top: 15px;
  margin-left: 15px;
  padding-left: 7px;
  padding-right: 7px;
  padding-top: 5px;
  padding-bottom: 5px;
  color: #383838;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
  border: none;
}

.btn:hover {
  color: black;
  background-color: rgb(228, 228, 228);
  transform: translateY(1);
}

.btn1 {
  background-color: rgb(75, 102, 255);
  font-size: 16px;
  margin-top: 15px;
  margin-left: 15px;
  padding-left: 7px;
  padding-right: 7px;
  padding-top: 5px;
  padding-bottom: 5px;
  color: #ffffff;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
  border: none;
}
.btn1:hover {
  color: rgb(255, 255, 255);
  background-color: rgb(49, 68, 175);
  transform: translateY(1);
}
</style>
