Browse Source

no message

lansir 1 year ago
parent
commit
32b52a1660

+ 7 - 1
pages/studentRanked/components/mark-score-list.vue

@@ -39,6 +39,10 @@
                 type: Number | String,
                 default: ""
             },
+            stuList: {
+                type: Array,
+                default: []
+            },
         },
         data() {
             return {
@@ -83,12 +87,14 @@
                 if (this.showTitle == "没有更多数据了。。。") {
                     return
                 }
+                
                 this.$api.sendRequest({
                     url: `/mobile/studentTab/getstudentTabLog`,
                     method: "post",
                     data: {
                         page: this.current_page,
-                        class_id: this.chooseClassId
+                        class_id: this.chooseClassId,
+                        stu_school_id: this.stuList[0]
                     },
                     success: res => {
                         let arr = [...this.list, ...res.data.data]

+ 7 - 13
pages/studentRanked/components/mark-score.vue

@@ -8,9 +8,9 @@
 			<view class="ui-flex-row">
 				<view class="ui-flex-1 ui-flex-align-center ui-flex-row">
 					<view class="ui-pl20">
-						<view class="ui-flex-row ui-border-radius-20" @click="showType=true"
+						<view class="ui-flex-row ui-border-radius-20" @click="$refs.markScoreList.open()"
 							style="background-color: #1C63A8;padding: 4px 8px;">
-							<text class="txt-white f26 ui-mr10">全部类型</text>
+							<text class="txt-white f26 ui-mr10">点评记录</text>
 							<u-icon color="#fff" name="list-dot"></u-icon>
 						</view>
 					</view>
@@ -55,19 +55,12 @@
 			</view>
 		</view>
 
-		<el-drawer append-to-body :visible.sync="showType" direction="ltr">
-			<view class="ui-p" style="width: 400px;">
-				<text>这里展示学生标签记录、以及类型切换</text>
-			</view>
-			<u-cell-group>
-				<u-cell icon="setting-fill" isLink title="个人设置"></u-cell>
-				<u-cell icon="integral-fill" isLink title="会员等级" value="新版本"></u-cell>
-			</u-cell-group>
-		</el-drawer>
+		<markScoreList ref="markScoreList" :stuList="stuList"></markScoreList>
 	</el-dialog>
 </template>
 
 <script>
+    import markScoreList from './mark-score-list.vue'
     // 标签缓存
     let tabList = {};
     
@@ -81,7 +74,9 @@
 				default: () => []
 			},
 		},
-
+        components : {
+            markScoreList
+        },
 		data() {
 			return {
                 title : '',
@@ -93,7 +88,6 @@
 				activeId: -1, //选中项
                 course_id : 0,
 				itemTab: '',
-				showType: false,
 				courseList: [],
 			}
 		},

+ 1 - 1
pages/studentRanked/studentRanked.vue

@@ -68,7 +68,7 @@
         <markScore @change='change' @close='onScoreClose' :stuList='activeList' ref="markScore"></markScore>
 
         <!-- 点评记录 -->
-        <markScoreList ref="markScoreList" :chooseClassId="chooseClassId"></markScoreList>
+        <markScoreList ref="markScoreList" :chooseClassId="chooseClassId" :stuList="activeList"></markScoreList>
         
         <!-- 随机点名 -->
         <randomRollCall ref="randomRollCall" :list="studentList" @comment="randomRollComment"></randomRollCall>