소스 검색

Finish Hotfix-mo-40

莫绍宝 3 년 전
부모
커밋
ed54f4b514
1개의 변경된 파일5개의 추가작업 그리고 1개의 파일을 삭제
  1. 5 1
      src/views/supply/reserve/reserve_list.vue

+ 5 - 1
src/views/supply/reserve/reserve_list.vue

@@ -123,7 +123,11 @@
               <template slot-scope="scope">
                 <el-button type="text" @click="toForm(scope.row)" v-if="$checkBtnRole('edit', $route.meta.roles)">编辑</el-button>
                 <el-button type="text" @click="toDetail(scope.row)">详情</el-button>
-                <el-popconfirm style="margin-left: 10px;" title="确定关闭吗?" @onConfirm="handleClose(scope.row.itemId)" v-if="$checkBtnRole('examine', $route.meta.roles)">
+                <el-popconfirm
+                  style="margin-left: 10px;" 
+                  title="确定关闭吗?" 
+                  @onConfirm="handleClose(scope.row.itemId)" 
+                  v-if="$checkBtnRole('examine', $route.meta.roles) && scope.row.status === 1">
                   <el-button slot="reference" type="text">关闭</el-button>
                 </el-popconfirm>
               </template>