Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
iBiz-Vue-R7
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
22
议题
22
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
iBiz-R7前端标准模板
iBiz-Vue-R7
提交
a659d6bf
提交
a659d6bf
编写于
1月 14, 2021
作者:
tony001
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'dev'
上级
0c47f353
b03b5f8e
变更
17
展开全部
显示空白字符变更
内嵌
并排
正在显示
17 个修改的文件
包含
508 行增加
和
17 行删除
+508
-17
CONTROL-BASE.vue.ftl
@CONTROL/向导面板/CONTROL-BASE.vue.ftl
+9
-1
CONTROL-BASE.vue.ftl
@CONTROL/看板视图/CONTROL-BASE.vue.ftl
+7
-3
CONTROL-BASE.vue#DETAIL_DRUIPART.ftl
@CONTROL/表单/CONTROL-BASE.vue#DETAIL_DRUIPART.ftl
+1
-0
CONTROL-BASE.vue.ftl
@CONTROL/表单/CONTROL-BASE.vue.ftl
+11
-1
CONTROL-BASE.vue.ftl
@CONTROL/表格/CONTROL-BASE.vue.ftl
+13
-3
VIEW-BASE.vue.ftl
@VIEW/实体分页导航视图/VIEW-BASE.vue.ftl
+2
-2
VIEW-BASE.vue.ftl
@VIEW/实体数据看板视图/VIEW-BASE.vue.ftl
+2
-2
VIEW-BASE.vue.ftl
@VIEW/实体数据看板视图(部件视图卡片)/VIEW-BASE.vue.ftl
+2
-2
VIEW-BASE.vue.ftl
@VIEW/实体数据看板视图(部件视图)/VIEW-BASE.vue.ftl
+2
-2
index.ts.ftl
APP/src/locale/index.ts.ftl
+9
-1
BO-CN-base.ts.ftl
APP/src/locale/lang/BO-CN-base.ts.ftl
+254
-0
BO-CN.ts.ftl
APP/src/locale/lang/BO-CN.ts.ftl
+12
-0
codelist_BO_CN.ts.ftl
APP/src/locale/lanres/codelist/codelist_BO_CN.ts.ftl
+11
-0
codelist_BO_CN_base.ts.ftl
APP/src/locale/lanres/codelist/codelist_BO_CN_base.ts.ftl
+31
-0
%DE_PKGPATH%_BO_CN.ts.ftl
...le/lanres/entities/%DE_PKGPATH%/%DE_PKGPATH%_BO_CN.ts.ftl
+12
-0
%DE_PKGPATH%_BO_CN_base.ts.ftl
...nres/entities/%DE_PKGPATH%/%DE_PKGPATH%_BO_CN_base.ts.ftl
+124
-0
local-list.ts.ftl
APP/src/locale/local-list.ts.ftl
+6
-0
未找到文件。
@CONTROL/向导面板/CONTROL-BASE.vue.ftl
浏览文件 @
a659d6bf
...
@@ -4,7 +4,7 @@ ${ctrl.render.code}
...
@@ -4,7 +4,7 @@ ${ctrl.render.code}
<#else>
<#else>
<layout class="app-wizard<#if ctrl.getPSSysCss?? && ctrl.getPSSysCss()??> ${ctrl.getPSSysCss().getCssName()}</#if>">
<layout class="app-wizard<#if ctrl.getPSSysCss?? && ctrl.getPSSysCss()??> ${ctrl.getPSSysCss().getCssName()}</#if>">
<#if ctrl.getPSDEWizard?? && ctrl.getPSDEWizard()?? && ctrl.getPSDEWizard().getPSDEWizardSteps?? && ctrl.getPSDEWizard().getPSDEWizardSteps()??>
<#if ctrl.getPSDEWizard?? && ctrl.getPSDEWizard()?? && ctrl.getPSDEWizard().getPSDEWizardSteps?? && ctrl.getPSDEWizard().getPSDEWizardSteps()??>
<el-steps class="wizard-steps" :active="wizardForms.indexOf(activeForm)" finish-status="success" align-center>
<el-steps class="wizard-steps"
v-if="isShowStepBar"
:active="wizardForms.indexOf(activeForm)" finish-status="success" align-center>
<#list ctrl.getPSDEWizard().getPSDEWizardSteps() as step>
<#list ctrl.getPSDEWizard().getPSDEWizardSteps() as step>
<el-step title="${step.getTitle()}"></el-step>
<el-step title="${step.getTitle()}"></el-step>
</#list>
</#list>
...
@@ -86,6 +86,14 @@ ${ctrl.render.code}
...
@@ -86,6 +86,14 @@ ${ctrl.render.code}
*/
*/
public stepTags: any = {};
public stepTags: any = {};
/**
* 显示步骤栏
*
* @type {Boolean}
* @memberof ${srfclassname('${ctrl.codeName}')}Base
*/
public isShowStepBar: Boolean = ${ctrl.isShowStepBar()?c} ;
/**
/**
* 获取多项数据
* 获取多项数据
*
*
...
...
@CONTROL/看板视图/CONTROL-BASE.vue.ftl
浏览文件 @
a659d6bf
...
@@ -36,7 +36,7 @@ ${ctrl.render.code}
...
@@ -36,7 +36,7 @@ ${ctrl.render.code}
<#if ctrl.getGroupPSUIActionGroup().getPSUIActions()??>
<#if ctrl.getGroupPSUIActionGroup().getPSUIActions()??>
<#list ctrl.getGroupPSUIActionGroup().getPSUIActions() as action>
<#list ctrl.getGroupPSUIActionGroup().getPSUIActions() as action>
<div class="group-action-item">
<div class="group-action-item">
<i-button long @click="uiAction('${action.getCodeName()}', $event)">
<i-button long @click="uiAction('${action.getCodeName()}', $event
, group
)">
<#if action.getPSSysImage()??>
<#if action.getPSSysImage()??>
<#if action.getPSSysImage().getImagePath()?length gt 0>
<#if action.getPSSysImage().getImagePath()?length gt 0>
<img src="${action.getPSSysImage().getImagePath()}"/>
<img src="${action.getPSSysImage().getImagePath()}"/>
...
@@ -787,12 +787,16 @@ draggable,
...
@@ -787,12 +787,16 @@ draggable,
/**
/**
* 界面行为
* 界面行为
*
*
* @param {*} tag
* @param {*} tag
界面行为标识
* @param {*} $event
* @param {*} $event
* @param {*} group 看板分组
* @memberof ${srfclassname('${ctrl.codeName}')}Base
* @memberof ${srfclassname('${ctrl.codeName}')}Base
*/
*/
public uiAction(tag: any, $event: any) {
public uiAction(tag: any, $event: any
, group: any
) {
let row = this.selections.length > 0 ? this.selections[0] : {};
let row = this.selections.length > 0 ? this.selections[0] : {};
if(!row.hasOwnProperty('srfgroup')){
Object.assign(row,{srfgroup: group.value});
}
<#if ctrl.getPSAppViewLogics()??>
<#if ctrl.getPSAppViewLogics()??>
<#list ctrl.getPSAppViewLogics() as logic>
<#list ctrl.getPSAppViewLogics() as logic>
<#if logic.getPSAppViewUIAction().getPSUIAction()??>
<#if logic.getPSAppViewUIAction().getPSUIAction()??>
...
...
@CONTROL/表单/CONTROL-BASE.vue#DETAIL_DRUIPART.ftl
浏览文件 @
a659d6bf
...
@@ -32,6 +32,7 @@ ${item.render.code}
...
@@ -32,6 +32,7 @@ ${item.render.code}
tempMode='${refView.getTempMode()}'
tempMode='${refView.getTempMode()}'
:data="JSON.stringify(this.data)"
:data="JSON.stringify(this.data)"
@drdatasaved="drdatasaved($event)"
@drdatasaved="drdatasaved($event)"
@viewdataschange="formDataChange({name:'${item.name}',newVal:null,oldVal:null})"
style="<#if item.getPSLayoutPos()?? && item.getPSLayoutPos().getLayout() == "FLEX">height: 100%</#if><#if item.getContentHeight() == 0><#if refView.getHeight() gt 0>height:${refView.getHeight()?c}px</#if><#else>height:${item.getContentHeight()?c}px</#if>;overflow: auto;">
style="<#if item.getPSLayoutPos()?? && item.getPSLayoutPos().getLayout() == "FLEX">height: 100%</#if><#if item.getContentHeight() == 0><#if refView.getHeight() gt 0>height:${refView.getHeight()?c}px</#if><#else>height:${item.getContentHeight()?c}px</#if>;overflow: auto;">
</app-form-druipart>
</app-form-druipart>
</#if>
</#if>
@CONTROL/表单/CONTROL-BASE.vue.ftl
浏览文件 @
a659d6bf
...
@@ -621,7 +621,6 @@ import { Environment } from '@/environments/environment';
...
@@ -621,7 +621,6 @@ import { Environment } from '@/environments/environment';
<#list ctrl.getPSDEFormItems() as formitem>
<#list ctrl.getPSDEFormItems() as formitem>
<#if formitem.getPSDEFormItemUpdate()??>
<#if formitem.getPSDEFormItemUpdate()??>
<#assign itemUpdate=formitem.getPSDEFormItemUpdate()/>
<#assign itemUpdate=formitem.getPSDEFormItemUpdate()/>
if(Object.is(name, '${formitem.name}')){
if(Object.is(name, '${formitem.name}')){
const details: string[] = [<#list itemUpdate.getPSDEFIUpdateDetails() as detail><#if detail_index gt 0>, </#if>'${detail.getPSDEFormDetailName()?lower_case}'</#list>];
const details: string[] = [<#list itemUpdate.getPSDEFIUpdateDetails() as detail><#if detail_index gt 0>, </#if>'${detail.getPSDEFormDetailName()?lower_case}'</#list>];
if(await this.checkItem('${formitem.name}')){
if(await this.checkItem('${formitem.name}')){
...
@@ -631,6 +630,17 @@ import { Environment } from '@/environments/environment';
...
@@ -631,6 +630,17 @@ import { Environment } from '@/environments/environment';
</#if>
</#if>
</#list>
</#list>
</#if>
</#if>
<#if ctrl.getAllPSDEFormDetails()??>
<#list ctrl.getAllPSDEFormDetails() as formDetail>
<#if formDetail.getDetailType() == "DRUIPART" && formDetail.getPSDEFormItemUpdate()??>
<#assign formDetailUpdate = formDetail.getPSDEFormItemUpdate() />
if(Object.is(name, '${formDetail.name}')){
const details: string[] = [<#list formDetailUpdate.getPSDEFIUpdateDetails() as detail><#if detail_index gt 0>, </#if>'${detail.getPSDEFormDetailName()?lower_case}'</#list>];
this.updateFormItems('${formDetailUpdate.getPSAppDEMethod().getCodeName()}', this.data, details, ${formDetailUpdate.isShowBusyIndicator()?c});
}
</#if>
</#list>
</#if>
}
}
/**
/**
...
...
@CONTROL/表格/CONTROL-BASE.vue.ftl
浏览文件 @
a659d6bf
...
@@ -35,6 +35,7 @@ ${ctrl.render.code}
...
@@ -35,6 +35,7 @@ ${ctrl.render.code}
max-height="100%"
max-height="100%"
</#if>
</#if>
@row-click="rowClick($event)"
@row-click="rowClick($event)"
@cell-click="cellClick"
@select-all="selectAll($event)"
@select-all="selectAll($event)"
@select="select"
@select="select"
@row-class-name="onRowClassName($event)"
@row-class-name="onRowClassName($event)"
...
@@ -1807,6 +1808,17 @@ ${gridColumn.getName()}
...
@@ -1807,6 +1808,17 @@ ${gridColumn.getName()}
this.$emit('selectionchange', this.selections);
this.$emit('selectionchange', this.selections);
}
}
/**
* 单元格单击隐藏提示框
*
* @memberof MainBase
*/
public cellClick() {
let el: any = document.getElementsByClassName('el-tooltip__popper')[0];
if (el) {
el.style.display = 'none';
}
}
/**
/**
* 行单击选中
* 行单击选中
...
@@ -1816,9 +1828,6 @@ ${gridColumn.getName()}
...
@@ -1816,9 +1828,6 @@ ${gridColumn.getName()}
* @memberof ${srfclassname('${ctrl.codeName}')}Base
* @memberof ${srfclassname('${ctrl.codeName}')}Base
*/
*/
public rowClick($event: any, ifAlways: boolean = false): void {
public rowClick($event: any, ifAlways: boolean = false): void {
// 提示栏样式
let el: any = document.getElementsByClassName('el-tooltip__popper')[0];
el.style.display = 'none';
// 分组行跳过
// 分组行跳过
if($event && $event.children){
if($event && $event.children){
return;
return;
...
@@ -2102,6 +2111,7 @@ ${gridColumn.getName()}
...
@@ -2102,6 +2111,7 @@ ${gridColumn.getName()}
*/
*/
public uiAction(row: any, tag: any, $event: any) {
public uiAction(row: any, tag: any, $event: any) {
// this.rowClick(row, true);
// this.rowClick(row, true);
this.cellClick();
$event.stopPropagation();
$event.stopPropagation();
<#if ctrl.getPSAppViewLogics()??>
<#if ctrl.getPSAppViewLogics()??>
<#list ctrl.getPSAppViewLogics() as logic>
<#list ctrl.getPSAppViewLogics() as logic>
...
...
@VIEW/实体分页导航视图/VIEW-BASE.vue.ftl
浏览文件 @
a659d6bf
...
@@ -18,12 +18,12 @@
...
@@ -18,12 +18,12 @@
Object.assign(this.model, { dataInfo: _data.${appDataEntity.getMajorPSAppDEField().getCodeName()?lower_case} });
Object.assign(this.model, { dataInfo: _data.${appDataEntity.getMajorPSAppDEField().getCodeName()?lower_case} });
if(this.$tabPageExp){
if(this.$tabPageExp){
let _this:any = this;
let _this:any = this;
this.$tabPageExp.setCurPageCaption(_this.$t(this.model.srfCaption),
_this.$t(this.model.srfCaption)
, _this.model.dataInfo);
this.$tabPageExp.setCurPageCaption(_this.$t(this.model.srfCaption),
this.model.srfCaption
, _this.model.dataInfo);
}
}
if(this.$route){
if(this.$route){
this.$route.meta.info = this.model.dataInfo;
this.$route.meta.info = this.model.dataInfo;
}
}
<#noparse>Object.assign(this.model, { srfCaption: `${this.$t(this.model.srfCaption)} - ${this.
model.dataInfo
}` });</#noparse>
<#noparse>Object.assign(this.model, { srfCaption: `${this.$t(this.model.srfCaption)} - ${this.
$t(this.model.dataInfo)
}` });</#noparse>
}
}
})
})
}
}
...
...
@VIEW/实体数据看板视图/VIEW-BASE.vue.ftl
浏览文件 @
a659d6bf
...
@@ -21,12 +21,12 @@ this.$forceUpdate();
...
@@ -21,12 +21,12 @@ this.$forceUpdate();
Object.assign(this.model, { dataInfo: _data.${appDataEntity.getMajorPSAppDEField().getCodeName()?lower_case} });
Object.assign(this.model, { dataInfo: _data.${appDataEntity.getMajorPSAppDEField().getCodeName()?lower_case} });
if(this.$tabPageExp){
if(this.$tabPageExp){
let _this:any = this;
let _this:any = this;
this.$tabPageExp.setCurPageCaption(_this.$t(this.model.srfCaption),
_this.$t(this.model.srfCaption)
, _this.model.dataInfo);
this.$tabPageExp.setCurPageCaption(_this.$t(this.model.srfCaption),
this.model.srfCaption
, _this.model.dataInfo);
}
}
if(this.$route){
if(this.$route){
this.$route.meta.info = this.model.dataInfo;
this.$route.meta.info = this.model.dataInfo;
}
}
<#noparse>Object.assign(this.model, { srfCaption: `${this.$t(this.model.srfCaption)} - ${this.
model.dataInfo
}` });</#noparse>
<#noparse>Object.assign(this.model, { srfCaption: `${this.$t(this.model.srfCaption)} - ${this.
$t(this.model.dataInfo)
}` });</#noparse>
}
}
})
})
}
}
...
...
@VIEW/实体数据看板视图(部件视图卡片)/VIEW-BASE.vue.ftl
浏览文件 @
a659d6bf
...
@@ -31,12 +31,12 @@ this.$forceUpdate();
...
@@ -31,12 +31,12 @@ this.$forceUpdate();
Object.assign(this.model, { dataInfo: _data.${appDataEntity.getMajorPSAppDEField().getCodeName()?lower_case} });
Object.assign(this.model, { dataInfo: _data.${appDataEntity.getMajorPSAppDEField().getCodeName()?lower_case} });
if(this.$tabPageExp){
if(this.$tabPageExp){
let _this:any = this;
let _this:any = this;
this.$tabPageExp.setCurPageCaption(_this.$t(this.model.srfCaption),
_this.$t(this.model.srfCaption)
, _this.model.dataInfo);
this.$tabPageExp.setCurPageCaption(_this.$t(this.model.srfCaption),
this.model.srfCaption
, _this.model.dataInfo);
}
}
if(this.$route){
if(this.$route){
this.$route.meta.info = this.model.dataInfo;
this.$route.meta.info = this.model.dataInfo;
}
}
<#noparse>Object.assign(this.model, { srfCaption: `${this.$t(this.model.srfCaption)} - ${this.
model.dataInfo
}` });</#noparse>
<#noparse>Object.assign(this.model, { srfCaption: `${this.$t(this.model.srfCaption)} - ${this.
$t(this.model.dataInfo)
}` });</#noparse>
}
}
})
})
}
}
...
...
@VIEW/实体数据看板视图(部件视图)/VIEW-BASE.vue.ftl
浏览文件 @
a659d6bf
...
@@ -31,12 +31,12 @@ this.$forceUpdate();
...
@@ -31,12 +31,12 @@ this.$forceUpdate();
Object.assign(this.model, { dataInfo: _data.${appDataEntity.getMajorPSAppDEField().getCodeName()?lower_case} });
Object.assign(this.model, { dataInfo: _data.${appDataEntity.getMajorPSAppDEField().getCodeName()?lower_case} });
if(this.$tabPageExp){
if(this.$tabPageExp){
let _this:any = this;
let _this:any = this;
this.$tabPageExp.setCurPageCaption(_this.$t(this.model.srfCaption),
_this.$t(this.model.srfCaption)
, _this.model.dataInfo);
this.$tabPageExp.setCurPageCaption(_this.$t(this.model.srfCaption),
this.model.srfCaption
, _this.model.dataInfo);
}
}
if(this.$route){
if(this.$route){
this.$route.meta.info = this.model.dataInfo;
this.$route.meta.info = this.model.dataInfo;
}
}
<#noparse>Object.assign(this.model, { srfCaption: `${this.$t(this.model.srfCaption)} - ${this.
model.dataInfo
}` });</#noparse>
<#noparse>Object.assign(this.model, { srfCaption: `${this.$t(this.model.srfCaption)} - ${this.
$t(this.model.dataInfo)
}` });</#noparse>
}
}
})
})
}
}
...
...
APP/src/locale/index.ts.ftl
浏览文件 @
a659d6bf
...
@@ -27,12 +27,20 @@ Object.assign(messages, {
...
@@ -27,12 +27,20 @@ Object.assign(messages, {
'en-US': Object.assign(iviewEnUsLocale, elementEnLocale, enUs()),
'en-US': Object.assign(iviewEnUsLocale, elementEnLocale, enUs()),
});
});
</#if>
</#if>
<#if lans.getLanguage() == 'BO_CN'>
import BOCn from './lang/BO-CN';
import iviewBOCnLocale from './other/iview/BO-CN'
import elementBOLocale from './other/element/BO-CN'
Object.assign(messages, {
'BO-CN': Object.assign(iviewBOCnLocale,elementBOLocale,BOCn()),
});
</#if>
</#list>
</#list>
</#if>
</#if>
// 自动根据浏览器系统语言设置语言
// 自动根据浏览器系统语言设置语言
const navLang = localStorage.getItem('local') || navigator.language;
const navLang = localStorage.getItem('local') || navigator.language;
const localLang = (navLang === 'zh-CN' || (navLang === 'en-US' && messages.hasOwnProperty('en-US'))) ? navLang : false;
const localLang = (navLang === 'zh-CN' || (navLang === 'en-US' && messages.hasOwnProperty('en-US'))
|| (navLang === 'ti-US' && messages.hasOwnProperty('ti-US'))
) ? navLang : false;
let lang: string = localLang || 'zh-CN';
let lang: string = localLang || 'zh-CN';
vueApp.config.lang = lang
vueApp.config.lang = lang
...
...
APP/src/locale/lang/BO-CN-base.ts.ftl
0 → 100644
浏览文件 @
a659d6bf
此差异已折叠。
点击以展开。
APP/src/locale/lang/BO-CN.ts.ftl
0 → 100644
浏览文件 @
a659d6bf
<#ibiztemplate>
TARGET=PSSYSAPP
</#ibiztemplate>
import app_BO_CN_Base from './BO-CN-base';
function getLocaleResource(){
const app_BO_CN_OwnData = {};
const targetData = Object.assign(app_BO_CN_Base(), app_BO_CN_OwnData);
return targetData;
}
export default getLocaleResource;
\ No newline at end of file
APP/src/locale/lanres/codelist/codelist_BO_CN.ts.ftl
0 → 100644
浏览文件 @
a659d6bf
<#ibiztemplate>
TARGET=PSSYSAPP
</#ibiztemplate>
import codelist_BO_CN_Base from './codelist_BO_CN_base';
function getLocaleResource(){
const codelist_BO_CN_OwnData = {};
const targetData = Object.assign(codelist_BO_CN_Base(), codelist_BO_CN_OwnData);
return targetData;
}
export default getLocaleResource;
\ No newline at end of file
APP/src/locale/lanres/codelist/codelist_BO_CN_base.ts.ftl
0 → 100644
浏览文件 @
a659d6bf
<#ibiztemplate>
TARGET=PSSYSAPP
</#ibiztemplate>
import commonLogic from '@/locale/logic/common/common-logic';
<#ibizinclude>../../@MACRO/FUNC.ts</#ibizinclude>
<#assign langrestype = 'BO_CN'/>
function getLocaleResourceBase(){
const data:any = {
<#if app.getAllPSAppCodeLists()??>
<#list app.getAllPSAppCodeLists() as codelist>
<#if codelist.getCodeListType() == "STATIC">
${codelist.codeName}: {
<#if codelist.getAllPSCodeItems?? && codelist.getAllPSCodeItems()??>
<#list codelist.getAllPSCodeItems() as codeitem>
"${codeitem.getValue()?j_string}": commonLogic.appcommonhandle("<@getTextLanguage codeitem langrestype />",null),
</#list>
</#if>
"empty": commonLogic.appcommonhandle("<@getEmptyTextLanguage codelist langrestype '' />",null)
},
<#elseif codelist.getCodeListType() == "DYNAMIC">
${codelist.codeName}: {
"empty": commonLogic.appcommonhandle("<@getEmptyTextLanguage codelist langrestype '' />",null),
},
</#if>
</#list>
</#if>
};
return data;
}
export default getLocaleResourceBase;
\ No newline at end of file
APP/src/locale/lanres/entities/%DE_PKGPATH%/%DE_PKGPATH%_BO_CN.ts.ftl
0 → 100644
浏览文件 @
a659d6bf
<#ibiztemplate>
TARGET=PSAPPDATAENTITY
</#ibiztemplate>
import ${item.getCodeName()}_BO_CN_Base from './${srffilepath2(item.getCodeName())}_BO_CN_base';
function getLocaleResource(){
const ${item.getCodeName()}_BO_CN_OwnData = {};
const targetData = Object.assign(${item.getCodeName()}_BO_CN_Base(), ${item.getCodeName()}_BO_CN_OwnData);
return targetData;
}
export default getLocaleResource;
\ No newline at end of file
APP/src/locale/lanres/entities/%DE_PKGPATH%/%DE_PKGPATH%_BO_CN_base.ts.ftl
0 → 100644
浏览文件 @
a659d6bf
<#ibiztemplate>
TARGET=PSAPPDATAENTITY
</#ibiztemplate>
import commonLogic from '@/locale/logic/common/common-logic';
<#ibizinclude>../../../@MACRO/FUNC.ts</#ibizinclude>
<#assign langrestype = 'BO_CN'/>
<#assign emptyText = '暂无数据'>
function getLocaleResourceBase(){
const data:any = {
<#-- 实体属性输出 -->
<#if item.getAllPSAppDEFields()??>
fields: {
<#list item.getAllPSAppDEFields() as field>
${field.getPSDEField().getCodeName()?lower_case}: commonLogic.appcommonhandle("<@getLogicNameLanguage field.getPSDEField() langrestype />",null),
</#list>
},
</#if>
<#-- 属性值规则输出 -->
<#-- <#if item.getPSDataEntity().getAllPSDEFValueRules?? && item.getPSDataEntity().getAllPSDEFValueRules()??>
derules:{
<#list item.getPSDataEntity().getAllPSDEFValueRules() as deValueRule>
<#if deValueRule?? && (deValueRule.isDefaultMode() == false) && deValueRule.getPSDEFVRGroupCondition?? && deValueRule.getPSDEFVRGroupCondition()?? && deValueRule.getPSDEFVRGroupCondition().getPSDEFVRConditions?? && deValueRule.getPSDEFVRGroupCondition().getPSDEFVRConditions()??>
<#assign deVRConditions = deValueRule.getPSDEFVRGroupCondition().getPSDEFVRConditions() />
<#list deVRConditions as singleCondition>
${deValueRule.getCodeName()?lower_case}<#if singleCondition.getDEFName?? && singleCondition.getDEFName()??>${singleCondition.getDEFName()?lower_case}</#if>${singleCondition.getCondType()?lower_case}:commonLogic.appcommonhandle("${singleCondition.getRuleInfo()}",null),
<#if singleCondition.getPSDEFVRConditions?? && singleCondition.getPSDEFVRConditions()??>
<#list singleCondition.getPSDEFVRConditions() as sonsingleCondition>
${deValueRule.getCodeName()?lower_case}<#if sonsingleCondition.getDEFName?? && sonsingleCondition.getDEFName()??>${sonsingleCondition.getDEFName()?lower_case}</#if>${sonsingleCondition.getCondType()?lower_case}:commonLogic.appcommonhandle("${sonsingleCondition.getRuleInfo()}",null),
</#list>
</#if>
</#list>
</#if>
</#list>
},
</#if> -->
<#-- 实体视图输出 -->
<#if item.getAllPSAppViews()??>
views: {
<#list item.getAllPSAppViews() as obj>
${obj.getPSDEViewCodeName()?lower_case}: {
caption: <#ibizinclude>../../../@MACRO/CAPTIONLANG.ts</#ibizinclude>,
title: commonLogic.appcommonhandle("<@getTitleLanguage obj langrestype />",null),
},
</#list>
},
</#if>
<#-- 实体部件输出 -->
<#if item.getPSControls()??>
<#assign ctrltypes = ['FORM', 'GRID', 'LIST', 'DATAVIEW', 'CHART','KANBAN', 'GANTT', 'TREEGRIDEX', 'SEARCHFORM', 'TOOLBAR', 'TREEVIEW', 'TREEGRIDEX', 'CALENDAR']>
<#list ctrltypes as ctrltype>
<#list item.getPSControls() as ctrl>
<#if ctrl.getControlType() == ctrltype>
<#if !P.exists(ctrltype, ctrl.getCodeName(), "_class_")>
${ctrl.getCodeName()?lower_case}_${ctrl.getControlType()?lower_case}: {
<#if ctrl.getControlType() == 'FORM' || ctrl.getControlType() == 'SEARCHFORM'>
details: {
<#list ctrl.getAllPSDEFormDetails() as obj>
${obj.name?lower_case}: <#ibizinclude>../../../@MACRO/CAPTIONLANG.ts</#ibizinclude>,
</#list>
},
</#if>
<#if ctrl.getControlType() == 'LIST' || ctrl.getControlType() == 'DATAVIEW' || ctrl.getControlType() == 'CHART' || ctrl.getControlType() == 'KANBAN'|| ctrl.getControlType() == 'GANTT' || ctrl.getControlType() == 'TREEGRIDEX' || ctrl.getControlType() == 'CALENDAR' || ctrl.getControlType() == 'TREEVIEW'>
nodata:commonLogic.appcommonhandle("<@getEmptyTextLanguage ctrl langrestype emptyText/>",null),
</#if>
<#if ctrl.getControlType() == 'GRID'>
columns: {
<#if ctrl.getAllPSDEGridColumns()??>
<#list ctrl.getAllPSDEGridColumns() as obj>
${obj.getName()?lower_case}: <#ibizinclude>../../../@MACRO/CAPTIONLANG.ts</#ibizinclude>,
</#list>
</#if>
},
nodata:commonLogic.appcommonhandle("<@getEmptyTextLanguage ctrl langrestype emptyText/>",null),
<#if ctrl.getPSDEDataExport?? && ctrl.getPSDEDataExport()?? >
exportColumns: {
<#if ctrl.getPSDEDataExport().getPSDEDataExportItems()??>
<#list ctrl.getPSDEDataExport().getPSDEDataExportItems() as obj>
${obj.getName()?lower_case}: <#ibizinclude>../../../@MACRO/CAPTIONLANG.ts</#ibizinclude>,
</#list>
</#if>
},
</#if>
</#if>
<#if ctrl.getControlType() == 'TREEVIEW'>
nodes: {
<#if ctrl.getPSDETreeNodes()??>
<#list ctrl.getPSDETreeNodes() as obj>
<#if obj.getTreeNodeType() == 'STATIC'>
${obj.getNodeType()?lower_case}: commonLogic.appcommonhandle("<@getNameLanguage obj langrestype />",null),
</#if>
</#list>
</#if>
},
</#if>
<#if ctrl.getControlType() == 'TOOLBAR'>
<#if ctrl.getAllPSDEToolbarItems()??>
<#list ctrl.getAllPSDEToolbarItems() as obj>
${obj.getName()?lower_case}: {
caption: <#ibizinclude>../../../@MACRO/CAPTIONLANG.ts</#ibizinclude>,
tip: commonLogic.appcommonhandle("<#ibizinclude>../../../@MACRO/TIPLANG.ts</#ibizinclude>",null),
},
</#list>
</#if>
</#if>
<#-- 部件界面行为 -->
<#if ctrl.getPSUIActions?? && ctrl.getPSUIActions()??>
uiactions: {
<#list ctrl.getPSUIActions() as obj>
<#if obj.getPSAppDataEntity?? && obj.getPSAppDataEntity()??>${obj.getPSAppDataEntity().getCodeName()?lower_case}_</#if>${obj.getUIActionTag()?lower_case}: <#ibizinclude>../../../@MACRO/CAPTIONLANG.ts</#ibizinclude>,
</#list>
},
</#if>
},
</#if>
</#if>
</#list>
</#list>
</#if>
};
return data;
}
export default getLocaleResourceBase;
\ No newline at end of file
APP/src/locale/local-list.ts.ftl
浏览文件 @
a659d6bf
...
@@ -15,6 +15,12 @@ export const localList: any[] = [
...
@@ -15,6 +15,12 @@ export const localList: any[] = [
name: 'English',
name: 'English',
},
},
</#if>
</#if>
<#if lans.getLanguage() == 'BO_CN'>
{
type: 'BO-CN',
name: 'བོད་ཡིག',
},
</#if>
</#list>
</#list>
</#if>
</#if>
];
];
\ No newline at end of file
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录