Browse Source

资格调整修改

1
mo 2 years ago
parent
commit
09572ba54d
1 changed files with 5 additions and 57 deletions
  1. 5 57
      src/views/categroyManager/activeSenior.vue

+ 5 - 57
src/views/categroyManager/activeSenior.vue

@@ -82,85 +82,34 @@
             label="手机号"
           ></el-table-column>
           <el-table-column
-            v-if="courseType && courseType == 'VIP'"
             align="center"
             prop="studentId"
-            label="付费课已使用/剩余资格"
+            label="付费剩余课时数/总课时数"
           >
             <template slot-scope="scope">
               <div v-if="scope.row.userId">
-                {{ scope.row.useVipNum + "" + "/" + scope.row.freeVipNum + "" }}
+                {{ scope.row.subCourseNum + "" + "/" + scope.row.totalCourseNum + "" }}
               </div>
             </template>
           </el-table-column>
           <el-table-column
-            v-else
             align="center"
             prop="studentId"
-            label="付费课已使用/剩余资格"
+            label="赠送剩余课时数/总课时数"
           >
             <template slot-scope="scope">
               <div v-if="scope.row.userId">
                 {{
-                  scope.row.usePracticeNum +
+                  scope.row.subGiveCourseNum +
                   "" +
                   "/" +
-                  scope.row.freePracticeNum +
-                  ""
-                }}
-              </div>
-            </template>
-          </el-table-column>
-
-          <el-table-column
-            v-if="giveCourseType == 'VIP'"
-            align="center"
-            prop="studentId"
-            label="赠课已使用/剩余资格"
-          >
-            <template slot-scope="scope">
-              <div v-if="scope.row.userId">
-                {{
-                  scope.row.useGiveVipNum +
-                  "" +
-                  "/" +
-                  scope.row.freeGiveVipNum +
+                  scope.row.totalGiveCourseNum +
                   ""
                 }}
               </div>
             </template>
           </el-table-column>
           <el-table-column
-            v-if="giveCourseType == 'PRACTICE'"
-            align="center"
-            prop="studentId"
-            label="赠课已使用/剩余资格"
-          >
-            <template slot-scope="scope">
-              <div v-if="scope.row.userId">
-                {{
-                  scope.row.useGivePracticeNum +
-                  "" +
-                  "/" +
-                  scope.row.freeGivePracticeNum +
-                  ""
-                }}
-              </div>
-            </template>
-          </el-table-column>
-          <el-table-column
-            v-if="giveCourseType != 'PRACTICE' && giveCourseType != 'VIP'"
-            align="center"
-            prop="studentId"
-            label="赠课已使用/剩余资格"
-          >
-            <template slot-scope="scope">
-              <div v-if="scope.row.userId">
-                {{ "--" + "/" + "--" }}
-              </div>
-            </template>
-          </el-table-column>
-          <el-table-column
             align="center"
             prop="studentId"
             label="操作"
@@ -180,7 +129,6 @@
                   @click="reduceCount(scope.row)"
                   >减少资格</el-button
                 >
-
                 <el-button
                   type="text"
                   v-permission="'activityUserMapperAdjustLog/queryPage'"