无设备处理
This commit is contained in:
@@ -31,7 +31,7 @@
|
||||
v-for="(item, index) in deviceData.dataSetList"
|
||||
:key="index"
|
||||
></el-tab-pane>
|
||||
<el-form :inline="true" style="white-space: nowrap;margin-top: 10px">
|
||||
<el-form :inline="true" style="white-space: nowrap; margin-top: 10px">
|
||||
<el-form-item label="指标">
|
||||
<el-input
|
||||
v-model="formInline.searchValue"
|
||||
@@ -130,6 +130,7 @@
|
||||
></el-pagination>
|
||||
</el-tabs>
|
||||
</div>
|
||||
<el-empty v-else description="请选择设备" class="device-control-right" />
|
||||
<Popup ref="popupRef" />
|
||||
</div>
|
||||
</template>
|
||||
@@ -173,11 +174,11 @@ const formInline = reactive({
|
||||
lineId: ''
|
||||
})
|
||||
const getDeviceDataTrend = (e: any) => {
|
||||
popupRef.value.open(e.name,{
|
||||
popupRef.value.open(e.name, {
|
||||
...e,
|
||||
lineId: formInline.lineId
|
||||
})
|
||||
}
|
||||
}
|
||||
const pageChange = (e: number) => {
|
||||
formInline.pageNum = e
|
||||
handleClick()
|
||||
@@ -188,6 +189,10 @@ const handleSizeChange = (val: number) => {
|
||||
handleClick()
|
||||
}
|
||||
const nodeClick = (e: anyObj) => {
|
||||
if (!e) {
|
||||
loading.value = false
|
||||
return
|
||||
}
|
||||
if (e.level == 3) {
|
||||
loading.value = true
|
||||
getDeviceData(e.pid, 'history', e.id).then((res: any) => {
|
||||
|
||||
Reference in New Issue
Block a user