zhangjie 1 年之前
父節點
當前提交
7474ff7750
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      src/modules/print/components/PreviewBusinessDetail.vue

+ 2 - 0
src/modules/print/components/PreviewBusinessDetail.vue

@@ -94,6 +94,7 @@
                 >查看详情</el-button
               >
               <el-button
+                v-if="scope.row.canDelete"
                 class="btn-danger"
                 type="text"
                 @click="toDelete(scope.row)"
@@ -204,6 +205,7 @@ export default {
       this.$refs.ModifyBusinessStudent.open();
     },
     async toDelete(row) {
+      if (!row.canDelete) return;
       const confirm = await this.$confirm(
         `确定要删除考生【${row.studentName}】吗?`,
         "提示",