78 lines
		
	
	
		
			1.9 KiB
		
	
	
	
		
			Plaintext
		
	
	
			
		
		
	
	
			78 lines
		
	
	
		
			1.9 KiB
		
	
	
	
		
			Plaintext
		
	
	
<template>
 | 
						|
  <div class="basic-info">
 | 
						|
    <el-form :inline="true" :model="basicInfo" class="demo-form-inline" size="small">
 | 
						|
      <el-row>
 | 
						|
        <el-col :span="6">
 | 
						|
          <el-form-item label="Name:">
 | 
						|
            <span>{{ basicInfo.BlindName }}</span>
 | 
						|
          </el-form-item>
 | 
						|
        </el-col>
 | 
						|
        <el-col :span="6">
 | 
						|
          <el-form-item label="Name CN:">
 | 
						|
            <span>{{ basicInfo.BlindNameCN }}</span>
 | 
						|
          </el-form-item>
 | 
						|
        </el-col>
 | 
						|
        <el-col :span="6">
 | 
						|
          <el-form-item label="ID:">
 | 
						|
            <span>{{ basicInfo.ReviewerCode }}</span>
 | 
						|
          </el-form-item>
 | 
						|
        </el-col>
 | 
						|
        <el-col :span="6">
 | 
						|
          <el-form-item label="Gender:">
 | 
						|
            <span v-if="isEnglish">{{ basicInfo.Sex === 0?'Male':'Female' }}</span>
 | 
						|
            <span v-else>{{ basicInfo.Sex === 0?'男':'女' }}</span>
 | 
						|
          </el-form-item>
 | 
						|
        </el-col>
 | 
						|
      </el-row>
 | 
						|
      <el-row>
 | 
						|
        <el-col :span="6">
 | 
						|
          <el-form-item label="Title:">
 | 
						|
            <span v-if="isEnglish">
 | 
						|
              {{ (Array.isArray(basicInfo.Title)&& basicInfo.Title.length > 0) ? basicInfo.TitleList.join(', ') : '' }}
 | 
						|
            </span>
 | 
						|
            <span v-else>
 | 
						|
              {{ (Array.isArray(basicInfo.TitleCNList)&& basicInfo.TitleCNList.length > 0) ? basicInfo.TitleCNList.join(', ') : '' }}
 | 
						|
            </span>
 | 
						|
          </el-form-item>
 | 
						|
        </el-col>
 | 
						|
      </el-row>
 | 
						|
    </el-form>
 | 
						|
  </div>
 | 
						|
</template>
 | 
						|
<script>
 | 
						|
 | 
						|
export default {
 | 
						|
  props: {
 | 
						|
    basicInfo: {
 | 
						|
      type: Object,
 | 
						|
      default() {
 | 
						|
        return {}
 | 
						|
      }
 | 
						|
    },
 | 
						|
    isEnglish: {
 | 
						|
      type: Boolean
 | 
						|
    }
 | 
						|
  }
 | 
						|
}
 | 
						|
</script>
 | 
						|
<style lang="scss">
 | 
						|
.basic-info{
 | 
						|
  padding:5px 15px;
 | 
						|
  font-size:13px;
 | 
						|
  .el-form-item--mini.el-form-item{
 | 
						|
    margin-bottom: 0px;
 | 
						|
  }
 | 
						|
  .el-form-item--small.el-form-item{
 | 
						|
    margin-bottom: 0px;
 | 
						|
  }
 | 
						|
  .el-form-item__content{
 | 
						|
    font-size: 13px;
 | 
						|
  }
 | 
						|
  .el-form-item__label{
 | 
						|
    font-size: 13px;
 | 
						|
    color: #303133;
 | 
						|
    font-weight: bold;
 | 
						|
  }
 | 
						|
}
 | 
						|
</style>
 |