mo 4 лет назад
Родитель
Сommit
e3508cdd5f

+ 1 - 3
src/views/teamBuild/modals/change-voice.vue

@@ -405,7 +405,7 @@ export default {
     },
   },
   mounted() {
-    if (this.detail && this.detail.id) {
+    if (this.detail && this.detail.userId) {
       this.fetchDetail();
     }
   },
@@ -418,7 +418,6 @@ export default {
       const setRes = (res) => {
         const { data } = res;
         this.item = data || {};
-        console.log(this.item, "item");
         if (data) {
           this.$set(this.form, "type", this.item.kitGroupPurchaseType);
           this.originalAccessoriesPrice = data.originalAccessoriesPrice;
@@ -515,7 +514,6 @@ export default {
     submit() {
       this.$refs["form"].validate((valid) => {
         if (valid) {
-          console.log(this.item)
           subjectChangeAdd({
             changeCourseFee: this.numFormat(
               this.musicGroupSubjectPlanFee -

+ 1 - 1
src/views/teamDetail/components/studentList.vue

@@ -1022,7 +1022,7 @@
       title="更改声部"
       :visible.sync="changeVoiceVisible"
       @close="closeChangeVoice"
-      :destroy-on-close="true"
+      v-if="changeVoiceVisible"
       width="600px"
     >
       <changeVoice