|
@@ -94,7 +94,7 @@
|
|
|
ref="markScore"></markScore>
|
|
|
|
|
|
<!-- 点评记录 -->
|
|
|
- <markScoreList @add='addTab' :list='studentTab.data' ref="markScoreList"></markScoreList>
|
|
|
+ <markScoreList :chooseClassId="chooseClassId" ref="markScoreList"></markScoreList>
|
|
|
|
|
|
<el-drawer title="排行榜" :visible.sync="showRankList" direction="rtl">
|
|
|
<view style="text-align: center;" class="">
|
|
@@ -108,10 +108,10 @@
|
|
|
<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()">
|
|
|
+ <view class="ui-flex-column text-center ui-p bottom-btn-item" @click="getLog">
|
|
|
<image src="../../static/uni.png" style="width: 30px;height: 30px;" mode=""></image>
|
|
|
<view style="line-height: 1;">
|
|
|
<text class="txt-white f24">点评记录</text>
|
|
@@ -146,7 +146,7 @@
|
|
|
<text class="txt-white f24">切换老师</text>
|
|
|
</view>
|
|
|
</view>
|
|
|
- <view class="ui-flex-column text-center ui-p bottom-btn-item">
|
|
|
+ <view class="ui-flex-column text-center ui-p bottom-btn-item" @click="loginOut()">
|
|
|
<image src="../../static/uni.png" style="width: 30px;height: 30px;" mode=""></image>
|
|
|
<view style="line-height: 1;">
|
|
|
<text class="txt-white f24">退出登录</text>
|
|
@@ -193,20 +193,17 @@
|
|
|
|
|
|
// this.id = this.$route.query.id
|
|
|
this.id = this.$store.state.teacherInfo.selfclass.id
|
|
|
- this.getstudentTabLog()
|
|
|
+
|
|
|
// this.getStudent()
|
|
|
this.getClassroomList();
|
|
|
-
|
|
|
- setTimeout(() => {
|
|
|
- this.doChooseClass({
|
|
|
- value: [{
|
|
|
- class_name: "二年级2班",
|
|
|
- id: 2
|
|
|
- }]
|
|
|
- })
|
|
|
- }, 400)
|
|
|
},
|
|
|
methods: {
|
|
|
+ getLog(){
|
|
|
+ this.$refs.markScoreList.open()
|
|
|
+ this.$refs.markScoreList.list=[]
|
|
|
+ this.$refs.markScoreList.current_page=1
|
|
|
+ this.$refs.markScoreList.addTab()
|
|
|
+ },
|
|
|
change(e) {
|
|
|
this.type = e == 0 ? 1 : 2
|
|
|
this.getTabs()
|
|
@@ -237,7 +234,6 @@
|
|
|
},
|
|
|
success: res => {
|
|
|
this.teachList.push(res.data)
|
|
|
-
|
|
|
}
|
|
|
})
|
|
|
|
|
@@ -295,7 +291,6 @@
|
|
|
getTabs() {
|
|
|
this.$api.sendRequest({
|
|
|
url: `/mobile/studentTab/getStudentTabs`,
|
|
|
-
|
|
|
method: "post",
|
|
|
data: {
|
|
|
teacher_id: this.$store.state.teacher_id,
|
|
@@ -332,41 +327,8 @@
|
|
|
this.getStudent()
|
|
|
this.getstudentTabLog()
|
|
|
},
|
|
|
- getstudentTabLog() {
|
|
|
- this.$api.sendRequest({
|
|
|
- url: `/mobile/studentTab/getstudentTabLog`,
|
|
|
- data: {
|
|
|
- class_id: 2
|
|
|
- },
|
|
|
- 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: 2
|
|
|
- },
|
|
|
- success: res => {
|
|
|
- let arr = [...this.studentTab.data, ...res.data.data]
|
|
|
- this.studentTab = res.data
|
|
|
- this.studentTab.data = arr
|
|
|
-
|
|
|
- }
|
|
|
- })
|
|
|
- }
|
|
|
+
|
|
|
+
|
|
|
|
|
|
},
|
|
|
|
|
@@ -377,7 +339,7 @@
|
|
|
.page {
|
|
|
background-image: url('https://zhxy.obs.cn-hz1.ctyun.cn:443/static/desk_bg/class_bj.jpg');
|
|
|
background-size: 100% 100%;
|
|
|
- height: 100vh;
|
|
|
+ height: auto;
|
|
|
// width: 750rpx;
|
|
|
}
|
|
|
|