|
@@ -94,7 +94,12 @@
|
|
ref="markScore"></markScore>
|
|
ref="markScore"></markScore>
|
|
|
|
|
|
<!-- 点评记录 -->
|
|
<!-- 点评记录 -->
|
|
|
|
+<<<<<<< HEAD
|
|
<markScoreList :chooseClassId="chooseClassId" ref="markScoreList"></markScoreList>
|
|
<markScoreList :chooseClassId="chooseClassId" ref="markScoreList"></markScoreList>
|
|
|
|
+=======
|
|
|
|
+ <markScoreList @success='DelectSuccess' @add='addTab' :list='studentTab.data' ref="markScoreList">
|
|
|
|
+ </markScoreList>
|
|
|
|
+>>>>>>> 0d8c02ba5c71fa1c8a3b7acdb1044e14d1156fc2
|
|
|
|
|
|
<el-drawer title="排行榜" :visible.sync="showRankList" direction="rtl">
|
|
<el-drawer title="排行榜" :visible.sync="showRankList" direction="rtl">
|
|
<view style="text-align: center;" class="">
|
|
<view style="text-align: center;" class="">
|
|
@@ -158,7 +163,6 @@
|
|
</template>
|
|
</template>
|
|
|
|
|
|
<script>
|
|
<script>
|
|
-
|
|
|
|
import markScore from './components/mark-score.vue'
|
|
import markScore from './components/mark-score.vue'
|
|
import markScoreList from './components/mark-score-list.vue'
|
|
import markScoreList from './components/mark-score-list.vue'
|
|
import {
|
|
import {
|
|
@@ -186,14 +190,12 @@
|
|
studentTab: [],
|
|
studentTab: [],
|
|
type: 1,
|
|
type: 1,
|
|
stuNameList: [],
|
|
stuNameList: [],
|
|
- stuName: ''
|
|
|
|
|
|
+ stuName: '',
|
|
|
|
+
|
|
}
|
|
}
|
|
},
|
|
},
|
|
mounted() {
|
|
mounted() {
|
|
-
|
|
|
|
- // this.id = this.$route.query.id
|
|
|
|
this.id = this.$store.state.teacherInfo.selfclass.id
|
|
this.id = this.$store.state.teacherInfo.selfclass.id
|
|
-
|
|
|
|
// this.getStudent()
|
|
// this.getStudent()
|
|
this.getClassroomList();
|
|
this.getClassroomList();
|
|
},
|
|
},
|
|
@@ -224,7 +226,13 @@
|
|
this.getStudent()
|
|
this.getStudent()
|
|
this.show_classes = false
|
|
this.show_classes = false
|
|
},
|
|
},
|
|
|
|
+ DelectSuccess(index) {
|
|
|
|
+ console.log(index);
|
|
|
|
+ this.getStudent()
|
|
|
|
+ this.getstudentTabLog()
|
|
|
|
+ },
|
|
getClassroomList() {
|
|
getClassroomList() {
|
|
|
|
+
|
|
let teacher_id = this.$store.state.teacherInfo.id
|
|
let teacher_id = this.$store.state.teacherInfo.id
|
|
this.$api.sendRequest({
|
|
this.$api.sendRequest({
|
|
url: `/mobile/teacher/teachClasses`,
|
|
url: `/mobile/teacher/teachClasses`,
|
|
@@ -327,8 +335,41 @@
|
|
this.getStudent()
|
|
this.getStudent()
|
|
this.getstudentTabLog()
|
|
this.getstudentTabLog()
|
|
},
|
|
},
|
|
-
|
|
|
|
-
|
|
|
|
|
|
+ getstudentTabLog() {
|
|
|
|
+ this.$api.sendRequest({
|
|
|
|
+ url: `/mobile/studentTab/getstudentTabLog`,
|
|
|
|
+ data: {
|
|
|
|
+ class_id: this.chooseClassId
|
|
|
|
+ },
|
|
|
|
+ method: "post",
|
|
|
|
+ success: res => {
|
|
|
|
+ this.studentTab = res.data
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ },
|
|
|
|
+ addTab() {
|
|
|
|
+ if (this.studentTab.current_page == this.studentTab.last_page) {
|
|
|
|
+ uni.showToast({
|
|
|
|
+ title: '没有更多数据',
|
|
|
|
+ 'icon': 'none',
|
|
|
|
+ });
|
|
|
|
+ return
|
|
|
|
+ }
|
|
|
|
+ this.$api.sendRequest({
|
|
|
|
+ url: `/mobile/studentTab/getstudentTabLog`,
|
|
|
|
+ method: "post",
|
|
|
|
+ data: {
|
|
|
|
+ page: this.studentTab.current_page + 1,
|
|
|
|
+ class_id: this.chooseClassId
|
|
|
|
+ },
|
|
|
|
+ success: res => {
|
|
|
|
+ let arr = [...this.studentTab.data, ...res.data.data]
|
|
|
|
+ this.studentTab = res.data
|
|
|
|
+ this.studentTab.data = arr
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ }
|
|
|
|
|
|
},
|
|
},
|
|
|
|
|