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

update:向导面板逻辑调整

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