优化通道

jc
fanluyan 1 year ago
parent b2c7099fae
commit 5702c09105

@ -42,3 +42,12 @@ export function gettermAllList(data) {
params: data, params: data,
}); });
} }
//规约版本
export function getProtocolList(data) {
return request({
url: "/xymanager/getProtocolList",
method: "get",
params: data,
});
}

@ -4,7 +4,7 @@
title="通道设置" title="通道设置"
:visible.sync="isShow" :visible.sync="isShow"
:close-on-click-modal="false" :close-on-click-modal="false"
width="640px" width="850px"
@close="handleclose" @close="handleclose"
> >
<div class="zzinfo"> <div class="zzinfo">
@ -88,7 +88,9 @@
</el-form-item> </el-form-item>
</div> </div>
<el-form-item label="参数设置">
<div class="isoDiv">
<el-form-item label="参数设置">
<el-checkbox <el-checkbox
label="USB接口" label="USB接口"
v-model="channelForm.usbchecked" v-model="channelForm.usbchecked"
@ -103,7 +105,6 @@
@change="bgchange" @change="bgchange"
></el-checkbox> ></el-checkbox>
</el-form-item> </el-form-item>
<div class="isoDiv">
<el-form-item label="曝光时间"> <el-form-item label="曝光时间">
<el-input v-model="channelForm.bgsj" :disabled="bgflag"></el-input> <el-input v-model="channelForm.bgsj" :disabled="bgflag"></el-input>
<span class="infoSpan">(毫秒)</span> <span class="infoSpan">(毫秒)</span>
@ -112,7 +113,9 @@
<el-input v-model="channelForm.iso" :disabled="bgflag"></el-input> <el-input v-model="channelForm.iso" :disabled="bgflag"></el-input>
</el-form-item> </el-form-item>
</div> </div>
<el-form-item label="模式选择">
<div class="roteAiBox">
<el-form-item label="模式选择">
<el-checkbox <el-checkbox
label="HDR模式" label="HDR模式"
v-model="channelForm.hdrchecked" v-model="channelForm.hdrchecked"
@ -122,7 +125,6 @@
v-model="channelForm.ywchecked" v-model="channelForm.ywchecked"
></el-checkbox> ></el-checkbox>
</el-form-item> </el-form-item>
<div class="roteAiBox">
<el-form-item label="旋转角度"> <el-form-item label="旋转角度">
<el-select v-model="channelForm.roteval" placeholder="请选择"> <el-select v-model="channelForm.roteval" placeholder="请选择">
<el-option <el-option
@ -146,33 +148,38 @@
</el-select> </el-select>
</el-form-item> </el-form-item>
</div> </div>
<div class="textAreabox">
<el-form-item label="左上OSD"> <el-form-item label="左上OSD">
<el-input v-model="channelForm.ltosd"></el-input> <el-input type="textarea" rows="4" v-model="channelForm.ltosd"></el-input>
<span class="infoSpan">(多行使用\n换行)</span> <span class="infoSpan">(多行使用\n换行)</span>
</el-form-item> </el-form-item>
<el-form-item label="右上OSD"> <el-form-item label="右上OSD">
<el-input v-model="channelForm.rtosd"></el-input> <el-input type="textarea" rows="4" v-model="channelForm.rtosd"></el-input>
<span class="infoSpan">(多行使用\n换行)</span> <span class="infoSpan">(多行使用\n换行)</span>
</el-form-item> </el-form-item>
<el-form-item label="左下OSD"> <el-form-item label="左下OSD">
<el-input v-model="channelForm.lbosd"></el-input> <el-input type="textarea" rows="4" v-model="channelForm.lbosd"></el-input>
<span class="infoSpan">(多行使用\n换行)</span> <span class="infoSpan">(多行使用\n换行)</span>
</el-form-item> </el-form-item>
<el-form-item label="右下OSD"> <el-form-item label="右下OSD">
<el-input v-model="channelForm.rbosd"></el-input> <el-input type="textarea" rows="4" v-model="channelForm.rbosd"></el-input>
<span class="infoSpan">(多行使用\n换行)</span> <span class="infoSpan">(多行使用\n换行)</span>
</el-form-item> </el-form-item>
</div>
</el-form> </el-form>
</div> </div>
<div slot="footer" class="dialog-footer"> <div slot="footer" class="dialog-footer">
<el-button @click="handleclose" :disabled="channelsetLoading" <el-button @click="handleclose" :disabled="channelsetLoading"
> </el-button > </el-button
> >
<el-button <el-button
type="primary" type="primary"
:disabled="channelsetLoading" :disabled="channelsetLoading"
@click="handleConfim" @click="handleConfim(true)"
:loading="channelLoading" :loading="channelLoading"
> </el-button > </el-button
> >
@ -383,6 +390,7 @@ export default {
this.searchBtn(); this.searchBtn();
}, },
handleConfim() { handleConfim() {
console.log("点击了确定"); console.log("点击了确定");
console.log(this.channelForm); console.log(this.channelForm);
this.channelLoading = true; this.channelLoading = true;
@ -609,7 +617,7 @@ export default {
window.clearInterval(this.setTimer); window.clearInterval(this.setTimer);
this.setTimer = null; this.setTimer = null;
this.setNum = 0; this.setNum = 0;
this.isShow = false; //this.isShow = false;
this.channelLoading = false; this.channelLoading = false;
this.$message({ this.$message({
duration: 1500, duration: 1500,
@ -710,7 +718,8 @@ export default {
decodeURIComponent(escape(window.atob(resultData.content))) decodeURIComponent(escape(window.atob(resultData.content)))
); );
console.log(resultContent); console.log(resultContent);
this.channelForm.resolutionCX = resultContent.resolutionCX;
this.channelForm.resolutionCY = resultContent.resolutionCY;
this.channelForm.ysl = resultContent.quality; this.channelForm.ysl = resultContent.quality;
this.channelForm.usbchecked = this.channelForm.usbchecked =
resultContent.usbCamera == 1 ? true : false; resultContent.usbCamera == 1 ? true : false;
@ -728,10 +737,10 @@ export default {
resultContent.nightMode == 1 ? true : false; resultContent.nightMode == 1 ? true : false;
this.channelForm.aival = resultContent.recognization; this.channelForm.aival = resultContent.recognization;
this.channelForm.roteval = resultContent.orientation; this.channelForm.roteval = resultContent.orientation;
this.channelForm.rtosd = resultContent.osd.rightTop; this.channelForm.rtosd = resultContent.osd.rightTop!="null"?resultContent.osd.rightTop:"";
this.channelForm.ltosd = resultContent.osd.leftTop; this.channelForm.ltosd = resultContent.osd.leftTop!="null"?resultContent.osd.leftTop:"";
this.channelForm.lbosd = resultContent.osd.leftBottom; this.channelForm.lbosd = resultContent.osd.leftBottom!="null"?resultContent.osd.leftBottom:"";
this.channelForm.rbosd = resultContent.osd.rightBottom; this.channelForm.rbosd = resultContent.osd.rightBottom!="null"?resultContent.osd.rightBottom:"";
// this.channelForm.videoSize = resultContent.; // this.channelForm.videoSize = resultContent.;
this.channelForm.videoCX = resultContent.videoCX; this.channelForm.videoCX = resultContent.videoCX;
this.channelForm.videoCY = resultContent.videoCY; this.channelForm.videoCY = resultContent.videoCY;
@ -921,8 +930,22 @@ export default {
display: flex; display: flex;
.el-input { .el-input {
width: 140px; width: 90px;
} }
.el-form-item{
&:last-child{
.el-form-item__label{
width: 60px!important;
}
.el-form-item__content{
margin-left: 60px!important;
}
}
}
}
.textAreabox{
display: flex;
flex-wrap: wrap;
} }
.videoclass { .videoclass {
// .el-form-item__content { // .el-form-item__content {

@ -34,7 +34,26 @@
></el-option> ></el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="是否在线" class="isonLineClass">
<el-select v-model="formdata.isonline" filterable>
<el-option
v-for="item in onlineOptions"
:key="item.id"
:label="item.name"
:value="item.id"
></el-option>
</el-select>
</el-form-item>
<el-form-item label="规约" class="isonLineClass">
<el-select v-model="formdata.protocol" filterable>
<el-option
v-for="item in protocolOptions"
:key="item.id"
:label="item.name"
:value="item.id"
></el-option>
</el-select>
</el-form-item>
<el-form-item label="开始日期" class="dateclass"> <el-form-item label="开始日期" class="dateclass">
<el-date-picker <el-date-picker
v-model="formdata.starttime" v-model="formdata.starttime"
@ -99,7 +118,13 @@
> >
</el-table-column> </el-table-column>
<el-table-column prop="sim" label="SIM卡号" min-width="180"> </el-table-column> <el-table-column prop="sim" label="SIM卡号" min-width="180"> </el-table-column>
<el-table-column prop="netType" label="网络类型"> </el-table-column> <el-table-column prop="netType" label="网络类型">
<template slot-scope="scope">
<span v-if="scope.row.netType == 1"></span>
<span v-else-if="scope.row.netType == 2">联通</span>
<span v-else-if="scope.row.netType == 3">电信</span>
</template>
</el-table-column>
<el-table-column prop="onlinestatus" label="状态"> <el-table-column prop="onlinestatus" label="状态">
<template slot-scope="scope"> <template slot-scope="scope">
@ -202,7 +227,7 @@
</div> </div>
</template> </template>
<script> <script>
import { gettermAllList, getSearchInfo } from "@/utils/api/reportApi"; import { gettermAllList, getSearchInfo , getProtocolList,} from "@/utils/api/reportApi";
// import ipDialog from "./components/ipDialog"; // import ipDialog from "./components/ipDialog";
// import photoDialog from "./components/termAllList"; // import photoDialog from "./components/termAllList";
export default { export default {
@ -222,11 +247,18 @@ export default {
dyOptions: [{ id: -1, name: "全部" }], // dyOptions: [{ id: -1, name: "全部" }], //
xlOptions: [{ id: -1, name: "全部" }], //线 xlOptions: [{ id: -1, name: "全部" }], //线
gtOptions: [{ id: -1, name: "全部" }], // gtOptions: [{ id: -1, name: "全部" }], //
onlineOptions: [
{ id: -1, name: "全部" },
{ id: 1, name: "在线" },
{ id: 0, name: "离线" },
],
protocolOptions: [{ id: -1, name: "全部" }], //
formdata: { formdata: {
dyid: -1, dyid: -1,
lineid: -1, lineid: -1,
towerid: -1, towerid: -1,
isonline:-1,
protocol:-1,
starttime: new Date(new Date().setHours(0, 0, 0, 0)).getTime(), // 00:00:00 starttime: new Date(new Date().setHours(0, 0, 0, 0)).getTime(), // 00:00:00
endtime: new Date(new Date().setHours(23, 59, 59, 0)).getTime(), // 23:59:59 endtime: new Date(new Date().setHours(23, 59, 59, 0)).getTime(), // 23:59:59
search: "", search: "",
@ -242,6 +274,7 @@ export default {
created() {}, created() {},
mounted() { mounted() {
this.getSearchdy(); this.getSearchdy();
this.getProtocol();
}, },
watch: {}, watch: {},
methods: { methods: {
@ -273,6 +306,16 @@ export default {
}) })
.catch((err) => {}); .catch((err) => {});
}, },
getProtocol() {
//
getProtocolList()
.then((res) => {
console.log(res);
this.protocolOptions = this.protocolOptions.concat(res.data.list);
this.formdata.protocol = this.protocolOptions[0].id;
})
.catch((err) => {});
},
onSubmit() { onSubmit() {
if (this.formdata.starttime > this.formdata.endtime) { if (this.formdata.starttime > this.formdata.endtime) {
return this.$message({ return this.$message({
@ -306,8 +349,11 @@ export default {
if (this.formdata.towerid !== -1) { if (this.formdata.towerid !== -1) {
params.towerId = this.formdata.towerid; params.towerId = this.formdata.towerid;
} }
if (this.formdata.channelid !== -1) { if (this.formdata.isonline !== -1) {
params.channelId = this.formdata.channelid; params.isonline = this.formdata.isonline;
}
if (this.formdata.protocol !== -1) {
params.protocol = this.formdata.protocol;
} }
if (this.formdata.search !== "") { if (this.formdata.search !== "") {
params.search = this.formdata.search; params.search = this.formdata.search;
@ -397,6 +443,11 @@ export default {
width: 190px; width: 190px;
} }
} }
.isonLineClass {
.el-form-item__content {
width: 120px;
}
}
} }
.deviceTable { .deviceTable {
height: calc(100% - 32px); height: calc(100% - 32px);

Loading…
Cancel
Save