Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
iBiz-Vue-Mob-R7
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
iBiz-R7前端标准模板
iBiz-Vue-Mob-R7
提交
f2103280
提交
f2103280
编写于
6月 05, 2020
作者:
zcdtk
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
方法调用优化
上级
1fe8a86c
变更
7
显示空白字符变更
内嵌
并排
正在显示
7 个修改的文件
包含
54 行增加
和
76 行删除
+54
-76
LOGIC.vue.ftl
@LOGIC/@UIACTION/系统预置/sys/保存/LOGIC.vue.ftl
+6
-8
LOGIC.vue.ftl
@LOGIC/@UIACTION/系统预置/sys/保存并关闭/LOGIC.vue.ftl
+9
-20
LOGIC.vue.ftl
@LOGIC/@UIACTION/系统预置/sys/保存并新建/LOGIC.vue.ftl
+9
-11
LOGIC.vue.ftl
@LOGIC/@UIACTION/系统预置/sys/删除/LOGIC.vue.ftl
+5
-4
LOGIC.vue.ftl
@LOGIC/@UIACTION/系统预置/sys/删除并关闭/LOGIC.vue.ftl
+8
-12
LOGIC.vue.ftl
@LOGIC/@UIACTION/系统预置/sys/开始流程/LOGIC.vue.ftl
+9
-12
LOGIC.vue.ftl
@LOGIC/@UIACTION/系统预置/sys/当前流程步骤/LOGIC.vue.ftl
+8
-9
未找到文件。
@LOGIC/@UIACTION/系统预置/sys/保存/LOGIC.vue.ftl
浏览文件 @
f2103280
...
@@ -12,17 +12,15 @@
...
@@ -12,17 +12,15 @@
* @memberof <#if item.getPSControlContainer?? && item.getPSControlContainer()??>${srfclassname('${item.getPSControlContainer().name}')}Base</#if>
* @memberof <#if item.getPSControlContainer?? && item.getPSControlContainer()??>${srfclassname('${item.getPSControlContainer().name}')}Base</#if>
*/
*/
public async ${item.getFullCodeName()}(args: any[], contextJO: any = {}, paramJO: any = {}, $event?: any, xData?: any, container?: any, srfParentDeName?: string): Promise<any> {
public async ${item.getFullCodeName()}(args: any[], contextJO: any = {}, paramJO: any = {}, $event?: any, xData?: any, container?: any, srfParentDeName?: string): Promise<any> {
// 界面行为容器对象 _this
let response: any;
const _this: any = this;
if (xData && xData.save instanceof Function) {
if (xData && xData.save instanceof Function) {
const _data = {};
const _data = {};
xData.save(_data).then((response: any) => {
response = await xData.save(_data);
if (!response || response.status !== 200) {
if (response || response.status === 200) {
return;
}
container.$emit('viewdataschange', [{ ...response.data }]);
container.$emit('viewdataschange', [{ ...response.data }]);
}
);
}
} else if (container.save && container.save instanceof Function) {
} else if (container.save && container.save instanceof Function) {
container.save();
response = await
container.save();
}
}
return response;
}
}
@LOGIC/@UIACTION/系统预置/sys/保存并关闭/LOGIC.vue.ftl
浏览文件 @
f2103280
...
@@ -12,30 +12,18 @@
...
@@ -12,30 +12,18 @@
* @memberof <#if item.getPSControlContainer?? && item.getPSControlContainer()??>${srfclassname('${item.getPSControlContainer().name}')}Base</#if>
* @memberof <#if item.getPSControlContainer?? && item.getPSControlContainer()??>${srfclassname('${item.getPSControlContainer().name}')}Base</#if>
*/
*/
public async ${item.getFullCodeName()}(args: any[], contextJO: any = {}, paramJO: any = {}, $event?: any, xData?: any, container?: any, srfParentDeName?: string): Promise<any> {
public async ${item.getFullCodeName()}(args: any[], contextJO: any = {}, paramJO: any = {}, $event?: any, xData?: any, container?: any, srfParentDeName?: string): Promise<any> {
// _this 指向容器对象
let response: any;
// xData 数据对象
const _this: any = this;
if (xData && xData.saveAndExit instanceof Function) {
if (xData && xData.saveAndExit instanceof Function) {
const _data = {};
const _data = {};
xData.saveAndExit(_data).then((response: any) => {
response = await xData.saveAndExit(_data);
if (!response || response.status !== 200) {
if (response || response.status === 200) {
container.$emit('viewdataschange', JSON.stringify({status:'error',action:'saveAndExit'}));
container.$emit('viewdataschange', [{ ...response.data }]);
return;
}
}
container.$emit('viewdataschange', JSON.stringify({status:'success',action:'saveAndExit',data:response.data}));
<#-- if(window.parent){
window.parent.postMessage([{ ...response.data }],'*');
} -->
});
} else if (container.saveAndExit && container.saveAndExit instanceof Function) {
} else if (container.saveAndExit && container.saveAndExit instanceof Function) {
container.saveAndExit().then((response: any) => {
response = await xData.saveAndExit();
if (!response || response.status !== 200) {
if (response || response.status === 200) {
return;
}
container.$emit('closeview', [{ ...response.data }]);
container.$emit('closeview', [{ ...response.data }]);
<#-- if(window.parent){
window.parent.postMessage([{ ...response.data }],'*');
} -->
});
}
}
}
}
return response;
}
\ No newline at end of file
@LOGIC/@UIACTION/系统预置/sys/保存并新建/LOGIC.vue.ftl
浏览文件 @
f2103280
...
@@ -12,19 +12,16 @@
...
@@ -12,19 +12,16 @@
* @memberof <#if item.getPSControlContainer?? && item.getPSControlContainer()??>${srfclassname('${item.getPSControlContainer().name}')}Base</#if>
* @memberof <#if item.getPSControlContainer?? && item.getPSControlContainer()??>${srfclassname('${item.getPSControlContainer().name}')}Base</#if>
*/
*/
public async ${item.getFullCodeName()}(args: any[], contextJO: any = {}, paramJO: any = {}, $event?: any, xData?: any, container?: any, srfParentDeName?: string): Promise<any> {
public async ${item.getFullCodeName()}(args: any[], contextJO: any = {}, paramJO: any = {}, $event?: any, xData?: any, container?: any, srfParentDeName?: string): Promise<any> {
const _this: any = this;
let response: any;
if (!xData || !(xData.saveAndNew instanceof Function)) {
if (xData && xData.saveAndNew instanceof Function) {
return;
}
const _data = {};
const _data = {};
xData.saveAndNew(_data).then((response: any) => {
response = await xData.saveAndNew(_data);
if (!response || response.status !== 200) {
container.$emit('viewdataschange', JSON.stringify({status:'error',action:'saveAndNew'}));
return;
}
}
container.$emit('viewdataschange', JSON.stringify({status:'success',action:'saveAndNew',data:response.data}));
if (response && response.status === 200) {
container.$emit('viewdataschange', [{ ...response.data }]);
if (xData.autoLoad instanceof Function) {
if (xData.autoLoad instanceof Function) {
xData.autoLoad(_data);
xData.autoLoad({});
}
}
}
})
;
return response
;
}
}
\ No newline at end of file
@LOGIC/@UIACTION/系统预置/sys/删除/LOGIC.vue.ftl
浏览文件 @
f2103280
...
@@ -12,9 +12,10 @@
...
@@ -12,9 +12,10 @@
* @memberof <#if item.getPSControlContainer?? && item.getPSControlContainer()??>${srfclassname('${item.getPSControlContainer().name}')}Base</#if>
* @memberof <#if item.getPSControlContainer?? && item.getPSControlContainer()??>${srfclassname('${item.getPSControlContainer().name}')}Base</#if>
*/
*/
public async ${item.getFullCodeName()}(args: any[], contextJO: any = {}, paramJO: any = {}, $event?: any, xData?: any, container?: any, srfParentDeName?: string): Promise<any> {
public async ${item.getFullCodeName()}(args: any[], contextJO: any = {}, paramJO: any = {}, $event?: any, xData?: any, container?: any, srfParentDeName?: string): Promise<any> {
const _this: any = this;
let response: any;
if (!xData || !(xData.remove instanceof Function)) {
if (xData && xData.remove instanceof Function) {
return ;
const _data = {};
response = await xData.remove(args);
}
}
xData.remove(args)
;
return response
;
}
}
@LOGIC/@UIACTION/系统预置/sys/删除并关闭/LOGIC.vue.ftl
浏览文件 @
f2103280
...
@@ -12,18 +12,13 @@
...
@@ -12,18 +12,13 @@
* @memberof <#if item.getPSControlContainer?? && item.getPSControlContainer()??>${srfclassname('${item.getPSControlContainer().name}')}Base</#if>
* @memberof <#if item.getPSControlContainer?? && item.getPSControlContainer()??>${srfclassname('${item.getPSControlContainer().name}')}Base</#if>
*/
*/
public async ${item.getFullCodeName()}(args: any[], contextJO: any = {}, paramJO: any = {}, $event?: any, xData?: any, container?: any, srfParentDeName?: string): Promise<any> {
public async ${item.getFullCodeName()}(args: any[], contextJO: any = {}, paramJO: any = {}, $event?: any, xData?: any, container?: any, srfParentDeName?: string): Promise<any> {
const _this: any = this;
let response: any;
if (!xData || !(xData.removeAndExit instanceof Function)) {
if (xData && xData.removeAndExit instanceof Function) {
return ;
const _data = {};
response = await xData.removeAndExit(args);
}
}
xData.removeAndExit(args).then((response: any) => {
if (response && response.status === 200) {
if (!response || response.status !== 200) {
container.$emit('viewdataschange', [{ ...response.data }]);
container.$emit('viewdataschange', JSON.stringify({status:'error',action:'removeAndExit'}));
return ;
}
}
container.$emit('viewdataschange', JSON.stringify({status:'success',action:'removeAndExit',data:response.data}));
return response;
<#-- if(window.parent){
window.parent.postMessage([{ ...response.data }],'*');
} -->
});
}
}
\ No newline at end of file
@LOGIC/@UIACTION/系统预置/sys/开始流程/LOGIC.vue.ftl
浏览文件 @
f2103280
...
@@ -12,23 +12,19 @@
...
@@ -12,23 +12,19 @@
* @memberof <#if item.getPSControlContainer?? && item.getPSControlContainer()??>${srfclassname('${item.getPSControlContainer().name}')}Base</#if>
* @memberof <#if item.getPSControlContainer?? && item.getPSControlContainer()??>${srfclassname('${item.getPSControlContainer().name}')}Base</#if>
*/
*/
public async ${item.getFullCodeName()}(args: any[], contextJO: any = {}, paramJO: any = {}, $event?: any, xData?: any, container?: any, srfParentDeName?: string): Promise<any> {
public async ${item.getFullCodeName()}(args: any[], contextJO: any = {}, paramJO: any = {}, $event?: any, xData?: any, container?: any, srfParentDeName?: string): Promise<any> {
const _this: any = this;
let response: any;
if (!xData || !(xData.wfstart instanceof Function)) {
if (xData && xData.wfstart instanceof Function) {
return;
const _data = {};
}
response = await xData.wfstart(args);
xData.wfstart(args).then((response: any) => {
if (!response || response.status !== 200) {
return;
}
}
if (response && response.status === 200) {
const { data: _data } = response;
const { data: _data } = response;
<#-- if(window.parent){
window.parent.postMessage([{ ..._data }],'*');
} -->
if (container.viewdata) {
if (container.viewdata) {
container.$emit('viewdataschange', [{ ..._data }]);
container.$emit('viewdataschange', [{ ..._data }]);
container.$emit('close');
container.$emit('close');
} else if (
container
.$tabPageExp) {
} else if (
_this
.$tabPageExp) {
container.$tabPageExp.onClose(container.$route.fullPath);
container.$tabPageExp.onClose(container.$route.fullPath);
}
}
});
}
return response;
}
}
\ No newline at end of file
@LOGIC/@UIACTION/系统预置/sys/当前流程步骤/LOGIC.vue.ftl
浏览文件 @
f2103280
...
@@ -12,21 +12,19 @@
...
@@ -12,21 +12,19 @@
* @memberof <#if item.getPSControlContainer?? && item.getPSControlContainer()??>${srfclassname('${item.getPSControlContainer().name}')}Base</#if>
* @memberof <#if item.getPSControlContainer?? && item.getPSControlContainer()??>${srfclassname('${item.getPSControlContainer().name}')}Base</#if>
*/
*/
public async ${item.getFullCodeName()}(args: any[], contextJO: any = {}, paramJO: any = {}, $event?: any, xData?: any, container?: any, srfParentDeName?: string): Promise<any> {
public async ${item.getFullCodeName()}(args: any[], contextJO: any = {}, paramJO: any = {}, $event?: any, xData?: any, container?: any, srfParentDeName?: string): Promise<any> {
let _this:any = this;
let response: any;
if (!xData || !(xData.wfsubmit instanceof Function)) {
if (xData && xData.wfsubmit instanceof Function) {
return;
const _data = {};
}
response = await xData.wfsubmit(args);
xData.wfsubmit(args).then((response: any) => {
if (!response || response.status !== 200) {
return;
}
}
if (response && response.status === 200) {
const { data: _data } = response;
const { data: _data } = response;
if (container.viewdata) {
if (container.viewdata) {
container.$emit('viewdataschange', [{ ..._data }]);
container.$emit('viewdataschange', [{ ..._data }]);
container.$emit('close');
container.$emit('close');
} else if (_this.$tabPageExp) {
} else if (_this.$tabPageExp) {
container.$tabPageExp.onClose(container.$route.fullPath);
container.$tabPageExp.onClose(container.$route.fullPath);
}
}
});
}
return response;
}
}
\ No newline at end of file
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录