info.vue 5.49 KB
<!-- 基本信息 -->
<template>
  <div>
    <div class="config-employee config-info">
      <div class="container edit-box">
        <p class="edit-title">员工基本信息</p>
        <div class="info-box">
          <div class="info-box-left">
            <div class="label-height">
              <span class="info-box-label">姓名:</span>
              <span class="info-box-msg">{{ info.staffName }}</span>
            </div>
            <div class="label-height">
              <span class="info-box-label">登录手机号:</span>
              <span class="info-box-msg">{{ info.staffPhone }}</span>
            </div>
            <div>
              <span class="info-box-label">职务:</span>
              <span class="info-box-msg">{{ info.staffJob }}</span>
            </div>
          </div>
          <div class="info-box-right">
            <div class="label-height">
              <span class="info-box-label">角色名称:</span>
              <span class="info-box-msg">{{ info.roleName }}</span>
            </div>
            <div class="label-height">
              <span class="info-box-label">创建人:</span>
              <span class="info-box-msg">{{ info.createdAccount }}</span>
            </div>
            <div>
              <span class="info-box-label">企微号:</span>
              <span class="info-box-msg">{{ info.entmicroName }}</span>
            </div>
          </div>
        </div>
      </div>
    </div>
    <div class="next-merchant container">
      <p class="edit-title">可见下级商户</p>
      <!-- <div class="config-mer-name">
        <p class="txt-ellipsis" style="margin-bottom: 24px" v-for="(item, index) in info.visibleInferiorMerName.split(',')" :key="index" :title="item">{{ item }}</p>
      </div> -->
      <div class="merchant-box">
        <div class="line_wrapper wrap_header">
          <div class="tittle text_w">序号</div>
          <div class="tittle1 text_w">商户名称</div>
        </div>
        <div class="line_body">
          <div v-for="(item, index) in info.visibleInferiorMerName.split(',')" :key="index" class="line_wrapper">
            <div class="tittle">{{ index + 1 }}</div>
            <div class="tittle1">{{ item }}</div>
          </div>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: 'info',
  data() {
    return {
      info: {
        visibleInferiorMerName: ''
      },
      powerDataArray: []
    }
  },

  props: {
    id: {
      type: String,
      default: ''
    }
  },

  mounted() {
    this.getInfo()
  },

  methods: {
    getInfo() {
      this.$apis.employee.getDetailInfoApi({ id: this.id }).then(res => {
        this.info = res
      })
    }
  }
}
</script>
<style scoped lang="scss">
.info-box {
  display: flex;
  padding: 32px 0;
  &-left,
  &-right {
    width: 50%;
  }
  &-label {
    display: inline-block;
    width: 154px;
    font-size: 14px;
    color: #666666;
    text-align: right;
  }
  &-msg {
    font-size: 14px;
    color: #333333;
  }
}
.next-merchant {
  margin-top: 20px;
}
.label-height {
  margin-bottom: 20px;
}
.config-employee .container {
  background: #ffffff;
}
.config-employee .edit-box.container {
  padding: 0 0 20px;
}
.config-employee .flex {
  display: flex;
  justify-content: space-between;
}
.config-employee .edit-container {
  margin-bottom: 84px;
}

.config-employee .footer {
  position: fixed;
  bottom: 0;
  width: 100%;
  height: 64px;
  text-align: center;
  line-height: 64px;
  background: #ffffff;
  z-index: 999;
}

.config-employee .flex {
  display: flex;
  justify-content: space-between;
}

.config-employee .edit-title {
  font-size: 16px;
  font-weight: 600;
  height: 58px;
  line-height: 58px;
  border-bottom: 1px solid #e7eaec;
  padding: 0 20px;
}

.config-employee .edit-sub-title {
  height: 48px;
  line-height: 48px;
  font-size: 16px;
  color: #333333;
  font-weight: 600;
  border-bottom: 1px solid #e7eaec;
  margin: 0 0;
}
.config-employee .filter-tree {
  width: 360px;
  max-height: 200px;
  overflow: scroll;
}
.config-employee .el-checkbox:last-of-type {
  margin-right: 8px;
}
.config-employee .filter-tree .el-tree-node__label {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.config-employee .config-mer-name {
  font-size: 14px;
  line-height: 20px;
  margin: 32px 0 0 140px;
  min-height: 36px;
}
.config-employee .txt-ellipsis {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  word-wrap: break-word;
}
.config-employee .basic-info {
  margin-bottom: 0;
  width: 48%;
  height: 22px;
  line-height: 22px;
  margin-bottom: 24px;
}
.config-employee .basic-info .el-form-item__content {
  width: calc(100% - 140px);
}
.config-info .el-form--inline .el-form-item__label,
.config-info .basic-info .el-form-item__content {
  height: 22px;
  line-height: 22px;
}
.merchant-box {
  padding: 20px;
  max-height: 440px;
  overflow: auto;
}
.line_wrapper {
  width: 592px;
  min-height: 54px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #909399;
  font-size: 14px;
  .tittle {
    padding-left: 16px;
    width: 20%;
    text-align: left;
    color: #666666;
    font-size: 14px;
  }
  .tittle1 {
    width: 80%;
    text-align: left;
    color: #666666;
    font-size: 14px;
    word-wrap: break-word;
    word-break: break-all;
    overflow: hidden;
  }
}
.text_w {
  font-weight: bold;
}
.wrap_header {
  background: #f4f6fc;
}
.line_body {
  width: 590px;
  overflow-y: auto;
  overflow-x: hidden;
  border: 1px solid #e8e8ea;
  border-top: none;
}
</style>