<template>
  <el-drawer
    title="消息通知"
    :visible.sync="drawer"
    direction="rtl"
  >
    <el-card class="box-card">
      <div slot="header" class="clearfix">
        <el-input type="input" placeholder="请输入搜索内容" />
      </div>
      <!-- <div v-for="o in 4" :key="o" class="text item">
        {{ '消息 ' + o }}
      </div> -->
      <el-table :data="list">
        <el-table-column type="selection" width="55" align="center" />
        <el-table-column prop="message" label="消息名称" />
      </el-table>
      <el-row :gutter="10">
        <el-col :span="1.5">
          <el-button class="text-danger" plain>删除</el-button>
        </el-col>
        <el-col :span="1.5">
          <el-button plain>标记已读</el-button>
        </el-col>
        <el-col :span="1.5">
          <el-button plain>全部已读</el-button>
        </el-col>
      </el-row>
    </el-card>
  </el-drawer>
</template>

<script>

export default {
  data() {
    return {
      drawer: false,
      theme: this.$store.state.settings.theme,
      sideTheme: this.$store.state.settings.sideTheme,
      list: [
        { message: 'xx申请的特采流程请审批' },
        { message: '端午放假通知公告' },
        { message: 'xxxx采购订单审批流程' },
        { message: 'xxxx采购订单审批流程' },
        { message: 'xx申请的特采流程请审批' },
        { message: 'xx申请的特采流程请审批' }
      ]
    }
  },
  computed: {
    fixedHeader: {
      get() {
        return this.$store.state.settings.fixedHeader
      },
      set(val) {
        this.$store.dispatch('settings/changeSetting', {
          key: 'fixedHeader',
          value: val
        })
      }
    }
  },
  methods: {
  }
}
</script>

<style lang="scss" scoped>

.setting-drawer-content {
  .setting-drawer-title {
    margin-bottom: 12px;
    color: rgba(0, 0, 0, .85);
    font-size: 14px;
    line-height: 22px;
    font-weight: bold;
  }

  .setting-drawer-block-checbox {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-top: 10px;
    margin-bottom: 20px;

    .setting-drawer-block-checbox-item {
      position: relative;
      margin-right: 16px;
      border-radius: 2px;
      cursor: pointer;

      img {
        width: 48px;
        height: 48px;
      }

      .setting-drawer-block-checbox-selectIcon {
        position: absolute;
        top: 0;
        right: 0;
        width: 100%;
        height: 100%;
        padding-top: 15px;
        padding-left: 24px;
        color: #1890ff;
        font-weight: 700;
        font-size: 14px;
      }
    }
  }
}

.drawer-container {
  padding: 24px;
  font-size: 14px;
  line-height: 1.5;
  word-wrap: break-word;

  .drawer-title {
    margin-bottom: 12px;
    color: rgba(0, 0, 0, .85);
    font-size: 18px;
    line-height: 22px;
  }

  .drawer-item {
    color: rgba(0, 0, 0, .65);
    font-size: 14px;
    padding: 12px 0;
  }

  .drawer-switch {
    float: right
  }
}
</style>
