瀏覽代碼

10/30

进行中乐团修改
mo 4 年之前
父節點
當前提交
925629816d

+ 35 - 0
src/views/resetTeaming/components/resetSoundv2.vue

@@ -0,0 +1,35 @@
+<template>
+  <div>
+    <soundSetCore ref="soundSetCore" />
+    <div class="btnWrap"
+         v-if="lookType!=='look'"
+         style="margin-top:30px">
+      <div class="closeBtn"
+           @click="getSound">取消</div>
+      <div class="okBtn"
+           v-permission="{child: 'musicGroup/updateSubjectInfo', parent: '/resetTeaming/resetSound'}"
+           @click="saveInfo">保存</div>
+    </div>
+  </div>
+</template>
+<script>
+import soundSetCore from '@/views/teamBuild/components/soundSetComponents/soundSetCore'
+export default {
+  components: { soundSetCore },
+  data () {
+    return {
+      lookType: ''
+    }
+  },
+  methods: {
+    saveInfo () {
+      this.$refs.soundSetCore.submitInfo()
+    },
+    getSound () {
+      this.$refs.soundSetCore.init()
+    },
+  }
+}
+</script>
+<style lang="scss" scoped>
+</style>

+ 1 - 1
src/views/resetTeaming/index.vue

@@ -54,7 +54,7 @@
 </template>
 <script>
 import teamBaseInfo from '@/views/teamBuild/components/teamBaseInfo'
-import resetSound from '@/views/resetTeaming/components/resetSound'
+import resetSound from '@/views/resetTeaming/components/resetSoundv2'
 import resetClass from '@/views/teamDetail/components/resetClass'
 // import coursePlan from '@/views/teamBuild/teamSeting/components/coursePlan'
 // import lookCourse from '@/views/teamBuild/teamSeting/components/lookCourse'

+ 1 - 0
src/views/teamBuild/components/soundSetComponents/chioseMusic.vue

@@ -1,6 +1,7 @@
 <template>
   <div>
     <div v-for="(music,index) in item.chioseMusic">
+
       </el-row class="chioseMusic">
       <el-col>
         <div class="flexRow">

+ 6 - 3
src/views/teamBuild/components/soundSetComponents/soundSetCore.vue

@@ -2,9 +2,11 @@
   <div>
     <div class="soundBtnWrap">
       <el-button type="primary"
-                 @click="allin">全选</el-button>
+                 @click="allin"
+                 v-if="teamStatus != 'resetTeam'">全选</el-button>
       <el-button type="danger"
-                 @click="deleteRow">删除</el-button>
+                 @click="deleteRow"
+                 v-if="teamStatus != 'resetTeam'">删除</el-button>
       <el-button type="primary"
                  @click="soundVisible = true">添加</el-button>
     </div>
@@ -150,7 +152,8 @@ export default {
                       }
                     })
                     this.activeSound = activeSound;
-                    console.log(this.activeSound)
+                    this.chioseActiveSound = activeSound[0]
+                    this.changeActiveSound(activeSound[0])
                     // 格式化商品和教辅
 
                     res.data.musicGroupSubjectGoodsGroups.forEach(shop => {