<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: [
          [
            `<span class='numFont'>001</span>`,
            `阑尾切除术`,
            `<span class="otherDay">择期</span>`,
            `<span class='numFont'>${today} 07:45</span>`,
            `<span class='numFont'>${today} 07:58</span>`,
            `<span class='numFont'>${today} 08:00</span>`,
            `<span class="colorBlue">准点</span>`,
          ],
          [
            `<span class='numFont'>002</span>`,
            `膝关节置换术`,
            `<span class="otherDay">择期</span>`,
            `<span class='numFont'>${today} 07:50</span>`,
            `<span class='numFont'>${today} 07:59</span>`,
            `<span class='numFont'>${today} 08:03</span>`,
            `<span class="colorpurple">不准点</span>`,
          ],
          [
            `<span class='numFont'>003</span>`,
            `白内障手术`,
            `<span class="otherDay">择期</span>`,
            `<span class='numFont'>${today} 07:45</span>`,
            `<span class='numFont'>${today} 07:55</span>`,
            `<span class='numFont'>${today} 07:58</span>`,
            `<span class="colorBlue">准点</span>`,
          ],
          [
            `<span class='numFont'>004</span>`,
            `胆囊切除术`,
            `<span class="otherDay">择期</span>`,
            `<span class='numFont'>${today} 07:30</span>`,
            `<span class='numFont'>${today} 07:40</span>`,
            `<span class='numFont'>${today} 07:45</span>`,
            `<span class="colorBlue">准点</span>`,
          ],
          [
            `<span class='numFont'>005</span>`,
            `阑尾切除术`,
            `<span class="otherDay">择期</span>`,
            `<span class='numFont'>${today} 08:25</span>`,
            `<span class='numFont'>${today} 08:40</span>`,
            `<span class='numFont'>${today} 08:45</span>`,
            `<span class="colorpurple">不准点</span>`,
          ],
          [
            `<span class='numFont'>006</span>`,
            `膝关节置换术`,
            `<span class="otherDay">择期</span>`,
            `<span class='numFont'>${today} 07:40</span>`,
            `<span class='numFont'>${today} 07:49</span>`,
            `<span class='numFont'>${today} 07:55</span>`,
            `<span class="colorBlue">准点</span>`,
          ],
          [
            `<span class='numFont'>007</span>`,
            `阑尾切除术`,
            `<span class="otherDay">择期</span>`,
            `<span class='numFont'>${today} 07:45</span>`,
            `<span class='numFont'>${today} 07:55</span>`,
            `<span class='numFont'>${today} 07:58</span>`,
            `<span class="colorBlue">准点</span>`,
          ],
          [
            `<span class='numFont'>008</span>`,
            `白内障手术`,
            `<span class="otherDay">择期</span>`,
            `<span class='numFont'>${today} 07:30</span>`,
            `<span class='numFont'>${today} 07:42</span>`,
            `<span class='numFont'>${today} 07:53</span>`,
            `<span class="colorBlue">准点</span>`,
          ],
          [
            `<span class='numFont'>009</span>`,
            `胆囊切除术`,
            `<span class="otherDay">择期</span>`,
            `<span class='numFont'>${today} 08:25</span>`,
            `<span class='numFont'>${today} 08:45</span>`,
            `<span class='numFont'>${today} 09:00</span>`,
            `<span class="colorpurple">不准点</span>`,
          ],
          [
            `<span class='numFont'>010</span>`,
            `膝关节置换术`,
            `<span class="otherDay">择期</span>`,
            `<span class='numFont'>${today} 07:15</span>`,
            `<span class='numFont'>${today} 07:45</span>`,
            `<span class='numFont'>${today} 07:30</span>`,
            `<span class="colorBlue">准点</span>`,
          ],
          [
            `<span class='numFont'>011</span>`,
            `阑尾切除术`,
            `<span class="otherDay">择期</span>`,
            `<span class='numFont'>${today} 07:30</span>`,
            `<span class='numFont'>${today} 07:38</span>`,
            `<span class='numFont'>${today} 07:45</span>`,
            `<span class="colorBlue">准点</span>`,
          ],
          [
            `<span class='numFont'>012</span>`,
            `白内障手术`,
            `<span class="otherDay">择期</span>`,
            `<span class='numFont'>${today} 07:42</span>`,
            `<span class='numFont'>${today} 07:50</span>`,
            `<span class='numFont'>${today} 07:54</span>`,
            `<span class="colorBlue">准点</span>`,
          ],
          [
            `<span class='numFont'>013</span>`,
            `胆囊切除术`,
            `<span class="otherDay">择期</span>`,
            `<span class='numFont'>${today} 07:50</span>`,
            `<span class='numFont'>${today} 07:53</span>`,
            `<span class='numFont'>${today} 07:56</span>`,
            `<span class="colorBlue">准点</span>`,
          ],
          [
            `<span class='numFont'>014</span>`,
            `阑尾切除术`,
            `<span class="otherDay">择期</span>`,
            `<span class='numFont'>${today} 07:30</span>`,
            `<span class='numFont'>${today} 07:39</span>`,
            `<span class='numFont'>${today} 07:45</span>`,
            `<span class="colorBlue">准点</span>`,
          ],
          [
            `<span class='numFont'>015</span>`,
            `膝关节置换术`,
            `<span class="otherDay">择期</span>`,
            `<span class='numFont'>${today} 07:30</span>`,
            `<span class='numFont'>${today} 07:00</span>`,
            `<span class='numFont'>${today} 07:45</span>`,
            `<span class="colorBlue">准点</span>`,
          ],
          [
            `<span class='numFont'>016</span>`,
            `白内障手术`,
            `<span class="otherDay">择期</span>`,
            `<span class='numFont'>${today} 07:40</span>`,
            `<span class='numFont'>${today} 07:56</span>`,
            `<span class='numFont'>${today} 07:58</span>`,
            `<span class="colorBlue">准点</span>`,
          ],
          [
            `<span class='numFont'>017</span>`,
            `胆囊切除术`,
            `<span class="otherDay">择期</span>`,
            `<span class='numFont'>${today} 07:35</span>`,
            `<span class='numFont'>${today} 07:45</span>`,
            `<span class='numFont'>${today} 07:53</span>`,
            `<span class="colorBlue">准点</span>`,
          ],
          [
            `<span class='numFont'>018</span>`,
            `阑尾切除术`,
            `<span class="otherDay">择期</span>`,
            `<span class='numFont'>${today} 07:42</span>`,
            `<span class='numFont'>${today} 07:54</span>`,
            `<span class='numFont'>${today} 07:59</span>`,
            `<span class="colorBlue">准点</span>`,
          ],
          [
            `<span class='numFont'>019</span>`,
            `膝关节置换术`,
            `<span class="otherDay">择期</span>`,
            `<span class='numFont'>${today} 07:42</span>`,
            `<span class='numFont'>${today} 07:58</span>`,
            `<span class='numFont'>${today} 08:00</span>`,
            `<span class="colorBlue">准点</span>`,
          ],
          [
            `<span class='numFont'>020</span>`,
            `白内障手术`,
            `<span class="otherDay">择期</span>`,
            `<span class='numFont'>${today} 07:20</span>`,
            `<span class='numFont'>${today} 07:39</span>`,
            `<span class='numFont'>${today} 07:45</span>`,
            `<span class="colorBlue">准点</span>`,
          ],
        ],
        rowNum: 12,
        waitTime: 5000,
        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 {
        border-bottom: vw(8) solid #011343;
        font-size: vw(16);
        white-space: nowrap;
      }
      .row-item {
        .colorBlue {
          color: #349afc !important;
        }
        .colorpurple {
          color: #a53faf !important;
        }
        .emergent {
          padding: vw(2) vw(10);
          color: #03f0b4;
          border: 1px solid #03f0b4;
          border-radius: 4px;
        }
        .otherDay {
          padding: vw(2) vw(10);
          color: #f08503;
          border: 1px solid #f08503;
          border-radius: 4px;
        }
      }
    }
  }
}
</style>
