conSoleChild.vue 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. <template>
  2. <div>
  3. <div class="title">
  4. 新增监测任务
  5. </div>
  6. <div class="workblock">
  7. <div @click="routineMonitor()">
  8. <el-button class="block" type="success" icon="el-icon-s-order">例行监测</el-button>
  9. </div>
  10. <div @click="specialMonitor()">
  11. <el-button class="block" type="primary" icon="el-icon-aim">专项监测</el-button>
  12. </div>
  13. <div @click="checkMonitor()">
  14. <el-button class="block" type="warning" icon="el-icon-edit-outline">监督抽查</el-button>
  15. </div>
  16. </div>
  17. <div>
  18. <el-button class="return" @click="fanhui">返回控制台</el-button>
  19. </div>
  20. </div>
  21. </template>
  22. <script>
  23. export default {
  24. data() {
  25. return {
  26. // lx: require('../../assets/img/jgcx.png'),
  27. // zx: require('../../assets/img/jcrw.png'),
  28. // jd: require('../../assets/img/jccx.png'),
  29. }
  30. },
  31. mounted() {
  32. },
  33. created() {
  34. },
  35. methods: {
  36. async routineMonitor() {
  37. this.$router.push({
  38. path: '/admin/addTask',
  39. })
  40. },
  41. async specialMonitor() {
  42. this.$router.push({
  43. path: '/admin/addTaskZx',
  44. })
  45. },
  46. async checkMonitor() {
  47. this.$router.push({
  48. path: '/admin/addTaskJd'
  49. })
  50. },
  51. async fanhui(){
  52. this.$router.push({path: '/admin/conSole'})
  53. }
  54. },
  55. }
  56. </script>
  57. <style lang="less" scoped>
  58. .workblock{
  59. display: flex;
  60. justify-content: center;
  61. align-items: center;
  62. height: 80%;
  63. height: 28rem;
  64. .block{
  65. margin: 1.25rem 1.25rem;
  66. width: 200px;
  67. height: 100px;
  68. font-size: 18px;
  69. }
  70. .block:hover {
  71. // box-shadow: 0px 0px 0px #ccc;
  72. transition-duration: 0.4s;
  73. transform: scale(1.05);
  74. // z-index: 10;
  75. // box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1)
  76. }
  77. }
  78. .return{
  79. float: right;
  80. margin-bottom: 10px;
  81. }
  82. .title {
  83. margin-left: 45%;
  84. margin-bottom: 20px;
  85. font-size: 20px;
  86. }
  87. </style>