<template>
    <div class="head">
        <div class="HospitalName">
            <span class="name"> {{ this.$store.getters.user.org.org_name }} </span>
            <!-- <span class="iconfont">&#xe74a;</span> -->
        </div>
        <div class="search">
            <span class="iconfont">&#xe64d;</span>
            <input type="text" class="searchInput" placeholder="编号/姓名">
        </div>
        <div class="Log">
            <span class="name">{{ this.$store.getters.user.user.user_name }} {{ this.$store.getters.user.role_type == 1 ? "医生" : "护士" }}</span>
            <span @click="logoutAction">[ 注销 ]</span>
        </div>
    </div>
</template>

<script>
export default {
  name: "waitingRoom",
  methods: {
    logoutAction: function() {
      this.$router.push({path: "/"})
    }
  }
};
</script>

<style style="stylesheet/scss" lang="scss" scoped >
.head {
  @include box-sizing;
  @include display-flex;
  @include align-items-center;
  @include justify-content-between;
  @include text-align;
  background: $main-color;
  padding: 0.2rem 0.28rem;
  color: $text-color;
  font-size: 15px;
  .iconfont {
    font-size: 13px;
    margin: 0 0 0 0.1rem;
  }
  .search {
    background: $white-bg;
    height: 0.6rem;
    line-height: 0.6rem;
    border-radius: 0.5rem;
    @include flex;
    @include display-flex;
    @include align-items-center;
    margin: 0 0.3rem;
    padding: 0 0 0 0.3rem;
    .iconfont {
      color: #a8b3ba;
      font-size: 0.4rem;
      margin: 0 0.1rem 0 0;
    }
    .searchInput {
      width: 87%;
      height: 0.6rem;
      line-height: 0.6rem;
      border: none;
      outline: none;
      color: $pgh-color;
    }
  }
  .Log {
    .name {
      margin: 0 0.3rem 0 0;
    }
  }
}
</style>

