mirror of
https://gitee.com/pan648540858/wvp-GB28181-pro.git
synced 2026-05-24 05:57:49 +08:00
通用通道支持辅助开关、雨刷、自动扫描
This commit is contained in:
parent
8ec950d515
commit
3f6264cad9
@ -441,14 +441,14 @@ export function deletePreset({ channelId, presetId }) {
|
|||||||
/**
|
/**
|
||||||
* command: on 开启, off 关闭
|
* command: on 开启, off 关闭
|
||||||
*/
|
*/
|
||||||
export function auxiliary({ channelId, command, switchId }) {
|
export function auxiliary({ channelId, command, auxiliaryId }) {
|
||||||
return request({
|
return request({
|
||||||
method: 'get',
|
method: 'get',
|
||||||
url: '/api/common/channel/front-end/auxiliary',
|
url: '/api/common/channel/front-end/auxiliary',
|
||||||
params: {
|
params: {
|
||||||
channelId: channelId,
|
channelId: channelId,
|
||||||
command: command,
|
command: command,
|
||||||
switchId: switchId
|
auxiliaryId: auxiliaryId
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
@ -3,7 +3,7 @@
|
|||||||
<el-form size="mini" :inline="true">
|
<el-form size="mini" :inline="true">
|
||||||
<el-form-item>
|
<el-form-item>
|
||||||
<el-input
|
<el-input
|
||||||
v-model="switchId"
|
v-model="auxiliaryId"
|
||||||
min="1"
|
min="1"
|
||||||
max="4095"
|
max="4095"
|
||||||
placeholder="开关编号"
|
placeholder="开关编号"
|
||||||
@ -29,7 +29,7 @@ export default {
|
|||||||
props: ['channelId'],
|
props: ['channelId'],
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
switchId: 1
|
auxiliaryId: 1
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
@ -47,7 +47,7 @@ export default {
|
|||||||
{
|
{
|
||||||
channelId: this.channelId,
|
channelId: this.channelId,
|
||||||
command: command,
|
command: command,
|
||||||
switchId: this.switchId
|
auxiliaryId: this.auxiliaryId
|
||||||
})
|
})
|
||||||
.then(data => {
|
.then(data => {
|
||||||
this.$message({
|
this.$message({
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user