mo преди 3 години
родител
ревизия
4e343a6753

+ 3 - 2
src/views/teamBuild/components/soundSetComponents/chioseMusic.vue

@@ -164,10 +164,11 @@ export default {
   },
   created() {},
   mounted() {
+    console.log({...this.item})
     if (this.item.chioseMusic.length < 1) {
       this.item.chioseMusic.push({
         musical: "",
-        type: ["GROUP"],
+        type: [],
         groupPrice: 0,
         borrowPrice: 1500,
         groupRemissionCourseFee: false,
@@ -185,7 +186,7 @@ export default {
     addMusic() {
       this.item.chioseMusic.push({
         musical: "",
-        type: ["GROUP"],
+        type: [],
         groupPrice: null,
         borrowPrice: 1500,
         groupRemissionCourseFee: 0,

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

@@ -252,6 +252,7 @@ export default {
                         // 格式化商品和教辅
                         res.data.musicGroupSubjectGoodsGroups.forEach(
                           (shop) => {
+
                             let index = findIndex(this.activeSoundList, (o) => {
                               return o.id == shop.subjectId;
                             });
@@ -355,6 +356,7 @@ export default {
       this.soundVisible = false;
     },
     initSound(item) {
+
       let obj = {
         id: item.id,
         sound: item.name,
@@ -362,7 +364,7 @@ export default {
         chioseMusic: [
           {
             musical: "",
-            type: ["GROUP"],
+            type: [],
             groupPrice: 0,
             borrowPrice: 1500,
             groupRemissionCourseFee: Boolean(item.groupRemissionCourseFee),