<template>

</template>
<script setup lang="ts">
  import { computed, inject, onMounted, ref } from 'vue'
  import { useI18n } from 'vue-i18n'
  import store from '@/vuexStore'
  const Session = inject('session')
  const { t } = useI18n()

  const role = ref(null)
  const departmentOptions = [
    { value: '1', label: 'Dashboard.Role.item1' },
    { value: '2', label: 'Dashboard.Role.item2' },
    { value: '3', label: 'Dashboard.Role.item3' },
    { value: '4', label: 'Dashboard.Role.item4' },
    { value: '5', label: 'Dashboard.Role.item5' },
  ]

  const user = computed(() => {
    return JSON.parse(Session.Get('user', true))
  })
  const isZhCn = computed(() => store.state.home.isZhCn)
  onMounted(async () => {
    console.log(user.value)
    // role.value = user.value.departmentId
  })
</script>

<style scoped lang="scss">
  .profile {
    background-color: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    /*height: 170px;*/
    padding: 20px 0;
    color: #797979;
    display: flex;
    flex-wrap: wrap;

    .info-picture {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      align-items: center;
      .profile-picture {
        width: 120px;
        height: 128px;
        overflow: hidden;
        border-radius: 128px;
      }
      .username {
        width: 100%;
        font-weight: 700;
        color: #0d0d0d;
        margin-top: 10px;
        font-size: 14px;
      }
    }

    .information {
      text-align: left;
      padding: 0 20px;
      display: flex;
      flex-wrap: wrap;
      align-items: center;

      .username {
        font-weight: 700;
        color: #0d0d0d;
        font-size: 14px;
      }

      .row {
        width: 100%;
        line-height: 28px;
        white-space: nowrap;

        .el-col {
          overflow: hidden;

          .label {
            padding-left: 1em;
            text-overflow: ellipsis;
            overflow: hidden;
          }

          .link {
            margin-left: 1em;
            border: 1px solid rgb(245, 245, 245);
            padding: 2px 20px;
            //min-width: 240px;

            &:focus {
              outline: none;
            }
          }

          .btn-copy {
            margin-left: 20px;
            padding: 4px 10px;
            border-right: 4px;
            background-color: rgba(84, 129, 214, 1);
            color: #ffffff;
            cursor: pointer;
            transition: all 0.25s linear;

            &:hover {
              background-color: rgba(84, 129, 214, 0.8);
            }
          }
        }
      }
    }
  }
</style>
