Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
I
iBiz4jVue
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
ibiz4jteam
iBiz4jVue
提交
6f738679
提交
6f738679
编写于
9月 24, 2020
作者:
tony001
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'dev'
上级
a7120765
07504f6f
变更
4
隐藏空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
37 行增加
和
23 行删除
+37
-23
SERVICE.ts.ftl
@CONTROL/表格/SERVICE.ts.ftl
+14
-14
CONTROL-BASE.vue.ftl
@CONTROL/门户部件/CONTROL-BASE.vue.ftl
+7
-0
CONTROL.less.ftl
@CONTROL/门户部件/CONTROL.less.ftl
+5
-0
%APP_CODELIST%.ts.ftl
APP/src/codelist/%APP_CODELIST%.ts.ftl
+11
-9
未找到文件。
@CONTROL/表格/SERVICE.ts.ftl
浏览文件 @
6f738679
...
@@ -119,6 +119,15 @@ import ${srfclassname('${aggAppDataEntity.getCodeName()}')}Service from '@/servi
...
@@ -119,6 +119,15 @@ import ${srfclassname('${aggAppDataEntity.getCodeName()}')}Service from '@/servi
@Errorlog
@Errorlog
public add(action: string, context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
public add(action: string, context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
const {data:Data,context:Context} = this.handleRequestDataWithUpdate(action,context,data,true);
const {data:Data,context:Context} = this.handleRequestDataWithUpdate(action,context,data,true);
<#-- 手动修改数据主键的情况start -->
<#if ctrl.getPSDEGridEditItems()??>
<#list ctrl.getPSDEGridEditItems() as editItem>
<#if editItem.getPSAppDEField()?? && editItem.getPSAppDEField().isKeyField() && editItem.getCodeName() != "srfkey">
Object.assign(Data,{${editItem.getPSAppDEField().getCodeName()?lower_case}: data.${editItem.getName()}, srffrontuf: '1'});
</#if>
</#list>
</#if>
<#-- 手动修改数据主键的情况end -->
return new Promise((resolve: any, reject: any) => {
return new Promise((resolve: any, reject: any) => {
const _appEntityService: any = this.appEntityService;
const _appEntityService: any = this.appEntityService;
let result: Promise<any>;
let result: Promise<any>;
...
@@ -149,15 +158,6 @@ import ${srfclassname('${aggAppDataEntity.getCodeName()}')}Service from '@/servi
...
@@ -149,15 +158,6 @@ import ${srfclassname('${aggAppDataEntity.getCodeName()}')}Service from '@/servi
@Errorlog
@Errorlog
public delete(action: string, context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
public delete(action: string, context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
const {data:Data,context:Context} = this.handleRequestData(action,context,data,true);
const {data:Data,context:Context} = this.handleRequestData(action,context,data,true);
<#-- 手动修改数据主键的情况start -->
<#if ctrl.getPSDEGridEditItems()??>
<#list ctrl.getPSDEGridEditItems() as editItem>
<#if editItem.getPSAppDEField()?? && editItem.getPSAppDEField().isKeyField()>
Object.assign(Data,{${appde.getKeyPSAppDEField().getCodeName()?lower_case}: data.${editItem.getName()}, srffrontuf: '1'});
</#if>
</#list>
</#if>
<#-- 手动修改数据主键的情况end -->
return new Promise((resolve: any, reject: any) => {
return new Promise((resolve: any, reject: any) => {
const _appEntityService: any = this.appEntityService;
const _appEntityService: any = this.appEntityService;
let result: Promise<any>;
let result: Promise<any>;
...
@@ -328,18 +328,18 @@ import ${srfclassname('${aggAppDataEntity.getCodeName()}')}Service from '@/servi
...
@@ -328,18 +328,18 @@ import ${srfclassname('${aggAppDataEntity.getCodeName()}')}Service from '@/servi
//处理返回数据,补充判断标识
//处理返回数据,补充判断标识
if(response.data){
if(response.data){
Object.assign(response.data,{srfuf:'0'});
Object.assign(response.data,{srfuf:'0'});
//仿真主键数据
<#-- 手动修改数据主键的情况start -->
<#-- 手动修改数据主键的情况start -->
<#assign hasKeyField
withEditable = false
/>
<#assign hasKeyField
= ''
/>
<#if ctrl.getPSDEGridEditItems()??>
<#if ctrl.getPSDEGridEditItems()??>
<#list ctrl.getPSDEGridEditItems() as editItem>
<#list ctrl.getPSDEGridEditItems() as editItem>
<#if editItem.getPSAppDEField()?? && editItem.getPSAppDEField().isKeyField()>
<#if editItem.getPSAppDEField()?? && editItem.getPSAppDEField().isKeyField()
&& editItem.getCodeName() != "srfkey"
>
<#assign hasKeyField
withEditable>true
</#assign>
<#assign hasKeyField
>${editItem.getName()}
</#assign>
</#if>
</#if>
</#list>
</#list>
</#if>
</#if>
<#-- 手动修改数据主键的情况end -->
<#-- 手动修改数据主键的情况end -->
<#if !hasKeyFieldwithEditable>
<#if hasKeyField == "">
//仿真主键数据
response.data.${appde.getKeyPSAppDEField().getCodeName()?lower_case} = Util.createUUID();
response.data.${appde.getKeyPSAppDEField().getCodeName()?lower_case} = Util.createUUID();
</#if>
</#if>
}
}
...
...
@CONTROL/门户部件/CONTROL-BASE.vue.ftl
浏览文件 @
6f738679
...
@@ -50,6 +50,7 @@
...
@@ -50,6 +50,7 @@
${render_uiaction}<#t>
${render_uiaction}<#t>
</@ibizindent>
</@ibizindent>
</p>
</p>
<el-divider class="divider"></el-divider>
</#if>
</#if>
<div class="<#if ctrl.isShowTitleBar()>portlet-with-title<#else>portlet-without-title</#if>">
<div class="<#if ctrl.isShowTitleBar()>portlet-with-title<#else>portlet-without-title</#if>">
<#assign refview = ctrl.getPortletPSAppView()><#t>
<#assign refview = ctrl.getPortletPSAppView()><#t>
...
@@ -68,6 +69,7 @@
...
@@ -68,6 +69,7 @@
${render_uiaction}<#t>
${render_uiaction}<#t>
</@ibizindent>
</@ibizindent>
</p>
</p>
<el-divider class="divider"></el-divider>
</#if>
</#if>
<div class="<#if ctrl.isShowTitleBar()>portlet-with-title<#else>portlet-without-title</#if>">
<div class="<#if ctrl.isShowTitleBar()>portlet-with-title<#else>portlet-without-title</#if>">
<#assign appmenu = ctrl.getPSAppMenu()><#t>
<#assign appmenu = ctrl.getPSAppMenu()><#t>
...
@@ -88,6 +90,7 @@
...
@@ -88,6 +90,7 @@
${render_uiaction}<#t>
${render_uiaction}<#t>
</@ibizindent>
</@ibizindent>
</p>
</p>
<el-divider class="divider"></el-divider>
</#if>
</#if>
<div class="<#if ctrl.isShowTitleBar()>portlet-with-title<#else>portlet-without-title</#if>">
<div class="<#if ctrl.isShowTitleBar()>portlet-with-title<#else>portlet-without-title</#if>">
<#if ctrl.render??>
<#if ctrl.render??>
...
@@ -105,6 +108,7 @@
...
@@ -105,6 +108,7 @@
${ctrl.getTitle()}
${ctrl.getTitle()}
</span>
</span>
</p>
</p>
<el-divider class="divider"></el-divider>
</#if>
</#if>
<div class="<#if ctrl.isShowTitleBar()>portlet-with-title<#else>portlet-without-title</#if>">
<div class="<#if ctrl.isShowTitleBar()>portlet-with-title<#else>portlet-without-title</#if>">
<#if ctrl.render??>
<#if ctrl.render??>
...
@@ -126,6 +130,7 @@
...
@@ -126,6 +130,7 @@
${render_uiaction}<#t>
${render_uiaction}<#t>
</@ibizindent>
</@ibizindent>
</p>
</p>
<el-divider class="divider"></el-divider>
</#if>
</#if>
<div class="<#if ctrl.isShowTitleBar()>portlet-with-title<#else>portlet-without-title</#if>">
<div class="<#if ctrl.isShowTitleBar()>portlet-with-title<#else>portlet-without-title</#if>">
<iframe src="<#if ctrl.getPageUrl()??>${ctrl.getPageUrl()}</#if>" style="height: <#if ctrl.getHeight() gt 0>${ctrl.getHeight()?c}<#else>400</#if>px;width: 100%;border-width: 1px;"></iframe>
<iframe src="<#if ctrl.getPageUrl()??>${ctrl.getPageUrl()}</#if>" style="height: <#if ctrl.getHeight() gt 0>${ctrl.getHeight()?c}<#else>400</#if>px;width: 100%;border-width: 1px;"></iframe>
...
@@ -138,6 +143,7 @@
...
@@ -138,6 +143,7 @@
${ctrl.getTitle()}
${ctrl.getTitle()}
</span>
</span>
</p>
</p>
<el-divider class="divider"></el-divider>
</#if>
</#if>
<div class="<#if ctrl.isShowTitleBar()>portlet-with-title<#else>portlet-without-title</#if>">
<div class="<#if ctrl.isShowTitleBar()>portlet-with-title<#else>portlet-without-title</#if>">
<#if ctrl.render??>
<#if ctrl.render??>
...
@@ -173,6 +179,7 @@
...
@@ -173,6 +179,7 @@
${render_uiaction}<#t>
${render_uiaction}<#t>
</@ibizindent>
</@ibizindent>
</p>
</p>
<el-divider class="divider"></el-divider>
</#if>
</#if>
<div class="<#if ctrl.isShowTitleBar()>portlet-with-title<#else>portlet-without-title</#if>">
<div class="<#if ctrl.isShowTitleBar()>portlet-with-title<#else>portlet-without-title</#if>">
<#assign control = ctrl.getContentPSControl()><#t>
<#assign control = ctrl.getContentPSControl()><#t>
...
...
@CONTROL/门户部件/CONTROL.less.ftl
浏览文件 @
6f738679
...
@@ -35,6 +35,11 @@
...
@@ -35,6 +35,11 @@
}
}
}
}
}
}
<#if ctrl.isShowTitleBar() && ctrl.getTitle()??>
> .divider {
margin: 0px 0px 11px 0px;
}
</#if>
> .portlet-with-title{
> .portlet-with-title{
width:100%;
width:100%;
height:calc(100% - 52px);
height:calc(100% - 52px);
...
...
APP/src/codelist/%APP_CODELIST%.ts.ftl
浏览文件 @
6f738679
...
@@ -125,15 +125,17 @@ export default class ${srfclassname('${item.getCodeName()}')} {
...
@@ -125,15 +125,17 @@ export default class ${srfclassname('${item.getCodeName()}')} {
*/
*/
public doItems(items: any[]): any[] {
public doItems(items: any[]): any[] {
let _items: any[] = [];
let _items: any[] = [];
items.forEach((item: any) => {
if(items && items instanceof Array && items.length >0){
let itemdata:any = {};
items.forEach((item: any) => {
Object.assign(itemdata,{id:item.<#if item.getValuePSAppDEField()??>${item.getValuePSAppDEField().getCodeName()?lower_case}<#else>${item.getPSAppDataEntity().getKeyPSAppDEField().codeName?lower_case}</#if>});
let itemdata:any = {};
Object.assign(itemdata,{value:item.<#if item.getValuePSAppDEField()??>${item.getValuePSAppDEField().getCodeName()?lower_case}<#else>${item.getPSAppDataEntity().getKeyPSAppDEField().codeName?lower_case}</#if>});
Object.assign(itemdata,{id:item.<#if item.getValuePSAppDEField()??>${item.getValuePSAppDEField().getCodeName()?lower_case}<#else>${item.getPSAppDataEntity().getKeyPSAppDEField().codeName?lower_case}</#if>});
Object.assign(itemdata,{text:item.<#if item.getTextPSAppDEField()??>${item.getTextPSAppDEField().getCodeName()?lower_case}<#else>${item.getPSAppDataEntity().getMajorPSAppDEField().codeName?lower_case}</#if>});
Object.assign(itemdata,{value:item.<#if item.getValuePSAppDEField()??>${item.getValuePSAppDEField().getCodeName()?lower_case}<#else>${item.getPSAppDataEntity().getKeyPSAppDEField().codeName?lower_case}</#if>});
Object.assign(itemdata,{label:item.<#if item.getTextPSAppDEField()??>${item.getTextPSAppDEField().getCodeName()?lower_case}<#else>${item.getPSAppDataEntity().getMajorPSAppDEField().codeName?lower_case}</#if>});
Object.assign(itemdata,{text:item.<#if item.getTextPSAppDEField()??>${item.getTextPSAppDEField().getCodeName()?lower_case}<#else>${item.getPSAppDataEntity().getMajorPSAppDEField().codeName?lower_case}</#if>});
<#if item.getPValuePSAppDEField()??>Object.assign(itemdata,{pvalue:item.${item.getPValuePSAppDEField().getCodeName()?lower_case}});</#if>
Object.assign(itemdata,{label:item.<#if item.getTextPSAppDEField()??>${item.getTextPSAppDEField().getCodeName()?lower_case}<#else>${item.getPSAppDataEntity().getMajorPSAppDEField().codeName?lower_case}</#if>});
_items.push(itemdata);
<#if item.getPValuePSAppDEField()??>Object.assign(itemdata,{pvalue:item.${item.getPValuePSAppDEField().getCodeName()?lower_case}});</#if>
});
_items.push(itemdata);
});
}
return _items;
return _items;
}
}
...
...
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录