diff --git a/src/components/form/area/index.vue b/src/components/form/area/index.vue index 3d91d97..6125a3c 100644 --- a/src/components/form/area/index.vue +++ b/src/components/form/area/index.vue @@ -19,7 +19,7 @@ const cascaderProps = { const cascader = ref() const dictData = useDictData() const options = dictData.state.area -const areaName = ref(dictData.state.area[0].name) +const areaName = ref(dictData.state.area[0]?.name || '') const change = (e: any) => { if (cascader.value.getCheckedNodes()[0].pathLabels.length == 1) { areaName.value = cascader.value.getCheckedNodes()[0].pathLabels[0] diff --git a/src/components/table/header/index.vue b/src/components/table/header/index.vue index 01baed8..35d480a 100644 --- a/src/components/table/header/index.vue +++ b/src/components/table/header/index.vue @@ -110,6 +110,7 @@ const handlerHeight = () => { } // 刷新页面handler高度出下拉 const computedSearchRow = () => { + if (!headerForm.value.$el) return diff --git a/src/views/govern/device/control/tabs/trend.vue b/src/views/govern/device/control/tabs/trend.vue index 0f96c93..a2da213 100644 --- a/src/views/govern/device/control/tabs/trend.vue +++ b/src/views/govern/device/control/tabs/trend.vue @@ -590,7 +590,7 @@ const formatCountOptions = (list: any) => { } setTimeout(() => { tableHeaderRef.value.computedSearchRow() - }, 100) + }, 500) } // 判断下拉框是否存在 const onCountChange = (val: any, index: any) => { diff --git a/src/views/govern/device/fileService/index.vue b/src/views/govern/device/fileService/index.vue index 9c27476..2b47bb7 100644 --- a/src/views/govern/device/fileService/index.vue +++ b/src/views/govern/device/fileService/index.vue @@ -8,12 +8,8 @@
- + 搜索 重置 - + "> 文件上传 @@ -60,29 +45,19 @@
- + - + {{ row && - row?.prjDataPath && - row?.prjDataPath.includes(activePath) && - row?.prjDataPath.length > activePath.length + row?.prjDataPath && + row?.prjDataPath.includes(activePath) && + row?.prjDataPath.length > activePath.length ? row?.prjDataPath.replace(activePath, ' ').replace('/', ' ') : row?.prjDataPath.replace('/', ' ') }} @@ -97,7 +72,7 @@ {{ row.type == 'dir' ? '文件夹' : row.type == 'file' ? '文件' : '/' }} - + {{ row.size && row.type == 'file' ? row.size + 'KB' : '/' }} @@ -108,13 +83,8 @@ @@ -125,13 +95,8 @@