@befly-addon/admin 1.0.55 → 1.0.56

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 (61) hide show
  1. package/apis/admin/ins.ts +11 -15
  2. package/apis/admin/upd.ts +1 -13
  3. package/apis/auth/login.ts +49 -5
  4. package/apis/email/config.ts +16 -0
  5. package/apis/email/logList.ts +13 -0
  6. package/apis/email/send.ts +42 -0
  7. package/apis/email/verify.ts +12 -0
  8. package/apis/loginLog/list.ts +13 -0
  9. package/apis/operateLog/list.ts +13 -0
  10. package/apis/sysConfig/all.ts +12 -0
  11. package/apis/sysConfig/del.ts +30 -0
  12. package/apis/sysConfig/get.ts +31 -0
  13. package/apis/sysConfig/ins.ts +38 -0
  14. package/apis/sysConfig/list.ts +14 -0
  15. package/apis/sysConfig/upd.ts +50 -0
  16. package/package.json +14 -3
  17. package/plugins/email.ts +206 -0
  18. package/styles/variables.scss +121 -60
  19. package/tables/admin.json +0 -15
  20. package/tables/emailLog.json +69 -0
  21. package/tables/loginLog.json +96 -0
  22. package/tables/operateLog.json +82 -0
  23. package/tables/role.json +1 -1
  24. package/tables/sysConfig.json +53 -0
  25. package/views/403_1/meta.json +4 -0
  26. package/views/{dict → config/dict}/index.vue +27 -38
  27. package/views/config/dict/meta.json +4 -0
  28. package/views/config/meta.json +4 -0
  29. package/views/config/system/components/edit.vue +179 -0
  30. package/views/config/system/index.vue +256 -0
  31. package/views/config/system/meta.json +4 -0
  32. package/views/index/index.vue +46 -9
  33. package/views/index/meta.json +4 -0
  34. package/views/log/email/index.vue +285 -0
  35. package/views/log/email/meta.json +4 -0
  36. package/views/log/login/index.vue +180 -0
  37. package/views/log/login/meta.json +4 -0
  38. package/views/log/meta.json +4 -0
  39. package/views/log/operate/index.vue +242 -0
  40. package/views/log/operate/meta.json +4 -0
  41. package/views/login_1/meta.json +4 -0
  42. package/views/{admin → people/admin}/components/edit.vue +22 -24
  43. package/views/{admin → people/admin}/index.vue +21 -61
  44. package/views/people/admin/meta.json +4 -0
  45. package/views/people/meta.json +4 -0
  46. package/views/{api → permission/api}/index.vue +17 -55
  47. package/views/permission/api/meta.json +4 -0
  48. package/views/{menu → permission/menu}/index.vue +17 -56
  49. package/views/permission/menu/meta.json +4 -0
  50. package/views/permission/meta.json +4 -0
  51. package/views/{role → permission/role}/components/api.vue +13 -38
  52. package/views/{role → permission/role}/components/edit.vue +9 -8
  53. package/views/{role → permission/role}/components/menu.vue +2 -25
  54. package/views/{role → permission/role}/index.vue +27 -36
  55. package/views/permission/role/meta.json +4 -0
  56. /package/views/{403 → 403_1}/index.vue +0 -0
  57. /package/views/{dict → config/dict}/components/edit.vue +0 -0
  58. /package/views/{login → login_1}/components/emailLoginForm.vue +0 -0
  59. /package/views/{login → login_1}/components/registerForm.vue +0 -0
  60. /package/views/{login → login_1}/components/welcomePanel.vue +0 -0
  61. /package/views/{login/index_1.vue → login_1/index.vue} +0 -0
@@ -1,10 +1,21 @@
1
1
  <template>
2
2
  <div class="dashboard-container">
3
- <SystemOverview />
4
- <ServiceStatus />
5
- <SystemResources />
6
- <PerformanceMetrics />
7
- <EnvironmentInfo />
3
+ <!-- 第一行:系统概览(全宽) -->
4
+ <div class="dashboard-row full-width">
5
+ <SystemOverview />
6
+ </div>
7
+
8
+ <!-- 第二行:服务状态 + 系统资源 -->
9
+ <div class="dashboard-row two-columns">
10
+ <ServiceStatus />
11
+ <SystemResources />
12
+ </div>
13
+
14
+ <!-- 第三行:性能指标 + 环境信息 -->
15
+ <div class="dashboard-row two-columns">
16
+ <PerformanceMetrics />
17
+ <EnvironmentInfo />
18
+ </div>
8
19
  </div>
