提交更改

This commit is contained in:
zhujiyan
2024-06-27 09:39:53 +08:00
parent bb4682a8ca
commit f91281049b
9 changed files with 974 additions and 308 deletions

View File

@@ -85,6 +85,7 @@ const devModelOptions = ref([])
const tableData = ref([])
const tableHeight = mainHeight(235).height
const mangePopup = ref()
const activeName = ref(0)
const nodeClick = (e: anyObj) => {
if (!e) {
loading.value = false
@@ -94,12 +95,18 @@ const nodeClick = (e: anyObj) => {
loading.value = true
getDeviceData(e.id, 'rt').then((res: any) => {
deviceData.value = res.data
console.log(deviceData.value)
loading.value = false
if (res.data.dataSetList.length === 0) {
if (res.data.dataSetList?.length === 0) {
dataSet.value = ''
tableData.value = []
} else {
dataSet.value = res.data.dataSetList[0].id
if (res.data.dataSetList&&res.data.dataSetList[0]?.id) {
dataSet.value = res.data.dataSetList[0]?.id
}
else {
tableData.value = []
}
handleClick()
}
})
@@ -168,7 +175,9 @@ const openGroup = () => {
<style lang="scss">
.device-manage {
display: flex;
&-left {
width: 280px;
}
&-right {
overflow: hidden;
flex: 1;