Commit 9474c36f by wanglizhen

系统日志管理

parent da4bea7d
...@@ -83,38 +83,40 @@ onMounted(() => { ...@@ -83,38 +83,40 @@ onMounted(() => {
<template> <template>
<div class="app-container scroller"> <div class="app-container scroller">
<PageTitle>
<template #title>系统控制台</template>
</PageTitle>
<div class="app-container__body"> <div class="app-container__body">
<div class="formBox"> <div class="pageTitle">
<el-form-item label="保留月份:" prop=""> <img class="icon" src="@/assets/images/systemConfig/systemParamPage.png" alt="">
<div style="display: flex;"> <span>系统日志管理</span>
<el-select v-model="keepMonth" placeholder="请选择"> </div>
<el-option v-for="item in monthOptions" :key="item" :label="item" :value="item"> <div class="box">
</el-option> <div class="line"></div>
</el-select> <div class="content">
<el-button type="primary" style="width: 120px; margin-left: 10px;" @click="handelSave()">保存</el-button> <el-form-item label="保留月份:" prop="">
</div> <div style="display: flex;width: 100%;">
</el-form-item> <el-select v-model="keepMonth" placeholder="请选择" style="flex: 1;">
<el-form-item label="日志日期:" prop=""> <el-option v-for="item in monthOptions" :key="item" :label="item" :value="item">
<div style="width: 100%;justify-content: space-between;display: flex;"> </el-option>
<div style="display: flex;"> </el-select>
<el-date-picker v-model="queryData.date" type="date" placeholder="请选择日志日期" <el-button type="primary" style="width: 60px; margin-left: 10px;border-radius: 0;" @click="handelSave()">保存</el-button>
value-format="YYYY-MM-DD"></el-date-picker>
<div style="display: flex;align-items: center;margin-left: 30px;">
<span></span>
<el-input v-model="queryData.count" style="width: 80px;margin: 0px 6px;"></el-input>
<span></span>
</div>
</div> </div>
<div> </el-form-item>
<el-button type="primary" @click="querylogFunc()">查询</el-button> <el-form-item label="日志日期:" prop="">
<el-button type="primary" style="margin-left: 10px;" @click="downloadFunc()">下载</el-button> <div style="width: 100%;justify-content: space-between;display: flex;">
<div style="display: flex;width: 100%;">
<el-date-picker style="flex: 1;" v-model="queryData.date" type="date" placeholder="请选择日志日期"
value-format="YYYY-MM-DD"></el-date-picker>
<div style="display: flex;align-items: center;margin-left: 30px;">
<span></span>
<el-input v-model="queryData.count" style="width: 80px;margin: 0px 6px;"></el-input>
<span></span>
</div>
<el-button type="primary" style="width: 60px;border-radius: 0;margin-left: 24px;" @click="querylogFunc()">查询</el-button>
<el-button type="primary" style="width: 60px; margin-left: 10px;border-radius: 0;background: rgba(11, 136, 251, 1);border-color: rgba(11, 136, 251, 1);" @click="downloadFunc()">下载</el-button>
</div>
</div> </div>
</div> </el-form-item>
</el-form-item> <el-input type="textarea" v-model="resultStr" rows="20" placeholder="" readonly></el-input>
<el-input type="textarea" v-model="resultStr" rows="20" placeholder="" readonly></el-input> </div>
</div> </div>
</div> </div>
</div> </div>
...@@ -122,21 +124,55 @@ onMounted(() => { ...@@ -122,21 +124,55 @@ onMounted(() => {
<style lang="scss" scoped> <style lang="scss" scoped>
.app-container__body { .app-container__body {
:deep(.el-form-item__label){ .pageTitle {
font-weight: 400; margin-bottom: 20px;
} display: flex;
:deep(.el-input__wrapper) { align-items: center;
background: #f3f5fa; font-size: 16px;
} font-weight: 500;
:deep(.el-select__wrapper) { letter-spacing: 0px;
background: #f3f5fa; line-height: 22px;
} color: rgba(53, 64, 79, 1);
:deep(.el-textarea__inner) {
background: #f3f5fa; .icon {
margin-right: 6px;
width: 16px;
height: 16px;
}
} }
.formBox { .box {
width: 800px; display: flex;
margin: 0px auto; flex-direction: column;
flex: 1;
overflow: hidden;
background: #fff;
.line {
width: 100%;
height: 2px;
border-radius: 5px 5px 0px 0px;
background: linear-gradient(90deg,
rgba(33, 103, 217, 1) 0%,
rgba(17, 200, 250, 1) 34.03%,
rgba(33, 103, 217, 1) 64.58%,
rgba(48, 128, 255, 1) 100%);
}
.content {
padding: 52px 280px;
flex: 1;
overflow: hidden;
display: flex;
flex-direction: column;
:deep(.el-form-item__label){
font-weight: 400;
font-size: 12px;
color: rgba(148, 148, 148, 1);
}
:deep(.el-textarea__inner) {
background: #f3f5fa;
}
}
} }
} }
</style> </style>
\ No newline at end of file
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论