소스 검색

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

yusheng 5 달 전
부모
커밋
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="操作">
         <template slot-scope="scope">
           <el-popconfirm
-          
+            v-if="!isUpdate || (!scope.row.id && isUpdate)"
             class="ele-action"
             title="确定要删除此字典项吗?"
             @confirm="removeArr(scope)"