Browse Source

优化

master
4670101279 2 years ago
parent
commit
7f2d6d13f3
  1. 5
      src/views/data/photo/index.vue
  2. 11
      src/views/web/camera/index.vue

5
src/views/data/photo/index.vue

@ -217,7 +217,7 @@ export default {
.card { .card {
margin-bottom: 20px; margin-bottom: 20px;
margin-right: 10px; margin-right: 6px;
box-shadow: 2px 2px 8px #ccc; box-shadow: 2px 2px 8px #ccc;
} }
@ -254,4 +254,7 @@ img {
line-height: 200px; line-height: 200px;
font-size: 25px; font-size: 25px;
} }
.pagination-container{
margin-right: 20px;
}
</style> </style>

11
src/views/web/camera/index.vue

@ -95,7 +95,7 @@
</el-dropdown-item> </el-dropdown-item>
<el-dropdown-item command="showLog" icon="el-icon-view" v-hasPermi="['web:camera:remove']">查看日志 <el-dropdown-item command="showLog" icon="el-icon-view" v-hasPermi="['web:camera:remove']">查看日志
</el-dropdown-item> </el-dropdown-item>
<el-dropdown-item command="showDate" icon="el-icon-view" v-hasPermi="['web:camera:remove']">查看时间 <el-dropdown-item command="showDate" icon="el-icon-view" v-hasPermi="['web:camera:remove']">补光时间
</el-dropdown-item> </el-dropdown-item>
<el-dropdown-item command="reboot" icon="el-icon-refresh" v-hasPermi="['web:camera:remove']">重启 <el-dropdown-item command="reboot" icon="el-icon-refresh" v-hasPermi="['web:camera:remove']">重启
</el-dropdown-item> </el-dropdown-item>
@ -276,7 +276,6 @@
size="small" size="small"
align="center" align="center"
style="width: 150px" style="width: 150px"
arrow-control
v-model="updateDate.queryForm.endTime1" v-model="updateDate.queryForm.endTime1"
:picker-options="{ :picker-options="{
selectableRange: '00:00:00 - 23:59:59' selectableRange: '00:00:00 - 23:59:59'
@ -299,7 +298,6 @@
size="small" size="small"
align="center" align="center"
style="width: 150px" style="width: 150px"
arrow-control
v-model="updateDate.queryForm.endTime2" v-model="updateDate.queryForm.endTime2"
:picker-options="{ :picker-options="{
selectableRange: '00:00:00 - 23:59:59' selectableRange: '00:00:00 - 23:59:59'
@ -667,7 +665,7 @@ export default {
// //
async restartcfgConfirm() { async restartcfgConfirm() {
this.restartcfg.form.bEnable = this.restartcfg.run ? 1 : 0; this.restartcfg.form.bEnable = this.restartcfg.run ? 1 : 0;
this.restartcfg.form.uHour = this.restartcfg.form.uHour.substring(0, 2) this.restartcfg.form.uHour = this.restartcfg.form.uHour.substring(0, 2)
let res = await this.$axiosPost('/web/camera/setautocfg', this.restartcfg.form); let res = await this.$axiosPost('/web/camera/setautocfg', this.restartcfg.form);
@ -678,6 +676,11 @@ export default {
}, },
// //
showDate(row){ showDate(row){
const status = row.status;
if (status != 1) {
this.$modal.msg("设备未在线");
return;
}
// //
this.updateDateReset() this.updateDateReset()
this.updateDate.queryForm.id = row.id; this.updateDate.queryForm.id = row.id;

Loading…
Cancel
Save