wolyshaw пре 4 година
родитељ
комит
5a981cf33b

Разлика између датотеке није приказан због своје велике величине
+ 0 - 0
dist/index.html


Разлика између датотеке није приказан због своје велике величине
+ 0 - 0
dist/static/css/chunk-0843d33d.4e7ab0b9.css


Разлика између датотеке није приказан због своје велике величине
+ 0 - 0
dist/static/js/app.5375645b.js


Разлика између датотеке није приказан због своје велике величине
+ 0 - 0
dist/static/js/chunk-0843d33d.753475a9.js


Разлика између датотеке није приказан због своје велике величине
+ 0 - 0
dist/static/js/chunk-4968a6f9.7db5f3f1.js


+ 4 - 4
src/views/teamBuild/modals/change-voice.vue

@@ -312,7 +312,7 @@ export default {
     }
   },
   mounted() {
-    if (this.detail) {
+    if (this.detail && this.detail.id) {
       this.fetchDetail()
     }
   },
@@ -321,7 +321,7 @@ export default {
       copy(url)
       this.$message.success('复制成功')
     },
-    fetchDetail() {
+    async fetchDetail() {
       const setRes = res => {
         const { data } = res
         this.item = data || {}
@@ -334,7 +334,7 @@ export default {
         }
       }
       if (this.detail.subjectChange) {
-        getChangeInfo({
+        await getChangeInfo({
           id: this.detail.subjectChange.id
         })
         .then(res => {
@@ -342,7 +342,7 @@ export default {
           this.changeInfo = res.data
         })
       } else {
-        getStudentOriginal({
+        await getStudentOriginal({
           musicGroupId: this.musicGroupId,
           studentId: this.detail.studentId,
         })

+ 18 - 9
src/views/teamBuild/signupList.vue

@@ -733,7 +733,14 @@ export default {
         page: this.rules.page,
         rows: this.rules.limit
       }
-      getStudentList(obj).then(res => {
+      // 根据乐团id获取学团情况
+      getintoClass({ musicGroupId: this.id }).then(res => {
+        if (res.code == 200) {
+          this.leftList = res.data;
+        }
+      })
+
+      return getStudentList(obj).then(res => {
         if (res.code == 200) {
           res.data.rows.forEach(item => {
             // '未开启缴费', '开启缴费', '已缴费'
@@ -743,12 +750,7 @@ export default {
           })
           this.rightList = res.data.rows
           this.rules.total = res.data.total
-        }
-      })
-      // 根据乐团id获取学团情况
-      getintoClass({ musicGroupId: this.id }).then(res => {
-        if (res.code == 200) {
-          this.leftList = res.data;
+          return res
         }
       })
     },
@@ -1107,8 +1109,15 @@ export default {
       this.visitVisiable = true;
     },
     openChangeVoice(row) {
-      this.rowDetail = {...row}
-      this.changeVoiceVisible = true
+      this.getList()
+      .then(res => {
+        for (const item of res.data.rows) {
+          if (item.id === row.id) {
+            this.rowDetail = {...item}
+            this.changeVoiceVisible = true
+          }
+        }
+      })
     },
     closeChangeVoice() {
       this.changeVoiceVisible = false

Неке датотеке нису приказане због велике количине промена