workbench.vue 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129
  1. <template>
  2. <div>
  3. <el-breadcrumb separator-class="el-icon-arrow-right">
  4. <el-breadcrumb-item :to="{ path: '/jc/workbench' }">首页</el-breadcrumb-item>
  5. <el-breadcrumb-item>控制台</el-breadcrumb-item>
  6. </el-breadcrumb>
  7. <div class="workblock">
  8. <div class="block" @click="getRoutineMonitor()">
  9. <el-image style="width: 9.5rem; height: 9.5rem" :src=r></el-image>
  10. </div>
  11. <div class="block" @click="getSpecialMonitor()">
  12. <el-image class="imagee" style="width: 9.5rem; height: 9.5rem" :src=s></el-image>
  13. </div>
  14. <div class="block" @click="getReturnTask()">
  15. <el-image class="imagee" style="width: 9.5rem; height: 9.5rem" :src = re></el-image>
  16. </div>
  17. <div class="block" @click="getSubjectInformation()">
  18. <el-image class="imagee" style="width: 9.5rem; height: 9.5rem" :src=p></el-image>
  19. </div>
  20. <div class="block" @click="getDataStatistic()">
  21. <el-image class="imagee" style="width: 9.5rem; height: 9.5rem" :src=ds></el-image>
  22. </div>
  23. <div class="block" @click="getsy()">
  24. <el-image class="imagee" style="width: 9.5rem; height: 9.5rem" :src=sy></el-image>
  25. </div>
  26. </div>
  27. <!-- <div id="charts">
  28. <div class="chart">
  29. <tasksChart taskClass = "例行监测"></tasksChart>
  30. </div>
  31. <div>
  32. <tasksChart taskClass = "专项监测"></tasksChart>
  33. </div>
  34. </div> -->
  35. <!-- <mutiChart></mutiChart> -->
  36. </div>
  37. </template>
  38. <script>
  39. // import tasksChart from './tasksChart'
  40. // import mutiChart from './mutiChart'
  41. export default {
  42. name: "workbench",
  43. data() {
  44. return {
  45. r: require('../../assets/img/routineMo.png'),
  46. s: require('../../assets/img/specialMo.png'),
  47. re: require('../../assets/img/returnTask.png'),
  48. p: require('../../assets/img/personalCenter.png'),
  49. ds: require('../../assets/img/datastatistic.png'),
  50. sy: require('../../assets/img/systemIntroduction.png')
  51. }
  52. },
  53. // components: {
  54. // tasksChart,
  55. // // mutiChart
  56. // },
  57. mounted() {
  58. },
  59. created() {
  60. console.log(this.taskClass);
  61. },
  62. methods: {
  63. async getRoutineMonitor() {
  64. this.$router.push({
  65. path: '/jc/routineMonitor',
  66. })
  67. },
  68. async getSpecialMonitor() {
  69. this.$router.push({
  70. path: '/jc/specialMonitorcd',
  71. })
  72. },
  73. async getReturnTask() {
  74. this.$router.push({
  75. path: '/jc/returnTaskcd',
  76. })
  77. },
  78. async getSubjectInformation() {
  79. this.$router.push({
  80. path: '/jc/subjectInformation'
  81. })
  82. },
  83. async getDataStatistic() {
  84. this.$router.push({
  85. path: '/jc/dataStatistics'
  86. })
  87. },
  88. async getsy() {
  89. this.$router.push({
  90. path: '/jc/systemIntroduce'
  91. })
  92. }
  93. }
  94. }
  95. </script>
  96. <style lang="less" scoped>
  97. .workblock{
  98. display: flex;
  99. justify-content: center;
  100. align-items: center;
  101. height: 28rem;
  102. margin-bottom: 1.25rem;
  103. .block{
  104. margin: 1.25rem 1.25rem;
  105. }
  106. .block:hover {
  107. // box-shadow: 0px 0px 0px #ccc;
  108. transition-duration: 0.4s;
  109. transform: scale(1.05);
  110. // z-index: 10;
  111. // box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1)
  112. }
  113. .imagee{
  114. box-shadow: 8px 5px 20px #cecece;
  115. }
  116. }
  117. // #charts{
  118. // display: flex;
  119. // justify-content: center;
  120. // .chart{
  121. // margin-right: 8rem;
  122. // }
  123. // .tasksChart{
  124. // margin: 1.875rem;
  125. // }
  126. // }
  127. </style>