Explorar o código

【功能修复】用户管理:如果没有修改权限,则禁用状态开关

jinmh716 hai 7 meses
pai
achega
86bb36fc2f
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      src/views/system/user/index.vue

+ 1 - 0
src/views/system/user/index.vue

@@ -124,6 +124,7 @@
                 :active-value="0"
                 :active-value="0"
                 :inactive-value="1"
                 :inactive-value="1"
                 @change="handleStatusChange(scope.row)"
                 @change="handleStatusChange(scope.row)"
+                :disabled="!checkPermi(['system:user:update'])"
               />
               />
             </template>
             </template>
           </el-table-column>
           </el-table-column>