deason 6 年之前
父節點
當前提交
ea6955cb05
共有 2 個文件被更改,包括 46 次插入11 次删除
  1. 27 7
      src/modules/print/view/CourseStatistic.vue
  2. 19 4
      src/modules/print/view/Project.vue

+ 27 - 7
src/modules/print/view/CourseStatistic.vue

@@ -151,10 +151,20 @@
           @selection-change="handleSelection"
         >
           <el-table-column type="selection" width="35px"> </el-table-column>
-          <el-table-column label="课程名称" prop="courseName" />
-          <el-table-column width="140px" label="课程代码" prop="courseCode" />
-          <el-table-column width="80px" label="试卷类型" prop="paperType" />
-          <el-table-column width="80px" label="试卷状态">
+          <el-table-column label="课程名称" prop="courseName" sortable />
+          <el-table-column
+            width="140px"
+            label="课程代码"
+            prop="courseCode"
+            sortable
+          />
+          <el-table-column
+            width="102px"
+            label="试卷类型"
+            prop="paperType"
+            sortable
+          />
+          <el-table-column width="102px" label="试卷状态" sortable>
             <template slot-scope="scope">
               <span
                 @click="openAllotDialog(scope.row)"
@@ -163,9 +173,19 @@
               >
             </template>
           </el-table-column>
-          <el-table-column label="试卷名称" prop="paperName" />
-          <el-table-column width="80px" label="试卷P数" prop="paperP" />
-          <el-table-column width="90px" label="考生人数" prop="totalStudent" />
+          <el-table-column label="试卷名称" prop="paperName" sortable />
+          <el-table-column
+            width="102px"
+            label="试卷P数"
+            prop="paperP"
+            sortable
+          />
+          <el-table-column
+            width="102px"
+            label="考生人数"
+            prop="totalStudent"
+            sortable
+          />
 
           <el-table-column width="180px" label="操作" :context="_self">
             <template slot-scope="scope">

+ 19 - 4
src/modules/print/view/Project.vue

@@ -109,10 +109,25 @@
           border
           stripe
         >
-          <el-table-column width="220" label="学校名称" prop="orgName" />
-          <el-table-column label="考试名称" prop="examName" />
-          <el-table-column width="200" label="印刷供应商" prop="supplierName" />
-          <el-table-column width="150" label="项目经理" prop="pmName" />
+          <el-table-column
+            width="220"
+            label="学校名称"
+            prop="orgName"
+            sortable
+          />
+          <el-table-column label="考试名称" prop="examName" sortable />
+          <el-table-column
+            width="200"
+            label="印刷供应商"
+            prop="supplierName"
+            sortable
+          />
+          <el-table-column
+            width="150"
+            label="项目经理"
+            prop="pmName"
+            sortable
+          />
 
           <el-table-column width="120" label="项目统计">
             <template slot-scope="scope">