Commit 856fbd7e authored by miaojiale's avatar miaojiale

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

2.处理按钮逻辑
parent 567bc658
<template>
<!-- 随访调查录入 -->
<div>
<ConfigForms form-type="2" formClass="follow-form"></ConfigForms>
<ConfigForms
form-type="2"
formClass="follow-form"
:disabled="false"
></ConfigForms>
</div>
</template>
......@@ -13,14 +17,11 @@ export default {
ConfigForms,
},
data() {
return {
}
},
created() {
return {}
},
created() {},
methods: {},
}
</script>
<style lang="scss">
</style>
<style lang="scss"></style>
......@@ -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() {
......
......@@ -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
......
......@@ -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) {
......
......@@ -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
......
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