index.vue 865 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <template>
  2. <div class="app-container">
  3. <div class="tabs">
  4. <el-button @click="clickFire(0)" type="primary" plain v-if="open == 0">消防监督</el-button>
  5. <el-button @click="clickFire(1)" v-else>消防监督</el-button>
  6. <el-button @click="clickFire(2)" >九小单位</el-button>
  7. </div>
  8. <img
  9. src="../../../../static/jiandu.png"
  10. alt=""
  11. v-if="open == 1 || open == 0"
  12. style="width: 100%; height: 100%"
  13. />
  14. <img
  15. src="../../../../static/jiuxiao.png"
  16. alt=""
  17. v-if="open == 2"
  18. style="width: 100%; height: 100%"
  19. />
  20. </div>
  21. </template>
  22. <script>
  23. export default {
  24. data() {
  25. return {
  26. open:0
  27. };
  28. },
  29. methods: {
  30. clickFire(value){
  31. this.open= value
  32. }
  33. }
  34. };
  35. </script>
  36. <style>
  37. .tabs{
  38. margin-bottom: 12px;
  39. }
  40. </style>