osd河南处理

ds1.0
fanluyan 2 years ago
parent 82f60a0fa9
commit 3fe5f93838

@ -513,6 +513,8 @@
:model="osdParams" :model="osdParams"
label-position="right" label-position="right"
label-width="124px" label-width="124px"
:rules="osdRules"
ref="osdFormref"
> >
<el-form-item label="时间标识" prop="showTime"> <el-form-item label="时间标识" prop="showTime">
<el-select v-model="osdParams.showTime" class="mr20"> <el-select v-model="osdParams.showTime" class="mr20">
@ -785,6 +787,11 @@ export default {
], ],
osdLoading: false, osdLoading: false,
osdSetLoading: false, osdSetLoading: false,
osdRules: {
showText: [
{ required: true, message: "请选择文本标识", trigger: "change" },
],
},
accesslist: [], // accesslist: [], //
channelId: 1, channelId: 1,
waterLoading: false, waterLoading: false,
@ -865,8 +872,15 @@ export default {
this.timer = null; this.timer = null;
}, },
//osd //osd
osdhandleClick() { osdhandleClick(tab) {
console.log(tab);
if (tab.label == "设置参数") {
this.osdParams = {};
this.$set(this.osdParams, "showTime", this.timelist[0].id);
} else {
this.osdParams = {}; this.osdParams = {};
}
clearInterval(this.timer); clearInterval(this.timer);
this.i = 0; this.i = 0;
this.timer = null; this.timer = null;
@ -1268,6 +1282,8 @@ export default {
}, },
osdSet() { osdSet() {
if (this.rowData.isonline || this.rowData.onlinestatus === 1) { if (this.rowData.isonline || this.rowData.onlinestatus === 1) {
this.$refs.osdFormref.validate((valid) => {
if (valid) {
this.osdSetLoading = true; this.osdSetLoading = true;
let params = [ let params = [
{ {
@ -1297,6 +1313,11 @@ export default {
}, },
]; ];
this.setTermFn(params); this.setTermFn(params);
} else {
console.log("error submit!!");
return false;
}
});
} else { } else {
this.$message({ this.$message({
duration: 1500, duration: 1500,
@ -1379,6 +1400,10 @@ export default {
this.idParameter = JSON.parse(res.data.data); this.idParameter = JSON.parse(res.data.data);
this.waterForm = JSON.parse(res.data.data); this.waterForm = JSON.parse(res.data.data);
this.osdParams = JSON.parse(res.data.data); this.osdParams = JSON.parse(res.data.data);
if (this.osdParams.textContent == "null ") {
console.log("我是空");
this.osdParams.textContent = "";
}
console.log(this.tabName); console.log(this.tabName);
if (this.tabName == "上位机信息") { if (this.tabName == "上位机信息") {
let hexArray = this.upperComputer.ip let hexArray = this.upperComputer.ip
@ -1610,6 +1635,9 @@ export default {
.el-textarea .el-textarea__inner { .el-textarea .el-textarea__inner {
font-family: none; font-family: none;
} }
.el-textarea.is-disabled .el-textarea__inner {
color: #666;
}
} }
} }
} }

Loading…
Cancel
Save