Browse Source

审核按钮逻辑

pkq 1 year ago
parent
commit
11bde9aefc
2 changed files with 2 additions and 2 deletions
  1. 1 1
      src/views/warrantManage/Index.vue
  2. 1 1
      src/views/warrantManageApi/Index.vue

+ 1 - 1
src/views/warrantManage/Index.vue

@@ -26,7 +26,7 @@
         <el-table-column fixed="right" label="操作" min-width="120">
           <template #default="scope">
             <el-button link type="primary" @click="toDetail(scope.row)">详情</el-button>
-            <el-button link type="primary" @click="toCheck(scope.row)">审核</el-button>
+            <el-button link type="primary" v-if="scope.row.applicationStatusName==='待审核'" @click="toCheck(scope.row)">审核</el-button>
             <el-button link type="primary" @click="toRevoke">撤销</el-button>
           </template>
         </el-table-column>

+ 1 - 1
src/views/warrantManageApi/Index.vue

@@ -25,7 +25,7 @@
                 <el-table-column fixed="right" label="操作" min-width="120">
                     <template #default="scope">
                         <el-button link type="primary" @click="toDetail(scope.row)">详情</el-button>
-                        <el-button link type="primary" @click="toCheck(scope.row)">审核</el-button>
+                        <el-button link type="primary" v-if="scope.row.applicationStatusName==='待审核'" @click="toCheck(scope.row)">审核</el-button>
                         <el-button link type="primary" @click="toRevoke">撤销</el-button>
                     </template>
                 </el-table-column>