谢杰标 3 gadi atpakaļ
vecāks
revīzija
ab2354d497

+ 10 - 16
src/views/education/classManageMent/classHoursReview/component/LessonTable.vue

@@ -113,9 +113,7 @@
             <el-select
               v-model="scope2.row[item.prop]"
               placeholder="请选择"
-              @change="
-                getNewListchapt(scope.$index, scope2.$index, $event, scope2.row)
-              "
+              @change="getNewListchapt(scope2.$index, $event, scope2.row)"
             >
               <el-option
                 v-for="(items, indexs) in scope2.row['numList']"
@@ -299,15 +297,16 @@ export default {
         return "";
       }
     },
-    getNewListchapt(a, b, int, item) {
+    getNewListchapt(index, int, item) {
+      let { courseId, moduleId, chapterId, userId, goodsId, gradeId } = item;
       let data = {
-        courseId: item.courseId,
-        moduleId: item.moduleId,
-        chapterId: item.chapterId,
+        courseId: courseId,
+        moduleId,
+        chapterId,
         numIndex: int,
-        userId: this.setData.userId,
-        goodsId: this.setData.goodsId,
-        gradeId: this.setData.id,
+        userId,
+        goodsId,
+        gradeId,
       };
       if (item.type === 3) {
         data.sectionId = item.id;
@@ -316,12 +315,7 @@ export default {
         data.examId = item.id;
       }
       this.$api.inquireGradegradelistPeriodAuditStatus(data).then((res) => {
-        this.$set(
-          this.listData.tableData2[a].classPeriodSectionList,
-          b,
-          res.data
-        );
-        this.getUserInfo();
+        this.$set(this.tabledata, index, res.data);
       });
     },
     changeStatus(id, status) {

+ 2 - 2
src/views/education/classManageMent/classHoursReview/component/StudyTables.vue

@@ -76,13 +76,13 @@
             >确认审核通过结果</el-button
           >
         </template>
-        <el-button
+        <!-- <el-button
           v-if="periodStatus === 1"
           style="margin-left: 10px"
           size="mini"
           @click="backToAudit"
           >打回待审核状态</el-button
-        >
+        > -->
       </div>
     </div>
     <div class="tablesBoxs">