log提交
parent
488fe57579
commit
97a2dd9ef6
|
|
@ -115,11 +115,13 @@
|
|||
|
||||
// 下一页
|
||||
function formNextClick() {
|
||||
console.log('click')
|
||||
isNextSteps.value = true;
|
||||
isSubmitClick.value = false;
|
||||
}
|
||||
// 等待下一页的回传数据
|
||||
function setStepsCurrent(flag) {
|
||||
console.log('setStepsCurrent',flag)
|
||||
if (flag) {
|
||||
stepsCurrent.value = 1;
|
||||
isNextSteps.value = true;
|
||||
|
|
|
|||
|
|
@ -245,18 +245,21 @@
|
|||
watch(
|
||||
() => props.isNextSteps,
|
||||
async () => {
|
||||
console.log('props.isNextSteps',props.isNextSteps)
|
||||
if (props.isNextSteps) {
|
||||
// 判断数据表字段重复
|
||||
console.log('formModuleRef',formModuleRef)
|
||||
if (formModuleRef) {
|
||||
try {
|
||||
const valid = await formModuleRef.validate();
|
||||
console.log('valid.errorFields',valid.errorFields,valid)
|
||||
if (valid.errorFields) {
|
||||
emit('set-steps-current', false);
|
||||
} else {
|
||||
emit('set-steps-current', true);
|
||||
}
|
||||
} catch (error) {
|
||||
console.log('error',error)
|
||||
if (error) {
|
||||
emit('set-steps-current', false);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue