@befly-addon/admin 1.2.1 → 1.2.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (36) hide show
  1. package/adminViews/403_1/index.vue +75 -0
  2. package/adminViews/config/dict/components/edit.vue +109 -0
  3. package/adminViews/config/dict/index.vue +266 -0
  4. package/adminViews/config/dictType/components/edit.vue +100 -0
  5. package/adminViews/config/dictType/index.vue +244 -0
  6. package/adminViews/config/index.vue +12 -0
  7. package/adminViews/config/system/components/edit.vue +171 -0
  8. package/adminViews/config/system/index.vue +286 -0
  9. package/adminViews/index/components/addonList.vue +132 -0
  10. package/adminViews/index/components/environmentInfo.vue +100 -0
  11. package/adminViews/index/components/operationLogs.vue +112 -0
  12. package/adminViews/index/components/performanceMetrics.vue +145 -0
  13. package/adminViews/index/components/quickActions.vue +30 -0
  14. package/adminViews/index/components/serviceStatus.vue +192 -0
  15. package/adminViews/index/components/systemNotifications.vue +137 -0
  16. package/adminViews/index/components/systemOverview.vue +190 -0
  17. package/adminViews/index/components/systemResources.vue +111 -0
  18. package/adminViews/index/components/userInfo.vue +204 -0
  19. package/adminViews/index/index.vue +74 -0
  20. package/adminViews/log/email/index.vue +292 -0
  21. package/adminViews/log/index.vue +12 -0
  22. package/adminViews/log/login/index.vue +187 -0
  23. package/adminViews/log/operate/index.vue +249 -0
  24. package/adminViews/login_1/index.vue +415 -0
  25. package/adminViews/people/admin/components/edit.vue +168 -0
  26. package/adminViews/people/admin/index.vue +240 -0
  27. package/adminViews/people/index.vue +12 -0
  28. package/adminViews/permission/api/index.vue +149 -0
  29. package/adminViews/permission/index.vue +12 -0
  30. package/adminViews/permission/menu/index.vue +130 -0
  31. package/adminViews/permission/role/components/api.vue +361 -0
  32. package/adminViews/permission/role/components/edit.vue +142 -0
  33. package/adminViews/permission/role/components/menu.vue +118 -0
  34. package/adminViews/permission/role/index.vue +263 -0
  35. package/package.json +12 -10
  36. package/tsconfig.json +15 -0
