diff --git a/src/utils/api/index.js b/src/utils/api/index.js
index ddd5f4d..fca0843 100644
--- a/src/utils/api/index.js
+++ b/src/utils/api/index.js
@@ -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",
+ },
});
}
//参数设置
diff --git a/src/views/management/monitoringEquipment/photographicDevice/components/videoCapture.vue b/src/views/management/monitoringEquipment/photographicDevice/components/videoCapture.vue
index 1a93d01..06b886e 100644
--- a/src/views/management/monitoringEquipment/photographicDevice/components/videoCapture.vue
+++ b/src/views/management/monitoringEquipment/photographicDevice/components/videoCapture.vue
@@ -29,7 +29,7 @@
视频分辨率:
@@ -44,7 +44,7 @@
预置位:
@@ -52,7 +52,7 @@
录制时长:
@@ -81,9 +81,9 @@
>
-
+
@@ -95,16 +95,16 @@
>
-
+
-
+
@@ -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)
diff --git a/src/views/realTimeSearch/index.vue b/src/views/realTimeSearch/index.vue
index 3a0d45b..ec3f1e0 100644
--- a/src/views/realTimeSearch/index.vue
+++ b/src/views/realTimeSearch/index.vue
@@ -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) => {});
},