فهرست منبع

内置角色修改

zhangjie 2 سال پیش
والد
کامیت
5556c55d0b
1فایلهای تغییر یافته به همراه3 افزوده شده و 4 حذف شده
  1. 3 4
      src/modules/admin/views/SystemRoleManage.vue

+ 3 - 4
src/modules/admin/views/SystemRoleManage.vue

@@ -21,12 +21,11 @@
         <el-table-column class-name="action-column" label="操作" width="220px">
           <template slot-scope="scope">
             <el-button
-              v-if="!scope.row.defaultRole"
-              class="btn-"
+              :class="scope.row.defaultRole ? 'btn-danger' : 'btn-primary'"
               type="text"
               @click="toSetDefaultRole(scope.row)"
-              >设置为内置角色</el-button
-            >
+              >{{ scope.row.defaultRole ? "取消为内置角色" : "设置为内置角色" }}
+            </el-button>
             <el-button
               v-if="!scope.row.defaultRole"
               class="btn-primary"