diff --git a/src/views/followupentry/index.vue b/src/views/followupentry/index.vue index 7e501e9964cbea147a0218d7e9e7cde4486aeace..5fe9b91cefeeae96fa1524fce14b8c58589c8969 100644 --- a/src/views/followupentry/index.vue +++ b/src/views/followupentry/index.vue @@ -1,7 +1,11 @@ @@ -13,14 +17,11 @@ export default { ConfigForms, }, data() { - return { - } - }, - created() { + return {} }, + created() {}, methods: {}, } - + diff --git a/src/views/followupresearch/index.vue b/src/views/followupresearch/index.vue index a235e145372099816e3dd0f479b689d68bc62700..c1d532ffb57a9f2adbb8e709b3bd4c05d834a21a 100644 --- a/src/views/followupresearch/index.vue +++ b/src/views/followupresearch/index.vue @@ -280,9 +280,9 @@ export default { }, rowOpration(data, i) { console.log("跳转", data, i) + sessionStorage.setItem("formEdit", JSON.stringify(data)) this.$router.push({ path: "/followupentry", - query: { formEdit: JSON.stringify(data) }, }) }, async handleSearch() { diff --git a/src/views/screening/components/ConfigForms.vue b/src/views/screening/components/ConfigForms.vue index bce1cd712b8563ac33e27de0b27664d70427d96f..8b63c4322e30a64d32dff49d7b776e1e2f6ab120 100644 --- a/src/views/screening/components/ConfigForms.vue +++ b/src/views/screening/components/ConfigForms.vue @@ -210,9 +210,11 @@ export default { }, }, created() { - // 字典formType 1 筛查表单 + // 字典formType 1 筛查表单 2随访表单 // console.log('回显2',this.formEdit) this.getCurrentFormByType(this.formType) + console.log(this.$route.path) + this.infoCompelete = this.$route.path == "/followupentry" ? true : false }, methods: { handleConfirm(data, done, cb) { @@ -244,7 +246,7 @@ export default { )[0] formTab.temporarySave() // console.log(formTab) - } else if (type == 2) { + } else if (type == 3) { //提交 this.dialogType = "submit" this.$refs.showDialog.dialogVisible = true diff --git a/src/views/screening/components/FormTab.vue b/src/views/screening/components/FormTab.vue index 0760567c91a75a95f22a2c72bc2e4b021d9816af..4ca66e855e492f14f81b35ee918f487152166514 100644 --- a/src/views/screening/components/FormTab.vue +++ b/src/views/screening/components/FormTab.vue @@ -385,8 +385,14 @@ export default { }, }, created() { - if (this.$route.query.formEdit) { - this.formData.formEdit = JSON.parse(this.$route.query.formEdit) + if (sessionStorage.getItem("formEdit")) { + let data = JSON.parse(sessionStorage.getItem("formEdit")) + for (const key in data) { + if (typeof data[key] == "number") { + data[key] = data[key] + "" + } + } + this.formData.formEdit = data } this.initForm() if (this.getAll) { diff --git a/src/views/screening/components/mixin.js b/src/views/screening/components/mixin.js index c9535b74419467e79d4b991f6bb617be6ed2450a..c33ee4ef1bb158bf29334ff1e7031db7babb77df 100644 --- a/src/views/screening/components/mixin.js +++ b/src/views/screening/components/mixin.js @@ -28,7 +28,7 @@ export default { let i = this.activeName.split("index")[1] - 0 i++ if (i == 6) { - this.onSubmit(2) + this.onSubmit(3) return } else { this.activeName = "index" + i