index.vue 948 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <template>
  2. <div class="ibps-layout-header-user">
  3. <el-tooltip class="item" effect="dark" content="系统架构图" placement="bottom">
  4. <el-button type="text" @click="open" style="color:#409EFF;font-size:16px;" icon="el-icon-set-up"></el-button>
  5. </el-tooltip>
  6. </div>
  7. </template>
  8. <script>
  9. import imgSrc from '../header-architecture/assets/systemArchitecture.png'
  10. export default {
  11. data() {
  12. return{
  13. }
  14. },
  15. methods: {
  16. open() {
  17. this.$alert('<img src="'+imgSrc+'" alt="" srcset="" style = "width:100%;height:100%;">', '系统架构图', {
  18. dangerouslyUseHTMLString: true,
  19. center: true,
  20. showConfirmButton: false,
  21. customClass: 'headerArchitectureMessageCss'
  22. }).catch(()=>{}) ;
  23. }
  24. }
  25. }
  26. </script>
  27. <style>
  28. .headerArchitectureMessageCss{
  29. width: 100%;
  30. height: 100%;
  31. overflow-y:scroll;
  32. }
  33. .headerArchitectureMessageCss::-webkit-scrollbar {
  34. display: none;
  35. }
  36. </style>