提交 73172069 authored 作者: Administrator's avatar Administrator

1

上级 fa3d44fd
差异被折叠。
...@@ -5,8 +5,8 @@ ...@@ -5,8 +5,8 @@
<link rel="icon" href="/lq-control/favicon.ico" /> <link rel="icon" href="/lq-control/favicon.ico" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>管理中心</title> <title>管理中心</title>
<script type="module" crossorigin src="/lq-control/assets/index-DO6WOE4z.js"></script> <script type="module" crossorigin src="/lq-control/assets/index-D48jZVNT.js"></script>
<link rel="stylesheet" crossorigin href="/lq-control/assets/index--zuAVKGa.css"> <link rel="stylesheet" crossorigin href="/lq-control/assets/index-CGb-n9UQ.css">
</head> </head>
<body> <body>
<div id="app"></div> <div id="app"></div>
......
<template> <template>
<el-dialog v-model="show" :title="title" width="60%" @close="handleClose"> <el-dialog v-model="show" :title="title" width="60%" @close="handleClose">
<el-scrollbar height="600px" style="background-color: black; color: #ffffff; padding: 12px"> <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> <p v-for="(item, index) in logsText" :key="index" style="margin-bottom: 3px">{{ item }}</p>
</el-scrollbar> </el-scrollbar>
</el-dialog> <div style="margin-top: 20px; text-align: end">
</template> <el-input-number v-model="num" :min="1" style="margin-right: 20px" />
<el-button type="primary" @click="init(rowData, num)">刷新日志</el-button>
<script setup lang="ts"> </div>
import { getLogs } from '@/api' </el-dialog>
const show = ref(false) </template>
const logsText = ref()
const title = ref() <script setup lang="ts">
import { getLogs } from '@/api'
const init = async (row: any, logsMinutes: number) => { const show = ref(false)
title.value = row.name + '日志' const logsText = ref()
const res: any = await getLogs({ const title = ref()
containerId: row.containerId, const rowData = ref()
timeInMinutes: logsMinutes const num = ref(1)
})
if (res.code === 200) { const init = async (row: any, logsMinutes: number) => {
logsText.value = res.data rowData.value = row
console.log(logsText.value) num.value = logsMinutes
} title.value = row.name + '日志'
} const res: any = await getLogs({
containerId: row.containerId,
const handleClose = () => { timeInMinutes: logsMinutes
show.value = false })
logsText.value = null if (res.code === 200) {
} logsText.value = res.data
ElMessage.success('获取日志成功')
defineExpose({ } else {
show, ElMessage.error('获取日志失败')
init }
}) }
</script>
const handleClose = () => {
<style scoped></style> show.value = false
logsText.value = null
rowData.value = null
num.value = 1
}
defineExpose({
show,
init
})
</script>
<style scoped></style>
...@@ -14,21 +14,21 @@ export const menuList = [ ...@@ -14,21 +14,21 @@ export const menuList = [
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',
......
...@@ -22,6 +22,7 @@ declare module 'vue' { ...@@ -22,6 +22,7 @@ declare module 'vue' {
ElHeader: typeof import('element-plus/es')['ElHeader'] ElHeader: typeof import('element-plus/es')['ElHeader']
ElIcon: typeof import('element-plus/es')['ElIcon'] ElIcon: typeof import('element-plus/es')['ElIcon']
ElInput: typeof import('element-plus/es')['ElInput'] ElInput: typeof import('element-plus/es')['ElInput']
ElInputNumber: typeof import('element-plus/es')['ElInputNumber']
ElLink: typeof import('element-plus/es')['ElLink'] ElLink: typeof import('element-plus/es')['ElLink']
ElMain: typeof import('element-plus/es')['ElMain'] ElMain: typeof import('element-plus/es')['ElMain']
ElMenu: typeof import('element-plus/es')['ElMenu'] ElMenu: typeof import('element-plus/es')['ElMenu']
......
...@@ -52,10 +52,10 @@ export default defineConfig({ ...@@ -52,10 +52,10 @@ export default defineConfig({
// 设置代理 // 设置代理
proxy: { proxy: {
'/admin': { '/admin': {
target: 'http://192.168.1.160:8080/' target: 'http://192.168.1.132:8080/'
}, },
'/webApi': { '/webApi': {
target: 'http://192.168.1.160:8003/' target: 'http://192.168.1.132:8003/'
} }
} }
}, },
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论