Compare commits

...

3 Commits

Author SHA1 Message Date
好青年_GEILIVABLE
0f368af049
Pre Merge pull request !38 from 好青年_GEILIVABLE/N/A 2025-03-25 08:44:45 +00:00
lin
8048693616 修复前端调用录像开始结束 2025-03-25 16:44:27 +08:00
好青年_GEILIVABLE
ed7ff6db55
update docker/docker-compose.yml.
Signed-off-by: 好青年_GEILIVABLE <420050757@qq.com>
2024-12-31 05:33:41 +00:00
2 changed files with 22 additions and 5 deletions

View File

@ -9,6 +9,16 @@ services:
environment: environment:
TZ: "Asia/Shanghai" TZ: "Asia/Shanghai"
command: redis-server /etc/redis/redis_default.conf --appendonly yes command: redis-server /etc/redis/redis_default.conf --appendonly yes
mysql:
image: mysql:5.7
volumes:
- ./mysql:/var/lib/mysql
environment:
MYSQL_ROOT_PASSWORD: mysql@tafei
MYSQL_DATABASE: wvp2
LANG: C.UTF-8
command: --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci
wvp: wvp:
build: build:
context: ./wvp context: ./wvp
@ -33,7 +43,7 @@ services:
environment: environment:
TZ: "Asia/Shanghai" TZ: "Asia/Shanghai"
# [必须修改] 本机的IP # [必须修改] 本机的IP
WVP_HOST: 172.18.0.61 WVP_HOST: 111.67.197.136
WVP_PWD: aseqw_+hiy123 WVP_PWD: aseqw_+hiy123
WVP_DOMAIN: 6101130049 WVP_DOMAIN: 6101130049
WVP_ID: 61011300490000000001 WVP_ID: 61011300490000000001
@ -45,5 +55,8 @@ services:
WVP_JVM_CONFIG: -Xms128m -Xmx256m WVP_JVM_CONFIG: -Xms128m -Xmx256m
ASSIST_CONFIG: ASSIST_CONFIG:
WVP_CONFIG: WVP_CONFIG:
DB_HOST: mysql
DB_PASSWORD: mysql@tafei
depends_on: depends_on:
- redis - redis
- mysql

View File

@ -355,9 +355,11 @@ export default {
startRecord: function (itemData) { startRecord: function (itemData) {
this.$axios({ this.$axios({
method: 'get', method: 'get',
url: `/api/device/control/record/${this.deviceId}/Record`, url: `/api/device/control/record`,
params: { params: {
channelId: itemData.deviceId deviceId: this.deviceId,
channelId: itemData.deviceId,
recordCmdStr: "Record"
} }
}).then( (res)=> { }).then( (res)=> {
if (res.data.code === 0) { if (res.data.code === 0) {
@ -381,9 +383,11 @@ export default {
stopRecord: function (itemData) { stopRecord: function (itemData) {
this.$axios({ this.$axios({
method: 'get', method: 'get',
url: `/api/device/control/record/${this.deviceId}/StopRecord`, url: `/api/device/control/record`,
params: { params: {
channelId: itemData.deviceId deviceId: this.deviceId,
channelId: itemData.deviceId,
recordCmdStr: "StopRecord"
} }
}).then( (res)=> { }).then( (res)=> {
if (res.data.code === 0) { if (res.data.code === 0) {