From 150f1d793c8f471f68aa5c7f6dc5867d4afd7d81 Mon Sep 17 00:00:00 2001
From: 疯狂的狮子Li <15040126243@163.com>
Date: 星期五, 29 十一月 2024 09:50:16 +0800
Subject: [PATCH] update 优化 删除无用变量
---
src/views/system/user/authRole.vue | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/views/system/user/authRole.vue b/src/views/system/user/authRole.vue
index 9b9927d..070221a 100644
--- a/src/views/system/user/authRole.vue
+++ b/src/views/system/user/authRole.vue
@@ -2,7 +2,7 @@
<div class="p-2">
<div class="panel">
<h4 class="panel-title">鍩烘湰淇℃伅</h4>
- <el-form :model="form" label-width="80px" :inline="true">
+ <el-form :model="form" :inline="true">
<el-row :gutter="10">
<el-col :span="2.5">
<el-form-item label="鐢ㄦ埛鏄电О" prop="nickName">
@@ -59,7 +59,7 @@
import { getAuthRole, updateAuthRole } from '@/api/system/user';
import { UserForm } from '@/api/system/user/types';
import { RouteLocationNormalized } from 'vue-router';
-import { parseTime } from "@/utils/ruoyi";
+import { parseTime } from '@/utils/ruoyi';
const route = useRoute();
const { proxy } = getCurrentInstance() as ComponentInternalInstance;
@@ -80,8 +80,8 @@
/** 鍗曞嚮閫変腑琛屾暟鎹� */
const clickRow = (row: RoleVO) => {
- // ele鐨勬柟娉曟湁闂锛宻elected搴旇涓哄彲閫夊弬鏁�
- tableRef.value?.toggleRowSelection(row, false);
+ row.flag = !row.flag;
+ tableRef.value?.toggleRowSelection(row, row.flag);
};
/** 澶氶�夋閫変腑鏁版嵁 */
const handleSelectionChange = (selection: RoleVO[]) => {
--
Gitblit v1.9.3