xiangpei
2024-10-16 5104c05e50064189af68a50a0fb3552c9720d6c4
页面优化
4个文件已修改
45 ■■■■■ 已修改文件
src/views/class-management/Class.vue 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/exam/exam/ExamManage.vue 17 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/exam/exam/MarkPaper.vue 20 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/exam/exam/monitor.vue 4 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/class-management/Class.vue
@@ -13,7 +13,7 @@
    <div>
      <el-form :inline="true" :model="searchForm" class="demo-form-inline">
        <el-form-item label="班级名称">
          <el-input v-model="searchForm.className" size="small" clearable @clear="page"
          <el-input v-model="searchForm.className" size="small" clearable @clear="page" @input="page"
                    placeholder="班级名称"></el-input>
        </el-form-item>
        <el-form-item label="班级状态">
@@ -23,7 +23,7 @@
          </el-select>
        </el-form-item>
        <el-form-item>
          <el-button type="primary" @click="page">查询</el-button>
          <el-button type="primary" size="small" @click="page">查询</el-button>
        </el-form-item>
      </el-form>
    </div>
src/views/exam/exam/ExamManage.vue
@@ -7,11 +7,11 @@
      <div>
        <el-form :inline="true" :model="searchForm" class="demo-form-inline">
          <el-form-item label="考试名称">
            <el-input v-model="searchForm.examName" @input="page" clearable size="small" clearable @clear="page"
            <el-input v-model="searchForm.examName" @input="page" clearable size="small" @clear="page"
                      placeholder="班级名称"></el-input>
          </el-form-item>
          <el-form-item label="参考班级">
            <el-select v-model="searchForm.classesId" @change="page" clearable @clear="page">
            <el-select v-model="searchForm.classesId" @change="page" clearable size="small" @clear="page">
              <el-option v-for="classes in classesList" :key="classes.id" :value="classes.id"
                         :label="classes.className"/>
            </el-select>
@@ -22,17 +22,20 @@
        </el-form>
      </div>
    </div>
    <el-table :data="tableData" border>
    <el-table :data="tableData" border style="width: 100%">
      <el-table-column
        label="考试名称"
        width="150px"
        prop="examName"
      ></el-table-column>
      <el-table-column
        label="考试试卷"
        prop="examPaperName"
        width="200px"
      ></el-table-column>
      <el-table-column
        label="参考班级"
        width="200px"
        prop="className"
      ></el-table-column>
      <!--      <el-table-column-->
@@ -42,6 +45,7 @@
      <el-table-column
        label="考试地点"
        prop="examPlace"
        width="150px"
      ></el-table-column>
      <el-table-column
        label="考试状态"
@@ -61,15 +65,16 @@
      </el-table-column>
      <el-table-column
        label="创建时间"
        width="150px"
        width="160px"
        prop="createTime"
      ></el-table-column>
      <el-table-column label="操作" fiexd="right" width="280px">
      <el-table-column label="操作" fixed="right" width="220px">
        <template slot-scope="scope">
          <el-button
            type="primary"
            size="small"
            @click="handlerEdit(scope.row)"
            v-if="scope.row.status === 'not_start'"
          >修改
          </el-button>
          <el-popconfirm
@@ -84,7 +89,7 @@
          <el-button v-if="scope.row.status === 'finished'" type="success" size="small" @click="markPaper(scope.row)">
            阅卷
          </el-button>
          <el-button type="warning" size="small" @click="monitor(scope.row)">监控</el-button>
          <el-button v-if="scope.row.status === 'ing'" type="warning" size="small" @click="monitor(scope.row)">监控</el-button>
        </template>
      </el-table-column>
    </el-table>
src/views/exam/exam/MarkPaper.vue
@@ -13,22 +13,28 @@
          <div class="title">{{ examInfo.examPaperName }}</div>
        </div>
      </el-col>
      <el-col :span="4">
      <el-col :span="3">
        <div class="staticNum">
          <div class="bottom5">应考人数</div>
          <div class="title">{{ examInfo.shouldJoinNum }}</div>
          <div class="bottom5">应考</div>
          <div class="title">{{ examInfo.shouldJoinNum }}人</div>
        </div>
      </el-col>
      <el-col :span="4">
        <div class="staticNum">
          <div class="bottom5">缺考人数</div>
          <div class="title">{{ examInfo.missJoinNum }}</div>
          <div class="bottom5">参考</div>
          <div class="title">{{ examInfo.joinNum }}人</div>
        </div>
      </el-col>
      <el-col :span="3">
        <div class="staticNum">
          <div class="bottom5">缺考</div>
          <div class="title">{{ examInfo.missJoinNum }}人</div>
        </div>
      </el-col>
      <el-col :span="4">
        <div class="staticNum">
          <div class="bottom5">参加但未完成人数</div>
          <div class="title">{{ examInfo.joinButNotFinishNum }}</div>
          <div class="bottom5">参考但未提交</div>
          <div class="title">{{ examInfo.joinButNotFinishNum }}人</div>
        </div>
      </el-col>
    </el-row>
src/views/exam/exam/monitor.vue
@@ -18,6 +18,7 @@
      <el-table-column label="操作" align="center">
        <template slot-scope="{row}">
          <el-popover
            v-show="row.status === 'temp'"
            placement="right"
            width="400"
            trigger="click">
@@ -34,8 +35,9 @@
            </el-form>
            <el-button size="mini" slot="reference">加时</el-button>
          </el-popover>
          <el-button size="mini" type="danger" @click="handleNullify(row)">作废</el-button>
          <el-button v-show="row.status === 'temp'" size="mini" type="danger" @click="handleNullify(row)">作废</el-button>
          <el-popconfirm
            v-show="row.status === 'temp'"
            title="确定要强制提交该学员的试卷吗?"
            @confirm="handlerForceSubmit(row.userId)"
          >