<template>
  <div class="overView">
    <el-table
      :data="tableData"
      style="width: 100%;margin-top: 16px"
    >
      <el-table-column
        prop="name"
        label="门诊"
      >
        <template slot-scope="scope">
          <p>主诉：要求眼部视力检查</p>
          <p>现病史：要求眼部视力检查</p>
          <p>既往史：要求眼部视力检查</p>
          <p>诊断：要求眼部视力检查</p>
          <p>治疗意见：要求眼部视力检查</p>
        </template>
      </el-table-column>
    </el-table>
    <el-table
      :data="tableData"
      style="width: 100%;margin-top: 16px"
    >
      <el-table-column
        prop="name"
        label="手术"
      >
        <template slot-scope="scope">
          <p>手术名称：要求眼部视力检查</p>
          <p>主刀医生：要求眼部视力检查</p>
          <p>手术记录：要求眼部视力检查</p>
        </template>
      </el-table-column>
    </el-table>
  </div>
</template>
<script>
const Base64 = require('js-base64').Base64
export default {
  components: {
  },
  mixins: [],
  props: {
    editorIDName: {
      type: String,
      default: ''
    },
    patientIdNumber: {
      type: String,
      default: ''
    },
    patientId: {
      type: String,
      default: ''
    },
    currentArchiveList: {
      type: Object,
      default: () => { }
    }
  },
  inject: ['refresh'],
  data() {
    return {
      checked: '',
      radio2: '',
      value: '',
      shiliAndYanya: {},
      multipleSelection: [],
      tableData: [{
        date: '2016-05-02',
        name: '王小虎',
        address: '上海市普陀区金沙江路 1518 弄'
      }, {
        date: '2016-05-04',
        name: '王小虎',
        address: '上海市普陀区金沙江路 1517 弄'
      }]
    }
  },
  created() {

  },
  mounted() {
  },
  methods: {
    async getShiLiAndYanYaData() {
      const { data: res } = await this.$http.get('/patient/view/getYanZouAndYanYaData', {
        params: {
          patientId: '200203836'
          // patientId: this.patientId
        }
      })
      if (res.code === 0) {
        this.shiliAndYanya = res.data
      } else {
        this.shiliAndYanya = {}
        this.$message.error(res.msg)
      }
    },
    handleSelectionChange(val) {
      this.multipleSelection = val
    },
    // 查看报告
    handleRecord() {

    },
    objectSpanMethod({ row, column, rowIndex, columnIndex }) {
      if (columnIndex === 0) {
        if (rowIndex % 2 === 0) {
          return {
            rowspan: 2,
            colspan: 1
          }
        } else {
          return {
            rowspan: 0,
            colspan: 0
          }
        }
      }
    },
    // 共三个参数，依次为：传递给 data 属性的数组中该节点所对应的对象、节点对应的 Node、节点组件本身
    handleMoveCopyNodeClick(data) {
      this.currentNodeKey = data.id
    }
  }
}
</script>
<style lang="scss" scoped>
.overView{
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  overflow-y: auto;

  .header{
    width: 100%;
    display: flex;
    justify-content: space-between;
    height: 49px;
    line-height: 49px;
    padding: 0px 16px;
    box-sizing: border-box;
    margin-bottom: 32px;
    border: 1px solid rgba(0, 0, 0, 0.06);
  }
  .content{
    width: 100%;
    //display: flex;
    //justify-content: space-between;
    box-sizing: border-box;

  }
  .lineBox{
    //width: 48%;
    width: 100%;
    height: 260px;
    padding: 16px;
    box-sizing: border-box;
    border: 1px solid rgba(0, 0, 0, 0.06);
    margin-bottom: 32px;
  }
  .scroll-echearts {
    padding: 5px 0;
    flex: 1;
    margin-bottom: 16px;
    //background: #171515;
    border-radius: 4px;
  }
  .eyeBox{
    width: 480px;
    height: 180px;
    display: flex;
    margin-left: 32px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    .eye{
      width: 50%;
      display: flex;
      flex-direction: column;

      div{
        height: 45px;
        line-height: 45px;
        text-align: center;
      }
      .info{
        display: flex;
        justify-content: space-between;
        padding: 0 14px;
        border-top: 1px solid rgba(0, 0, 0, 0.06);
      }
    }
    .el{
      background: rgba(0, 0, 0, 0.04);
    }
  }
  .mr30{
    margin-right: 30px;
  }
}
</style>
<style lang="scss">
.specialBox{
  .el-table th{
    background-color: #FAFAFA;
  }
}
</style>
