Browse Source

重构:基础设施 -> 数据源配置功能 权限标识

dlarmor 2 years ago
parent
commit
8eb8748142
1 changed files with 7 additions and 3 deletions
  1. 7 3
      src/views/infra/dataSourceConfig/index.vue

+ 7 - 3
src/views/infra/dataSourceConfig/index.vue

@@ -3,7 +3,11 @@
     <!-- 搜索工作栏 -->
     <!-- 搜索工作栏 -->
     <el-form :inline="true" label-width="68px">
     <el-form :inline="true" label-width="68px">
       <el-form-item>
       <el-form-item>
-        <el-button type="primary" @click="openModal('create')" v-hasPermi="['infra:config:create']">
+        <el-button
+          type="primary"
+          @click="openModal('create')"
+          v-hasPermi="['infra:data-source-config:create']"
+        >
           <Icon icon="ep:plus" class="mr-5px" /> 新增
           <Icon icon="ep:plus" class="mr-5px" /> 新增
         </el-button>
         </el-button>
       </el-form-item>
       </el-form-item>
@@ -28,7 +32,7 @@
             link
             link
             type="primary"
             type="primary"
             @click="openModal('update', scope.row.id)"
             @click="openModal('update', scope.row.id)"
-            v-hasPermi="['infra:config:update']"
+            v-hasPermi="['infra:data-source-config:update']"
           >
           >
             编辑
             编辑
           </el-button>
           </el-button>
@@ -36,7 +40,7 @@
             link
             link
             type="danger"
             type="danger"
             @click="handleDelete(scope.row.id)"
             @click="handleDelete(scope.row.id)"
-            v-hasPermi="['infra:config:delete']"
+            v-hasPermi="['infra:data-source-config:delete']"
           >
           >
             删除
             删除
           </el-button>
           </el-button>