Browse Source

修改显示方式

lex-xin 4 years ago
parent
commit
d4f323067a
1 changed files with 9 additions and 8 deletions
  1. 9 8
      src/views/teamBuild/forecastName.vue

+ 9 - 8
src/views/teamBuild/forecastName.vue

@@ -129,13 +129,9 @@
                     </el-table-column>
                     <el-table-column
                         align="center"
-                        prop="realName"
+                        prop="kitPurchaseMethod"
                         label="乐器准备方式"
-                    >
-                        <template slot-scope="scope">
-                            {{ scope.row.kitPurchaseMethod == 1 ? '参与团购' : '自行准备' }}
-                        </template>
-                    </el-table-column>
+                    ></el-table-column>
                     <el-table-column
                         align="center"
                         prop="courseScheduleId"
@@ -248,8 +244,8 @@ export default {
             },
         }
     },
-    mounted() {
-        this.$store.dispatch('setSubjects')
+    async mounted() {
+        await this.$store.dispatch('setSubjects')
         this.getList()
     },
     methods: {
@@ -279,6 +275,11 @@ export default {
         },
         async onPaymentGroup(type) {
             try {
+                await this.$confirm('您是否确定开启乐团缴费?', '提示', {
+                    confirmButtonText: '确定',
+                    cancelButtonText: '取消',
+                    type: 'warning'
+                })
                 const result = await finishPreApply({
                     isCheckStudentNum: type == 1  ? false : true,
                     musicGroupId: this.musicGroupId