提交 5b6ee299 编写于 作者: Mosher's avatar Mosher

update:调整获取模型方法

上级 6efb935a
import { IParam } from "@core";
export const AppCodeListConfig:IParam = {
{{#each app.getAllPSAppCodeLists as |appCodeList|}}
'{{appCodeList.getCodeListTag}}':{
'name': '{{appCodeList.getName}}',
'codeName': '{{appCodeList.getCodeName}}',
'codeListTag': '{{appCodeList.getCodeListTag}}',
'codeListType': '{{appCodeList.getCodeListType}}',
{{#each app.allPSAppCodeLists as |appCodeList|}}
'{{appCodeList.codeListTag}}':{
'name': '{{appCodeList.name}}',
'codeName': '{{appCodeList.codeName}}',
'codeListTag': '{{appCodeList.codeListTag}}',
'codeListType': '{{appCodeList.codeListType}}',
'isEnableCache': {{appCodeList.isEnableCache}},
'cacheTimeout': {{appCodeList.getCacheTimeout}},
{{~#if appCodeList.getMinorSortDir}}'minorSortDir': '{{appCodeList.getMinorSortDir}}',{{/if~}}
{{~#if appCodeList.getMinorSortPSAppDEField}}'minorSortPSAppDEField': '{{lowerCase appCodeList.getMinorSortPSAppDEField.codeName}}',{{/if~}}
{{~#if appCodeList.getPredefinedType}}'predefinedType': '{{appCodeList.getPredefinedType}}',{{/if~}}
{{~#if appCodeList.getPSAppDataEntity}}'appDataEntity': '{{appCodeList.getPSAppDataEntity.codeName}}',{{/if~}}
{{~#if appCodeList.getPSAppDEDataSet}}'appDEDataSet': '{{appCodeList.getPSAppDEDataSet.codeName}}',{{/if~}}
{{~#if appCodeList.getTextPSAppDEField}}'textPSAppDEField': '{{lowerCase appCodeList.getTextPSAppDEField.codeName}}',{{/if~}}
{{~#if appCodeList.getValuePSAppDEField}}'valuePSAppDEField': '{{lowerCase appCodeList.getValuePSAppDEField.codeName}}',{{/if~}}
{{~#if appCodeList.getPValuePSAppDEField}}'pValuePSAppDEField': '{{lowerCase appCodeList.getPValuePSAppDEField.codeName}}',{{/if~}}
{{~#if appCodeList.getDisablePSAppDEField}}'disablePSAppDEField': '{{lowerCase appCodeList.getDisablePSAppDEField.codeName}}',{{/if~}}
{{~#if appCodeList.getIconPathPSAppDEField}}'iconPathPSAppDEField': '{{lowerCase appCodeList.getIconPathPSAppDEField.codeName}}',{{/if~}}
{{~#if appCodeList.getIconClsPSAppDEField}}'iconClsPSAppDEField': '{{lowerCase appCodeList.getIconClsPSAppDEField.codeName}}',{{/if}}
'emptyText': '{{appCodeList.getEmptyText}}',
{{#if appCodeList.getPSCodeItems}}
'cacheTimeout': {{appCodeList.cacheTimeout}},
{{~#if appCodeList.minorSortDir}}'minorSortDir': '{{appCodeList.getMinorSortDir}}',{{/if~}}
{{~#if appCodeList.minorSortPSAppDEField}}'minorSortPSAppDEField': '{{lowerCase appCodeList.minorSortPSAppDEField.codeName}}',{{/if~}}
{{~#if appCodeList.predefinedType}}'predefinedType': '{{appCodeList.predefinedType}}',{{/if~}}
{{~#if appCodeList.psAppDataEntity}}'appDataEntity': '{{appCodeList.psAppDataEntity.codeName}}',{{/if~}}
{{~#if appCodeList.psAppDEDataSet}}'appDEDataSet': '{{appCodeList.psAppDEDataSet.codeName}}',{{/if~}}
{{~#if appCodeList.textPSAppDEField}}'textPSAppDEField': '{{lowerCase appCodeList.textPSAppDEField.codeName}}',{{/if~}}
{{~#if appCodeList.valuePSAppDEField}}'valuePSAppDEField': '{{lowerCase appCodeList.valuePSAppDEField.codeName}}',{{/if~}}
{{~#if appCodeList.pValuePSAppDEField}}'pValuePSAppDEField': '{{lowerCase appCodeList.pValuePSAppDEField.codeName}}',{{/if~}}
{{~#if appCodeList.disablePSAppDEField}}'disablePSAppDEField': '{{lowerCase appCodeList.disablePSAppDEField.codeName}}',{{/if~}}
{{~#if appCodeList.iconPathPSAppDEField}}'iconPathPSAppDEField': '{{lowerCase appCodeList.iconPathPSAppDEField.codeName}}',{{/if~}}
{{~#if appCodeList.iconClsPSAppDEField}}'iconClsPSAppDEField': '{{lowerCase appCodeList.iconClsPSAppDEField.codeName}}',{{/if}}
'emptyText': '{{appCodeList.emptyText}}',
{{#if appCodeList.psCodeItems}}
'items':[
{{#each appCodeList.getPSCodeItems as |codeItem|}}
{{#each appCodeList.psCodeItems as |codeItem|}}
{'value': {{#if appCodeList.isCodeItemValueNumber}}{{codeItem.getValue}}{{else}}'{{codeItem.getValue}}'{{/if}}, 'text': '{{codeItem.getText}}','codeName': '{{codeItem.codeName}}' }{{#unless @last}},{{/unless}}
{{/each}}
]
......
......@@ -39,7 +39,7 @@ const routes = [
{{/each}}
{{#each app.allPSAppViews as | appView |}}
{{!-- 临时只支持首页视图、应用看板视图 --}}
{{#if (or(eq appView.getViewType 'APPINDEXVIEW') (eq appView.viewType 'APPPORTALVIEW'))}}
{{#if (or (eq appView.getViewType 'APPINDEXVIEW') (eq appView.viewType 'APPPORTALVIEW'))}}
{{#unless (or appView.psAppDataEntity appView.defaultPage)}}
{
path: "views/{{lowerCase appView.codeName}}",
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册