Browse Source

feat: 增加空数据提示

main
betaqi 2 days ago
parent
commit
e0ba49090f
  1. 1
      global.types/components.d.ts
  2. 5
      src/views/stationData/components/PointGroupTree.vue

1
global.types/components.d.ts vendored

@ -26,6 +26,7 @@ declare module 'vue' { @@ -26,6 +26,7 @@ declare module 'vue' {
ElDialog: typeof import('element-plus/es')['ElDialog']
ElDivider: typeof import('element-plus/es')['ElDivider']
ElDrawer: typeof import('element-plus/es')['ElDrawer']
ElEmpty: typeof import('element-plus/es')['ElEmpty']
ElHeader: typeof import('element-plus/es')['ElHeader']
ElInput: typeof import('element-plus/es')['ElInput']
ElMenu: typeof import('element-plus/es')['ElMenu']

5
src/views/stationData/components/PointGroupTree.vue

@ -14,7 +14,10 @@ @@ -14,7 +14,10 @@
</div>
<el-divider direction="vertical" class="h-full" />
<div class="w-340" v-loading="loadingPoints" element-loading-text="数据加载中...">
<el-scrollbar class="scroll">
<template v-if="!devicePoints.length">
<el-empty></el-empty>
</template>
<el-scrollbar class="scroll" v-else>
<el-checkbox-group v-model="checkPointList" class="point-checks" @change="changePoints">
<template v-for="(item, index) in devicePoints" :key="index">
<el-checkbox :label="item.label" :value="item" />

Loading…
Cancel
Save