lijie 1 vuosi sitten
vanhempi
commit
aee021b696
1 muutettua tiedostoa jossa 22 lisäystä ja 1 poistoa
  1. 22 1
      pages/studentRanked/studentRanked.vue

+ 22 - 1
pages/studentRanked/studentRanked.vue

@@ -16,7 +16,7 @@
                 <view class="ui-mr30">
                     <text class="f32" style="#9ccbff">请点击选择学生批量点评</text>
                 </view>
-                <view class="ui-flex" style="width: 250px;">
+                <view class="ui-flex" style="width: 320px;">
                     <el-button @click="setMulti(false)" plain text="取消选择" style="background-color: #0d4980;"
                         class="ui-mr10">取消选择</el-button>
                     <el-badge :value="activeList.length">
@@ -24,6 +24,11 @@
                             批量点评
                         </el-button>
                     </el-badge>
+					<el-badge :value="activeList.length" class="ui-ml30">
+					    <el-button type="primary" @click="commentAll()">
+					        全班点评
+					    </el-button>
+					</el-badge>
                 </view>
             </view>
         </view>
@@ -288,10 +293,26 @@
                         return el.id == stuId;
                     }).title;
                 }).join();
+				if (title.length > 15) {
+					title=title.substring(0, 15) + '...';
+				}
 
                 // this.getTabs()
                 this.$refs.markScore.open(title);
             },
+			commentAll() {
+				this.activeList=[]
+			    let title = "全班"
+				this.list.map(item=>{
+					item.nodes.map(item2=>{
+						if(item2.id){
+							this.activeList.push(item2.id)
+						}
+					})
+				})
+			
+			    // this.$refs.markScore.open(title);
+			},
             setSeatMove(value) {
                 if (value) {
                     this.setMulti(false);