File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed
continew-plugin/continew-plugin-generator/src/main/resources/templates/frontend Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change 22 <a-drawer v-model:visible =" visible" title =" ${businessName}详情" :width =" width >= 600 ? 600 : '100%'" :footer =" false" >
33 <a-descriptions :column =" 2" size =" large" class =" general-description" >
44 <#list fieldConfigs as fieldConfig >
5+ <#if fieldConfig.dictCode?? && fieldConfig.dictCode != "" >
6+ <a-descriptions-item label =" ${fieldConfig.comment}" >
7+ <GiCellTag :value =" dataDetail?.${fieldConfig.fieldName}" :dict =" ${fieldConfig.dictCode}" />
8+ </a-descriptions-item >
9+ <#else >
510 <a-descriptions-item label =" ${fieldConfig.comment}" >{{ dataDetail?.${fieldConfig.fieldName} }}</a-descriptions-item >
11+ </#if >
612 <#if fieldConfig.fieldName = 'createUser' >
713 <a-descriptions-item label =" 创建人" >{{ dataDetail?.createUserString }}</a-descriptions-item >
814 <#elseif fieldConfig.fieldName = 'updateUser' >
1622<script setup lang =" ts" >
1723import { useWindowSize } from ' @vueuse/core'
1824import { type ${classNamePrefix }DetailResp , get ${classNamePrefix } as getDetail } from ' @/apis/${apiModuleName}/${apiName}'
25+ import { useDict } from ' @/hooks/app'
26+
27+ < #if hasDictField>
28+ const { <#list dictCodes as dictCode >$ {dictCode }<#if dictCode_has_next >,</#if ></#list > } = useDict (< #list dictCodes as dictCode> ' ${dictCode}' < #if dictCode_has_next> ,< / #if >< / #list> )
29+ < / #if >
1930
2031const { width } = useWindowSize ()
2132
You can’t perform that action at this time.
0 commit comments