diff --git a/src/views/system/user/authRole.vue b/src/views/system/user/authRole.vue
index 7fcb38d..121b96a 100644
--- a/src/views/system/user/authRole.vue
+++ b/src/views/system/user/authRole.vue
@@ -23,7 +23,7 @@
{{ (pageNum - 1) * pageSize + scope.$index + 1 }}
-
+
@@ -65,7 +65,9 @@ const form = ref({
/** 单击选中行数据 */
function clickRow(row) {
- proxy.$refs["roleRef"].toggleRowSelection(row);
+ if (checkSelectable(row)) {
+ proxy.$refs["roleRef"].toggleRowSelection(row);
+ }
};
/** 多选框选中数据 */
@@ -78,6 +80,11 @@ function getRowKey(row) {
return row.roleId;
};
+// 检查角色状态
+function checkSelectable(row) {
+ return row.status === "0" ? true : false;
+};
+
/** 关闭按钮 */
function close() {
const obj = { path: "/system/user" };