通道设置添加

jc
fanluyan 11 months ago
parent 43ec621685
commit 0b8b69b16a

@ -70,6 +70,17 @@
<el-tag type="info">{{ channelForm.zoomVal }}</el-tag> <el-tag type="info">{{ channelForm.zoomVal }}</el-tag>
</el-form-item> </el-form-item>
<el-form-item label="模板" class="modelclass">
<el-select v-model="channelForm.templateVal" placeholder="请选择">
<el-option
v-for="item in templateOptions"
:key="item.value"
:label="item.name"
:value="item.value"
>
</el-option>
</el-select>
</el-form-item>
</div> </div>
<div class="videoDiv"> <div class="videoDiv">
<el-form-item label="视频分辨率" class="videoclass"> <el-form-item label="视频分辨率" class="videoclass">
@ -273,6 +284,7 @@ export default {
rtosd: "", rtosd: "",
lbosd: "", lbosd: "",
rbosd: "", rbosd: "",
templateVal: 2,
}, },
bgflag: false, bgflag: false,
modelOptions: [ modelOptions: [
@ -455,6 +467,12 @@ export default {
{ name: 3, value: 3 }, { name: 3, value: 3 },
{ name: 4, value: 4 }, { name: 4, value: 4 },
], ],
templateOptions: [
{ name: "预览", value: 1 },
{ name: "静态抓拍", value: 2 },
{ name: "录像", value: 3 },
{ name: "快照", value: 4 },
],
requestid: "", requestid: "",
searchNum: 0, searchNum: 0,
searchTimer: null, searchTimer: null,
@ -589,7 +607,7 @@ export default {
}, },
{ {
name: "configs", name: "configs",
value: 22, value: 23,
}, },
// { // {
// name: "resolutionCX", // name: "resolutionCX",
@ -748,6 +766,10 @@ export default {
{ name: "name22", value: "gmkz" }, { name: "name22", value: "gmkz" },
{ name: "value22", value: this.channelForm.gmkzchecked ? 1 : 0 }, { name: "value22", value: this.channelForm.gmkzchecked ? 1 : 0 },
{ name: "type22", value: 0 }, { name: "type22", value: 0 },
//template
{ name: "name23", value: "requestTemplate" },
{ name: "value23", value: this.channelForm.templateVal },
{ name: "type23", value: 0 },
]; ];
console.log(params); console.log(params);
this.setTermFn(params, flag); this.setTermFn(params, flag);
@ -981,6 +1003,7 @@ export default {
} }
this.channelForm.videoDuration = resultContent.videoDuration; this.channelForm.videoDuration = resultContent.videoDuration;
this.channelForm.templateVal = resultContent.requestTemplate;
} else { } else {
this.channelForm.zzbh = ""; this.channelForm.zzbh = "";
this.channelForm.ysl = 80; this.channelForm.ysl = 80;
@ -1002,6 +1025,7 @@ export default {
this.channelForm.videoCX = ""; this.channelForm.videoCX = "";
this.channelForm.videoCY = ""; this.channelForm.videoCY = "";
this.channelForm.videoDuration = 15; this.channelForm.videoDuration = 15;
this.channelForm.templateVal = 2;
} }
this.$message({ this.$message({
duration: 1500, duration: 1500,
@ -1057,6 +1081,7 @@ export default {
this.channelForm.videoCX = ""; this.channelForm.videoCX = "";
this.channelForm.videoCY = ""; this.channelForm.videoCY = "";
this.channelForm.videoDuration = 15; this.channelForm.videoDuration = 15;
this.channelForm.templateVal = 2;
window.clearInterval(this.searchTimer); window.clearInterval(this.searchTimer);
this.searchTimer = null; this.searchTimer = null;
this.searchNum = 0; this.searchNum = 0;
@ -1141,6 +1166,23 @@ export default {
width: 100px; width: 100px;
} }
} }
.modelclass {
.el-form-item__label {
width: 80px !important;
}
.el-form-item__content {
margin-left: 80px !important;
}
.el-select {
width: 144px;
margin-right: 12px;
.el-input {
width: 144px;
}
.el-input__inner {
}
}
}
} }
.videoDiv { .videoDiv {
display: flex; display: flex;
@ -1177,6 +1219,7 @@ export default {
width: 298px; width: 298px;
} }
} }
.videoclass { .videoclass {
// .el-form-item__content { // .el-form-item__content {
// display: flex; // display: flex;

Loading…
Cancel
Save