文件服务表格高度问题&初始化选中便携式设备问题修改
This commit is contained in:
@@ -229,7 +229,7 @@ defineOptions({
|
||||
name: 'govern/device/fileService'
|
||||
})
|
||||
const pageHeight = mainHeight(20)
|
||||
const tableHeight = mainHeight(100)
|
||||
const tableHeight = mainHeight(130)
|
||||
|
||||
const loading = ref(false)
|
||||
//nDid
|
||||
@@ -243,7 +243,8 @@ const isRoot = ref<boolean>(true)
|
||||
//储存所有点击过的目录
|
||||
const activePathList: any = ref([])
|
||||
const nodeClick = (e: any) => {
|
||||
if (e.level == 2) {
|
||||
console.log(e,"------");
|
||||
if (e && (e.level == 2 || e.type == 'device')) {
|
||||
loading.value = true
|
||||
nDid.value = e.ndid
|
||||
dirList.value = []
|
||||
|
||||
@@ -319,7 +319,6 @@ const nodeClick = async (e: anyObj) => {
|
||||
await getTestRecordInfo(id)
|
||||
.then(async res => {
|
||||
deviceData.value = res.data
|
||||
console.log(deviceData.value, '.......')
|
||||
if (res.data.records.length == 1) {
|
||||
activeName.value = res.data.records[0].id
|
||||
} else {
|
||||
@@ -334,7 +333,6 @@ const nodeClick = async (e: anyObj) => {
|
||||
}
|
||||
})
|
||||
}
|
||||
console.log(activeName.value, '7777777777777')
|
||||
searchForm.value.index = [indexOptions.value[0].id]
|
||||
|
||||
schemeTreeRef.value.getPlanData(deviceData.value)
|
||||
@@ -588,7 +586,6 @@ const init = (flag: boolean) => {
|
||||
echartsData.value.yAxis[index].max = max
|
||||
})
|
||||
}
|
||||
// console.log("🚀 ~ .1111 ~ echartsData.value :", echartsData.value)
|
||||
|
||||
loading.value = false
|
||||
}
|
||||
@@ -690,12 +687,10 @@ const handleExport = async () => {
|
||||
}
|
||||
let itemList: any = list[index].data[indexs]
|
||||
if (itemList && itemList.length != 0) {
|
||||
console.log(itemList, 'hhhhh')
|
||||
itemList[1] = itemList[1] ? itemList[1] : '/'
|
||||
index == list.length - 1 ? (strs += itemList[1]) : (strs += itemList[1] + ',')
|
||||
} else {
|
||||
index == list.length - 1 ? (strs += '/') : (strs += '/,')
|
||||
console.log(index, 'my')
|
||||
}
|
||||
})
|
||||
if (count == 0 && xAxis[indexs]) {
|
||||
|
||||
Reference in New Issue
Block a user