index.vue 825 B

1234567891011121314151617181920212223242526272829303132333435
  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%">', '系统架构图', {
  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: 85%;
  30. }
  31. </style>