|
|
@ -101,6 +101,8 @@ |
|
|
|
</el-dropdown-item> |
|
|
|
</el-dropdown-item> |
|
|
|
<el-dropdown-item command="autocfg" icon="el-icon-refresh" v-hasPermi="['web:camera:remove']">自动重启配置 |
|
|
|
<el-dropdown-item command="autocfg" icon="el-icon-refresh" v-hasPermi="['web:camera:remove']">自动重启配置 |
|
|
|
</el-dropdown-item> |
|
|
|
</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-menu> |
|
|
|
</el-dropdown> |
|
|
|
</el-dropdown> |
|
|
|
</template> |
|
|
|
</template> |
|
|
@ -584,6 +586,9 @@ export default { |
|
|
|
case "autocfg": |
|
|
|
case "autocfg": |
|
|
|
this.autocfg(row); |
|
|
|
this.autocfg(row); |
|
|
|
break; |
|
|
|
break; |
|
|
|
|
|
|
|
case "setTime": |
|
|
|
|
|
|
|
this.setTime(row); |
|
|
|
|
|
|
|
break; |
|
|
|
default: |
|
|
|
default: |
|
|
|
break; |
|
|
|
break; |
|
|
|
} |
|
|
|
} |
|
|
@ -661,6 +666,17 @@ export default { |
|
|
|
this.restartcfg.open = true; |
|
|
|
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() { |
|
|
|
async restartcfgConfirm() { |
|
|
|