Commit 856fbd7e authored by miaojiale's avatar miaojiale

1.处理数据为数字类型转为字符串类型

2.处理按钮逻辑
parent 567bc658
<template> <template>
<!-- 随访调查录入 --> <!-- 随访调查录入 -->
<div> <div>
<ConfigForms form-type="2" formClass="follow-form"></ConfigForms> <ConfigForms
form-type="2"
formClass="follow-form"
:disabled="false"
></ConfigForms>
</div> </div>
</template> </template>
...@@ -13,14 +17,11 @@ export default { ...@@ -13,14 +17,11 @@ export default {
ConfigForms, ConfigForms,
}, },
data() { data() {
return { return {}
}
},
created() {
}, },
created() {},
methods: {}, methods: {},
} }
</script> </script>
<style lang="scss"> <style lang="scss"></style>
</style>
...@@ -280,9 +280,9 @@ export default { ...@@ -280,9 +280,9 @@ export default {
}, },
rowOpration(data, i) { rowOpration(data, i) {
console.log("跳转", data, i) console.log("跳转", data, i)
sessionStorage.setItem("formEdit", JSON.stringify(data))
this.$router.push({ this.$router.push({
path: "/followupentry", path: "/followupentry",
query: { formEdit: JSON.stringify(data) },
}) })
}, },
async handleSearch() { async handleSearch() {
......
...@@ -210,9 +210,11 @@ export default { ...@@ -210,9 +210,11 @@ export default {
}, },
}, },
created() { created() {
// 字典formType 1 筛查表单 // 字典formType 1 筛查表单 2随访表单
// console.log('回显2',this.formEdit) // console.log('回显2',this.formEdit)
this.getCurrentFormByType(this.formType) this.getCurrentFormByType(this.formType)
console.log(this.$route.path)
this.infoCompelete = this.$route.path == "/followupentry" ? true : false
}, },
methods: { methods: {
handleConfirm(data, done, cb) { handleConfirm(data, done, cb) {
...@@ -244,7 +246,7 @@ export default { ...@@ -244,7 +246,7 @@ export default {
)[0] )[0]
formTab.temporarySave() formTab.temporarySave()
// console.log(formTab) // console.log(formTab)
} else if (type == 2) { } else if (type == 3) {
//提交 //提交
this.dialogType = "submit" this.dialogType = "submit"
this.$refs.showDialog.dialogVisible = true this.$refs.showDialog.dialogVisible = true
......
...@@ -385,8 +385,14 @@ export default { ...@@ -385,8 +385,14 @@ export default {
}, },
}, },
created() { created() {
if (this.$route.query.formEdit) { if (sessionStorage.getItem("formEdit")) {
this.formData.formEdit = JSON.parse(this.$route.query.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() this.initForm()
if (this.getAll) { if (this.getAll) {
......
...@@ -28,7 +28,7 @@ export default { ...@@ -28,7 +28,7 @@ export default {
let i = this.activeName.split("index")[1] - 0 let i = this.activeName.split("index")[1] - 0
i++ i++
if (i == 6) { if (i == 6) {
this.onSubmit(2) this.onSubmit(3)
return return
} else { } else {
this.activeName = "index" + i this.activeName = "index" + i
......
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