优化bug

master
fanluyan 2 years ago
parent 095a9ffb28
commit b92db2963c

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

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

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

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

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

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

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

Loading…
Cancel
Save