9
20
  </template>
10
21
 
@@ -20,11 +31,37 @@ import EnvironmentInfo from './components/environmentInfo.vue';
20
31
  .dashboard-container {
21
32
  display: flex;
22
33
  flex-direction: column;
23
- gap: 12px;
34
+ gap: var(--layout-gap);
24
35
  overflow-y: auto;
25
36
  height: 100%;
26
- background-color: #fff;
27
- padding: 15px;
28
- border: 1px solid #e8eaed;
37
+ padding: 0;
38
+
39
+ .dashboard-row {
40
+ display: flex;
41
+ gap: var(--layout-gap);
42
+
43
+ &.full-width {
44
+ > * {
45
+ flex: 1;
46
+ }
47
+ }
48
+
49
+ &.two-columns {
50
+ > * {
51
+ flex: 1;
52
+ min-width: 0;
53
+ }
54
+ }
55
+ }
56
+
57
+ // 每个组件都是独立的卡片
58
+ :deep(.section-block) {
59
+ background: var(--bg-color-container);
60
+ border-radius: var(--card-radius);
61
+ box-shadow: var(--shadow-1);
62
+ padding: var(--spacing-md);
63
+ border: none;
64
+ height: 100%;
65
+ }
29
66
  }
30
67
  </style>
@@ -0,0 +1,4 @@
1
+ {
2
+ "name": "首页",
3
+ "order": 1
4
+ }
@@ -0,0 +1,285 @@
1
+ <template>
2
+ <div class="page-email page-table">
3
+ <div class="main-tool">
4
+ <div class="left">
5
+ <TButton theme="primary" @click="$Method.openSendDialog">
6
+ <template #icon>
7
+ <ILucideSend />
8
+ </template>
9
+ 发送邮件
10
+ </TButton>
11
+ <TButton variant="outline" @click="$Method.onVerify">
12
+ <template #icon>
13
+ <ILucideCheckCircle />
14
+ </template>
15
+ 验证配置
16
+ </TButton>
17
+ </div>
18
+ <div class="right">
19
+ <TButton shape="circle" @click="$Method.handleRefresh">
20
+ <template #icon>
21
+ <ILucideRotateCw />
22
+ </template>
23
+ </TButton>
24
+ </div>
25
+ </div>
26
+
27
+ <div class="main-content">
28
+ <div class="main-table">
29
+ <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">
30
+ <template #sendResult="{ row }">
31
+ <TTag v-if="row.sendResult === 1" shape="round" theme="success" variant="light-outline">成功</TTag>
32
+ <TTag v-else shape="round" theme="danger" variant="light-outline">失败</TTag>
33
+ </template>
34
+ <template #sendTime="{ row }">
35
+ {{ $Method.formatTime(row.sendTime) }}
36
+ </template>
37
+ </TTable>
38
+ </div>
39
+
40
+ <div class="main-detail">
41
+ <DetailPanel :data="$Data.currentRow" :fields="$Data.detailFields">
42
+ <template #sendResult="{ value }">
43
+ <TTag v-if="value === 1" shape="round" theme="success" variant="light-outline">成功</TTag>
44
+ <TTag v-else shape="round" theme="danger" variant="light-outline">失败</TTag>
45
+ </template>
46
+ <template #sendTime="{ value }">
47
+ {{ $Method.formatTime(value) }}
48
+ </template>
49
+ <template #content="{ value }">
50
+ <div class="email-content" v-html="value"></div>
51
+ </template>
52
+ </DetailPanel>
53
+ </div>
54
+ </div>
55
+
56
+ <div class="main-page">
57
+ <TPagination :current-page="$Data.pagerConfig.currentPage" :page-size="$Data.pagerConfig.limit" :total="$Data.pagerConfig.total" @current-change="$Method.onPageChange" @page-size-change="$Method.handleSizeChange" />
58
+ </div>
59
+
60
+ <!-- 发送邮件弹框 -->
61
+ <TDialog v-model:visible="$Data.sendDialogVisible" header="发送邮件" :footer="false" width="600px">
62
+ <TForm ref="sendFormRef" :data="$Data.sendForm" :rules="$Data.sendRules" label-width="80px">
63
+ <TFormItem label="收件人" name="to">
64
+ <TInput v-model="$Data.sendForm.to" placeholder="请输入收件人邮箱" />
65
+ </TFormItem>
66
+ <TFormItem label="抄送" name="cc">
67
+ <TInput v-model="$Data.sendForm.cc" placeholder="多个邮箱用逗号分隔(可选)" />
68
+ </TFormItem>
69
+ <TFormItem label="主题" name="subject">
70
+ <TInput v-model="$Data.sendForm.subject" placeholder="请输入邮件主题" />
71
+ </TFormItem>
72
+ <TFormItem label="内容" name="content">
73
+ <TTextarea v-model="$Data.sendForm.content" placeholder="请输入邮件内容(支持HTML)" :autosize="{ minRows: 6, maxRows: 12 }" />
74
+ </TFormItem>
75
+ <TFormItem>
76
+ <TSpace>
77
+ <TButton theme="primary" :loading="$Data.sending" @click="$Method.onSend">发送</TButton>
78
+ <TButton variant="outline" @click="$Data.sendDialogVisible = false">取消</TButton>
79
+ </TSpace>
80
+ </TFormItem>
81
+ </TForm>
82
+ </TDialog>
83
+ </div>
84
+ </template>
85
+
86
+ <script setup>
87
+ import { Button as TButton, Table as TTable, Tag as TTag, Pagination as TPagination, Dialog as TDialog, Form as TForm, FormItem as TFormItem, Input as TInput, Textarea as TTextarea, Space as TSpace, MessagePlugin } from 'tdesign-vue-next';
88
+ import ILucideRotateCw from '~icons/lucide/rotate-cw';
89
+ import ILucideSend from '~icons/lucide/send';
90
+ import ILucideCheckCircle from '~icons/lucide/check-circle';
91
+ import DetailPanel from '@/components/DetailPanel.vue';
92
+ import { $Http } from '@/plugins/http';
93
+ import { withDefaultColumns } from '@/utils';
94
+
95
+ const sendFormRef = $ref(null);
96
+
97
+ // 响应式数据
98
+ const $Data = $ref({
99
+ tableData: [],
100
+ loading: false,
101
+ columns: withDefaultColumns([
102
+ { colKey: 'username', title: '发送人', fixed: 'left' },
103
+ { colKey: 'id', title: '序号' },
104
+ { colKey: 'toEmail', title: '收件人' },
105
+ { colKey: 'subject', title: '主题' },
106
+ { colKey: 'sendTime', title: '发送时间' },
107
+ { colKey: 'sendResult', title: '发送结果' }
108
+ ]),
109
+ detailFields: [
110
+ { colKey: 'username', title: '发送人账号' },
111
+ { colKey: 'nickname', title: '发送人昵称' },
112
+ { colKey: 'toEmail', title: '收件人' },
113
+ { colKey: 'ccEmail', title: '抄送' },
114
+ { colKey: 'bccEmail', title: '密送' },
115
+ { colKey: 'subject', title: '主题' },
116
+ { colKey: 'content', title: '内容' },
117
+ { colKey: 'sendTime', title: '发送时间' },
118
+ { colKey: 'sendResult', title: '发送结果' },
119
+ { colKey: 'messageId', title: '消息ID' },
120
+ { colKey: 'failReason', title: '失败原因' }
121
+ ],
122
+ pagerConfig: {
123
+ currentPage: 1,
124
+ limit: 30,
125
+ total: 0
126
+ },
127
+ currentRow: null,
128
+ activeRowKeys: [],
129
+ sendDialogVisible: false,
130
+ sending: false,
131
+ sendForm: {
132
+ to: '',
133
+ cc: '',
134
+ subject: '',
135
+ content: ''
136
+ },
137
+ sendRules: {
138
+ to: [{ required: true, message: '请输入收件人邮箱', trigger: 'blur' }],
139
+ subject: [{ required: true, message: '请输入邮件主题', trigger: 'blur' }],
140
+ content: [{ required: true, message: '请输入邮件内容', trigger: 'blur' }]
141
+ }
142
+ });
143
+
144
+ // 方法
145
+ const $Method = {
146
+ async initData() {
147
+ await $Method.apiEmailLogList();
148
+ },
149
+
150
+ // 加载邮件日志列表
151
+ async apiEmailLogList() {
152
+ $Data.loading = true;
153
+ try {
154
+ const res = await $Http('/addon/admin/email/logList', {
155
+ page: $Data.pagerConfig.currentPage,
156
+ limit: $Data.pagerConfig.limit
157
+ });
158
+ $Data.tableData = res.data.lists || [];
159
+ $Data.pagerConfig.total = res.data.total || 0;
160
+
161
+ if ($Data.tableData.length > 0) {
162
+ $Data.currentRow = $Data.tableData[0];
163
+ $Data.activeRowKeys = [$Data.tableData[0].id];
164
+ } else {
165
+ $Data.currentRow = null;
166
+ $Data.activeRowKeys = [];
167
+ }
168
+ } catch (error) {
169
+ MessagePlugin.error('加载数据失败');
170
+ } finally {
171
+ $Data.loading = false;
172
+ }
173
+ },
174
+
175
+ // 打开发送弹框
176
+ openSendDialog() {
177
+ $Data.sendForm = {
178
+ to: '',
179
+ cc: '',
180
+ subject: '',
181
+ content: ''
182
+ };
183
+ $Data.sendDialogVisible = true;
184
+ },
185
+
186
+ // 发送邮件
187
+ async onSend() {
188
+ const valid = await sendFormRef?.validate();
189
+ if (valid !== true) return;
190
+
191
+ $Data.sending = true;
192
+ try {
193
+ const res = await $Http('/addon/admin/email/send', {
194
+ to: $Data.sendForm.to,
195
+ subject: $Data.sendForm.subject,
196
+ content: $Data.sendForm.content,
197
+ cc: $Data.sendForm.cc || undefined,
198
+ isHtml: true
199
+ });
200
+
201
+ if (res.code === 0) {
202
+ MessagePlugin.success('发送成功');
203
+ $Data.sendDialogVisible = false;
204
+ $Method.apiEmailLogList();
205
+ } else {
206
+ MessagePlugin.error(res.msg || '发送失败');
207
+ }
208
+ } catch (error) {
209
+ MessagePlugin.error('发送失败');
210
+ } finally {
211
+ $Data.sending = false;
212
+ }
213
+ },
214
+
215
+ // 验证配置
216
+ async onVerify() {
217
+ try {
218
+ const res = await $Http('/addon/admin/email/verify');
219
+ if (res.code === 0) {
220
+ MessagePlugin.success('邮件服务配置正常');
221
+ } else {
222
+ MessagePlugin.error(res.msg || '配置异常');
223
+ }
224
+ } catch (error) {
225
+ MessagePlugin.error('验证失败');
226
+ }
227
+ },
228
+
229
+ // 刷新
230
+ handleRefresh() {
231
+ $Method.apiEmailLogList();
232
+ },
233
+
234
+ // 分页改变
235
+ onPageChange(currentPage) {
236
+ $Data.pagerConfig.currentPage = currentPage;
237
+ $Method.apiEmailLogList();
238
+ },
239
+
240
+ // 每页条数改变
241
+ handleSizeChange(pageSize) {
242
+ $Data.pagerConfig.limit = pageSize;
243
+ $Data.pagerConfig.currentPage = 1;
244
+ $Method.apiEmailLogList();
245
+ },
246
+
247
+ // 高亮行变化
248
+ onActiveChange(value, context) {
249
+ if (value.length === 0 && $Data.activeRowKeys.length > 0) {
250
+ return;
251
+ }
252
+ $Data.activeRowKeys = value;
253
+ if (context.activeRowList && context.activeRowList.length > 0) {
254
+ $Data.currentRow = context.activeRowList[0].row;
255
+ }
256
+ },
257
+
258
+ // 格式化时间
259
+ formatTime(timestamp) {
260
+ if (!timestamp) return '-';
261
+ const date = new Date(timestamp);
262
+ const year = date.getFullYear();
263
+ const month = String(date.getMonth() + 1).padStart(2, '0');
264
+ const day = String(date.getDate()).padStart(2, '0');
265
+ const hours = String(date.getHours()).padStart(2, '0');
266
+ const minutes = String(date.getMinutes()).padStart(2, '0');
267
+ const seconds = String(date.getSeconds()).padStart(2, '0');
268
+ return `${year}-${month}-${day} ${hours}:${minutes}:${seconds}`;
269
+ }
270
+ };
271
+
272
+ $Method.initData();
273
+ </script>
274
+
275
+ <style scoped lang="scss">
276
+ .email-content {
277
+ max-height: 300px;
278
+ overflow-y: auto;
279
+ padding: 8px;
280
+ background: #f5f5f5;
281
+ border-radius: 4px;
282
+ font-size: 13px;
283
+ line-height: 1.6;
284
+ }
285
+ </style>
@@ -0,0 +1,4 @@
1
+ {
2
+ "name": "邮件日志",
3
+ "order": 2
4
+ }
@@ -0,0 +1,180 @@
1
+ <template>
2
+ <div class="page-login-log page-table">
3
+ <div class="main-tool">
4
+ <div class="left"></div>
5
+ <div class="right">
6
+ <TButton shape="circle" @click="$Method.handleRefresh">
7
+ <template #icon>
8
+ <ILucideRotateCw />
9
+ </template>
10
+ </TButton>
11
+ </div>
12
+ </div>
13
+
14
+ <div class="main-content">
15
+ <div class="main-table">
16
+ <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">
17
+ <template #loginResult="{ row }">
18
+ <TTag v-if="row.loginResult === 1" shape="round" theme="success" variant="light-outline">成功</TTag>
19
+ <TTag v-else shape="round" theme="danger" variant="light-outline">失败</TTag>
20
+ </template>
21
+ <template #loginTime="{ row }">
22
+ {{ $Method.formatTime(row.loginTime) }}
23
+ </template>
24
+ <template #deviceType="{ row }">
25
+ <TTag shape="round" variant="light-outline">{{ row.deviceType || 'desktop' }}</TTag>
26
+ </template>
27
+ </TTable>
28
+ </div>
29
+
30
+ <div class="main-detail">
31
+ <DetailPanel :data="$Data.currentRow" :fields="$Data.detailFields">
32
+ <template #loginResult="{ value }">
33
+ <TTag v-if="value === 1" shape="round" theme="success" variant="light-outline">成功</TTag>
34
+ <TTag v-else shape="round" theme="danger" variant="light-outline">失败</TTag>
35
+ </template>
36
+ <template #loginTime="{ value }">
37
+ {{ $Method.formatTime(value) }}
38
+ </template>
39
+ <template #deviceType="{ value }">
40
+ <TTag shape="round" variant="light-outline">{{ value || 'desktop' }}</TTag>
41
+ </template>
42
+ </DetailPanel>
43
+ </div>
44
+ </div>
45
+
46
+ <div class="main-page">
47
+ <TPagination :current-page="$Data.pagerConfig.currentPage" :page-size="$Data.pagerConfig.limit" :total="$Data.pagerConfig.total" @current-change="$Method.onPageChange" @page-size-change="$Method.handleSizeChange" />
48
+ </div>
49
+ </div>
50
+ </template>
51
+
52
+ <script setup>
53
+ import { Button as TButton, Table as TTable, Tag as TTag, Pagination as TPagination, MessagePlugin } from 'tdesign-vue-next';
54
+ import ILucideRotateCw from '~icons/lucide/rotate-cw';
55
+ import DetailPanel from '@/components/DetailPanel.vue';
56
+ import { $Http } from '@/plugins/http';
57
+ import { withDefaultColumns } from '@/utils';
58
+
59
+ // 响应式数据
60
+ const $Data = $ref({
61
+ tableData: [],
62
+ loading: false,
63
+ columns: withDefaultColumns([
64
+ { colKey: 'username', title: '用户名', fixed: 'left' },
65
+ { colKey: 'id', title: '序号' },
66
+ { colKey: 'ip', title: '登录IP' },
67
+ { colKey: 'browserName', title: '浏览器' },
68
+ { colKey: 'osName', title: '操作系统' },
69
+ { colKey: 'deviceType', title: '设备类型' },
70
+ { colKey: 'loginTime', title: '登录时间' },
71
+ { colKey: 'loginResult', title: '登录结果' }
72
+ ]),
73
+ // 详情面板显示更多字段
74
+ detailFields: [
75
+ { colKey: 'username', title: '用户名' },
76
+ { colKey: 'nickname', title: '昵称' },
77
+ { colKey: 'ip', title: '登录IP' },
78
+ { colKey: 'browserName', title: '浏览器' },
79
+ { colKey: 'browserVersion', title: '浏览器版本' },
80
+ { colKey: 'osName', title: '操作系统' },
81
+ { colKey: 'osVersion', title: '系统版本' },
82
+ { colKey: 'deviceType', title: '设备类型' },
83
+ { colKey: 'deviceVendor', title: '设备厂商' },
84
+ { colKey: 'deviceModel', title: '设备型号' },
85
+ { colKey: 'engineName', title: '渲染引擎' },
86
+ { colKey: 'cpuArchitecture', title: 'CPU架构' },
87
+ { colKey: 'loginTime', title: '登录时间' },
88
+ { colKey: 'loginResult', title: '登录结果' },
89
+ { colKey: 'failReason', title: '失败原因' }
90
+ ],
91
+ pagerConfig: {
92
+ currentPage: 1,
93
+ limit: 30,
94
+ total: 0
95
+ },
96
+ currentRow: null,
97
+ activeRowKeys: []
98
+ });
99
+
100
+ // 方法
101
+ const $Method = {
102
+ async initData() {
103
+ await $Method.apiLoginLogList();
104
+ },
105
+
106
+ // 加载登录日志列表
107
+ async apiLoginLogList() {
108
+ $Data.loading = true;
109
+ try {
110
+ const res = await $Http('/addon/admin/loginLog/list', {
111
+ page: $Data.pagerConfig.currentPage,
112
+ limit: $Data.pagerConfig.limit
113
+ });
114
+ $Data.tableData = res.data.lists || [];
115
+ $Data.pagerConfig.total = res.data.total || 0;
116
+
117
+ // 自动高亮第一行
118
+ if ($Data.tableData.length > 0) {
119
+ $Data.currentRow = $Data.tableData[0];
120
+ $Data.activeRowKeys = [$Data.tableData[0].id];
121
+ } else {
122
+ $Data.currentRow = null;
123
+ $Data.activeRowKeys = [];
124
+ }
125
+ } catch (error) {
126
+ MessagePlugin.error('加载数据失败');
127
+ } finally {
128
+ $Data.loading = false;
129
+ }
130
+ },
131
+
132
+ // 刷新
133
+ handleRefresh() {
134
+ $Method.apiLoginLogList();
135
+ },
136
+
137
+ // 分页改变
138
+ onPageChange(currentPage) {
139
+ $Data.pagerConfig.currentPage = currentPage;
140
+ $Method.apiLoginLogList();
141
+ },
142
+
143
+ // 每页条数改变
144
+ handleSizeChange(pageSize) {
145
+ $Data.pagerConfig.limit = pageSize;
146
+ $Data.pagerConfig.currentPage = 1;
147
+ $Method.apiLoginLogList();
148
+ },
149
+
150
+ // 高亮行变化
151
+ onActiveChange(value, context) {
152
+ if (value.length === 0 && $Data.activeRowKeys.length > 0) {
153
+ return;
154
+ }
155
+ $Data.activeRowKeys = value;
156
+ if (context.activeRowList && context.activeRowList.length > 0) {
157
+ $Data.currentRow = context.activeRowList[0].row;
158
+ }
159
+ },
160
+
161
+ // 格式化时间
162
+ formatTime(timestamp) {
163
+ if (!timestamp) return '-';
164
+ const date = new Date(timestamp);
165
+ const year = date.getFullYear();
166
+ const month = String(date.getMonth() + 1).padStart(2, '0');
167
+ const day = String(date.getDate()).padStart(2, '0');
168
+ const hours = String(date.getHours()).padStart(2, '0');
169
+ const minutes = String(date.getMinutes()).padStart(2, '0');
170
+ const seconds = String(date.getSeconds()).padStart(2, '0');
171
+ return `${year}-${month}-${day} ${hours}:${minutes}:${seconds}`;
172
+ }
173
+ };
174
+
175
+ $Method.initData();
176
+ </script>
177
+
178
+ <style scoped lang="scss">
179
+ // 样式继承自全局 page-table
180
+ </style>
@@ -0,0 +1,4 @@
1
+ {
2
+ "name": "登录日志",
3
+ "order": 1
4
+ }
@@ -0,0 +1,4 @@
1
+ {
2
+ "name": "日志管理",
3
+ "order": 40
4
+ }