<template>
  <div class="rightMiddle">
    <dv-border-box-13>
      <dv-scroll-board :config="config" />
    </dv-border-box-13>
  </div>
</template>

<script>
import dayjs from 'dayjs';
const today = dayjs().format("YYYY-MM-DD");

export default {
  data() {
    return {
      title: '白班 手术间：78 护理人员：135',
      titleWidth: 380,
      config: {
        header: ['手术间', '手术名称', '申请类型', '入手术室时间', '麻醉开始时间', '手术开始时间', '是否准点'],
        data: [
          [
            `001`,
            `阑尾切除术`,
            `<span class="otherDay">择期</span>`,
            `${today} 07:45`,
            `${today} 07:58`,
            `${today} 08:00`,
            `<span class="colorBlue">准点</span>`,
          ],
          [
            `002`,
            `膝关节置换术`,
            `<span class="otherDay">择期</span>`,
            `${today} 07:50`,
            `${today} 07:59`,
            `${today} 08:03`,
            `<span class="colorpurple">不准点</span>`,
          ],
          [
            `003`,
            `白内障手术`,
            `<span class="otherDay">择期</span>`,
            `${today} 07:45`,
            `${today} 07:55`,
            `${today} 07:58`,
            `<span class="colorBlue">准点</span>`,
          ],
          [
            `004`,
            `胆囊切除术`,
            `<span class="otherDay">择期</span>`,
            `${today} 07:30`,
            `${today} 07:40`,
            `${today} 07:45`,
            `<span class="colorBlue">准点</span>`,
          ],
          [
            `005`,
            `阑尾切除术`,
            `<span class="otherDay">择期</span>`,
            `${today} 08:25`,
            `${today} 08:40`,
            `${today} 08:45`,
            `<span class="colorpurple">不准点</span>`,
          ],
          [
            `006`,
            `膝关节置换术`,
            `<span class="otherDay">择期</span>`,
            `${today} 07:40`,
            `${today} 07:49`,
            `${today} 07:55`,
            `<span class="colorBlue">准点</span>`,
          ],
          [
            `007`,
            `阑尾切除术`,
            `<span class="otherDay">择期</span>`,
            `${today} 07:45`,
            `${today} 07:55`,
            `${today} 07:58`,
            `<span class="colorBlue">准点</span>`,
          ],
          [
            `008`,
            `白内障手术`,
            `<span class="otherDay">择期</span>`,
            `${today} 07:30`,
            `${today} 07:42`,
            `${today} 07:53`,
            `<span class="colorBlue">准点</span>`,
          ],
          [
            `009`,
            `胆囊切除术`,
            `<span class="otherDay">择期</span>`,
            `${today} 08:25`,
            `${today} 08:45`,
            `${today} 09:00`,
            `<span class="colorpurple">不准点</span>`,
          ],
          [
            `010`,
            `膝关节置换术`,
            `<span class="otherDay">择期</span>`,
            `${today} 07:15`,
            `${today} 07:45`,
            `${today} 07:30`,
            `<span class="colorBlue">准点</span>`,
          ],
          [
            `011`,
            `阑尾切除术`,
            `<span class="otherDay">择期</span>`,
            `${today} 07:30`,
            `${today} 07:38`,
            `${today} 07:45`,
            `<span class="colorBlue">准点</span>`,
          ],
          [
            `012`,
            `白内障手术`,
            `<span class="otherDay">择期</span>`,
            `${today} 07:42`,
            `${today} 07:50`,
            `${today} 07:54`,
            `<span class="colorBlue">准点</span>`,
          ],
          [
            `013`,
            `胆囊切除术`,
            `<span class="otherDay">择期</span>`,
            `${today} 07:50`,
            `${today} 07:53`,
            `${today} 07:56`,
            `<span class="colorBlue">准点</span>`,
          ],
          [
            `014`,
            `阑尾切除术`,
            `<span class="otherDay">择期</span>`,
            `${today} 07:30`,
            `${today} 07:39`,
            `${today} 07:45`,
            `<span class="colorBlue">准点</span>`,
          ],
          [
            `015`,
            `膝关节置换术`,
            `<span class="otherDay">择期</span>`,
            `${today} 07:30`,
            `${today} 07:00`,
            `${today} 07:45`,
            `<span class="colorBlue">准点</span>`,
          ],
          [
            `016`,
            `白内障手术`,
            `<span class="otherDay">择期</span>`,
            `${today} 07:40`,
            `${today} 07:56`,
            `${today} 07:58`,
            `<span class="colorBlue">准点</span>`,
          ],
          [
            `017`,
            `胆囊切除术`,
            `<span class="otherDay">择期</span>`,
            `${today} 07:35`,
            `${today} 07:45`,
            `${today} 07:53`,
            `<span class="colorBlue">准点</span>`,
          ],
          [
            `018`,
            `阑尾切除术`,
            `<span class="otherDay">择期</span>`,
            `${today} 07:42`,
            `${today} 07:54`,
            `${today} 07:59`,
            `<span class="colorBlue">准点</span>`,
          ],
          [
            `019`,
            `膝关节置换术`,
            `<span class="otherDay">择期</span>`,
            `${today} 07:42`,
            `${today} 07:58`,
            `${today} 08:00`,
            `<span class="colorBlue">准点</span>`,
          ],
          [
            `020`,
            `白内障手术`,
            `<span class="otherDay">择期</span>`,
            `${today} 07:20`,
            `${today} 07:39`,
            `${today} 07:45`,
            `<span class="colorBlue">准点</span>`,
          ],
        ],
        rowNum: 12,
        waitTime: 10000,
        carousel: 'page',
        headerBGC: 'rgba(74, 78, 103, 0.4)',
        oddRowBGC: 'rgba(74, 78, 103, 0.15)',
        evenRowBGC: 'rgba(74, 78, 103, 0.15)',
        headerHeight: '48',
        align: ['center', 'center', 'center', 'center', 'center', 'center', 'center'],
        columnWidth: [95, 220, 90],
      },
    };
  },
};
</script>

<style lang="scss" scoped>
@import '@/assets/scss/pxtovw.scss';
.rightMiddle {
  height: 100%;
  background: #011343;
  :deep(.dv-border-box-13) {
    box-sizing: border-box;
    padding: vw(20);
    .dv-scroll-board {
      height: 100%;
      .header-item {
        font-size: vw(16);
        color: '#aaa';
      }
      .ceil {
        font-size: vw(16);
        white-space: nowrap;
      }
      .row-item {
        .colorBlue {
          color: #349afc !important;
        }
        .colorpurple {
          color: #a53faf !important;
        }
        .emergent {
          padding: vw(5) vw(10);
          color: #03f0b4;
          border: 1px solid #03f0b4;
          border-radius: 4px;
        }
        .otherDay {
          padding: vw(5) vw(10);
          color: #f08503;
          border: 1px solid #f08503;
          border-radius: 4px;
        }
      }
    }
  }
}
</style>
