线上环境表单发布无法点击下一步问题,及上两次log提交删除
parent
74051bc7bd
commit
f1aa1ad40d
|
|
@ -115,13 +115,11 @@
|
||||||
|
|
||||||
// 下一页
|
// 下一页
|
||||||
function formNextClick() {
|
function formNextClick() {
|
||||||
console.log('click')
|
|
||||||
isNextSteps.value = true;
|
isNextSteps.value = true;
|
||||||
isSubmitClick.value = false;
|
isSubmitClick.value = false;
|
||||||
}
|
}
|
||||||
// 等待下一页的回传数据
|
// 等待下一页的回传数据
|
||||||
function setStepsCurrent(flag) {
|
function setStepsCurrent(flag) {
|
||||||
console.log('setStepsCurrent',flag)
|
|
||||||
if (flag) {
|
if (flag) {
|
||||||
stepsCurrent.value = 1;
|
stepsCurrent.value = 1;
|
||||||
isNextSteps.value = true;
|
isNextSteps.value = true;
|
||||||
|
|
|
||||||
|
|
@ -111,7 +111,8 @@
|
||||||
// 表单选择声明
|
// 表单选择声明
|
||||||
const [registerModal, { openModal }] = useModal();
|
const [registerModal, { openModal }] = useModal();
|
||||||
// 表单ref
|
// 表单ref
|
||||||
let formModuleRef: FormInstance | null = null;
|
// let formModuleRef: FormInstance | null = null;
|
||||||
|
const formModuleRef = ref()
|
||||||
// 版本options
|
// 版本options
|
||||||
const formVerisons = ref([]);
|
const formVerisons = ref([]);
|
||||||
// 上级options
|
// 上级options
|
||||||
|
|
@ -245,21 +246,17 @@
|
||||||
watch(
|
watch(
|
||||||
() => props.isNextSteps,
|
() => props.isNextSteps,
|
||||||
async () => {
|
async () => {
|
||||||
console.log('props.isNextSteps',props.isNextSteps)
|
|
||||||
if (props.isNextSteps) {
|
if (props.isNextSteps) {
|
||||||
// 判断数据表字段重复
|
// 判断数据表字段重复
|
||||||
console.log('formModuleRef',formModuleRef)
|
if (formModuleRef.value) {
|
||||||
if (formModuleRef) {
|
|
||||||
try {
|
try {
|
||||||
const valid = await formModuleRef.validate();
|
const valid = await formModuleRef.value.validate();
|
||||||
console.log('valid.errorFields',valid.errorFields,valid)
|
|
||||||
if (valid.errorFields) {
|
if (valid.errorFields) {
|
||||||
emit('set-steps-current', false);
|
emit('set-steps-current', false);
|
||||||
} else {
|
} else {
|
||||||
emit('set-steps-current', true);
|
emit('set-steps-current', true);
|
||||||
}
|
}
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.log('error',error)
|
|
||||||
if (error) {
|
if (error) {
|
||||||
emit('set-steps-current', false);
|
emit('set-steps-current', false);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue