Browse Source

feat:新生添加禁用

DESKTOP-USV654P\pc 4 months ago
parent
commit
2f4b32666d
1 changed files with 2 additions and 0 deletions
  1. 2 0
      src/views/educational/basicInformation/index.vue

+ 2 - 0
src/views/educational/basicInformation/index.vue

@@ -137,11 +137,13 @@
             :actions="[
             :actions="[
               {
               {
                 label: '编辑',
                 label: '编辑',
+                disabled: record.status === 1,
                 onClick: handleEdit.bind(null, record, true),
                 onClick: handleEdit.bind(null, record, true),
               },
               },
               {
               {
                 label: '删除',
                 label: '删除',
                 color: 'error',
                 color: 'error',
+                disabled: record.status === 1,
                 onClick: handleDelete.bind(null, record),
                 onClick: handleDelete.bind(null, record),
               },
               },
             ]"
             ]"