luohairen
2024-10-29 a38b2ce4cf02b6ac7069ac89517287bf78f4dfdf
src/views/education/cheat/list.vue
@@ -2,16 +2,16 @@
  <div class="app-container">
    <el-form :model="queryParam" ref="queryForm" :inline="true">
      <el-form-item>
        <el-input v-model="queryParam.keyword" placeholder="请输入名称" clearable></el-input>
        <el-input v-model="queryParam.keyword" placeholder="请输入名称" clearable @input="search"></el-input>
      </el-form-item>
      <el-form-item>
        <el-button type="primary" @click="search">查询</el-button>
        <el-button type="primary" @click="search" size="small">查询</el-button>
      </el-form-item>
    </el-form>
    <el-table v-loading="listLoading" :data="tableData" border fit highlight-current-row style="width: 100%">
      <el-table-column align="center" prop="cheatUserName" label="作弊人名称" show-overflow-tooltip />
      <el-table-column align="center" prop="examName" label="考试名称" />
      <el-table-column align="center" prop="cheatUserName" label="姓名" show-overflow-tooltip />
      <el-table-column align="center" prop="examName" label="考试" />
      <el-table-column align="center" prop="createTime" label="作弊时间" />
      <!-- <el-table-column label="操作" align="center">
        <template slot-scope="{row}">
@@ -19,7 +19,7 @@
        </template>
      </el-table-column> -->
    </el-table>
    <pagination v-show="total > 0" :total="total" :page.sync="queryParam.pageIndex" :limit.sync="queryParam.pageSize"
    <pagination v-show="total > 0" :total="total" :page.sync="queryParam.currentPage" :limit.sync="queryParam.pageSize"
      @pagination="search" />
    <el-dialog :visible.sync="visible" width="400px">
@@ -53,7 +53,7 @@
      listLoading: true,
      queryParam: {
        name: '',
        pageIndex: 1,
        currentPage: 1,
        pageSize: 10
      },
      formLoading: false,
@@ -97,7 +97,6 @@
      })
    },
    edit(row) {
      if (row) {
        cheatApi.select(row.id).then(re => {
          if (re.code === 1) {
            this.form = re.data;
@@ -106,10 +105,6 @@
            this.$message.error(re.message)
          }
        })
      } else {
        this.getItemOrder();
        this.visible = true;
      }
    },
    status(row) {
      let question = {