优化bug

master
fanluyan 2 years ago
parent 095a9ffb28
commit b92db2963c

@ -4,7 +4,6 @@
:default-active="activeIndex"
class="sidebar-el-menu"
mode="horizontal"
@select="handleSelect"
router
>
<template v-for="item in items">
@ -61,13 +60,13 @@ export default {
// },
{
icon: "el-icon-camera",
index: "realTimeMonitor",
index: "/realTimeMonitor",
title: "实时监控",
},
{
icon: "el-icon-film",
index: "pictureRotation",
index: "/pictureRotation",
title: "图片轮巡",
},
// {
@ -78,35 +77,34 @@ export default {
{
icon: "el-icon-search",
index: "realTimeSearch",
index: "/realTimeSearch",
title: "实时查询",
},
{
icon: "el-icon-files",
index: "property",
index: "/property",
title: "资产管理",
subs: [
{
index: "lineInformation",
index: "/lineInformation",
title: "线路信息管理",
},
{
index: "towerInformation",
index: "/towerInformation",
title: "杆塔信息管理",
},
{
index: "photographicDevice",
index: "/photographicDevice",
title: "拍照装置管理",
},
{
icon: "el-icon-coin",
index: "cameraChannel",
index: "/cameraChannel",
title: "通道管理",
},
{
icon: "el-icon-setting",
index: "devicePhotoSchedule",
index: "/devicePhotoSchedule",
title: "拍照时间表设置",
},
// {
@ -130,21 +128,19 @@ export default {
],
};
},
mounted() {
this.activeIndex = sessionStorage.getItem("keyPath") || "/realTimeMonitor";
},
watch: {
activeIndex(newValue) {
if (newValuer != this.$route.path) {
this.activeIndex = this.$route.path;
}
$route() {
this.setCurrentRoute();
},
},
methods: {
handleSelect(keyPath) {
sessionStorage.setItem("keyPath", keyPath);
setCurrentRoute() {
this.activeIndex = this.$route.path; //
},
},
created() {
this.setCurrentRoute();
},
};
</script>

@ -7,6 +7,9 @@
bigPicPath.indexOf('nopic') == -1 &&
bigPicPath.indexOf('videos') == -1
"
:style="
bigPicPath ? 'backgroundImage:url(' + bigPicPath + '!128x72)' : ''
"
>
<img class="animImg" :src="bigPicPath + '!1280x720'" />
<!-- <p class="mark">

@ -29,9 +29,18 @@
<el-table-column label="时间表类型" show-overflow-tooltip>
<template>时间表类型</template>
</el-table-column>
<el-table-column label="时间表规则" width="600">
<el-table-column label="时间表规则" width="300">
<template slot-scope="scope">
<ul
<p
class="timeGz"
v-for="(val, index) in scope.row.list"
:key="index"
>
<span>{{ val.startTime }}</span> ~
<span>{{ val.endTime }}</span>
间隔<el-tag>{{ val.span }}分钟</el-tag>
</p>
<!-- <ul
class="rulesBox"
v-for="(item, value) in scope.row.list"
:key="value"
@ -42,7 +51,7 @@
<span>时间间隔:</span>
<el-tag>{{ item.span }}</el-tag>
</li>
</ul>
</ul> -->
</template>
</el-table-column>
@ -228,6 +237,12 @@ export default {
}
}
}
.timeGz {
line-height: 32px;
span {
margin: 0px 8px;
}
}
}
}
</style>

@ -37,7 +37,9 @@
<viewer
class="bigpic"
v-if="!item.path.includes('mp4')"
:style="{ backgroundImage: 'url(' + item.path + '!180x160)' }"
:style="
item.path ? 'backgroundImage:url(' + item.path + '!128x72)' : ''
"
>
<img :src="item.path + '!1280x720'" />
<!-- <el-image :src="item.path + '!1280x720'" lazy></el-image> -->
@ -156,13 +158,13 @@ export default {
},
],
value: "选项1",
page: 0, //
page: 1, //
pageSize: 4, //
totalPage: 0, //
total: 0, //
picList: [], //
basUrl: "",
remainingTime: 0, //
remainingTime: 15, //
isRuning: false,
timer: null,
loading: false,

@ -50,9 +50,18 @@
<el-table-column label="时间表类型" show-overflow-tooltip>
<template>时间表类型</template>
</el-table-column>
<el-table-column label="时间表规则" width="600">
<el-table-column label="时间表规则" width="300">
<template slot-scope="scope">
<ul
<p
class="timeGz"
v-for="(val, index) in scope.row.list"
:key="index"
>
<span>{{ val.startTime }}</span> ~
<span>{{ val.endTime }}</span>
间隔<el-tag>{{ val.span }}分钟</el-tag>
</p>
<!-- <ul
class="rulesBox"
v-for="(item, value) in scope.row.list"
:key="value"
@ -63,7 +72,7 @@
<span>时间间隔:</span>
<el-tag>{{ item.span }}</el-tag>
</li>
</ul>
</ul> -->
</template>
</el-table-column>
@ -445,6 +454,12 @@ export default {
}
}
}
.timeGz {
line-height: 32px;
span {
margin: 0px 8px;
}
}
}
}
.setRoadDialog {

@ -77,7 +77,7 @@
<h3>操作项</h3>
<div class="buttonGroup">
<el-button type="primary" @click.native.stop="handleSetSchedule()"
>时间表设置</el-button
>拍照时间表设置</el-button
>
<!-- <el-button type="primary" v-debounce="handleShowPic"
>手动拍照</el-button
@ -90,6 +90,7 @@
<el-dropdown-item
:command="item.value"
v-for="(item, index) in channelOption"
:key="index"
>{{ item.label }}</el-dropdown-item
>
</el-dropdown-menu>
@ -102,6 +103,7 @@
<el-dropdown-item
:command="item.value"
v-for="(item, index) in channelOption"
:key="index"
>{{ item.label }}</el-dropdown-item
>
</el-dropdown-menu>
@ -445,7 +447,7 @@ export default {
})
.then((res) => {
this.$message({
message: "动拍照请求成功!",
message: "动拍照请求成功!",
type: "success",
});
console.log(res);
@ -473,7 +475,7 @@ export default {
})
.then((res) => {
this.$message({
message: "动拍视频请求成功!",
message: "动拍视频请求成功!",
type: "success",
});
console.log(res);

@ -283,10 +283,15 @@ export default {
.el-card__body {
padding: 0px;
}
.bigpic {
width: 100%;
height: 100%;
background-size: 100% 100%;
}
img {
cursor: pointer;
width: 100%;
//height: 100%;
height: 100%;
}
.caption {

Loading…
Cancel
Save