|
|
|
@ -108,6 +108,10 @@
|
|
|
|
|
label="故障上报"
|
|
|
|
|
v-model="appForm.reportFault"
|
|
|
|
|
></el-checkbox>
|
|
|
|
|
<el-checkbox
|
|
|
|
|
label="输出调试信息"
|
|
|
|
|
v-model="appForm.outputDbgInfo"
|
|
|
|
|
></el-checkbox>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item label="CMA服务器端口" class="cmaClass">
|
|
|
|
|
<el-input v-model="appForm.port"></el-input>
|
|
|
|
@ -187,6 +191,7 @@ export default {
|
|
|
|
|
productionDate: "", // 生产日期
|
|
|
|
|
workStatusTimes: 3,
|
|
|
|
|
reportFault: "", //故障上报
|
|
|
|
|
outputDbgInfo: "", //输出调试信息
|
|
|
|
|
},
|
|
|
|
|
protocolOptions: [
|
|
|
|
|
{
|
|
|
|
@ -309,7 +314,7 @@ export default {
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
name: "configs",
|
|
|
|
|
value: 18,
|
|
|
|
|
value: 19,
|
|
|
|
|
},
|
|
|
|
|
//装置通道数
|
|
|
|
|
{ name: "name1", value: "channels" },
|
|
|
|
@ -389,6 +394,9 @@ export default {
|
|
|
|
|
{ name: "name18", value: "reportFault" },
|
|
|
|
|
{ name: "value18", value: this.appForm.reportFault ? 1 : 0 },
|
|
|
|
|
{ name: "type18", value: 0 },
|
|
|
|
|
{ name: "name19", value: "outputDbgInfo" },
|
|
|
|
|
{ name: "value19", value: this.appForm.outputDbgInfo ? 1 : 0 },
|
|
|
|
|
{ name: "type19", value: 0 },
|
|
|
|
|
];
|
|
|
|
|
this.setTermFn(params);
|
|
|
|
|
} else {
|
|
|
|
@ -530,9 +538,13 @@ export default {
|
|
|
|
|
this.appForm.channels = resultContent.channels; //装置通道数,程序默认值为4
|
|
|
|
|
this.appForm.packetSize = resultContent.packetSize; //图像数据分包大小
|
|
|
|
|
this.appForm.timeForKeepingLogs =
|
|
|
|
|
resultContent.timeForKeepingLogs / 86400; //效范围:1*86400(含)-45*86400(含) 不设置的默认值为 15*86400
|
|
|
|
|
resultContent.timeForKeepingLogs !== undefined
|
|
|
|
|
? resultContent.timeForKeepingLogs / 86400
|
|
|
|
|
: ""; //效范围:1*86400(含)-45*86400(含) 不设置的默认值为 15*86400
|
|
|
|
|
this.appForm.timeForKeepingPhotos =
|
|
|
|
|
resultContent.timeForKeepingPhotos / 86400; //有效范围:1*86400(含)-45*86400(含) 不设置的默认值为 15*86400
|
|
|
|
|
resultContent.timeForKeepingPhotos !== undefined
|
|
|
|
|
? resultContent.timeForKeepingPhotos / 86400
|
|
|
|
|
: ""; //有效范围:1*86400(含)-45*86400(含) 不设置的默认值为 15*86400
|
|
|
|
|
this.appForm.imgQuality = resultContent.imgQuality; //图像质量
|
|
|
|
|
this.appForm.heartbeat = resultContent.heartbeat; //心跳周期
|
|
|
|
|
this.appForm.upgradePacketBase = resultContent.upgradePacketBase; //升级报文中,子包起始号 一般可设置的值是 0或者1
|
|
|
|
@ -547,7 +559,12 @@ export default {
|
|
|
|
|
this.appForm.bsManufacturer = resultContent.bsManufacturer; // 生产厂家
|
|
|
|
|
this.appForm.productionDate = resultContent.productionDate * 1000; // 生产日期
|
|
|
|
|
this.appForm.workStatusTimes = resultContent.workStatusTimes; // 生产日期
|
|
|
|
|
this.appForm.reportFault = resultContent.reportFault; // 故障上报
|
|
|
|
|
this.appForm.reportFault =
|
|
|
|
|
resultContent.reportFault == 1 ? true : false; // 故障上报
|
|
|
|
|
this.appForm.outputDbgInfo =
|
|
|
|
|
resultContent.outputDbgInfo == 1 ? true : false; // 输出调试信息
|
|
|
|
|
console.log(this.appForm.outputDbgInfo);
|
|
|
|
|
console.log(resultContent.outputDbgInfo);
|
|
|
|
|
} else {
|
|
|
|
|
this.appForm.channels = 4; //装置通道数,程序默认值为4
|
|
|
|
|
this.appForm.packetSize = 2048; //图像数据分包大小
|
|
|
|
@ -568,6 +585,7 @@ export default {
|
|
|
|
|
this.appForm.productionDate = ""; // 生产日期
|
|
|
|
|
this.appForm.productionDate = 3; // 工作状态报周期
|
|
|
|
|
this.appForm.reportFault = ""; // 故障上报
|
|
|
|
|
this.appForm.outputDbgInfo = ""; //输出调试信息
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
this.$message({
|
|
|
|
@ -622,6 +640,7 @@ export default {
|
|
|
|
|
this.appForm.productionDate = ""; // 生产日期
|
|
|
|
|
this.appForm.productionDate = 3; // 工作状态报周期
|
|
|
|
|
this.appForm.reportFault = ""; // 故障上报
|
|
|
|
|
this.appForm.outputDbgInfo = ""; //输出调试信息
|
|
|
|
|
window.clearInterval(this.searchTimer);
|
|
|
|
|
this.searchTimer = null;
|
|
|
|
|
this.searchNum = 0;
|
|
|
|
|