| | |
| | | <!-- 查询最新警告信息 --> |
| | | <template> |
| | | <div> |
| | | <!-- <span v-if="data?.title" class="text-base font-bold flex-center mb-5">{{ data?.title }}</span> --> |
| | | <div class="w-full flex-column"> |
| | | <div class="flex-0 flex-items-center mb-1 h-[38px] "> |
| | | <template v-if="visibleParams && visibleParams.length > 0"> |
| | |
| | | @change="(val) => handleQueryChange(val, item)" |
| | | :originData="originData" |
| | | ></component> |
| | | |
| | | </template> |
| | | |
| | | <ColFilter class="ml-auto" :columnList="colList" @change="colFilterChange" /> |
| | |
| | | </div> |
| | | |
| | | <el-pagination |
| | | class="flex-0" |
| | | style="margin-bottom: 0 !important; margin-left: auto !important; float: none !important" |
| | | small |
| | | hide-on-single-page |
| | |
| | | /> |
| | | |
| | | <InfoDetail class="text-base" v-model="infoDetailIsShow" :item="detailMapRow" :colList="colList" /> |
| | | </div> |
| | | </div> |
| | | </template> |
| | | |
| | |
| | | summaryIndex: { |
| | | type: Number, |
| | | }, |
| | | tableLimitHeight:{ |
| | | type:Number, |
| | | required:false |
| | | } |
| | | }); |
| | | |
| | | const [DefineColumns, ReuseColumns] = createReusableTemplate<{ |
| | |
| | | if (width === 0 || height === 0) { |
| | | return; |
| | | } |
| | | |
| | | if (props.data?.cols?.length > 0 ) { |
| | | cellRowSpanMap.clear(); |
| | | props.data.values = buildGroupData(props.data.values); |
| | |
| | | const headerHeight = tableRef.value.$el.querySelector('.el-table__header-wrapper').clientHeight; |
| | | |
| | | // 限制高度 |
| | | const limitHeight = document.body.clientHeight * 0.7; |
| | | const limitHeight =props.tableLimitHeight ??containerRef.value.clientHeight; |
| | | |
| | | // 求 size |
| | | // size*cellHeight + size*THICK_BORDER_WIDTH + headerHeight <= limitHeight; |
| | |
| | | }; |
| | | |
| | | const tableHeight = ref(0.7 * document.body.clientHeight); |
| | | |
| | | //#region ====================== ====================== |
| | | const infoDetailIsShow = ref(false); |
| | | const detailMapRow = ref(null); |