加入显示筛选条件配置功能
This commit is contained in:
@@ -148,8 +148,8 @@
|
|||||||
|
|
||||||
<!-- 右侧内容区 -->
|
<!-- 右侧内容区 -->
|
||||||
<div class="content">
|
<div class="content">
|
||||||
<!-- 时间范围选择器 -->
|
<!-- 时间范围选择器 - 只在特定页面显示 -->
|
||||||
<el-row :gutter="20" style="margin-bottom: 20px;">
|
<el-row :gutter="20" style="margin-bottom: 20px;" v-if="showTimeRangeSelector">
|
||||||
<el-col :span="24">
|
<el-col :span="24">
|
||||||
<el-card shadow="hover">
|
<el-card shadow="hover">
|
||||||
<el-form :inline="true" size="small">
|
<el-form :inline="true" size="small">
|
||||||
@@ -181,9 +181,17 @@
|
|||||||
return {
|
return {
|
||||||
currentView: '1',
|
currentView: '1',
|
||||||
timeRange: '7',
|
timeRange: '7',
|
||||||
charts: {}
|
charts: {},
|
||||||
|
// 添加一个标志,用于控制时间范围选择器的显示
|
||||||
|
showTimeRangeSelector: false
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
created() {
|
||||||
|
// 根据当前页面路径决定是否显示时间范围选择器
|
||||||
|
const path = window.location.pathname;
|
||||||
|
// 只在统计相关页面显示时间范围选择器
|
||||||
|
this.showTimeRangeSelector = ['/', '/plugins', '/users', '/groups','/robot_management','/errors'].includes(path);
|
||||||
|
},
|
||||||
methods: {
|
methods: {
|
||||||
handleSelect(key, keyPath) {
|
handleSelect(key, keyPath) {
|
||||||
this.currentView = key;
|
this.currentView = key;
|
||||||
|
|||||||
@@ -5,8 +5,6 @@
|
|||||||
{% block content %}
|
{% block content %}
|
||||||
<!-- 消息列表 -->
|
<!-- 消息列表 -->
|
||||||
<div>
|
<div>
|
||||||
<h1>消息列表</h1>
|
|
||||||
|
|
||||||
<!-- 筛选条件 -->
|
<!-- 筛选条件 -->
|
||||||
<el-card class="filter-card">
|
<el-card class="filter-card">
|
||||||
<el-form {% raw %}:inline="true"{% endraw %} size="small">
|
<el-form {% raw %}:inline="true"{% endraw %} size="small">
|
||||||
|
|||||||
@@ -4,8 +4,6 @@
|
|||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
<div>
|
<div>
|
||||||
<h1>微信日志查看</h1>
|
|
||||||
|
|
||||||
<el-card class="log-card">
|
<el-card class="log-card">
|
||||||
<div slot="header" class="clearfix">
|
<div slot="header" class="clearfix">
|
||||||
<span>日志查看</span>
|
<span>日志查看</span>
|
||||||
|
|||||||
Reference in New Issue
Block a user