Commit 035686e0 authored by 刘予佳's avatar 刘予佳

随访调查查询增加字段

parent 0605e72c
......@@ -489,7 +489,6 @@ export function formatDicList(list, value, connector = ",") {
}
})
}
console.log('字典', list, value, result)
return result
}
/**
......
......@@ -25,6 +25,7 @@
import FormComponents from "@/components/FormComponents"
import CustomsTable from "@/components/CustomsTable"
import paginationMixin from "@/components/TabComponents/mixin"
import { getCurrentFormByType } from "@/api/coop-group.js"
import { getFollowSurvey } from "@/api/followup"
import { getDictDetail } from "@/api/dict.js"
export default {
......@@ -35,6 +36,7 @@ export default {
mixins: [paginationMixin],
data() {
return {
formId:"", //随访表单类型
listLoading: false,
keyword: "",
modifiedFlag: false,
......@@ -308,6 +310,7 @@ export default {
this.formEdit = JSON.parse(sessionStorage.getItem('followResearch-form')) ||{}
this.pageSize = Number(sessionStorage.getItem('followResearch-pageSize')) || 1
this.pageIndex = Number(sessionStorage.getItem('followResearch-pageIndex')) || 10
this.getCurrentFormByType(2)
// this.handleSearch() //调试注释
},
methods: {
......@@ -337,7 +340,9 @@ export default {
this.listLoading = true
let params={
pageSize:this.pageSize,
pageNum:this.pageIndex
pageNum:this.pageIndex,
formId:this.formId,
patientFrom:sessionStorage.getItem('selectedIndex') //筛查场景
}
if(this.formEdit){
params=Object.assign(this.formEdit,params)
......@@ -385,7 +390,19 @@ export default {
// }
// }
// })
// }
// },
//获取随访表单类型
getCurrentFormByType(type) {
getCurrentFormByType({
type,
groupId: this.$store.state.user.group.groupId || '',
})
.then((res) => {
if (res.code === 1) {
this.formId = res.data[0].id
}
})
},
},
}
</script>
......
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