视频参数

master
13703816893 2 years ago
parent 1783b476c6
commit bba079f92d

@ -363,6 +363,9 @@ export function getResolutionRatio(data) {
url: "/api/getResolutionList",
method: "post",
data,
headers: {
"Content-Type": "application/x-www-form-urlencoded;charset=UTF-8",
},
});
}
@ -382,6 +385,9 @@ export function getVideoParamnrApi(data) {
url: "/api/selectVideoParam",
method: "post",
data,
headers: {
"Content-Type": "application/x-www-form-urlencoded;charset=UTF-8",
},
});
}
//参数设置

@ -29,7 +29,7 @@
<div class="flexno bt30">
<div class="wt80">视频分辨率:</div>
<el-select
v-model="capturenr.resolution"
v-model="capturenr.videoFormat"
class="wt280"
:disabled="true"
>
@ -44,7 +44,7 @@
<div class="flexno bt30">
<div class="wt80">预置位:</div>
<el-input
v-model="capturenr.luminance"
v-model="capturenr.preset"
:disabled="true"
class="wt280"
></el-input>
@ -52,7 +52,7 @@
<div class="flexno bt30">
<div class="wt80">录制时长:</div>
<el-input
v-model="capturenr.contrast"
v-model="capturenr.videoTime"
:disabled="true"
class="wt280"
>
@ -81,9 +81,9 @@
></el-option>
</el-select>
</el-form-item>
<el-form-item label="视频分辨率" prop="resolution">
<el-form-item label="视频分辨率" prop="videoFormat">
<el-select
v-model="setForm.resolution"
v-model="setForm.videoFormat"
placeholder="请选择"
class="mr20"
>
@ -95,16 +95,16 @@
></el-option>
</el-select>
</el-form-item>
<el-form-item label="预置位" prop="luminance">
<el-form-item label="预置位" prop="preset">
<el-input-number
v-model="setForm.luminance"
v-model="setForm.preset"
:min="1"
:max="255"
></el-input-number>
</el-form-item>
<el-form-item label="录制时长 s(秒)" prop="contrast">
<el-form-item label="录制时长 s(秒)" prop="videoTime">
<el-input-number
v-model="setForm.contrast"
v-model="setForm.videoTime"
:min="1"
:max="100"
></el-input-number>
@ -141,11 +141,11 @@ export default {
setForm: {}, //
rules: {
channelId: [{ required: true, message: "请选择通道", trigger: "blur" }],
contrast: [
videoTime: [
{ required: true, message: "请输入录制时长", trigger: "blur" },
],
luminance: [{ required: true, message: "请输入预置位", trigger: "blur" }],
resolution: [
preset: [{ required: true, message: "请输入预置位", trigger: "blur" }],
videoFormat: [
{ required: true, message: "请选择视频分辨率", trigger: "blur" },
]
},
@ -180,7 +180,7 @@ export default {
getResolutionRatio({ type: 1 })
.then((res) => {
this.ratiolist = res.data.list;
this.$set(this.setForm, "resolution", res.data.list[0].id);
this.$set(this.setForm, "videoFormat", res.data.list[0].id);
})
.catch((err) => {});
},
@ -209,9 +209,9 @@ export default {
//
inquirenr() {
getVideoParamnrApi({
channelId: this.selaccess,
termId: this.seltermid,
requestId: this.requestId,
// channelId: this.selaccess,
// termId: this.seltermid,
requestId: this.requestId
})
.then((res) => {
this.loading = false;
@ -240,7 +240,7 @@ export default {
//
submitbtn(setForm) {
this.$set(this.setForm, "cmdId", this.selcmdId);
this.$set(this.setForm, "termId", this.seltermid);
// this.$set(this.setForm, "termId", this.seltermid);
this.$refs[setForm].validate((valid) => {
if (valid) {
setVideoParamApi(this.setForm)

@ -197,6 +197,7 @@ export default {
// }
this.dyOptions = this.dyOptions.concat(res.data.list);
this.formdata.dyid = this.dyOptions[0].id;
// this.$set(this.formdata, 'dyid', this.dyOptions[0].id)
this.getSearchxl();
})
.catch((err) => {});
@ -223,7 +224,7 @@ export default {
},
//
getSearchzz() {
getSearchInfo({ type: 4, id: this.formdata.towerid })
getSearchInfo({ type: 5, id: this.formdata.towerid })
.then((res) => {
this.zzOptions = this.zzOptions.concat(res.data.list);
this.formdata.deviceid = this.zzOptions[0].id;
@ -233,14 +234,14 @@ export default {
},
//
getSearchtd() {
getSearchInfo({ type: 4, id: this.formdata.towerid })
getSearchInfo({ type: 4, id: this.formdata.deviceid })
.then((res) => {
this.tdOptions = this.tdOptions.concat(res.data.list);
this.formdata.channelid = this.tdOptions[0].id;
if (this.signtype == 0) {
this.getPicData();
}
this.signtype = 1;
// if (this.signtype == 0) {
// this.getPicData();
// }
// this.signtype = 1;
})
.catch((err) => {});
},

Loading…
Cancel
Save