在线离线

ds1.0
fanluyan 2 years ago
parent 45b85b4700
commit 843e257a3d

@ -70,7 +70,9 @@
</div> </div>
<div class="rightTime" v-if="newshedulenr.length !== 0"> <div class="rightTime" v-if="newshedulenr.length !== 0">
<div class="w8">装置时间表:</div> <div class="w8">装置时间表:</div>
<span class="offtime" v-if="offsetnum !== ''" <span
class="offtime"
v-if="offsetnum !== '' || offsetnum !== null"
>(偏移时间{{ offsetnum }}分钟)</span >(偏移时间{{ offsetnum }}分钟)</span
> >
<div class="w80 flexonly" v-loading="timeloading"> <div class="w80 flexonly" v-loading="timeloading">

@ -20,6 +20,13 @@
</template> </template>
</el-statistic> </el-statistic>
</div> </div>
<div class="radioFilter">
<el-radio-group v-model="zzradio" @input="getRadio">
<el-radio label="-1">全部</el-radio>
<el-radio label="1">在线</el-radio>
<el-radio label="2">离线</el-radio>
</el-radio-group>
</div>
<el-tree <el-tree
ref="tree" ref="tree"
:data="lineTreeData" :data="lineTreeData"
@ -369,6 +376,7 @@ export default {
selectLineId: "", selectLineId: "",
selectTowerId: "", selectTowerId: "",
currentData: "", // currentData: "", //
zzradio: "-1",
}; };
}, },
watch: { watch: {
@ -391,6 +399,10 @@ export default {
}, 300000); }, 300000);
}, },
methods: { methods: {
//radio
getRadio() {
console.log();
},
// //
getDateTime() { getDateTime() {
console.log(new Date()); console.log(new Date());
@ -438,6 +450,11 @@ export default {
}, },
// //
getLineTreeStatus() { getLineTreeStatus() {
console.log("11111111");
console.log(this.filterText);
if (this.filterText !== "") {
this.$refs.tree.filter(this.filterText);
} else {
getdyTreeListJoggle() getdyTreeListJoggle()
.then((res) => { .then((res) => {
console.log(res); console.log(res);
@ -449,15 +466,17 @@ export default {
.catch((err) => { .catch((err) => {
console.log(err); // console.log(err); //
}); });
}
}, },
// //
filterNode(value, data, node) { filterNode(value, data, node) {
console.log(value, data, node); //console.log(value, data, node);
this.filterText = value;
console.log(this.filterText);
// //
if (!value) return true; if (!value) return true;
this.searchName = data.name + data.cmdid; this.searchName = data.name + data.cmdid;
console.log(this.searchName); //console.log(this.searchName);
// valuedatalabel // valuedatalabel
if (this.searchName.indexOf(value) !== -1) { if (this.searchName.indexOf(value) !== -1) {
return true; return true;
@ -1200,6 +1219,20 @@ export default {
} }
} }
} }
.radioFilter {
width: 94%;
margin: 0 auto;
margin-bottom: 8px;
font-size: 12px;
.el-radio-group {
display: flex;
align-items: center;
justify-content: center;
.el-radio {
margin-right: 16px;
}
}
}
.el-tree { .el-tree {
overflow-y: auto; overflow-y: auto;
overflow-x: hidden; overflow-x: hidden;

Loading…
Cancel
Save