Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
iBiz-Vue-R7
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
22
议题
22
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
iBiz-R7前端标准模板
iBiz-Vue-R7
提交
b2c30fa9
提交
b2c30fa9
编写于
11月 09, 2022
作者:
Mosher
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
update:更新
上级
3cc12e30
变更
4
显示空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
53 行增加
和
22 行删除
+53
-22
LOGIC.vue.ftl
@LOGIC/@UIACTION/前台调用/LOGIC.vue.ftl
+4
-2
LOGIC.vue.ftl
@LOGIC/@UIACTION/后台调用/LOGIC.vue.ftl
+4
-2
VIEW_CONTENT-BASE.vue.ftl
@VIEW/@MACRO/VIEW_CONTENT-BASE.vue.ftl
+44
-7
VIEW_HEADER-BASE.vue.ftl
@VIEW/@MACRO/VIEW_HEADER-BASE.vue.ftl
+1
-11
未找到文件。
@LOGIC/@UIACTION/前台调用/LOGIC.vue.ftl
浏览文件 @
b2c30fa9
...
...
@@ -26,11 +26,13 @@ ${front_block}
${item.render.code}
<#else>
<#if item.getUILogicAttachMode?? && item.getUILogicAttachMode()?? && item.getUILogicAttachMode() == 'REPLACE' && item.getPSAppDEUILogic?? && item.getPSAppDEUILogic()??>
const _context: any = Object.assign(context, actionContext.context);
const _params: any = Object.assign(params, actionContext.viewparams);
<#if item.getPSAppDataEntity?? && item.getPSAppDataEntity()?? && item.getPSAppDEUILogic().getPSAppDataEntity?? && item.getPSAppDEUILogic().getPSAppDataEntity()?? && item.getPSAppDataEntity().codeName == item.getPSAppDEUILogic().getPSAppDataEntity().codeName>
return this.executeUILogic('${item.getPSAppDEUILogic().codeName}', args,
context,
params, $event, xData, actionContext, srfParentDeName);
return this.executeUILogic('${item.getPSAppDEUILogic().codeName}', args,
_context, _
params, $event, xData, actionContext, srfParentDeName);
<#elseif item.getPSAppDEUILogic().getPSAppDataEntity?? && item.getPSAppDEUILogic().getPSAppDataEntity()??>
const uiService = await window.uiServiceRegister.getService('${item.getPSAppDEUILogic().getPSAppDataEntity().codeName}');
return uiService.executeUILogic('${item.getPSAppDEUILogic().codeName}', args,
context,
params, $event, xData, actionContext, srfParentDeName);
return uiService.executeUILogic('${item.getPSAppDEUILogic().codeName}', args,
_context, _
params, $event, xData, actionContext, srfParentDeName);
</#if>
<#else>
<#-- BEGIN: 数据目标: 单项数据 -->
...
...
@LOGIC/@UIACTION/后台调用/LOGIC.vue.ftl
浏览文件 @
b2c30fa9
...
...
@@ -25,11 +25,13 @@ ${backend_block}
${item.render.code}
<#else>
<#if item.getUILogicAttachMode?? && item.getUILogicAttachMode()?? && item.getUILogicAttachMode() == 'REPLACE' && item.getPSAppDEUILogic?? && item.getPSAppDEUILogic()??>
const _context: any = Object.assign(context, actionContext.context);
const _params: any = Object.assign(params, actionContext.viewparams);
<#if item.getPSAppDataEntity?? && item.getPSAppDataEntity()?? && item.getPSAppDEUILogic().getPSAppDataEntity?? && item.getPSAppDEUILogic().getPSAppDataEntity()?? && item.getPSAppDataEntity().codeName == item.getPSAppDEUILogic().getPSAppDataEntity().codeName>
return this.executeUILogic('${item.getPSAppDEUILogic().codeName}', args,
context,
params, $event, xData, actionContext, srfParentDeName);
return this.executeUILogic('${item.getPSAppDEUILogic().codeName}', args,
_context, _
params, $event, xData, actionContext, srfParentDeName);
<#elseif item.getPSAppDEUILogic().getPSAppDataEntity?? && item.getPSAppDEUILogic().getPSAppDataEntity()??>
const uiService = await window.uiServiceRegister.getService('${item.getPSAppDEUILogic().getPSAppDataEntity().codeName}');
return uiService.executeUILogic('${item.getPSAppDEUILogic().codeName}', args,
context,
params, $event, xData, actionContext, srfParentDeName);
return uiService.executeUILogic('${item.getPSAppDEUILogic().codeName}', args,
_context, _
params, $event, xData, actionContext, srfParentDeName);
</#if>
<#else>
<#-- BEGIN: 自定义确认 -->
...
...
@VIEW/@MACRO/VIEW_CONTENT-BASE.vue.ftl
浏览文件 @
b2c30fa9
...
...
@@ -367,7 +367,44 @@
}
})
}
<#if created_block??>${created_block}</#if>
_this.initViewCtx();
<#if created_block??>
${created_block}
</#if>
}
/**
* 初始化视图操作参数
*
* @memberof ${srfclassname('${view.name}')}Base
*/
initViewCtx() {
Object.assign(this.viewCtx, {
app: this.$router,
view: this,
viewGlobal: {},
viewNavData: {},
viewNavContext: this.context,
viewNavParam: this.viewparams,
messagebox: AppMessageBox.getInstance(),
});
Object.assign(this.viewCtx, { appGlobal: this.$store.getters.getAppGlobal() });
if (this.$store.getters.getRouteViewGlobal(this.context.srfsessionid)) {
Object.assign(this.viewCtx, { routeViewGlobal: this.$store.getters.getRouteViewGlobal(this.context.srfsessionid) });
} else {
this.$store.commit('addRouteViewGlobal', { tag: this.context.srfsessionid, param: {} });
Object.assign(this.viewCtx, { routeViewGlobal: this.$store.getters.getRouteViewGlobal(this.context.srfsessionid) });
}
if (!this.viewDefaultUsage && this.viewdata && !Object.is(this.viewdata, '')) {
// 嵌入视图
Object.assign(this.viewCtx, {
topview: this.$store.getters.getView(this.context.srfsessionid)
});
} else {
// 顶层视图
this.$store.commit('addView', { tag: this.context.srfsessionid, param: this });
Object.assign(this.viewCtx, { topview: this });
}
}
/**
...
...
@@ -428,7 +465,7 @@
<#if logic.getLogicType() == 'DEUILOGIC' && logic.getPSAppDEUILogic?? && logic.getPSAppDEUILogic()??>
<#assign hasLogic = true>
<#if view.getPSAppDataEntity?? && view.getPSAppDataEntity()?? && view.getPSAppDataEntity().codeName == logic.getPSAppDEUILogic().getPSAppDataEntity().codeName>
this.appUIService.executeUILogic('${logic.getPSAppDEUILogic().codeName}', [],
Util.deepCopy(this.context), Util.deepCopy(this.viewparams)
, {}, {}, this, '${logic.getPSAppDEUILogic().getPSAppDataEntity().codeName}').then((result: any) => {
this.appUIService.executeUILogic('${logic.getPSAppDEUILogic().codeName}', [],
this.context, this.viewparams
, {}, {}, this, '${logic.getPSAppDEUILogic().getPSAppDataEntity().codeName}').then((result: any) => {
if (result && result.hasOwnProperty('srfret') && !result.srfret) {
return;
}
...
...
@@ -438,7 +475,7 @@
});
<#else>
window.uiServiceRegister.getService('${logic.getPSAppDEUILogic().getPSAppDataEntity().codeName}').then((service: any) => {
service.executeUILogic('${logic.getPSAppDEUILogic().codeName}', [],
Util.deepCopy(this.context), Util.deepCopy(this.viewparams)
, {}, {}, this, '${logic.getPSAppDEUILogic().getPSAppDataEntity().codeName}').then((result: any) => {
service.executeUILogic('${logic.getPSAppDEUILogic().codeName}', [],
this.context, this.viewparams
, {}, {}, this, '${logic.getPSAppDEUILogic().getPSAppDataEntity().codeName}').then((result: any) => {
if (result && result.hasOwnProperty('srfret') && !result.srfret) {
return;
}
...
...
@@ -479,7 +516,7 @@
<#if logic.getLogicType() == 'DEUILOGIC' && logic.getPSAppDEUILogic?? && logic.getPSAppDEUILogic()??>
<#assign hasLogic = true>
<#if view.getPSAppDataEntity?? && view.getPSAppDataEntity()?? && view.getPSAppDataEntity().codeName == logic.getPSAppDEUILogic().getPSAppDataEntity().codeName>
this.appUIService.executeUILogic('${logic.getPSAppDEUILogic().codeName}', [],
Util.deepCopy(this.context), Util.deepCopy(this.viewparams)
, {}, {}, this, '${logic.getPSAppDEUILogic().getPSAppDataEntity().codeName}').then((result: any) => {
this.appUIService.executeUILogic('${logic.getPSAppDEUILogic().codeName}', [],
this.context, this.viewparams
, {}, {}, this, '${logic.getPSAppDEUILogic().getPSAppDataEntity().codeName}').then((result: any) => {
if (result && result.hasOwnProperty('srfret') && !result.srfret) {
return;
}
...
...
@@ -489,7 +526,7 @@
});
<#else>
window.uiServiceRegister.getService('${logic.getPSAppDEUILogic().getPSAppDataEntity().codeName}').then((service: any) => {
service.executeUILogic('${logic.getPSAppDEUILogic().codeName}', [],
Util.deepCopy(this.context), Util.deepCopy(this.viewparams)
, {}, {}, this, '${logic.getPSAppDEUILogic().getPSAppDataEntity().codeName}').then((result: any) => {
service.executeUILogic('${logic.getPSAppDEUILogic().codeName}', [],
this.context, this.viewparams
, {}, {}, this, '${logic.getPSAppDEUILogic().getPSAppDataEntity().codeName}').then((result: any) => {
if (result && result.hasOwnProperty('srfret') && !result.srfret) {
return;
}
...
...
@@ -648,7 +685,7 @@ ${P.getLogicCode(uiAction, "LOGIC.vue").code}
<#if logic.getLogicType() == 'DEUILOGIC' && logic.getPSAppDEUILogic?? && logic.getPSAppDEUILogic()??>
<#assign hasLogic = true>
<#if view.getPSAppDataEntity?? && view.getPSAppDataEntity()?? && view.getPSAppDataEntity().codeName == logic.getPSAppDEUILogic().getPSAppDataEntity().codeName>
this.appUIService.executeUILogic('${logic.getPSAppDEUILogic().codeName}', [],
Util.deepCopy(this.context), Util.deepCopy(this.viewparams)
, {}, {}, this, '${logic.getPSAppDEUILogic().getPSAppDataEntity().codeName}').then((result: any) => {
this.appUIService.executeUILogic('${logic.getPSAppDEUILogic().codeName}', [],
this.context, this.viewparams
, {}, {}, this, '${logic.getPSAppDEUILogic().getPSAppDataEntity().codeName}').then((result: any) => {
if (result && result.hasOwnProperty('srfret') && !result.srfret) {
return;
}
...
...
@@ -658,7 +695,7 @@ ${P.getLogicCode(uiAction, "LOGIC.vue").code}
});
<#else>
window.uiServiceRegister.getService('${logic.getPSAppDEUILogic().getPSAppDataEntity().codeName}').then((service: any) => {
service.executeUILogic('${logic.getPSAppDEUILogic().codeName}', [],
Util.deepCopy(this.context), Util.deepCopy(this.viewparams)
, {}, {}, this, '${logic.getPSAppDEUILogic().getPSAppDataEntity().codeName}').then((result: any) => {
service.executeUILogic('${logic.getPSAppDEUILogic().codeName}', [],
this.context, this.viewparams
, {}, {}, this, '${logic.getPSAppDEUILogic().getPSAppDataEntity().codeName}').then((result: any) => {
if (result && result.hasOwnProperty('srfret') && !result.srfret) {
return;
}
...
...
@VIEW/@MACRO/VIEW_HEADER-BASE.vue.ftl
浏览文件 @
b2c30fa9
...
...
@@ -262,17 +262,7 @@ export default class ${srfclassname('${view.name}')}Base extends Vue {
* @readonly
* @memberof ${srfclassname('${view.name}')}Base
*/
get viewCtx() {
return {
appGlobal: this.$store.getters.getAppGlobal(),
viewGlobal: {},
viewNavData: {},
viewNavContext: this.context,
viewNavParam: this.viewparams,
messageBox: this.$msgbox,
view: this,
}
}
public viewCtx: any = {};
<#if view.getXDataPSControl?? && view.getXDataPSControl()??>
<#assign dataControl = view.getXDataPSControl()/>
...
...
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录