Parcourir la source

学生分班详情--组合排名

shilipojs il y a 2 ans
Parent
commit
a5314c09ab

+ 4 - 30
src/views/elective/dispatch/student/components/class-table.vue

@@ -43,7 +43,7 @@
       >
       </el-table-column>
       <el-table-column
-        label="班级排名"
+        :label="dispatchClassId ==  '' ? '组合排名' : '班级排名'"
         prop="rankInClass"
         v-if="type != '1'"
       >
@@ -54,8 +54,6 @@
       >
       </el-table-column>
     </el-table>
-<!--    <mx-table row-key="studentId"  :reserveSelection="true" :propDefines="propDefines" :rows="list" @selection-change="handleSelectionChange">-->
-<!--    </mx-table>-->
     <!-- 操作 确认和分页-->
     <pagination class="mt10" :total="pageForm.total" :autoScroll="false" @pagination="onChangePage"
                 :page.sync="pageForm.pageNum"
@@ -76,6 +74,9 @@ export default {
       type: Array,
       default: () => []
     },
+    dispatchClassId: {
+      default: ''
+    },
     pageForm: {
       type: Object,
       default: () => {
@@ -89,33 +90,6 @@ export default {
   },
   data() {
     return {
-      propDefines: {
-        selection: {
-          label: '选择',
-          type: 'selection',
-          hidden: this.type == '2'
-        },
-        groupName: {
-          label: '组合',
-          hidden: this.type == '1'
-        },
-        className: {
-          label: '班级'
-        },
-        name: {
-          label: '姓名'
-        },
-        sex: {
-          label: '性别'
-        },
-        rankInGroup: {
-          label: '班级排名'
-        },
-        rankInGrade: {
-          label: '年级排名',
-          hidden: this.type == '1'
-        }
-      },
       selected: []
     }
   },

+ 1 - 1
src/views/elective/dispatch/student/detail.vue

@@ -12,7 +12,7 @@
                     @query="handleGroupQuery" class="mb10"
       ></mx-condition>
     </el-card>
-    <class-table :pageForm="pageForm"  type="2" :list="studentList"></class-table>
+    <class-table :dispatchClassId="queryParams.dispatchClassId" :pageForm="pageForm"  type="2" :list="studentList"></class-table>
   </div>
 </template>
 <!--:setting-model="settingModel" :group-model-index="groupModelIndex"-->