1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<#ibizinclude>
../@MACRO/CONTROL/LANGBASE.tsx.ftl
</#ibizinclude>
/**
* 绘制列
*
* @param {*} content
* @returns
* @memberof Main
*/
public render${item.getName()}(content: any) {
let column = this.allColumns.find((col: any) => Object.is('${item.getName()?lower_case}', col.name));
if(column.show) {
return (
<#if item.getColumnType() == 'GROUPGRIDCOLUMN' && item.getPSDEGridColumns()??>
<el-table-column show-overflow-tooltip align='${item.getAlign()?lower_case}' label={<#if langbase??>this.$t('${langbase}.columns.${item.getName()?lower_case}')<#else>'${item.getCaption()}'</#if>}>
<#list item.getPSDEGridColumns() as column>
{ this.render${column.getName()}(content) }
</#list>
</el-table-column>
<#elseif item.getColumnType() == 'UAGRIDCOLUMN'>
<el-table-column column-key='${item.getName()?lower_case}' label={<#if langbase??>this.$t('${langbase}.columns.${item.getName()?lower_case}')<#else>'${item.getCaption()}'</#if>}<#if item.getWidthUnit()!='STAR'> width="${item.width?c}"</#if> align='${item.getAlign()?lower_case}' {...content}>
</el-table-column>
<#elseif item.getColumnType() == 'DEFGRIDCOLUMN'>
<el-table-column show-overflow-tooltip prop='${item.getDataItemName()?lower_case}' label={<#if langbase??>this.$t('${langbase}.columns.${item.getName()?lower_case}')<#else>'${item.getCaption()}'</#if>}<#if item.getWidthUnit()!='STAR'> width="${item.width?c}"</#if> align='${item.getAlign()?lower_case}'<#if (!ctrl.isNoSort()) && item.isEnableSort()> sortable='custom'</#if> {...content}>
</el-table-column>
</#if>
);
}
}
<#if item.getColumnType() == 'GROUPGRIDCOLUMN' && item.getPSDEGridColumns()??>
<#list item.getPSDEGridColumns() as column>
${P.getPartCode(column,'COLUMN').code}
</#list>
</#if>