视频参数

master
13703816893 2 years ago
parent 1783b476c6
commit bba079f92d

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

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

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

Loading…
Cancel
Save