mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2025-02-07 17:10:07 +08:00
style: 修改日志审计-网站日志样式 (#1185)
This commit is contained in:
parent
800f9e2d38
commit
f51b09dc40
@ -49,12 +49,6 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<template #main>
|
<template #main>
|
||||||
<div class="update-prompt" v-if="data == null">
|
|
||||||
<span>{{ mode === 'upgrade' ? $t('app.updatePrompt') : $t('app.installPrompt') }}</span>
|
|
||||||
<div>
|
|
||||||
<img src="@/assets/images/no_update_app.svg" />
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<el-alert type="info" :closable="false" v-if="mode === 'installed'">
|
<el-alert type="info" :closable="false" v-if="mode === 'installed'">
|
||||||
<template #default>
|
<template #default>
|
||||||
<span>
|
<span>
|
||||||
@ -70,6 +64,12 @@
|
|||||||
</span>
|
</span>
|
||||||
</template>
|
</template>
|
||||||
</el-alert>
|
</el-alert>
|
||||||
|
<div class="update-prompt" v-if="data == null">
|
||||||
|
<span>{{ mode === 'upgrade' ? $t('app.updatePrompt') : $t('app.installPrompt') }}</span>
|
||||||
|
<div>
|
||||||
|
<img src="@/assets/images/no_update_app.svg" />
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
<el-row :gutter="5">
|
<el-row :gutter="5">
|
||||||
<el-col
|
<el-col
|
||||||
v-for="(installed, index) in data"
|
v-for="(installed, index) in data"
|
||||||
|
@ -4,14 +4,22 @@
|
|||||||
<template #toolbar>
|
<template #toolbar>
|
||||||
<el-row>
|
<el-row>
|
||||||
<el-col :span="16">
|
<el-col :span="16">
|
||||||
<el-radio-group v-model="logReq.logType" @change="search()">
|
<el-button
|
||||||
<el-radio-button :label="'access.log'">
|
class="tag-button"
|
||||||
{{ $t('logs.runLog') }}
|
:label="'access.log'"
|
||||||
</el-radio-button>
|
:type="logReq.logType === 'access.log' ? 'primary' : ''"
|
||||||
<el-radio-button :label="'error.log'" style="margin-left: 10px">
|
@click="changeType('access.log')"
|
||||||
{{ $t('logs.errLog') }}
|
>
|
||||||
</el-radio-button>
|
{{ $t('logs.runLog') }}
|
||||||
</el-radio-group>
|
</el-button>
|
||||||
|
<el-button
|
||||||
|
class="tag-button"
|
||||||
|
:label="'error.log'"
|
||||||
|
:type="logReq.logType === 'error.log' ? 'primary' : ''"
|
||||||
|
@click="changeType('error.log')"
|
||||||
|
>
|
||||||
|
{{ $t('logs.errLog') }}
|
||||||
|
</el-button>
|
||||||
</el-col>
|
</el-col>
|
||||||
</el-row>
|
</el-row>
|
||||||
</template>
|
</template>
|
||||||
@ -72,7 +80,7 @@ const extensions = [javascript(), oneDark];
|
|||||||
const loading = ref(false);
|
const loading = ref(false);
|
||||||
const websites = ref();
|
const websites = ref();
|
||||||
const logReq = reactive({
|
const logReq = reactive({
|
||||||
id: 0,
|
id: undefined,
|
||||||
operate: 'get',
|
operate: 'get',
|
||||||
logType: 'access.log',
|
logType: 'access.log',
|
||||||
});
|
});
|
||||||
@ -102,6 +110,13 @@ const handleReady = (payload) => {
|
|||||||
view.value = payload.view;
|
view.value = payload.view;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
const changeType = (type: string) => {
|
||||||
|
logReq.logType = type;
|
||||||
|
if (logReq.id != undefined) {
|
||||||
|
search();
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
const search = () => {
|
const search = () => {
|
||||||
loading.value = true;
|
loading.value = true;
|
||||||
OpWebsiteLog(logReq)
|
OpWebsiteLog(logReq)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user