adminRefute.vue 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. <template>
  2. <div id="index">
  3. <el-row>
  4. <el-col :span="24" class="main">
  5. <el-col :span="24" class="top">
  6. <top topType="2" :leftArrow="false"></top>
  7. </el-col>
  8. <el-col :span="24" class="info" :style="{ height: clientHeight + 'px' }">
  9. 文章辟谣
  10. </el-col>
  11. <el-col :span="24" class="foot">
  12. <foot></foot>
  13. </el-col>
  14. </el-col>
  15. </el-row>
  16. </div>
  17. </template>
  18. <script>
  19. import top from '@/layout/common/top.vue';
  20. import foot from '@/layout/common/foot.vue';
  21. import { mapState, createNamespacedHelpers } from 'vuex';
  22. export default {
  23. name: 'index',
  24. props: {},
  25. components: {
  26. top,
  27. foot,
  28. },
  29. data: function() {
  30. return {
  31. clientHeight: '',
  32. };
  33. },
  34. created() {},
  35. mounted() {
  36. let clientHeight = (document.documentElement.clientHeight || document.body.clientHeight) - 90;
  37. this.$set(this, `clientHeight`, clientHeight);
  38. },
  39. methods: {},
  40. computed: {
  41. ...mapState(['user']),
  42. },
  43. metaInfo() {
  44. return { title: this.$route.meta.title };
  45. },
  46. watch: {},
  47. };
  48. </script>
  49. <style lang="less" scoped>
  50. .main {
  51. .top {
  52. height: 40px;
  53. overflow: hidden;
  54. border-bottom: 1px solid #f1f1f1;
  55. }
  56. .info {
  57. overflow-x: hidden;
  58. overflow-y: auto;
  59. }
  60. .foot {
  61. height: 50px;
  62. overflow: hidden;
  63. border-top: 1px solid #f1f1f1;
  64. }
  65. }
  66. </style>