提交 4ad2518a 编写于 作者: tony001's avatar tony001

调整状态向导面板 fix

上级 7b74926a
...@@ -469,9 +469,7 @@ ...@@ -469,9 +469,7 @@
public setPopVisiable(name:string,isVisiable:boolean){ public setPopVisiable(name:string,isVisiable:boolean){
this.stepVisiable[name] = isVisiable; this.stepVisiable[name] = isVisiable;
(this.$refs[name+'_popover'] as any).showPopper = isVisiable; (this.$refs[name+'_popover'] as any).showPopper = isVisiable;
if(isVisiable){ this.curShow = isVisiable?name:"";
this.curShow = name;
}
} }
/** /**
...@@ -485,6 +483,7 @@ ...@@ -485,6 +483,7 @@
if(curIndex > activeIndex){ if(curIndex > activeIndex){
setTimeout(() =>{ setTimeout(() =>{
(this.$refs[name+'_popover'] as any).showPopper = false; (this.$refs[name+'_popover'] as any).showPopper = false;
this.curShow = "";
},0) },0)
return; return;
} }
...@@ -492,6 +491,8 @@ ...@@ -492,6 +491,8 @@
if(this.stepVisiable[name]){ if(this.stepVisiable[name]){
this.curShow = name; this.curShow = name;
this.formLoad(name); this.formLoad(name);
}else{
this.curShow = "";
} }
} }
...@@ -573,6 +574,9 @@ ...@@ -573,6 +574,9 @@
* @memberof ${srfclassname('${ctrl.codeName}')}Base * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public handleClick(mode:string){ public handleClick(mode:string){
if(Object.is(this.curShow,"")){
return;
}
let curIndex:number = this.wizardForms.indexOf(this.curShow); let curIndex:number = this.wizardForms.indexOf(this.curShow);
if(Object.is(mode,"PRE") && (curIndex !== 0)){ if(Object.is(mode,"PRE") && (curIndex !== 0)){
this.setPopVisiable(this.wizardForms[curIndex],false); this.setPopVisiable(this.wizardForms[curIndex],false);
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册