|
|
@ -1,5 +1,5 @@ |
|
|
|
<template> |
|
|
|
<div v-if="state.isReload && state.pageType === PageTemplateType.GRID" :class="props.configId ? 'pt-2.5' : ''" style="height: 100%"> |
|
|
|
<div v-if="state.isReload && state.pageType === PageTemplateType.GRID && Object.keys(state.pageConfig).length > 0" :class="props.configId ? 'pt-2.5' : ''" style="height: 100%"> |
|
|
|
<GridPage |
|
|
|
ref="gridPageRef" |
|
|
|
:platform-grid-config="state.pageConfig" |
|
|
@ -67,7 +67,7 @@ const getConfig = async () => { |
|
|
|
state.pageType = templateConfig.templateType; |
|
|
|
// 根据配置组装数据对象 |
|
|
|
const page = new Page(templateConfig, templateGrid, templateGridFields); |
|
|
|
state.pageConfig = page.buildGridConfig(); |
|
|
|
state.pageConfig = await page.buildGridConfig(); |
|
|
|
} |
|
|
|
}; |
|
|
|
|
|
|
|