@@ -0,0 +1,286 @@
1
+ <template>
2
+ <div class="page-sys-config page-table">
3
+ <div class="main-tool">
4
+ <div class="left">
5
+ <TButton theme="primary" @click="$Method.onAction('add', {})">
6
+ <template #icon>
7
+ <ILucidePlus />
8
+ </template>
9
+ 新增配置
10
+ </TButton>
11
+ <TSelect v-model="$Data.filter.group" placeholder="配置分组" clearable style="width: 150px" @change="$Method.handleFilter">
12
+ <TOption v-for="item in $Data.groupOptions" :key="item" :label="item" :value="item" />
13
+ </TSelect>
14
+ </div>
15
+ <div class="right">
16
+ <TButton shape="circle" @click="$Method.handleRefresh">
17
+ <template #icon>
18
+ <ILucideRotateCw />
19
+ </template>
20
+ </TButton>
21
+ </div>
22
+ </div>
23
+
24
+ <div class="main-content">
25
+ <div class="main-table">
26
+ <TTable :data="$Data.tableData" :columns="$Data.columns" :loading="$Data.loading" :active-row-keys="$Data.activeRowKeys" row-key="id" height="100%" active-row-type="single" @active-change="$Method.onActiveChange">
27
+ <template #isSystem="{ row }">
28
+ <TTag v-if="row.isSystem === 1" shape="round" theme="warning" variant="light-outline">系统</TTag>
29
+ <TTag v-else shape="round" variant="light-outline">自定义</TTag>
30
+ </template>
31
+ <template #valueType="{ row }">
32
+ <TTag shape="round" variant="light-outline">{{ row.valueType }}</TTag>
33
+ </template>
34
+ <template #state="{ row }">
35
+ <TTag v-if="row.state === 1" shape="round" theme="success" variant="light-outline">正常</TTag>
36
+ <TTag v-else-if="row.state === 2" shape="round" theme="warning" variant="light-outline">禁用</TTag>
37
+ </template>
38
+ <template #operation="{ row }">
39
+ <TDropdown trigger="click" placement="bottom-right" @click="(data) => $Method.onAction(data.value, row)">
40
+ <TButton theme="primary" size="small">
41
+ 操作
42
+ <template #suffix><ILucideChevronDown /></template>
43
+ </TButton>
44
+ <TDropdownMenu slot="dropdown">
45
+ <TDropdownItem value="upd">
46
+ <ILucidePencil />
47
+ 编辑
48
+ </TDropdownItem>
49
+ <TDropdownItem v-if="row.isSystem !== 1" value="del" :divider="true">
50
+ <ILucideTrash2 style="width: 14px; height: 14px; margin-right: 6px" />
51
+ 删除
52
+ </TDropdownItem>
53
+ </TDropdownMenu>
54
+ </TDropdown>
55
+ </template>
56
+ </TTable>
57
+ </div>
58
+
59
+ <div class="main-detail">
60
+ <DetailPanel :data="$Data.currentRow" :fields="$Data.detailFields">
61
+ <template #isSystem="{ value }">
62
+ <TTag v-if="value === 1" shape="round" theme="warning" variant="light-outline">系统配置</TTag>
63
+ <TTag v-else shape="round" variant="light-outline">自定义配置</TTag>
64
+ </template>
65
+ <template #valueType="{ value }">
66
+ <TTag shape="round" variant="light-outline">{{ value }}</TTag>
67
+ </template>
68
+ <template #value="{ value }">
69
+ <pre class="config-value">{{ value }}</pre>
70
+ </template>
71
+ </DetailPanel>
72
+ </div>
73
+ </div>
74
+
75
+ <div class="main-page">
76
+ <TPagination :current-page="$Data.pagerConfig.currentPage" :page-size="$Data.pagerConfig.limit" :total="$Data.pagerConfig.total" @current-change="$Method.onPageChange" @page-size-change="$Method.handleSizeChange" />
77
+ </div>
78
+
79
+ <!-- 编辑对话框 -->
80
+ <EditDialog v-if="$Data.editVisible" v-model="$Data.editVisible" :action-type="$Data.actionType" :row-data="$Data.rowData" @success="$Method.apiConfigList" />
81
+ </div>
82
+ </template>
83
+
84
+ <script setup>
85
+ import { Button as TButton, Table as TTable, Tag as TTag, Select as TSelect, Option as TOption, Dropdown as TDropdown, DropdownMenu as TDropdownMenu, DropdownItem as TDropdownItem, Pagination as TPagination, MessagePlugin, DialogPlugin } from "tdesign-vue-next";
86
+ import ILucidePlus from "~icons/lucide/plus";
87
+ import ILucideRotateCw from "~icons/lucide/rotate-cw";
88
+ import ILucidePencil from "~icons/lucide/pencil";
89
+ import ILucideTrash2 from "~icons/lucide/trash-2";
90
+ import ILucideChevronDown from "~icons/lucide/chevron-down";
91
+ import EditDialog from "./components/edit.vue";
92
+ import DetailPanel from "@/components/DetailPanel.vue";
93
+ import { $Http } from "@/plugins/http";
94
+ import { withDefaultColumns } from "befly-vite/utils/withDefaultColumns";
95
+
96
+ definePage({
97
+ meta: {
98
+ title: "系统配置",
99
+ order: 3
100
+ }
101
+ });
102
+
103
+ // 响应式数据
104
+ const $Data = $ref({
105
+ tableData: [],
106
+ loading: false,
107
+ columns: withDefaultColumns([
108
+ { colKey: "name", title: "配置名称", fixed: "left", width: 150 },
109
+ { colKey: "id", title: "序号", width: 80 },
110
+ { colKey: "code", title: "配置代码", ellipsis: true },
111
+ { colKey: "value", title: "配置值", ellipsis: true, width: 200 },
112
+ { colKey: "valueType", title: "值类型", width: 100 },
113
+ { colKey: "group", title: "分组", width: 100 },
114
+ { colKey: "sort", title: "排序", width: 80 },
115
+ { colKey: "isSystem", title: "类型", width: 80 },
116
+ { colKey: "state", title: "状态", width: 80 },
117
+ { colKey: "operation", title: "操作", width: 100 }
118
+ ]),
119
+ detailFields: [
120
+ { colKey: "name", title: "配置名称" },
121
+ { colKey: "code", title: "配置代码" },
122
+ { colKey: "value", title: "配置值" },
123
+ { colKey: "valueType", title: "值类型" },
124
+ { colKey: "group", title: "配置分组" },
125
+ { colKey: "sort", title: "排序" },
126
+ { colKey: "isSystem", title: "配置类型" },
127
+ { colKey: "description", title: "描述说明" }
128
+ ],
129
+ pagerConfig: {
130
+ currentPage: 1,
131
+ limit: 30,
132
+ total: 0
133
+ },
134
+ currentRow: null,
135
+ activeRowKeys: [],
136
+ editVisible: false,
137
+ actionType: "add",
138
+ rowData: {},
139
+ filter: {
140
+ group: ""
141
+ },
142
+ groupOptions: ["基础配置", "邮件配置", "存储配置", "安全配置", "其他"]
143
+ });
144
+
145
+ // 方法
146
+ const $Method = {
147
+ async initData() {
148
+ await $Method.apiConfigList();
149
+ },
150
+
151
+ // 加载配置列表
152
+ async apiConfigList() {
153
+ $Data.loading = true;
154
+ try {
155
+ const res = await $Http("/addon/admin/sysConfig/list", {
156
+ page: $Data.pagerConfig.currentPage,
157
+ limit: $Data.pagerConfig.limit
158
+ });
159
+ $Data.tableData = res.data.lists || [];
160
+ $Data.pagerConfig.total = res.data.total || 0;
161
+
162
+ if ($Data.tableData.length > 0) {
163
+ $Data.currentRow = $Data.tableData[0];
164
+ $Data.activeRowKeys = [$Data.tableData[0].id];
165
+ } else {
166
+ $Data.currentRow = null;
167
+ $Data.activeRowKeys = [];
168
+ }
169
+ } catch (error) {
170
+ MessagePlugin.error("加载数据失败");
171
+ } finally {
172
+ $Data.loading = false;
173
+ }
174
+ },
175
+
176
+ // 删除配置
177
+ async apiConfigDel(row) {
178
+ if (row.isSystem === 1) {
179
+ MessagePlugin.warning("系统配置不允许删除");
180
+ return;
181
+ }
182
+
183
+ let dialog = null;
184
+ let destroyed = false;
185
+
186
+ const destroy = () => {
187
+ if (destroyed) return;
188
+ destroyed = true;
189
+ if (dialog && typeof dialog.destroy === "function") {
190
+ dialog.destroy();
191
+ }
192
+ };
193
+
194
+ dialog = DialogPlugin.confirm({
195
+ header: "确认删除",
196
+ body: `确认删除配置“${row.name}”吗?`,
197
+ status: "warning",
198
+ confirmBtn: "删除",
199
+ cancelBtn: "取消",
200
+ onConfirm: async () => {
201
+ if (dialog && typeof dialog.setConfirmLoading === "function") {
202
+ dialog.setConfirmLoading(true);
203
+ }
204
+
205
+ try {
206
+ await $Http("/addon/admin/sysConfig/del", { id: row.id });
207
+ MessagePlugin.success("删除成功");
208
+ destroy();
209
+ await $Method.apiConfigList();
210
+ } catch (error) {
211
+ MessagePlugin.error("删除失败");
212
+ } finally {
213
+ if (dialog && typeof dialog.setConfirmLoading === "function") {
214
+ dialog.setConfirmLoading(false);
215
+ }
216
+ }
217
+ },
218
+ onClose: () => {
219
+ destroy();
220
+ }
221
+ });
222
+ },
223
+
224
+ // 筛选
225
+ handleFilter() {
226
+ $Data.pagerConfig.currentPage = 1;
227
+ $Method.apiConfigList();
228
+ },
229
+
230
+ // 刷新
231
+ handleRefresh() {
232
+ $Method.apiConfigList();
233
+ },
234
+
235
+ // 分页改变
236
+ onPageChange(currentPage) {
237
+ $Data.pagerConfig.currentPage = currentPage;
238
+ $Method.apiConfigList();
239
+ },
240
+
241
+ // 每页条数改变
242
+ handleSizeChange(pageSize) {
243
+ $Data.pagerConfig.limit = pageSize;
244
+ $Data.pagerConfig.currentPage = 1;
245
+ $Method.apiConfigList();
246
+ },
247
+
248
+ // 高亮行变化
249
+ onActiveChange(value, context) {
250
+ if (value.length === 0 && $Data.activeRowKeys.length > 0) {
251
+ return;
252
+ }
253
+ $Data.activeRowKeys = value;
254
+ if (context.activeRowList && context.activeRowList.length > 0) {
255
+ $Data.currentRow = context.activeRowList[0].row;
256
+ }
257
+ },
258
+
259
+ // 操作菜单点击
260
+ onAction(command, rowData) {
261
+ $Data.actionType = command;
262
+ $Data.rowData = rowData;
263
+ if (command === "add" || command === "upd") {
264
+ $Data.editVisible = true;
265
+ } else if (command === "del") {
266
+ $Method.apiConfigDel(rowData);
267
+ }
268
+ }
269
+ };
270
+
271
+ $Method.initData();
272
+ </script>
273
+
274
+ <style scoped lang="scss">
275
+ .config-value {
276
+ margin: 0;
277
+ padding: 8px;
278
+ background: var(--td-bg-color-container);
279
+ border-radius: 4px;
280
+ font-size: 12px;
281
+ max-height: 150px;
282
+ overflow: auto;
283
+ white-space: pre-wrap;
284
+ word-break: break-all;
285
+ }
286
+ </style>
@@ -0,0 +1,132 @@
1
+ <template>
2
+ <div class="section-block">
3
+ <div class="section-header flex items-center gap-2">
4
+ <i-lucide:package />
5
+ <h2>已安装插件</h2>
6
+ </div>
7
+ <div class="section-content">
8
+ <div class="addon-list">
9
+ <div v-for="addon in addonList" :key="addon.name" class="addon-item">
10
+ <div class="addon-icon">
11
+ <i-lucide:box />
12
+ </div>
13
+ <div class="addon-info">
14
+ <div class="addon-title">
15
+ <span class="addon-name">{{ addon.title }}</span>
16
+ <t-tag type="success" size="small">{{ addon.version }}</t-tag>
17
+ </div>
18
+ <div class="addon-desc">{{ addon.description }}</div>
19
+ </div>
20
+ </div>
21
+ </div>
22
+ </div>
23
+ </div>
24
+ </template>
25
+
26
+ <script setup>
27
+ import { $Http } from "@/plugins/http";
28
+
29
+ // 组件内部数据
30
+ const addonList = $ref([]);
31
+
32
+ // 获取数据
33
+ const fetchData = async () => {
34
+ try {
35
+ const { data } = await $Http("/addon/admin/dashboard/addonList");
36
+ addonList.splice(0, addonList.length, ...data);
37
+ } catch (error) {
38
+ // 静默失败:不阻断页面展示
39
+ }
40
+ };
41
+
42
+ fetchData();
43
+ </script>
44
+
45
+ <style scoped lang="scss">
46
+ .addon-list {
47
+ display: flex;
48
+ flex-direction: column;
49
+ gap: 8px;
50
+
51
+ .addon-item {
52
+ position: relative;
53
+ background: var(--bg-color-container);
54
+ border: 1px solid var(--border-color);
55
+ border-left: 3px solid var(--primary-color);
56
+ border-radius: var(--border-radius-small);
57
+ padding: 10px 12px;
58
+ display: flex;
59
+ align-items: center;
60
+ gap: 10px;
61
+ transition: all 0.3s;
62
+
63
+ &:hover {
64
+ border-left-color: var(--success-color);
65
+ box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
66
+ transform: translateY(-2px);
67
+ }
68
+
69
+ .addon-status-badge {
70
+ position: absolute;
71
+ top: 8px;
72
+ right: 8px;
73
+ width: 8px;
74
+ height: 8px;
75
+ border-radius: 50%;
76
+ background: var(--text-disabled);
77
+ transition: all 0.3s;
78
+
79
+ &::after {
80
+ content: '';
81
+ position: absolute;
82
+ top: -2px;
83
+ right: -2px;
84
+ width: 8px;
85
+ height: 8px;
86
+ border-radius: 50%;
87
+ background: var(--success-color);
88
+ box-shadow: 0 0 0 2px rgba(var(--success-color-rgb), 0.2);
89
+ }
90
+
91
+ .addon-icon {
92
+ width: 32px;
93
+ height: 32px;
94
+ background: linear-gradient(135deg, var(--primary-color), #764ba2);
95
+ border-radius: var(--border-radius-small);
96
+ display: flex;
97
+ align-items: center;
98
+ justify-content: center;
99
+ color: white;
100
+ flex-shrink: 0;
101
+ }
102
+
103
+ .addon-info {
104
+ flex: 1;
105
+ min-width: 0;
106
+ padding-right: 16px;
107
+
108
+ .addon-title {
109
+ display: flex;
110
+ align-items: center;
111
+ gap: 6px;
112
+ margin-bottom: 2px;
113
+
114
+ .addon-name {
115
+ font-size: 14px;
116
+ font-weight: 600;
117
+ color: var(--text-primary);
118
+ }
119
+ }
120
+
121
+ .addon-desc {
122
+ font-size: 14px;
123
+ color: var(--text-secondary);
124
+ line-height: 1.3;
125
+ overflow: hidden;
126
+ text-overflow: ellipsis;
127
+ white-space: nowrap;
128
+ }
129
+ }
130
+ }
131
+ }
132
+ </style>
@@ -0,0 +1,100 @@
1
+ <template>
2
+ <div class="section-block">
3
+ <div class="section-header flex items-center gap-2">
4
+ <ILucideServer />
5
+ <h2>运行环境</h2>
6
+ </div>
7
+ <div class="section-content">
8
+ <div class="env-grid-compact">
9
+ <div class="env-compact-item">
10
+ <span class="env-label">操作系统</span>
11
+ <span class="env-value">{{ environmentInfo.os }}</span>
12
+ </div>
13
+ <div class="env-compact-item">
14
+ <span class="env-label">服务器</span>
15
+ <span class="env-value">{{ environmentInfo.server }}</span>
16
+ </div>
17
+ <div class="env-compact-item">
18
+ <span class="env-label">Node版本</span>
19
+ <span class="env-value">{{ environmentInfo.nodeVersion }}</span>
20
+ </div>
21
+ <div class="env-compact-item">
22
+ <span class="env-label">数据库</span>
23
+ <span class="env-value">{{ environmentInfo.database }}</span>
24
+ </div>
25
+ <div class="env-compact-item">
26
+ <span class="env-label">缓存</span>
27
+ <span class="env-value">{{ environmentInfo.cache }}</span>
28
+ </div>
29
+ <div class="env-compact-item">
30
+ <span class="env-label">时区</span>
31
+ <span class="env-value">{{ environmentInfo.timezone }}</span>
32
+ </div>
33
+ </div>
34
+ </div>
35
+ </div>
36
+ </template>
37
+
38
+ <script setup>
39
+ import ILucideServer from "~icons/lucide/server";
40
+ import { $Http } from "@/plugins/http";
41
+
42
+ // 组件内部数据
43
+ const environmentInfo = $ref({
44
+ os: "",
45
+ server: "",
46
+ nodeVersion: "",
47
+ database: "",
48
+ cache: "",
49
+ timezone: ""
50
+ });
51
+
52
+ // 获取数据
53
+ const fetchData = async () => {
54
+ try {
55
+ const { data } = await $Http("/addon/admin/dashboard/environmentInfo");
56
+ Object.assign(environmentInfo, data);
57
+ } catch (error) {
58
+ // 静默失败:不阻断页面展示
59
+ }
60
+ };
61
+
62
+ fetchData();
63
+ </script>
64
+
65
+ <style scoped lang="scss">
66
+ .env-grid-compact {
67
+ display: grid;
68
+ grid-template-columns: repeat(4, 1fr);
69
+ gap: 10px;
70
+
71
+ .env-compact-item {
72
+ display: flex;
73
+ justify-content: space-between;
74
+ align-items: center;
75
+ padding: 10px 12px;
76
+ background: var(--bg-color-container);
77
+ border-radius: 6px;
78
+ border: 1px solid var(--border-color);
79
+ transition: all 0.2s ease;
80
+
81
+ &:hover {
82
+ background: rgba(var(--primary-color-rgb), 0.03);
83
+ border-color: rgba(var(--primary-color-rgb), 0.2);
84
+ }
85
+
86
+ .env-label {
87
+ font-size: 14px;
88
+ color: var(--text-secondary);
89
+ font-weight: 500;
90
+ }
91
+
92
+ .env-value {
93
+ font-size: 14px;
94
+ color: var(--text-primary);
95
+ font-weight: 600;
96
+ text-align: right;
97
+ }
98
+ }
99
+ }
100
+ </style>
@@ -0,0 +1,112 @@
1
+ <template>
2
+ <div class="section-block">
3
+ <div class="section-header flex items-center gap-2">
4
+ <i-lucide:file-text />
5
+ <h2>操作日志</h2>
6
+ </div>
7
+ <div class="section-content">
8
+ <div class="operation-table">
9
+ <div class="operation-header">
10
+ <span class="col-time">时间</span>
11
+ <span class="col-user">操作人</span>
12
+ <span class="col-action">操作</span>
13
+ <span class="col-module">模块</span>
14
+ <span class="col-ip">IP地址</span>
15
+ <span class="col-status">状态</span>
16
+ </div>
17
+ <div class="operation-body">
18
+ <div v-for="log in operationLogs" :key="log.id" class="operation-row">
19
+ <span class="col-time">{{ formatTime(log.createdAt) }}</span>
20
+ <span class="col-user">{{ log.userName }}</span>
21
+ <span class="col-action">{{ log.action }}</span>
22
+ <span class="col-module">{{ log.module }}</span>
23
+ <span class="col-ip">{{ log.ip }}</span>
24
+ <span class="col-status">
25
+ <t-tag :type="log.status === 'success' ? 'success' : 'danger'" size="small">
26
+ {{ log.status === "success" ? "成功" : "失败" }}
27
+ </t-tag>
28
+ </span>
29
+ </div>
30
+ </div>
31
+ </div>
32
+ </div>
33
+ </div>
34
+ </template>
35
+
36
+ <script setup>
37
+ // 组件内部数据
38
+ const operationLogs = $ref([
39
+ { id: 1, userName: "管理员", action: "创建角色", module: "权限管理", ip: "192.168.1.100", status: "success", createdAt: Date.now() - 120000 },
40
+ { id: 2, userName: "张三", action: "修改菜单", module: "系统设置", ip: "192.168.1.101", status: "success", createdAt: Date.now() - 900000 },
41
+ { id: 3, userName: "李四", action: "删除接口", module: "接口管理", ip: "192.168.1.102", status: "failed", createdAt: Date.now() - 3600000 },
42
+ { id: 4, userName: "管理员", action: "同步数据库", module: "数据库", ip: "192.168.1.100", status: "success", createdAt: Date.now() - 7200000 },
43
+ { id: 5, userName: "王五", action: "登录系统", module: "系统", ip: "192.168.1.103", status: "success", createdAt: Date.now() - 10800000 }
44
+ ]);
45
+
46
+ const formatTime = (timestamp) => {
47
+ const date = new Date(timestamp);
48
+ const month = String(date.getMonth() + 1).padStart(2, "0");
49
+ const day = String(date.getDate()).padStart(2, "0");
50
+ const hours = String(date.getHours()).padStart(2, "0");
51
+ const minutes = String(date.getMinutes()).padStart(2, "0");
52
+ return `${month}-${day} ${hours}:${minutes}`;
53
+ };
54
+ </script>
55
+
56
+ <style scoped lang="scss">
57
+ .operation-table {
58
+ .operation-header,
59
+ .operation-row {
60
+ display: grid;
61
+ grid-template-columns: 100px 100px 1fr 120px 120px 80px;
62
+ gap: 12px;
63
+ align-items: center;
64
+ }
65
+
66
+ .operation-header {
67
+ padding: 10px 12px;
68
+ background: linear-gradient(135deg, rgba(var(--primary-color-rgb), 0.05) 0%, rgba(var(--primary-color-rgb), 0.02) 100%);
69
+ border-radius: 6px;
70
+ font-size: 14px;
71
+ font-weight: 600;
72
+ color: var(--text-secondary);
73
+ margin-bottom: 6px;
74
+ }
75
+
76
+ .operation-body {
77
+ display: flex;
78
+ flex-direction: column;
79
+ gap: 4px;
80
+ }
81
+
82
+ .operation-row {
83
+ padding: 6px 12px;
84
+ background: var(--bg-color-container);
85
+ border-radius: 6px;
86
+ border: 1px solid var(--border-color);
87
+ font-size: 14px;
88
+ transition: all 0.2s ease;
89
+
90
+ &:hover {
91
+ background: rgba(var(--primary-color-rgb), 0.02);
92
+ border-color: rgba(var(--primary-color-rgb), 0.2);
93
+ }
94
+
95
+ .col-time {
96
+ color: var(--text-secondary);
97
+ font-size: 14px;
98
+ }
99
+
100
+ .col-user,
101
+ .col-action,
102
+ .col-module,
103
+ .col-ip {
104
+ color: var(--text-primary);
105
+ }
106
+
107
+ .col-action {
108
+ font-weight: 600;
109
+ }
110
+ }
111
+ }
112
+ </style>