提交 d0870b23 编写于 作者: KK's avatar KK

update:向导面板逻辑调整

上级 7f0c2c67
...@@ -32,9 +32,9 @@ ...@@ -32,9 +32,9 @@
</#if> </#if>
</template> </template>
<ion-footer class="app-wizard-footer"> <ion-footer class="app-wizard-footer">
<app-mob-button v-show="!isDisabled('PREV')" type="primary" :text="$t('app.button.previousStep')" @click="onClickPrev()" /> <app-mob-button v-show="!isHidden('PREV')" type="primary" :text="$t('app.button.previousStep')" @click="onClickPrev()" />
<app-mob-button v-show="!isDisabled('NEXT')" type="primary" :text="$t('app.button.nextStep')" @click="onClickNext()" /> <app-mob-button v-show="!isHidden('NEXT')" type="primary" :text="$t('app.button.nextStep')" @click="onClickNext()" />
<app-mob-button v-show="!isDisabled('FINISH')" type="primary" :text="$t('app.button.finish')" @click="onClickFinish()" /> <app-mob-button v-show="!isHidden('FINISH')" type="primary" :text="$t('app.button.finish')" @click="onClickFinish()" />
</ion-footer> </ion-footer>
</div> </div>
</template> </template>
...@@ -383,7 +383,7 @@ ...@@ -383,7 +383,7 @@
* @param {string} type * @param {string} type
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
public isDisabled(type: string) { public isHidden(type: string) {
const actions: Array<string> = this.stepActions[this.activeForm] const actions: Array<string> = this.stepActions[this.activeForm]
if(actions && actions.indexOf(type) < 0) { if(actions && actions.indexOf(type) < 0) {
return true; return true;
......
...@@ -1171,7 +1171,7 @@ import { Util } from '@/ibiz-core/utils'; ...@@ -1171,7 +1171,7 @@ import { Util } from '@/ibiz-core/utils';
if (response && response.status === 200) { if (response && response.status === 200) {
const data = response.data; const data = response.data;
this.onFormLoad(data, 'save'); this.onFormLoad(data, 'save');
if(!opt.saveEmit){ if(opt.saveEmit){
this.$emit('save', data); this.$emit('save', data);
} }
<#if ctrl.getControlType() == 'FORM'> <#if ctrl.getControlType() == 'FORM'>
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册