notify.vue 3.8 KB
Newer Older
喷火的神灵's avatar
喷火的神灵 已提交
1 2
<!--通知-->
<template>
喷火的神灵's avatar
喷火的神灵 已提交
3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51
  <div class="idxs">
    <div style="height:1000px;margin-right: 500px;margin-left: 0px /* 设置容器高度为视口高度 */;overflow: hidden">
      <div style="width: 1400px;height: 1000px;position: absolute;">
        <div>
          <el-page-header @back="goBack" content="系统消息"></el-page-header>
        </div>
        <br>
        <!--卡片 -->
        <el-card style="height: 1000px">
          <!--让编辑按钮处于一行的右侧-->
          <div style="display: flex; justify-content: space-between;">
            <span>全部消息</span>
          </div>
          <!--分隔行-->
          <el-divider content-position="right"></el-divider>

          <!--表格组件-->
          <el-table @click="f()"
                    ref="multipleTable"
                    :data="tableData"
                    tooltip-effect="dark"
                    style="width: 100%"
                    @selection-change="handleSelectionChange">
            <el-table-column class="aaa"
                             type="selection"
                             width="55">
            </el-table-column>
            <el-table-column class="aaa"
                             label="日期"
                             width="120">
              <template slot-scope="scope">{{ scope.row.date }}</template>
            </el-table-column>
            <el-table-column class="aaa"
                             prop="title"
                             label="标题"
                             width="120">
            </el-table-column>
            <el-table-column class="aaa"
                             prop="content"
                             label="内容"
                             show-overflow-tooltip>
            </el-table-column>
          </el-table>
          <div style="margin-top: 20px" v-show="this.deleate">
            <el-button><i class="el-icon-delete"></i></el-button>
          </div>


        </el-card>
喷火的神灵's avatar
喷火的神灵 已提交
52 53 54 55 56 57
        </div>
      </div>
    </div>
</template>

<script>
喷火的神灵's avatar
喷火的神灵 已提交
58 59
import Handder from "@/components/Handder.vue";
import Sidebar from "@/components/sidebar.vue";
喷火的神灵's avatar
喷火的神灵 已提交
60 61 62

export default {
  name: "notify",
喷火的神灵's avatar
喷火的神灵 已提交
63
  components: {Sidebar, Handder},
喷火的神灵's avatar
喷火的神灵 已提交
64 65
  data() {
    return {
喷火的神灵's avatar
喷火的神灵 已提交
66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104
      size: "200",
      avatarUrl: "",
      tableData: [{
        date: '2016-05-03',
        title: '王小虎',
        content: '上海市普陀区金沙江路 1518 弄'
      }, {
        date: '2016-05-02',
        title: '王小虎',
        content: '上海市普陀区金沙江路 1518 弄'
      }, {
        date: '2016-05-04',
        title: '王小虎',
        content: '上海市普陀区金沙江路 1518 弄'
      }, {
        date: '2016-05-01',
        title: '王小虎',
        content: '上海市普陀区金沙江路 1518 弄'
      }, {
        date: '2016-05-08',
        title: '王小虎',
        content: '上海市普陀区金沙江路 1518 弄'
      }, {
        date: '2016-05-06',
        title: '王小虎',
        content: '上海市普陀区金沙江路 1518 弄'
      }, {
        date: '2016-05-07',
        title: '王小虎',
        content: '上海市普陀区金沙江路 1518 弄'
      }],
      multipleSelection: [],
      deleate: false,
    }
  },
  methods: {

    handleSelectionChange() {
      this.deleate = true;
喷火的神灵's avatar
喷火的神灵 已提交
105 106 107 108 109 110 111 112 113
    }
  },
  created() {

  }
}
</script>

<style scoped>
喷火的神灵's avatar
喷火的神灵 已提交
114 115 116 117 118 119 120
@media screen and (min-width: 1970px) {
  .idxs {
    margin: 60px auto;
    width: calc(100% - 290px);
    max-width: 1570px;
    min-width: 1200px;
  }
喷火的神灵's avatar
喷火的神灵 已提交
121
}
喷火的神灵's avatar
喷火的神灵 已提交
122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138

@media screen and (max-width: 1969px) {
  .idxs {
    /*width: 1270px;*/
    /*min-width: 1000px;*/
    /*margin-top: 60px;*/
    /*margin-left: 270px;*/
    /*padding: 40px;*/
    width: calc(100% - 290px);
    max-width: 1570px;
    min-width: 1200px;
    margin: 60px auto;
  }

  .idxs {
    margin-left: 350px;
  }
喷火的神灵's avatar
喷火的神灵 已提交
139
}
喷火的神灵's avatar
喷火的神灵 已提交
140 141


喷火的神灵's avatar
喷火的神灵 已提交
142
</style>