|
@@ -94,7 +94,8 @@
|
|
|
ref="markScore"></markScore>
|
|
|
|
|
|
<!-- 点评记录 -->
|
|
|
- <markScoreList @add='addTab' :list='studentTab.data' ref="markScoreList"></markScoreList>
|
|
|
+ <markScoreList @success='DelectSuccess' @add='addTab' :list='studentTab.data' ref="markScoreList">
|
|
|
+ </markScoreList>
|
|
|
|
|
|
<el-drawer title="排行榜" :visible.sync="showRankList" direction="rtl">
|
|
|
<view style="text-align: center;" class="">
|
|
@@ -108,7 +109,7 @@
|
|
|
<view class="ui-flex-column text-center ui-p bottom-btn-item" @click="show_classes=true">
|
|
|
<image src="../../static/uni.png" style="width: 30px;height: 30px;" mode=""></image>
|
|
|
<view style="line-height: 1;">
|
|
|
- <text class="txt-white f24">评分记录</text>
|
|
|
+ <text class="txt-white f24">选择班级</text>
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="ui-flex-column text-center ui-p bottom-btn-item" @click="$refs.markScoreList.open()">
|
|
@@ -158,7 +159,6 @@
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
-
|
|
|
import markScore from './components/mark-score.vue'
|
|
|
import markScoreList from './components/mark-score-list.vue'
|
|
|
import {
|
|
@@ -186,13 +186,15 @@
|
|
|
studentTab: [],
|
|
|
type: 1,
|
|
|
stuNameList: [],
|
|
|
- stuName: ''
|
|
|
+ stuName: '',
|
|
|
+
|
|
|
}
|
|
|
},
|
|
|
mounted() {
|
|
|
|
|
|
// this.id = this.$route.query.id
|
|
|
- this.id = this.$store.state.teacherInfo.selfclass.id
|
|
|
+
|
|
|
+ this.id = this.$store.state.teacherInfo.selfclass.id
|
|
|
this.getstudentTabLog()
|
|
|
// this.getStudent()
|
|
|
this.getClassroomList();
|
|
@@ -227,7 +229,13 @@
|
|
|
this.getStudent()
|
|
|
this.show_classes = false
|
|
|
},
|
|
|
+ DelectSuccess(index) {
|
|
|
+ console.log(index);
|
|
|
+ this.getStudent()
|
|
|
+ this.getstudentTabLog()
|
|
|
+ },
|
|
|
getClassroomList() {
|
|
|
+
|
|
|
let teacher_id = this.$store.state.teacherInfo.id
|
|
|
this.$api.sendRequest({
|
|
|
url: `/mobile/teacher/teachClasses`,
|
|
@@ -336,7 +344,7 @@
|
|
|
this.$api.sendRequest({
|
|
|
url: `/mobile/studentTab/getstudentTabLog`,
|
|
|
data: {
|
|
|
- class_id: 2
|
|
|
+ class_id: this.chooseClassId
|
|
|
},
|
|
|
method: "post",
|
|
|
success: res => {
|
|
@@ -357,7 +365,7 @@
|
|
|
method: "post",
|
|
|
data: {
|
|
|
page: this.studentTab.current_page + 1,
|
|
|
- class_id: 2
|
|
|
+ class_id: this.chooseClassId
|
|
|
},
|
|
|
success: res => {
|
|
|
let arr = [...this.studentTab.data, ...res.data.data]
|