Просмотр исходного кода

fix(系统管理): 优化字典项删除按钮显示逻辑,仅在新增或未提交时显示

yusheng 5 месяцев назад
Родитель
Сommit
f740e2ab18
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      src/views/system/dictionary/components/dict-edit.vue

+ 1 - 1
src/views/system/dictionary/components/dict-edit.vue

@@ -159,7 +159,7 @@
       <el-table-column align="center" label="操作">
       <el-table-column align="center" label="操作">
         <template slot-scope="scope">
         <template slot-scope="scope">
           <el-popconfirm
           <el-popconfirm
-          
+            v-if="!isUpdate || (!scope.row.id && isUpdate)"
             class="ele-action"
             class="ele-action"
             title="确定要删除此字典项吗?"
             title="确定要删除此字典项吗?"
             @confirm="removeArr(scope)"
             @confirm="removeArr(scope)"