conSole.vue 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  1. <template>
  2. <div>
  3. <el-breadcrumb separator-class="el-icon-arrow-right">
  4. <el-breadcrumb-item>首页</el-breadcrumb-item>
  5. <el-breadcrumb-item>控制台</el-breadcrumb-item>
  6. </el-breadcrumb>
  7. <div class="workblock">
  8. <!-- 搜索机构 -->
  9. <div class="block" @click="searchInstitution()">
  10. <el-image class="imagee" style="width: 150px; height: 150px" :src=a></el-image>
  11. </div>
  12. <!-- 监测任务 -->
  13. <div class="block" @click="monitoringTasks()">
  14. <el-image class="imagee" style="width: 150px; height: 150px" :src=b></el-image>
  15. </div>
  16. <!-- 历史任务 -->
  17. <div class="block" @click="queryTask()">
  18. <el-image class="imagee" style="width: 150px; height: 150px" :src=c></el-image>
  19. </div>
  20. <!-- 退回任务 -->
  21. <div class="block" @click="tuiHui()">
  22. <el-image class="imagee" style="width: 150px; height: 150px" :src=d></el-image>
  23. </div>
  24. <!-- 系统介绍 -->
  25. <div class="block" @click="SystemIntroduction()">
  26. <el-image class="imagee" style="width: 150px; height: 150px" :src=e></el-image>
  27. </div>
  28. <!-- 数据统计 -->
  29. <div class="block" @click="searchDataChart()">
  30. <el-image class="imagee" style="width: 150px; height: 150px" :src=f></el-image>
  31. </div>
  32. </div>
  33. </div>
  34. </template>
  35. <script>
  36. export default {
  37. data() {
  38. return {
  39. a: require('../../assets/img/jgcx.png'),
  40. b: require('../../assets/img/jcrw.png'),
  41. c: require('../../assets/img/lsrw.png'),
  42. d: require('../../assets/img/tuihui.png'),
  43. e: require('../../assets/img/sjfx.png'),
  44. f: require('../../assets/img/xtjs.png'),
  45. msg: 'Welcome to Your Vue.js App'
  46. }
  47. },
  48. mounted() {
  49. // this.drawHistogram();
  50. },
  51. created() {
  52. },
  53. methods: {
  54. async searchInstitution() {
  55. this.$router.push({
  56. path: '/admin/getOrganization',
  57. })
  58. },
  59. async monitoringTasks() {
  60. this.$router.push({
  61. path: '/admin/conSoleChild',
  62. })
  63. },
  64. async queryTask() {
  65. this.$router.push({
  66. path: '/admin/historyTask'
  67. })
  68. },
  69. async tuiHui() {
  70. this.$router.push({
  71. path: '/admin/tuiHui'
  72. })
  73. },
  74. async SystemIntroduction() {
  75. this.$router.push({
  76. path: '/admin/dataEchart'
  77. })
  78. },
  79. async searchDataChart() {
  80. this.$router.push({
  81. path: '/admin/systemIntro'
  82. })
  83. },
  84. }
  85. }
  86. </script>
  87. <style lang="less" scoped>
  88. .workblock{
  89. display: flex;
  90. justify-content: center;
  91. align-items: center;
  92. height: 80%;
  93. height: 28rem;
  94. .block{
  95. margin: 1.25rem 1.25rem;
  96. // box-shadow: 10px 10px 5px #888888;
  97. }
  98. .block:hover {
  99. // box-shadow: 0px 0px 0px #ccc;
  100. transition-duration: 0.4s;
  101. transform: scale(1.05);
  102. // z-index: 10;
  103. // box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1)
  104. }
  105. .imagee{
  106. box-shadow: 8px 5px 20px #cecece;
  107. }
  108. }
  109. </style>