Merge branch 'fly' into xy-ly

master
fanluyan 2 years ago
commit f738a968e3

@ -21,9 +21,19 @@
<el-option
v-for="item in accesslist"
:key="item.channelid"
:label="item.channelname"
:label="
item.alias !== null && item.alias !== ''
? item.alias
: item.channelname
"
:value="item.channelid"
></el-option>
>
{{
item.alias !== null && item.alias !== ""
? item.alias
: item.channelname
}}
</el-option>
</el-select>
<!-- <el-button type="primary" @click="inquireRealbtn()"

@ -16,15 +16,11 @@
<span class="custom-tree-node" slot-scope="{ node, data }">
<div v-if="node.level === 1">
<span class="iconfont icon-dianli"></span>
<span :class="data.onlinestatus == 0 ? 'disconnect' : ''"
>{{ node.label }}
</span>
<span>{{ node.label }} </span>
</div>
<div v-else-if="data.list && node.level !== 1">
<span class="iconfont icon-dianlihangye"> </span>
<span :class="data.onlinestatus == 0 ? 'disconnect' : ''"
>{{ node.label }}
</span>
<span>{{ node.label }} </span>
</div>
<div v-else>
<span
@ -204,9 +200,7 @@
<el-dropdown-item command="close">关闭</el-dropdown-item>
</el-dropdown-menu>
</el-dropdown>
<el-button type="primary" @click="taggleText">
{{ showLineFlag ? "显示线缆" : "隐藏线缆" }}
</el-button>
<!-- <el-button type="primary" @click="handlehistoryPic"
>历史图片</el-button
> -->
@ -305,10 +299,9 @@ export default {
this.getLineTreeList();
this.getDateTime();
console.log(this.dateValue);
// this.treetimer = window.setInterval(() => {
// setTimeout(this.getLineTreeStatus(), 0);
// }, 3000);
//this.getLineTreeStatus();
this.treetimer = window.setInterval(() => {
setTimeout(this.getLineTreeStatus(), 0);
}, 300000);
},
methods: {
//
@ -326,20 +319,19 @@ export default {
);
},
//
// getLineTreeStatus() {
// this.statusTimer = window.setInterval(() => {
// getdyTreeListJoggle()
// .then((res) => {
// console.log(res);
// this.treeStatus = res.data.list;
// this.lineTreeData = this.treeStatus;
// // console.log(this.treeStatus);
// })
// .catch((err) => {
// console.log(err); //
// });
// }, 10000);
// },
getLineTreeStatus() {
getdyTreeListJoggle()
.then((res) => {
console.log(res);
this.lineTreeData = res.data.list;
this.$nextTick(() => {
this.$refs.tree.setCurrentKey(this.newTermId); //
});
})
.catch((err) => {
console.log(err); //
});
},
//
getLineTreeList() {
this.loadingBg = true;

Loading…
Cancel
Save