Commit 5a1b6f34 authored by 拾柒's avatar 拾柒

修改页面布局

parent e96a44f1
...@@ -135,7 +135,7 @@ ...@@ -135,7 +135,7 @@
.pagination-container .el-pagination { .pagination-container .el-pagination {
right: 0; right: 0;
position: absolute; //position: absolute;
} }
@media (max-width: 768px) { @media (max-width: 768px) {
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
@select="handleSelect" @select="handleSelect"
> >
<template v-for="(item, index) in newTopNev"> <template v-for="(item, index) in newTopNev">
<el-menu-item class="menuStyle" style="font-size: small;background-color: #F6F6FA;border-top-right-radius: 9%;border-top-left-radius: 9%;text-align: center;margin-left: 1px" :index="item.path" :key="index" <el-menu-item class="menuStyle" style="font-size: small;background-color: #F6F6FA;border-top-right-radius: 15px;border-top-left-radius: 15px;text-align: center;margin-left: 1px" :index="item.path" :key="index"
> >
<i :class="item.icon" style="width: 10px;height: 10px;margin-top: -12px"></i> <i :class="item.icon" style="width: 10px;height: 10px;margin-top: -12px"></i>
{{ item.name }}</el-menu-item {{ item.name }}</el-menu-item
...@@ -49,12 +49,12 @@ export default { ...@@ -49,12 +49,12 @@ export default {
name: '首页', name: '首页',
}, },
{ {
path: '/', path: '/employee/employee',
icon: 'el-icon-user', icon: 'el-icon-user',
name: '员工信息', name: '员工信息',
}, },
{ {
path: '/monitoringPlayback/video', path: '/monitoringhistory/history',
icon: 'el-icon-view', icon: 'el-icon-view',
name: '历史记录', name: '历史记录',
} }
...@@ -220,7 +220,7 @@ export default { ...@@ -220,7 +220,7 @@ export default {
//} //}
.menuStyle{ .menuStyle{
box-shadow: 0 0 8px #D4D9E5; box-shadow: 0 0 8px #D4D9E5;
height: 30px; height: 60px;
border-bottom: transparent; border-bottom: transparent;
} }
.menuStyle:hover{ .menuStyle:hover{
...@@ -231,15 +231,15 @@ export default { ...@@ -231,15 +231,15 @@ export default {
color: transparent; color: transparent;
} }
::v-deep .el-submenu{ ::v-deep .el-submenu{
height: 30px; height: 60px;
} }
.el-menu--horizontal > .el-menu-item{ .el-menu--horizontal > .el-menu-item{
margin-top: 30px; margin-top: 19px;
height: 40px; height: 60px;
line-height: 30px; line-height: 35px;
} }
.el-menu--horizontal > .el-menu-item.is-active{ .el-menu--horizontal > .el-menu-item.is-active{
margin-top: 23px; margin-top: 12px;
} }
//.el-menu--horizontal > .el-menu-item.is-active{ //.el-menu--horizontal > .el-menu-item.is-active{
// //margin-top: 30px; // //margin-top: 30px;
...@@ -247,6 +247,8 @@ export default { ...@@ -247,6 +247,8 @@ export default {
// line-height: 30px; // line-height: 30px;
//} //}
.el-menu-item.is-active{ .el-menu-item.is-active{
font-weight: bolder;
line-height: 45px;
color: white !important; color: white !important;
background-color: #0D8EEE !important; background-color: #0D8EEE !important;
} }
......
...@@ -68,7 +68,7 @@ export const constantRoutes = [ ...@@ -68,7 +68,7 @@ export const constantRoutes = [
children: [ children: [
{ {
path: 'index', path: 'index',
component: () => import('@/views/index'), component: () => import('@/views/video/index'),
name: 'Index', name: 'Index',
meta: { title: '首页', icon: 'dashboard', affix: true } meta: { title: '首页', icon: 'dashboard', affix: true }
} }
...@@ -129,6 +129,20 @@ export const constantRoutes = [ ...@@ -129,6 +129,20 @@ export const constantRoutes = [
meta: { title: '历史记录', icon: 'user' } meta: { title: '历史记录', icon: 'user' }
} }
] ]
},
{
path: '/employee',
component: Layout,
hidden: false,
redirect: 'employee',
children: [
{
path: 'employee',
component: () => import('@/views/employee/index'),
name: 'employee',
meta: { title: '历史记录', icon: 'user' }
}
]
} }
] ]
......
This diff is collapsed.
...@@ -18,13 +18,23 @@ ...@@ -18,13 +18,23 @@
placeholder="请选择监控时间"> placeholder="请选择监控时间">
</el-date-picker> </el-date-picker>
</el-form-item> </el-form-item>
<!-- <el-form-item label="监控状态" prop="monitorState">-->
<!-- <el-input-->
<!-- v-model="queryParams.monitorState"-->
<!-- placeholder="请输入监控状态"-->
<!-- clearable-->
<!-- @keyup.enter.native="handleQuery"-->
<!-- />-->
<!-- </el-form-item>-->
<el-form-item label="监控状态" prop="monitorState"> <el-form-item label="监控状态" prop="monitorState">
<el-input <el-select v-model="queryParams.monitorState" placeholder="请选择监控状态" clearable>
v-model="queryParams.monitorState" <el-option
placeholder="请输入监控状态" v-for="dict in dict.type.history_state"
clearable :key="dict.value"
@keyup.enter.native="handleQuery" :label="dict.label"
:value="dict.value"
/> />
</el-select>
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>
<el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button> <el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
...@@ -56,7 +66,11 @@ ...@@ -56,7 +66,11 @@
<span>{{ parseTime(scope.row.monitorTime, '{y}-{m}-{d}') }}</span> <span>{{ parseTime(scope.row.monitorTime, '{y}-{m}-{d}') }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="监控状态" align="center" prop="monitorState" /> <el-table-column label="监控状态" align="center" prop="monitorState">
<template slot-scope="scope">
<dict-tag :options="dict.type.history_state" :value="scope.row.monitorState"/>
</template>
</el-table-column>
<el-table-column label="操作" align="center" class-name="small-padding fixed-width"> <el-table-column label="操作" align="center" class-name="small-padding fixed-width">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button <el-button
...@@ -96,6 +110,7 @@ import {parseTime} from "../../utils/ruoyi"; ...@@ -96,6 +110,7 @@ import {parseTime} from "../../utils/ruoyi";
export default { export default {
name: "Histable", name: "Histable",
dicts: ['history_state'],
data() { data() {
return { return {
// 遮罩层 // 遮罩层
...@@ -144,6 +159,7 @@ export default { ...@@ -144,6 +159,7 @@ export default {
this.total = response.total; this.total = response.total;
this.loading = false; this.loading = false;
}); });
}, },
// 取消按钮 // 取消按钮
cancel() { cancel() {
......
<template> <template>
<div class="video-now"> <div class="video-now" style="margin-top: 20px">
<!-- <div @click="setLayout('1x1')">1x1</div> <!-- <div @click="setLayout('1x1')">1x1</div>
<div @click="setLayout('2x2')">2x2</div>--> <div @click="setLayout('2x2')">2x2</div>-->
<!-- 创建一个用于显示视频的容器 --> <!-- 创建一个用于显示视频的容器 -->
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
</div> </div>
</template> </template>
<script> <script >
import {getCameras} from "@/api/system/video"; import {getCameras} from "@/api/system/video";
import videoParams from './videoParams' import videoParams from './videoParams'
...@@ -208,16 +208,18 @@ export default { ...@@ -208,16 +208,18 @@ export default {
<style scoped> <style scoped>
.video-watch { .video-watch {
margin-top: 20px;
min-height: calc(80vh - 84px); min-height: calc(80vh - 84px);
width: 90%; width: 90%;
} }
.video-now { .video-now {
width: 95vw; width: 95vw;
height: 90vh; height: 87vh;
background: #fff; background: #fff;
margin: 0 auto; margin: 0 auto;
display: flex; display: flex;
justify-content: center; justify-content: center;
} }
</style> </style>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment