Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
A
adminCenter
Project
Project
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
Graph
比较
统计图
议题
0
议题
0
列表
看板
标记
Milestones
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
刘旭
adminCenter
Commits
73172069
提交
73172069
authored
9月 17, 2025
作者:
Administrator
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
1
上级
fa3d44fd
全部展开
显示空白字符变更
内嵌
并排
正在显示
7 个修改的文件
包含
42 行增加
和
21 行删除
+42
-21
index--zuAVKGa.css
dist/assets/index--zuAVKGa.css
+0
-0
index.html
dist/index.html
+2
-2
logs.vue
src/components/logs.vue
+13
-1
menuList.ts
src/layout/uilts/menuList.ts
+15
-15
components.d.ts
src/types/components.d.ts
+1
-0
index.vue
src/views/systemBackup/index.vue
+9
-1
vite.config.ts
vite.config.ts
+2
-2
没有找到文件。
dist/assets/index--zuAVKGa.css
deleted
100644 → 0
浏览文件 @
fa3d44fd
差异被折叠。
点击展开。
dist/index.html
浏览文件 @
73172069
...
...
@@ -5,8 +5,8 @@
<link
rel=
"icon"
href=
"/lq-control/favicon.ico"
/>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1.0"
/>
<title>
管理中心
</title>
<script
type=
"module"
crossorigin
src=
"/lq-control/assets/index-D
O6WOE4z
.js"
></script>
<link
rel=
"stylesheet"
crossorigin
href=
"/lq-control/assets/index-
-zuAVKGa
.css"
>
<script
type=
"module"
crossorigin
src=
"/lq-control/assets/index-D
48jZVNT
.js"
></script>
<link
rel=
"stylesheet"
crossorigin
href=
"/lq-control/assets/index-
CGb-n9UQ
.css"
>
</head>
<body>
<div
id=
"app"
></div>
...
...
src/components/logs.vue
浏览文件 @
73172069
...
...
@@ -3,6 +3,10 @@
<el-scrollbar
height=
"600px"
style=
"background-color: black; color: #ffffff; padding: 12px"
>
<p
v-for=
"(item, index) in logsText"
:key=
"index"
style=
"margin-bottom: 3px"
>
{{
item
}}
</p>
</el-scrollbar>
<div
style=
"margin-top: 20px; text-align: end"
>
<el-input-number
v-model=
"num"
:min=
"1"
style=
"margin-right: 20px"
/>
<el-button
type=
"primary"
@
click=
"init(rowData, num)"
>
刷新日志
</el-button>
</div>
</el-dialog>
</
template
>
...
...
@@ -11,8 +15,12 @@ import { getLogs } from '@/api'
const
show
=
ref
(
false
)
const
logsText
=
ref
()
const
title
=
ref
()
const
rowData
=
ref
()
const
num
=
ref
(
1
)
const
init
=
async
(
row
:
any
,
logsMinutes
:
number
)
=>
{
rowData
.
value
=
row
num
.
value
=
logsMinutes
title
.
value
=
row
.
name
+
'日志'
const
res
:
any
=
await
getLogs
({
containerId
:
row
.
containerId
,
...
...
@@ -20,13 +28,17 @@ const init = async (row: any, logsMinutes: number) => {
})
if
(
res
.
code
===
200
)
{
logsText
.
value
=
res
.
data
console
.
log
(
logsText
.
value
)
ElMessage
.
success
(
'获取日志成功'
)
}
else
{
ElMessage
.
error
(
'获取日志失败'
)
}
}
const
handleClose
=
()
=>
{
show
.
value
=
false
logsText
.
value
=
null
rowData
.
value
=
null
num
.
value
=
1
}
defineExpose
({
...
...
src/layout/uilts/menuList.ts
浏览文件 @
73172069
...
...
@@ -14,21 +14,21 @@ export const menuList = [
path
:
'/imageManagement'
,
name
:
'容器管理'
},
{
index
:
4
,
path
:
'/jarManagement'
,
name
:
'jar包管理'
},
{
index
:
5
,
path
:
'/execute'
,
name
:
'执行计划'
},
{
index
:
6
,
path
:
'/syncConfig'
,
name
:
'产品管理'
},
//
{
//
index: 4,
//
path: '/jarManagement',
//
name: 'jar包管理'
//
},
//
{
//
index: 5,
//
path: '/execute',
//
name: '执行计划'
//
},
//
{
//
index: 6,
//
path: '/syncConfig',
//
name: '产品管理'
//
},
{
index
:
7
,
path
:
'/systemBackup'
,
...
...
src/types/components.d.ts
浏览文件 @
73172069
...
...
@@ -22,6 +22,7 @@ declare module 'vue' {
ElHeader
:
typeof
import
(
'element-plus/es'
)[
'ElHeader'
]
ElIcon
:
typeof
import
(
'element-plus/es'
)[
'ElIcon'
]
ElInput
:
typeof
import
(
'element-plus/es'
)[
'ElInput'
]
ElInputNumber
:
typeof
import
(
'element-plus/es'
)[
'ElInputNumber'
]
ElLink
:
typeof
import
(
'element-plus/es'
)[
'ElLink'
]
ElMain
:
typeof
import
(
'element-plus/es'
)[
'ElMain'
]
ElMenu
:
typeof
import
(
'element-plus/es'
)[
'ElMenu'
]
...
...
src/views/systemBackup/index.vue
浏览文件 @
73172069
...
...
@@ -304,13 +304,21 @@ const handleSelectFile = async () => {
const
handleFileChange
=
(
event
:
any
)
=>
{
const
files
=
event
.
target
.
files
console
.
log
(
'🚀 ~ handleFileChange ~ files:'
,
files
[
0
])
if
(
files
.
length
>
1
)
{
ElMessage
.
warning
(
'只能上传一个文件'
)
uploadFile
.
value
=
''
return
}
if
(
files
.
length
===
1
)
{
if
(
files
[
0
].
type
!==
'application/zip'
)
{
if
(
!
[
'application/zip'
,
'application/x-zip-compressed'
,
'application/x-zip'
,
'multipart/x-zip'
].
includes
(
files
[
0
].
type
)
)
{
ElMessage
.
warning
(
'只允许上传 .zip 文件'
)
uploadFile
.
value
=
''
}
else
{
...
...
vite.config.ts
浏览文件 @
73172069
...
...
@@ -52,10 +52,10 @@ export default defineConfig({
// 设置代理
proxy
:
{
'/admin'
:
{
target
:
'http://192.168.1.1
60
:8080/'
target
:
'http://192.168.1.1
32
:8080/'
},
'/webApi'
:
{
target
:
'http://192.168.1.1
60
:8003/'
target
:
'http://192.168.1.1
32
:8003/'
}
}
},
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论