From 035686e0bc4268d3777f0fe9d912678adede8b8e Mon Sep 17 00:00:00 2001 From: Liuyujia <18050528999@163.com> Date: Mon, 6 Feb 2023 17:30:53 +0800 Subject: [PATCH] =?UTF-8?q?=E9=9A=8F=E8=AE=BF=E8=B0=83=E6=9F=A5=E6=9F=A5?= =?UTF-8?q?=E8=AF=A2=E5=A2=9E=E5=8A=A0=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils/index.js | 1 - src/views/followupresearch/index.vue | 21 +++++++++++++++++++-- 2 files changed, 19 insertions(+), 3 deletions(-) diff --git a/src/utils/index.js b/src/utils/index.js index c7f7c1c..dc2d158 100644 --- a/src/utils/index.js +++ b/src/utils/index.js @@ -489,7 +489,6 @@ export function formatDicList(list, value, connector = ",") { } }) } - console.log('字典', list, value, result) return result } /** diff --git a/src/views/followupresearch/index.vue b/src/views/followupresearch/index.vue index 45ffb40..37197a3 100644 --- a/src/views/followupresearch/index.vue +++ b/src/views/followupresearch/index.vue @@ -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 + } + }) + }, }, } -- 2.22.0