Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
A
adminCenter
Project
Project
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
Graph
比较
统计图
议题
0
议题
0
列表
看板
标记
Milestones
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
刘旭
adminCenter
Commits
fa3d44fd
提交
fa3d44fd
authored
3月 24, 2025
作者:
Administrator
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
更新代码
上级
b05ead2c
隐藏空白字符变更
内嵌
并排
正在显示
5 个修改的文件
包含
109 行增加
和
108 行删除
+109
-108
.gitignore
.gitignore
+1
-0
webApi.ts
src/api/webApi.ts
+34
-34
aside.vue
src/layout/components/aside.vue
+35
-35
menuList.ts
src/layout/uilts/menuList.ts
+37
-37
vite.config.ts
vite.config.ts
+2
-2
没有找到文件。
.gitignore
浏览文件 @
fa3d44fd
...
@@ -6,6 +6,7 @@ yarn-debug.log*
...
@@ -6,6 +6,7 @@ yarn-debug.log*
yarn-error.log*
yarn-error.log*
pnpm-debug.log*
pnpm-debug.log*
lerna-debug.log*
lerna-debug.log*
dist
node_modules
node_modules
.DS_Store
.DS_Store
...
...
src/api/webApi.ts
浏览文件 @
fa3d44fd
import
request
from
'./config'
import
request
from
'./config'
let
baseUrl
=
location
.
origin
let
baseUrl
=
location
.
origin
// let baseUrl = 'http://192.168.1.
67:8003'
// let baseUrl = 'http://192.168.1.
160:8003'
let
newPort
=
'8003'
let
newPort
=
'8003'
baseUrl
=
baseUrl
.
replace
(
/:
\d
+/
,
':'
+
newPort
)
baseUrl
=
baseUrl
.
replace
(
/:
\d
+/
,
':'
+
newPort
)
export
const
getExecuteList
=
()
=>
{
export
const
getExecuteList
=
()
=>
{
return
request
.
get
(
baseUrl
+
'/webApi/job/list'
)
return
request
.
get
(
baseUrl
+
'/webApi/job/list'
)
}
}
export
const
setExecuteStats
=
(
data
:
any
)
=>
{
export
const
setExecuteStats
=
(
data
:
any
)
=>
{
return
request
.
get
(
baseUrl
+
'/webApi/job/stats'
,
data
)
return
request
.
get
(
baseUrl
+
'/webApi/job/stats'
,
data
)
}
}
export
const
setExecuteCron
=
(
data
:
any
)
=>
{
export
const
setExecuteCron
=
(
data
:
any
)
=>
{
return
request
.
get
(
baseUrl
+
'/webApi/job/cron'
,
data
)
return
request
.
get
(
baseUrl
+
'/webApi/job/cron'
,
data
)
}
}
export
const
getSyncConfigLog
=
(
data
:
any
)
=>
{
export
const
getSyncConfigLog
=
(
data
:
any
)
=>
{
return
request
.
get
(
baseUrl
+
'/webApi/syncConfig/log'
,
data
)
return
request
.
get
(
baseUrl
+
'/webApi/syncConfig/log'
,
data
)
}
}
export
const
setSyncConfigLog
=
(
data
:
any
)
=>
{
export
const
setSyncConfigLog
=
(
data
:
any
)
=>
{
return
request
.
get
(
baseUrl
+
'/webApi/syncConfig/log/update'
,
data
)
return
request
.
get
(
baseUrl
+
'/webApi/syncConfig/log/update'
,
data
)
}
}
export
const
getSyncConfigScene
=
(
data
:
any
)
=>
{
export
const
getSyncConfigScene
=
(
data
:
any
)
=>
{
return
request
.
get
(
baseUrl
+
'/webApi/syncConfig/scene'
,
data
)
return
request
.
get
(
baseUrl
+
'/webApi/syncConfig/scene'
,
data
)
}
}
export
const
setSyncConfigScene
=
(
data
:
any
)
=>
{
export
const
setSyncConfigScene
=
(
data
:
any
)
=>
{
return
request
.
get
(
baseUrl
+
'/webApi/syncConfig/scene/update'
,
data
)
return
request
.
get
(
baseUrl
+
'/webApi/syncConfig/scene/update'
,
data
)
}
}
src/layout/components/aside.vue
浏览文件 @
fa3d44fd
<
template
>
<
template
>
<el-menu
<el-menu
active-text-color=
"#ffd04b"
active-text-color=
"#ffd04b"
background-color=
"#545c64"
background-color=
"#545c64"
:default-active=
"active"
:default-active=
"active"
text-color=
"#fff"
text-color=
"#fff"
router
router
>
>
<el-menu-item
v-for=
"item in menuList"
:
index=
"item.index"
:route=
"item.path"
>
<el-menu-item
v-for=
"item in menuList"
:
key=
"item.index"
:index=
"item.index"
:route=
"item.path"
>
<span>
{{
item
.
name
}}
</span>
<span>
{{
item
.
name
}}
</span>
</el-menu-item>
</el-menu-item>
</el-menu>
</el-menu>
</
template
>
</
template
>
<
script
setup
lang=
"ts"
>
<
script
setup
lang=
"ts"
>
import
{
menuList
}
from
'../uilts/menuList'
import
{
menuList
}
from
'../uilts/menuList'
const
route
=
useRoute
()
const
route
=
useRoute
()
const
active
:
any
=
ref
(
1
)
const
active
:
any
=
ref
(
1
)
watch
(
watch
(
()
=>
route
.
path
,
()
=>
route
.
path
,
(
newPath
:
string
)
=>
{
(
newPath
:
string
)
=>
{
active
.
value
=
menuList
.
find
((
item
:
any
)
=>
newPath
===
item
.
path
)?.
index
active
.
value
=
menuList
.
find
((
item
:
any
)
=>
newPath
===
item
.
path
)?.
index
},
},
{
immediate
:
true
}
{
immediate
:
true
}
)
)
</
script
>
</
script
>
<
style
scoped
>
<
style
scoped
>
.el-menu
{
.el-menu
{
height
:
100%
;
height
:
100%
;
}
}
</
style
>
</
style
>
src/layout/uilts/menuList.ts
浏览文件 @
fa3d44fd
export
const
menuList
=
[
export
const
menuList
=
[
{
{
index
:
1
,
index
:
1
,
path
:
'/tenant'
,
path
:
'/tenant'
,
name
:
'租户管理'
name
:
'租户管理'
},
},
{
{
index
:
2
,
index
:
2
,
path
:
'/logs'
,
path
:
'/logs'
,
name
:
'日志管理'
name
:
'日志管理'
},
},
{
{
index
:
3
,
index
:
3
,
path
:
'/imageManagement'
,
path
:
'/imageManagement'
,
name
:
'容器管理'
name
:
'容器管理'
},
},
// {
{
// index: 4,
index
:
4
,
// path: '/jarManagement',
path
:
'/jarManagement'
,
// name: 'jar包管理'
name
:
'jar包管理'
// },
},
// {
{
// index: 5,
index
:
5
,
// path: '/execute',
path
:
'/execute'
,
// name: '执行计划'
name
:
'执行计划'
// },
},
// {
{
// index: 6,
index
:
6
,
// path: '/syncConfig',
path
:
'/syncConfig'
,
// name: '产品管理'
name
:
'产品管理'
// },
},
{
{
index
:
7
,
index
:
7
,
path
:
'/systemBackup'
,
path
:
'/systemBackup'
,
name
:
'系统备份'
name
:
'系统备份'
}
}
]
]
as
any
vite.config.ts
浏览文件 @
fa3d44fd
...
@@ -52,10 +52,10 @@ export default defineConfig({
...
@@ -52,10 +52,10 @@ export default defineConfig({
// 设置代理
// 设置代理
proxy
:
{
proxy
:
{
'/admin'
:
{
'/admin'
:
{
target
:
'http://192.168.1.16
1
:8080/'
target
:
'http://192.168.1.16
0
:8080/'
},
},
'/webApi'
:
{
'/webApi'
:
{
target
:
'http://192.168.1.16
1
:8003/'
target
:
'http://192.168.1.16
0
:8003/'
}
}
}
}
},
},
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论