区域新增表单优化
This commit is contained in:
parent
87b9e7a436
commit
6219f2675a
@ -33,7 +33,7 @@
|
||||
<a-button
|
||||
v-if="current == 2"
|
||||
style="margin-left: 8px"
|
||||
@click="prev"
|
||||
@click="next"
|
||||
>完成</a-button>
|
||||
<a-button
|
||||
type="default"
|
||||
@ -80,11 +80,17 @@ const next = () => {
|
||||
switch (current.value) {
|
||||
case 0:
|
||||
formModelOperateAdd.value.formSave((bres, data) => {
|
||||
if(bres) current.value++;
|
||||
if (bres) current.value++;
|
||||
});
|
||||
break;
|
||||
case 1: break;
|
||||
case 2: break;
|
||||
case 1:
|
||||
formModel.value.formSave((bres, data) => {
|
||||
if (bres) current.value++;
|
||||
}); break;
|
||||
case 2:
|
||||
formModelOperateAdd.value.formSave((bres, data) => {
|
||||
if (bres) current.value++;
|
||||
}); break;
|
||||
default: break
|
||||
}
|
||||
};
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user