resetSoundv2.vue 955 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <template>
  2. <div>
  3. <soundSetCore ref="soundSetCore" />
  4. <div class="btnWrap"
  5. v-if="lookType!=='look'"
  6. style="margin-top:30px">
  7. <div class="closeBtn"
  8. @click="getSound">取消</div>
  9. <div class="okBtn"
  10. v-permission="{child: 'musicGroup/updateSubjectInfo', parent: '/resetTeaming/resetSound'}"
  11. @click="saveInfo">保存</div>
  12. </div>
  13. </div>
  14. </template>
  15. <script>
  16. import soundSetCore from '@/views/teamBuild/components/soundSetComponents/soundSetCore'
  17. export default {
  18. components: { soundSetCore },
  19. data () {
  20. return {
  21. lookType: ''
  22. }
  23. },
  24. mounted(){
  25. this.init()
  26. },
  27. activated(){
  28. this.init()
  29. },
  30. methods: {
  31. init(){
  32. this.lookType = this.$route.query.type
  33. },
  34. saveInfo () {
  35. this.$refs.soundSetCore.submitInfo()
  36. },
  37. getSound () {
  38. this.$refs.soundSetCore.init()
  39. },
  40. }
  41. }
  42. </script>
  43. <style lang="scss" scoped>
  44. </style>