Browse Source

优化

master
4670101279 2 years ago
parent
commit
afb20f0e24
  1. 16
      src/views/web/camera/index.vue

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

@ -101,6 +101,8 @@ @@ -101,6 +101,8 @@
</el-dropdown-item>
<el-dropdown-item command="autocfg" icon="el-icon-refresh" v-hasPermi="['web:camera:remove']">自动重启配置
</el-dropdown-item>
<el-dropdown-item command="setTime" icon="el-icon-refresh" v-hasPermi="['web:camera:remove']">时间校准
</el-dropdown-item>
</el-dropdown-menu>
</el-dropdown>
</template>
@ -584,6 +586,9 @@ export default { @@ -584,6 +586,9 @@ export default {
case "autocfg":
this.autocfg(row);
break;
case "setTime":
this.setTime(row);
break;
default:
break;
}
@ -661,6 +666,17 @@ export default { @@ -661,6 +666,17 @@ export default {
this.restartcfg.open = true;
}
},
async setTime(row) {
const status = row.status;
if (status != 1) {
this.$modal.msg("设备未在线");
return;
}
let res = await this.$axiosGet('/web/camera/setNowTime/' + row.id);
if (res.code === 0) {
this.$modal.msgSuccess("执行成功");
}
},
//
async restartcfgConfirm() {

Loading…
Cancel
Save