提交 03fadbff 编写于 作者: zhujiamin's avatar zhujiamin

DEBUG 选项操作视图选择值后 退出不显示警告

上级 0768490f
<#assign userCloseView>
let result = await this.cheackChange();
if(result){
if(this.viewDefaultUsage==="indexView" && this.$route.path === '/appindexview'){
this.quitFun();
return;
}
if (this.viewDefaultUsage === "routerView" ) {
if(window.history.length == 1 && this.$viewTool.getThirdPartyName()){
this.quitFun();
}else{
this.$store.commit("deletePage", this.$route.fullPath);
this.$router.go(-1);
}
}
if (this.viewDefaultUsage === "actionView") {
this.$emit("close", { status: "success", action: "close", data: args instanceof MouseEvent ? null : args });
}
}
</#assign>
<#ibizinclude>
../@MACRO/LAYOUTPANEL_VIEW.template.ftl
</#ibizinclude>
......@@ -44,6 +65,28 @@
}
}
/**
* 检查表单是否修改
*
* @param {any[]} args
* @memberof PimEducationMobEditViewBase
*/
public async cheackChange(): Promise<any>{
const view = this.$store.getters['viewaction/getAppView'](this.viewtag);
if (view && view.viewdatachange) {
const title: any = this.$t('app.tabpage.sureclosetip.title');
const contant: any = this.$t('app.tabpage.sureclosetip.content');
const result = await this.$notice.confirm(title, contant, this.$store);
if (result) {
this.$store.commit('viewaction/setViewDataChange', { viewtag: this.viewtag, viewdatachange: false });
return true;
} else {
return false;
}
}else{
return true;
}
}
<#ibizinclude>
../@MACRO/VIEW_BOTTOM-BASE.vue.ftl
</#ibizinclude>
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册