添加下发水印

ds1.0
fanluyan 2 years ago
parent df6f2ceb3f
commit fa6d458b89

@ -284,10 +284,10 @@
> >
<el-tab-pane label="查询水印" name="first"> <el-tab-pane label="查询水印" name="first">
<div class="queryParam"> <div class="queryParam">
<el-form :model="waterForm" label-width="150px"> <div class="channelBox">
<el-form-item label="通道" prop="channelId"> <span class="title">通道</span>
<el-select <el-select
v-model="waterForm.channelId" v-model="channelId"
placeholder="请选择" placeholder="请选择"
class="mr20" class="mr20"
> >
@ -308,7 +308,8 @@
}} }}
</el-option> </el-option>
</el-select> </el-select>
</el-form-item> </div>
<el-form :model="waterForm" label-width="150px">
<el-form-item label="左下角水印"> <el-form-item label="左下角水印">
<el-input <el-input
v-model="waterForm.leftBottom" v-model="waterForm.leftBottom"
@ -335,10 +336,10 @@
</el-tab-pane> </el-tab-pane>
<el-tab-pane label="设置水印" name="second"> <el-tab-pane label="设置水印" name="second">
<div class="queryParam"> <div class="queryParam">
<el-form :model="waterForm" label-width="150px"> <div class="channelBox">
<el-form-item label="通道" prop="channelId"> <span class="title">通道</span>
<el-select <el-select
v-model="waterForm.channelId" v-model="channelId"
placeholder="请选择" placeholder="请选择"
class="mr20" class="mr20"
> >
@ -359,7 +360,8 @@
}} }}
</el-option> </el-option>
</el-select> </el-select>
</el-form-item> </div>
<el-form :model="waterForm" label-width="150px">
<el-form-item label="左下角水印"> <el-form-item label="左下角水印">
<el-input v-model="waterForm.leftBottom"></el-input> <el-input v-model="waterForm.leftBottom"></el-input>
</el-form-item> </el-form-item>
@ -565,6 +567,7 @@ export default {
// //
waterForm: {}, waterForm: {},
accesslist: [], // accesslist: [], //
channelId: 1,
waterLoading: false, waterLoading: false,
waterSetLoading: false, waterSetLoading: false,
runStatusForm: {}, runStatusForm: {},
@ -576,6 +579,7 @@ export default {
timer: null, timer: null,
i: 0, i: 0,
tabName: "",
}; };
}, },
mounted() {}, mounted() {},
@ -601,6 +605,7 @@ export default {
this.$refs.videoCaptureref.getSingleAccess(this.rowData); this.$refs.videoCaptureref.getSingleAccess(this.rowData);
this.$refs.videoCaptureref.getRatio(this.rowData); this.$refs.videoCaptureref.getRatio(this.rowData);
} }
this.tabName = tab.label;
}, },
// //
getSingleAccess() { getSingleAccess() {
@ -609,7 +614,6 @@ export default {
.then((res) => { .then((res) => {
this.accesslist = res.data.list; this.accesslist = res.data.list;
// this.waterForm.channelId = res.data.list[0].channelid; // this.waterForm.channelId = res.data.list[0].channelid;
this.$set(this.waterForm, "channelId", res.data.list[0].channelid);
}) })
.catch((err) => {}); .catch((err) => {});
}, },
@ -958,7 +962,7 @@ export default {
{ {
name: "channel", name: "channel",
value: this.waterForm.channelId, value: this.channelId,
}, },
{ {
name: "leftBottom", name: "leftBottom",
@ -981,7 +985,8 @@ export default {
}, },
waterhandleClick() { waterhandleClick() {
this.waterForm = {}; this.waterForm = {};
this.$set(this.waterForm, "channelId", this.accesslist[0].channelid); this.channelId = 1;
this.i = 0; this.i = 0;
this.timer = null; this.timer = null;
clearInterval(this.timer); clearInterval(this.timer);
@ -1052,6 +1057,9 @@ export default {
this.upperComputer = JSON.parse(res.data.data); this.upperComputer = JSON.parse(res.data.data);
//cmdid //cmdid
this.idParameter = JSON.parse(res.data.data); this.idParameter = JSON.parse(res.data.data);
this.waterForm = JSON.parse(res.data.data);
console.log(this.tabName);
if (this.tabName == "上位机信息") {
let hexArray = this.upperComputer.ip let hexArray = this.upperComputer.ip
.toString(16) .toString(16)
.match(/.{1,2}/g) .match(/.{1,2}/g)
@ -1067,6 +1075,8 @@ export default {
//ip //ip
console.log(this.idParameter); console.log(this.idParameter);
}
this.$message({ this.$message({
duration: 1500, duration: 1500,
showClose: true, showClose: true,
@ -1171,6 +1181,7 @@ export default {
this.idParameter = {}; this.idParameter = {};
this.gpsForm = {}; this.gpsForm = {};
this.waterForm = {}; this.waterForm = {};
this.channelId = 1;
this.i = 0; this.i = 0;
clearInterval(this.timer); clearInterval(this.timer);
this.timer = null; this.timer = null;
@ -1248,6 +1259,18 @@ export default {
.el-input.is-disabled .el-input__inner { .el-input.is-disabled .el-input__inner {
color: #666; color: #666;
} }
.channelBox {
margin: 0 auto;
margin-bottom: 18px;
text-align: center;
.title {
width: 86px;
display: inline-block;
padding: 0 12px 0 0;
text-align: right;
}
}
} }
} }
</style> </style>

Loading…
Cancel
Save