FrameTemplate.vue 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. <template>
  2. <el-dialog
  3. :title="$t('common.CompanyProfile')"
  4. :visible.sync="dialogVisible"
  5. width="60%"
  6. :before-close="toViewLoginChange">
  7. <slot name="center"></slot>
  8. </el-dialog>
  9. </template>
  10. <script>
  11. export default {
  12. name: 'LoginMusk',
  13. props:{
  14. dialogVisible: {
  15. type: Boolean,
  16. default: false
  17. },
  18. title:{
  19. type:String,
  20. default:''
  21. },
  22. width:{
  23. type:String,
  24. default:'60%'
  25. }
  26. },
  27. data () {
  28. return {
  29. }
  30. },
  31. watch: {
  32. },
  33. methods:{
  34. toView(router, json) {
  35. clearInterval(this.timer);
  36. this.$router.push({ name: router, params: {key:json} });
  37. },
  38. toViewLoginChange(done){
  39. debugger
  40. this.$emit('FrameBack',false)
  41. },
  42. }
  43. }
  44. </script>