Browse Source

feat(组件): 校验

tangning 2 years ago
parent
commit
e0f7fdd50d
2 changed files with 2 additions and 2 deletions
  1. 1 1
      src/views/product/ref.vue
  2. 1 1
      src/views/rightsEnterprises/list.vue

+ 1 - 1
src/views/product/ref.vue

@@ -167,7 +167,7 @@
               currentEditKeyRef.value = '';
             }
             msg.success({ content: '数据已保存', key: 'saving' });
-            reload();
+            // reload();
           } catch (error) {
             msg.error({ content: '保存失败', key: 'saving' });
           }

+ 1 - 1
src/views/rightsEnterprises/list.vue

@@ -30,7 +30,7 @@
             {
               color: 'error',
               label: '删除',
-              ifShow: !record.userId,
+              ifShow: !record.userId && getCheckRole([RoleEnum.PLAT_ADMIN, RoleEnum.SUPER]),
               popConfirm: {
                 title: '是否确认删除',
                 confirm: deleteConfirm.bind(null, record),