diff --git a/src/views/web/camera/index.vue b/src/views/web/camera/index.vue index 20bf086..cee7638 100644 --- a/src/views/web/camera/index.vue +++ b/src/views/web/camera/index.vue @@ -101,6 +101,8 @@ 自动重启配置 + 时间校准 + @@ -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 { 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() {