jc
fanluyan 1 year ago
parent c81d67a56f
commit b666acee9c

@ -20,8 +20,8 @@
<span v-if="rowData.protocol == '65286'"> </span> <span v-if="rowData.protocol == '65286'"> </span>
<span v-if="rowData.protocol == '65290'"> v2020 </span> <span v-if="rowData.protocol == '65290'"> v2020 </span>
<span v-if="rowData.protocol == '65298'"> </span> <span v-if="rowData.protocol == '65298'"> </span>
<span v-if="rowData.protocol == '2'"> </span> <span v-if="rowData.protocol == '2'"> </span>
<span>{{rowData.protocol}}</span> <span>{{ rowData.protocol }}</span>
</span> </span>
</div> </div>
<el-tabs v-model="activeName" type="border-card" @tab-click="handleClick"> <el-tabs v-model="activeName" type="border-card" @tab-click="handleClick">
@ -78,7 +78,7 @@
>设置</el-button >设置</el-button
> >
<p class="looktime" v-if="lookTime && showLookTime"> <p class="looktime" v-if="lookTime && showLookTime">
{{ $moment(lookTime*1000).format("YYYY-MM-DD HH:mm:ss") }} {{ $moment(lookTime * 1000).format("YYYY-MM-DD HH:mm:ss") }}
</p> </p>
</el-form-item> </el-form-item>
</el-form> </el-form>
@ -130,7 +130,9 @@
>查询</el-button >查询</el-button
> >
<p class="looktime" v-if="lookTime && showLookTime"> <p class="looktime" v-if="lookTime && showLookTime">
{{ $moment(lookTime*1000).format("YYYY-MM-DD HH:mm:ss") }} {{
$moment(lookTime * 1000).format("YYYY-MM-DD HH:mm:ss")
}}
</p> </p>
</el-form-item> </el-form-item>
</el-form> </el-form>
@ -211,7 +213,9 @@
>查询</el-button >查询</el-button
> >
<p class="looktime" v-if="lookTime && showLookTime"> <p class="looktime" v-if="lookTime && showLookTime">
{{ $moment(lookTime*1000).format("YYYY-MM-DD HH:mm:ss") }} {{
$moment(lookTime * 1000).format("YYYY-MM-DD HH:mm:ss")
}}
</p> </p>
</el-form-item> </el-form-item>
</el-form> </el-form>
@ -273,7 +277,9 @@
>查询</el-button >查询</el-button
> >
<p class="looktime" v-if="lookTime && showLookTime"> <p class="looktime" v-if="lookTime && showLookTime">
{{ $moment(lookTime*1000).format("YYYY-MM-DD HH:mm:ss") }} {{
$moment(lookTime * 1000).format("YYYY-MM-DD HH:mm:ss")
}}
</p> </p>
</el-form-item> </el-form-item>
</el-form> </el-form>
@ -310,7 +316,9 @@
>查询</el-button >查询</el-button
> >
<p class="looktime" v-if="lookTime && showLookTime"> <p class="looktime" v-if="lookTime && showLookTime">
{{ $moment(lookTime*1000).format("YYYY-MM-DD HH:mm:ss") }} {{
$moment(lookTime * 1000).format("YYYY-MM-DD HH:mm:ss")
}}
</p> </p>
</el-form-item> </el-form-item>
</el-form> </el-form>
@ -462,7 +470,9 @@
>查询</el-button >查询</el-button
> >
<p class="looktime" v-if="lookTime && showLookTime"> <p class="looktime" v-if="lookTime && showLookTime">
{{ $moment(lookTime*1000).format("YYYY-MM-DD HH:mm:ss") }} {{
$moment(lookTime * 1000).format("YYYY-MM-DD HH:mm:ss")
}}
</p> </p>
</el-form-item> </el-form-item>
</el-form> </el-form>
@ -597,7 +607,9 @@
>查询</el-button >查询</el-button
> >
<p class="looktime" v-if="lookTime && showLookTime"> <p class="looktime" v-if="lookTime && showLookTime">
{{ $moment(lookTime*1000).format("YYYY-MM-DD HH:mm:ss") }} {{
$moment(lookTime * 1000).format("YYYY-MM-DD HH:mm:ss")
}}
</p> </p>
</el-form-item> </el-form-item>
</el-form> </el-form>
@ -780,6 +792,7 @@
:model="upgradationform" :model="upgradationform"
:rules="upgradationRules" :rules="upgradationRules"
ref="upgradationRuleForm" ref="upgradationRuleForm"
label-width="80px"
> >
<el-form-item label="文件名称" prop="upVal"> <el-form-item label="文件名称" prop="upVal">
<el-select <el-select
@ -800,6 +813,14 @@
</el-option> </el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="数据包" prop="packetVal">
<el-input-number
:min="1"
:max="32"
v-model="upgradationform.packetVal"
></el-input-number>
<span class="info">数据包长度默认32K,[1,32768]</span>
</el-form-item>
</el-form> </el-form>
<el-button <el-button
type="primary" type="primary"
@ -856,7 +877,7 @@
>查询</el-button >查询</el-button
> >
<p class="looktime" v-if="lookTime && showLookTime"> <p class="looktime" v-if="lookTime && showLookTime">
{{ $moment(lookTime*1000).format("YYYY-MM-DD HH:mm:ss") }} {{ $moment(lookTime * 1000).format("YYYY-MM-DD HH:mm:ss") }}
</p> </p>
</el-form-item> </el-form-item>
</el-form> </el-form>
@ -1137,6 +1158,7 @@ export default {
ugradLoading: false, ugradLoading: false,
upgradationform: { upgradationform: {
upVal: "", upVal: "",
packetVal: 32,
}, },
selectUpObj: {}, selectUpObj: {},
upgradationRules: { upgradationRules: {
@ -2140,10 +2162,9 @@ export default {
message: "信息已更新", message: "信息已更新",
type: "success", type: "success",
}); });
this.lookTime =res.data.requestTime this.lookTime = res.data.requestTime;
this.showLookTime = true; this.showLookTime = true;
} else if (this.i > 9) { } else if (this.i > 9) {
window.clearInterval(this.timer); window.clearInterval(this.timer);
this.timer = null; this.timer = null;
@ -2272,6 +2293,14 @@ export default {
name: "name", name: "name",
value: this.selectUpObj.name, value: this.selectUpObj.name,
}, },
{
name: "packet",
value:
this.upgradationform.packetVal == "" ||
this.upgradationform.packetVal == 0
? 32 * 1024
: this.upgradationform.packetVal * 1024,
},
]; ];
this.setTermFn(params); this.setTermFn(params);
} }
@ -2394,13 +2423,26 @@ export default {
// display: flex; // display: flex;
// flex-direction: column; // flex-direction: column;
// align-items: center; // align-items: center;
.el-form {
.el-form-item__label {
text-align: right;
}
}
.el-select { .el-select {
.el-input { .el-input {
width: 316px; width: 316px;
} }
} }
.el-input {
width: 136px;
}
.info {
font-size: 12px;
}
.el-button--primary { .el-button--primary {
margin-left: 76px; margin: auto;
display: flex;
justify-content: center;
} }
} }
.el-input.is-disabled .el-input__inner { .el-input.is-disabled .el-input__inner {

@ -18,7 +18,7 @@
<span v-if="rowInfo.protocol == '65290'"> v2020 </span> <span v-if="rowInfo.protocol == '65290'"> v2020 </span>
<span v-if="rowInfo.protocol == '65298'"> </span> <span v-if="rowInfo.protocol == '65298'"> </span>
<span v-if="rowInfo.protocol == '2'"> </span> <span v-if="rowInfo.protocol == '2'"> </span>
<span>{{rowInfo.protocol}}</span> <span>{{ rowInfo.protocol }}</span>
</div> </div>
<el-form :inline="true" :model="formdata" class="demo-form-inline"> <el-form :inline="true" :model="formdata" class="demo-form-inline">
<el-form-item label="开始日期"> <el-form-item label="开始日期">
@ -111,7 +111,7 @@
show-overflow-tooltip show-overflow-tooltip
></el-table-column> ></el-table-column>
<el-table-column <el-table-column
prop="connectionStr" prop="gprsStr"
label="GPRS信号强度" label="GPRS信号强度"
show-overflow-tooltip show-overflow-tooltip
></el-table-column> ></el-table-column>
@ -131,11 +131,11 @@
label="通信协议版本" label="通信协议版本"
show-overflow-tooltip show-overflow-tooltip
></el-table-column> ></el-table-column>
<el-table-column <!-- <el-table-column
prop="protocolVersion" prop="protocolVersion"
label="GPRS信号强度" label="GPRS信号强度"
show-overflow-tooltip show-overflow-tooltip
></el-table-column> ></el-table-column> -->
</el-table> </el-table>
<div class="pageNation"> <div class="pageNation">
<el-pagination <el-pagination

@ -13,7 +13,7 @@
<span v-if="protocolInfo == '65290'"> v2020 </span> <span v-if="protocolInfo == '65290'"> v2020 </span>
<span v-if="protocolInfo == '65298'"> </span> <span v-if="protocolInfo == '65298'"> </span>
<span v-if="protocolInfo == '2'"> </span> <span v-if="protocolInfo == '2'"> </span>
<span>{{protocolInfo}}</span> <span>{{ protocolInfo }}</span>
<!-- <span>({{ terminalPhoto.length }})</span> --> <!-- <span>({{ terminalPhoto.length }})</span> -->
</div> </div>
<div class="topPic"> <div class="topPic">

@ -48,7 +48,14 @@
<el-input v-model="appForm.heartbeat"></el-input> <el-input v-model="appForm.heartbeat"></el-input>
<span class="infoSpan">()</span> <span class="infoSpan">()</span>
</el-form-item> </el-form-item>
<el-form-item label="工作状态报周期" class="workClass">
<el-input-number
:min="1"
:max="1024"
v-model="appForm.workStatusTimes"
></el-input-number>
<span class="infoSpan">()[1,1024]</span>
</el-form-item>
<!-- <el-form-item label="参数设置"> <!-- <el-form-item label="参数设置">
<el-checkbox <el-checkbox
label="报文子包起始号" label="报文子包起始号"
@ -171,6 +178,7 @@ export default {
equipName: "", // equipName: "", //
bsManufacturer: "", // bsManufacturer: "", //
productionDate: "", // productionDate: "", //
workStatusTimes: 3,
}, },
protocolOptions: [ protocolOptions: [
{ {
@ -213,6 +221,10 @@ export default {
id: 2, id: 2,
name: "南网", name: "南网",
}, },
{
id: 65290,
name: "河南统一视频v2020",
},
], ],
PacketBaseOptions: [ PacketBaseOptions: [
{ {
@ -289,7 +301,7 @@ export default {
}, },
{ {
name: "configs", name: "configs",
value: 16, value: 17,
}, },
// //
{ name: "name1", value: "channels" }, { name: "name1", value: "channels" },
@ -361,6 +373,10 @@ export default {
{ name: "name16", value: "upgradePacketBase" }, { name: "name16", value: "upgradePacketBase" },
{ name: "value16", value: this.appForm.upgradePacketBase }, { name: "value16", value: this.appForm.upgradePacketBase },
{ name: "type16", value: 0 }, { name: "type16", value: 0 },
//
{ name: "name1", value: "workStatusTimes" },
{ name: "value1", value: this.appForm.workStatusTimes },
{ name: "type1", value: 0 },
]; ];
this.setTermFn(params); this.setTermFn(params);
} else { } else {
@ -517,6 +533,8 @@ export default {
this.appForm.equipName = resultContent.equipName; // this.appForm.equipName = resultContent.equipName; //
this.appForm.bsManufacturer = resultContent.bsManufacturer; // this.appForm.bsManufacturer = resultContent.bsManufacturer; //
this.appForm.productionDate = resultContent.productionDate * 1000; // this.appForm.productionDate = resultContent.productionDate * 1000; //
this.appForm.workStatusTimes = resultContent.workStatusTimes; //
this.$message({ this.$message({
duration: 1500, duration: 1500,
showClose: true, showClose: true,
@ -567,6 +585,7 @@ export default {
this.appForm.equipName = ""; // this.appForm.equipName = ""; //
this.appForm.bsManufacturer = ""; // this.appForm.bsManufacturer = ""; //
this.appForm.productionDate = ""; // this.appForm.productionDate = ""; //
this.appForm.productionDate = 3; //
window.clearInterval(this.searchTimer); window.clearInterval(this.searchTimer);
this.searchTimer = null; this.searchTimer = null;
this.searchNum = 0; this.searchNum = 0;
@ -605,6 +624,13 @@ export default {
width: 190px; width: 190px;
} }
} }
.workClass {
.el-input {
width: 100%;
}
span {
}
}
.cmaClass { .cmaClass {
.el-input { .el-input {
width: 180px; width: 180px;

@ -152,6 +152,8 @@ export default {
this.getRadio(); //线线 this.getRadio(); //线线
this.getLineTreeList(); // this.getLineTreeList(); //
this.treeStatustimer = setInterval(this.getLineTreeStatus, 60000); // 60 this.treeStatustimer = setInterval(this.getLineTreeStatus, 60000); // 60
this.$route.meta.intervalId = this.treeStatustimer;
console.log(this.$route.meta.intervalId, "aaaaaaaaaaaaaaaaa");
EventBus.$on("treelist", this.getLineTreeStatus); EventBus.$on("treelist", this.getLineTreeStatus);
}, },
methods: { methods: {
@ -329,7 +331,7 @@ export default {
this.$store.commit("protocol", this.currentData.protocol); //currentDatavuex this.$store.commit("protocol", this.currentData.protocol); //currentDatavuex
this.$store.commit("cmdId", this.currentData.cmdid); //currentDatavuex this.$store.commit("cmdId", this.currentData.cmdid); //currentDatavuex
this.$parent.getCurrentData(); this.$parent.getCurrentData();
//this.$refs.tree.scrollTo(data); //this.$refs.tree.scrollTo(data);
// localStorage.setItem("currentData", JSON.stringify(this.currentData)); // localStorage.setItem("currentData", JSON.stringify(this.currentData));
}, },
@ -347,7 +349,25 @@ export default {
} }
}, },
}, },
beforeRouteLeave(to, from, next) {
if (to.name !== "realTimeMonitor") {
//
console.log("清除轮巡saaaaaaaaaaaaaaaaaaaaa");
clearInterval(this.treeStatustimer);
this.treeStatustimer = null;
}
next();
},
deactivated() {
console.log("清除轮巡");
console.log("deactivated", this.treeStatustimer);
//
clearInterval(this.treeStatustimer);
this.treeStatustimer = null;
},
beforeDestroy() { beforeDestroy() {
console.log("清除轮巡");
console.log(this.treeStatustimer);
// //
clearInterval(this.treeStatustimer); clearInterval(this.treeStatustimer);
this.treeStatustimer = null; this.treeStatustimer = null;

Loading…
Cancel
Save