From 7024cd0dd22702c5a289a84fa652d7c70cfe4920 Mon Sep 17 00:00:00 2001
From: lohir <3399054449@qq.com>
Date: 星期四, 17 十月 2024 17:52:58 +0800
Subject: [PATCH] bug

---
 src/views/exam/exam/monitor.vue |   12 +++++++-----
 1 files changed, 7 insertions(+), 5 deletions(-)

diff --git a/src/views/exam/exam/monitor.vue b/src/views/exam/exam/monitor.vue
index 90695bb..73204dc 100644
--- a/src/views/exam/exam/monitor.vue
+++ b/src/views/exam/exam/monitor.vue
@@ -2,10 +2,10 @@
   <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="璇疯緭鍏ュ悕绉�" @input="search" clearable></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>
 
@@ -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)"
           >
@@ -44,7 +46,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">
@@ -79,7 +81,7 @@
       listLoading: true,
       queryParam: {
         examId: '',
-        pageIndex: 1,
+        currentPage: 1,
         pageSize: 10
       },
       formLoading: false,

--
Gitblit v1.8.0