Commit f9bca93c authored by miaojiale's avatar miaojiale

修改每个表单提交数据

parent 26e91946
......@@ -179,7 +179,11 @@ export default {
},
},
created() {
if (sessionStorage.getItem("formEdit")) {
if (
this.formType == "2" &&
sessionStorage.getItem("formEdit") &&
this.activeName == "index0"
) {
let data = JSON.parse(sessionStorage.getItem("formEdit"))
for (const key in data) {
if (typeof data[key] == "number") {
......@@ -188,7 +192,7 @@ export default {
}
this.formData.formEdit = data
}
this.initForm()
this.initForm() //! 随防筛查通用的设置form
if (this.getAll) {
// 监听patientId 获取页面所有数据
this.$watch(
......@@ -208,6 +212,10 @@ export default {
},
{ immediate: true }
)
} else {
this.$nextTick(() => {
this.$refs.form && this.$refs.form.resetForm()
})
}
}
},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment