element 新增修改公用一个弹窗,表单resetFields不生效

编辑时 表单赋值使用 this.$nextTick 即可

this.$nextTick(() => {
this.formData = {
id: row.id,
taskCode: row.taskCode,
fullName: row.fullName,
priority: row.priority,
taskType: row.taskType,
robotId: row.robotId,
starTtime: row.starTtime
};
});

posted @ 2023-07-12 15:23  卢老师不想编程  阅读(10)  评论(0编辑  收藏  举报