|
@@ -65,12 +65,10 @@
|
|
|
<view @click="Comment(item1)" v-for="(item1,index1) in list[index2+index-1].nodes" :key="item1.id"
|
|
|
class="ui-flex-column ranked-item-tr ui-flex-align-center"
|
|
|
:class="{active : activeList.includes(item1.id)}">
|
|
|
- <image style="width: 100rpx;height: 100rpx;"
|
|
|
- :src="'https://zhxy.obs.cn-hz1.ctyun.cn:443/static/student_icon/'+ (index1%7) +'.png'"
|
|
|
- mode=""></image>
|
|
|
+ <image style="width: 100rpx;height: 100rpx;" :src="item1.student_cartoon_photo" mode=""></image>
|
|
|
<view class="stu-tag text-center ui-flex-row ui-mt10">
|
|
|
<view class="stu-tag-add ui-flex-1">{{item1.plus_score_total}}</view>
|
|
|
- <view class="stu-tag-sub ui-flex-1">-{{item1.minus_score_total}}</view>
|
|
|
+ <view class="stu-tag-sub ui-flex-1">{{item1.minus_score_total}}</view>
|
|
|
</view>
|
|
|
<view class="txt-white f28 ui-pt10">
|
|
|
{{item1.title}}
|
|
@@ -92,7 +90,8 @@
|
|
|
@cancel="show_classes=false"></u-picker>
|
|
|
|
|
|
<!-- 点评 -->
|
|
|
- <markScore @change='change' @close='close' :stuList='activeList' :list='tabList' ref="markScore"></markScore>
|
|
|
+ <markScore :title='stuName' @change='change' @close='close' :stuList='activeList' :list='tabList'
|
|
|
+ ref="markScore"></markScore>
|
|
|
|
|
|
<!-- 点评记录 -->
|
|
|
<markScoreList @add='addTab' :list='studentTab.data' ref="markScoreList"></markScoreList>
|
|
@@ -185,7 +184,9 @@
|
|
|
showRankList: false,
|
|
|
tabList: [],
|
|
|
studentTab: [],
|
|
|
- type:1
|
|
|
+ type: 1,
|
|
|
+ stuNameList: [],
|
|
|
+ stuName: ''
|
|
|
}
|
|
|
},
|
|
|
mounted() {
|
|
@@ -206,9 +207,9 @@
|
|
|
}, 400)
|
|
|
},
|
|
|
methods: {
|
|
|
- change(e){
|
|
|
- this.type = e == 0 ? 1:2
|
|
|
- this.getTabs()
|
|
|
+ change(e) {
|
|
|
+ this.type = e == 0 ? 1 : 2
|
|
|
+ this.getTabs()
|
|
|
},
|
|
|
setMulti() {
|
|
|
this.multiSelect = !this.multiSelect;
|
|
@@ -243,21 +244,26 @@
|
|
|
},
|
|
|
// 多选学生点评
|
|
|
commentMulti() {
|
|
|
+ this.stuName = this.stuNameList.toString()
|
|
|
this.getTabs()
|
|
|
this.$refs.markScore.open(1);
|
|
|
},
|
|
|
Comment(item) {
|
|
|
+
|
|
|
if (this.multiSelect) {
|
|
|
let index = this.activeList.indexOf(item.id)
|
|
|
if (index >= 0) {
|
|
|
this.activeList.splice(index, 1);
|
|
|
+ this.stuNameList.splice(index, 1);
|
|
|
} else {
|
|
|
this.activeList.push(item.id);
|
|
|
+ this.stuNameList.push(item.title);
|
|
|
}
|
|
|
return;
|
|
|
} else {
|
|
|
this.activeList = [item.id]
|
|
|
}
|
|
|
+ this.stuName = item.title
|
|
|
this.getTabs()
|
|
|
this.$refs.markScore.open(1);
|
|
|
return;
|
|
@@ -278,8 +284,8 @@
|
|
|
getStudent() {
|
|
|
this.$api.sendRequest({
|
|
|
url: `/mobile/studentTab/seat`,
|
|
|
- data:{
|
|
|
- class_id:this.chooseClassId
|
|
|
+ data: {
|
|
|
+ class_id: this.chooseClassId
|
|
|
},
|
|
|
success: res => {
|
|
|
this.list = res.data
|
|
@@ -289,12 +295,12 @@
|
|
|
getTabs() {
|
|
|
this.$api.sendRequest({
|
|
|
url: `/mobile/studentTab/getStudentTabs`,
|
|
|
-
|
|
|
+
|
|
|
method: "post",
|
|
|
data: {
|
|
|
teacher_id: this.$store.state.teacher_id,
|
|
|
-
|
|
|
- type:this.type
|
|
|
+
|
|
|
+ type: this.type
|
|
|
},
|
|
|
success: res => {
|
|
|
this.tabList = res.data
|