From a38b2ce4cf02b6ac7069ac89517287bf78f4dfdf Mon Sep 17 00:00:00 2001
From: luohairen <3399054449@qq.com>
Date: 星期二, 29 十月 2024 14:13:56 +0800
Subject: [PATCH] 完成个人信息头像更换

---
 src/views/education/cheat/list.vue |   17 ++++++-----------
 1 files changed, 6 insertions(+), 11 deletions(-)

diff --git a/src/views/education/cheat/list.vue b/src/views/education/cheat/list.vue
index e4c7bbb..3cced0e 100644
--- a/src/views/education/cheat/list.vue
+++ b/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 = {

--
Gitblit v1.8.0