提交 0d83f007 编写于 作者: zhangpingchuan's avatar zhangpingchuan

update:更新视图关闭功能(支持无tab分页情况)

上级 db9405aa
...@@ -25,6 +25,8 @@ ...@@ -25,6 +25,8 @@
_this.$emit('close'); _this.$emit('close');
} else if (_this.$tabPageExp) { } else if (_this.$tabPageExp) {
_this.$tabPageExp.onClose(_this.$route.fullPath); _this.$tabPageExp.onClose(_this.$route.fullPath);
} else{
_this.$router.back();
} }
}); });
} }
\ No newline at end of file
...@@ -613,6 +613,8 @@ ${P.getLogicCode(uiAction, "LOGIC.vue").code} ...@@ -613,6 +613,8 @@ ${P.getLogicCode(uiAction, "LOGIC.vue").code}
_view.$emit('close', Array.isArray(args)?args:[args]); _view.$emit('close', Array.isArray(args)?args:[args]);
} else if (_view.$tabPageExp) { } else if (_view.$tabPageExp) {
_view.$tabPageExp.onClose(_view.$route.fullPath); _view.$tabPageExp.onClose(_view.$route.fullPath);
}else{
_view.$router.back();
} }
} }
<#if view.isPSDEView()> <#if view.isPSDEView()>
......
...@@ -237,6 +237,8 @@ ${P.getLogicCode(uiAction, "LOGIC.vue").code} ...@@ -237,6 +237,8 @@ ${P.getLogicCode(uiAction, "LOGIC.vue").code}
_view.$emit('close', Array.isArray(args)?args:[args]); _view.$emit('close', Array.isArray(args)?args:[args]);
} else if (_view.$tabPageExp) { } else if (_view.$tabPageExp) {
_view.$tabPageExp.onClose(_view.$route.fullPath); _view.$tabPageExp.onClose(_view.$route.fullPath);
}else{
_view.$router.back();
} }
} }
<#if view.isPSDEView()> <#if view.isPSDEView()>
......
...@@ -117,6 +117,8 @@ ...@@ -117,6 +117,8 @@
_this.$emit('close'); _this.$emit('close');
} else if (_this.$tabPageExp) { } else if (_this.$tabPageExp) {
_this.$tabPageExp.onClose(_this.$route.fullPath); _this.$tabPageExp.onClose(_this.$route.fullPath);
}else{
_this.$router.back();
} }
}).catch((response: any) => { }).catch((response: any) => {
if (response && response.status === 401) { if (response && response.status === 401) {
......
...@@ -146,6 +146,8 @@ import AppCenterService from '@/service/app/app-center-service'; ...@@ -146,6 +146,8 @@ import AppCenterService from '@/service/app/app-center-service';
this.$emit('close'); this.$emit('close');
} else if (this.$tabPageExp) { } else if (this.$tabPageExp) {
this.$tabPageExp.onClose(this.$route.fullPath); this.$tabPageExp.onClose(this.$route.fullPath);
} else{
this.$router.back();
} }
}); });
} }
...@@ -246,6 +248,8 @@ import AppCenterService from '@/service/app/app-center-service'; ...@@ -246,6 +248,8 @@ import AppCenterService from '@/service/app/app-center-service';
this.$emit('close'); this.$emit('close');
} else if (this.$tabPageExp) { } else if (this.$tabPageExp) {
this.$tabPageExp.onClose(this.$route.fullPath); this.$tabPageExp.onClose(this.$route.fullPath);
}else{
this.$router.back();
} }
this.$Notice.success({ title: '', desc: (this.$t('app.formpage.workflow.submitsuccess') as string) }); this.$Notice.success({ title: '', desc: (this.$t('app.formpage.workflow.submitsuccess') as string) });
}).catch((error: any) => { }).catch((error: any) => {
......
...@@ -187,6 +187,8 @@ import AppCenterService from '@/service/app/app-center-service'; ...@@ -187,6 +187,8 @@ import AppCenterService from '@/service/app/app-center-service';
this.$emit('close'); this.$emit('close');
} else if (this.$tabPageExp) { } else if (this.$tabPageExp) {
this.$tabPageExp.onClose(this.$route.fullPath); this.$tabPageExp.onClose(this.$route.fullPath);
}else{
this.$router.back();
} }
}); });
} }
...@@ -287,6 +289,8 @@ import AppCenterService from '@/service/app/app-center-service'; ...@@ -287,6 +289,8 @@ import AppCenterService from '@/service/app/app-center-service';
this.$emit('close'); this.$emit('close');
} else if (this.$tabPageExp) { } else if (this.$tabPageExp) {
this.$tabPageExp.onClose(this.$route.fullPath); this.$tabPageExp.onClose(this.$route.fullPath);
}else{
this.$router.back();
} }
this.$Notice.success({ title: '', desc: (this.$t('app.formpage.workflow.submitsuccess') as string) }); this.$Notice.success({ title: '', desc: (this.$t('app.formpage.workflow.submitsuccess') as string) });
}).catch((error: any) => { }).catch((error: any) => {
......
...@@ -1089,6 +1089,8 @@ ${P.getLogicCode(uiAction, "LOGIC.vue").code} ...@@ -1089,6 +1089,8 @@ ${P.getLogicCode(uiAction, "LOGIC.vue").code}
_view.$emit('close', Array.isArray(args)?args:[args]); _view.$emit('close', Array.isArray(args)?args:[args]);
} else if (_view.$tabPageExp) { } else if (_view.$tabPageExp) {
_view.$tabPageExp.onClose(_view.$route.fullPath); _view.$tabPageExp.onClose(_view.$route.fullPath);
} else {
_view.$router.back();
} }
} }
<#if view.isPSDEView()> <#if view.isPSDEView()>
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册