From 370f0093ffec0284f402dfc5bf5c55a3fe039dee Mon Sep 17 00:00:00 2001 From: yanran200730 Date: Thu, 1 Dec 2022 09:41:24 +0800 Subject: [PATCH 1/4] bug --- .../apps/AppHomeReport/components/Detail.vue | 22 ++++++------------- 1 file changed, 7 insertions(+), 15 deletions(-) diff --git a/project/pingchang/apps/AppHomeReport/components/Detail.vue b/project/pingchang/apps/AppHomeReport/components/Detail.vue index 8614b6f5..55206b89 100644 --- a/project/pingchang/apps/AppHomeReport/components/Detail.vue +++ b/project/pingchang/apps/AppHomeReport/components/Detail.vue @@ -134,7 +134,7 @@ - + - + - + - + - + - - - - - + - + From a9ad0a47aeb915f8c9d656e4e6343f45177eff28 Mon Sep 17 00:00:00 2001 From: yanran200730 Date: Thu, 1 Dec 2022 09:50:28 +0800 Subject: [PATCH 2/4] =?UTF-8?q?=E5=B9=B3=E6=98=8C=E7=96=AB=E6=83=85?= =?UTF-8?q?=E9=98=B2=E6=8E=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/Detail.vue | 100 +++++++++++++++++- .../apps/AppHomeReport/components/Detail.vue | 3 +- 2 files changed, 100 insertions(+), 3 deletions(-) diff --git a/project/pingchang/apps/AppBayonetRegistration/components/Detail.vue b/project/pingchang/apps/AppBayonetRegistration/components/Detail.vue index 91b0abf9..dc7e9e85 100644 --- a/project/pingchang/apps/AppBayonetRegistration/components/Detail.vue +++ b/project/pingchang/apps/AppBayonetRegistration/components/Detail.vue @@ -8,6 +8,9 @@
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -167,12 +228,16 @@ currIndex: 0, isLoading: false, tableData: [], + form: { + idNumber: '' + }, communityInfo: {}, colConfigs: [ {prop: 'name', label: '姓名', align: 'center' }, {prop: 'phone', label: '手机号', align: 'center'} ], - tabList: ['基本信息', '风险处置'] + tabList: ['基本信息', '风险处置'], + dictList: [] } }, @@ -184,9 +249,42 @@ this.getInfo(this.params.id) }) } + + this.getDictList() }, methods: { + getDictList () { + this.instance.post(`/app/appepidemicpreventiongateway/list?size=10000¤t=1`).then(res => { + if (res.code == 0) { + this.dictList = res.data.records.map(v => { + return { + dictName: v.name, + dictValue: v.id + } + }) + } + }) + }, + + onConfirm () { + this.$refs.form.validate((valid) => { + if (valid) { + this.instance.post(`/app/appepidemicpreventionregisterinfo/updateForAdmin`, { + ...this.info, + ...this.form, + id: this.params.id + }).then(res => { + if (res.code == 0) { + this.isShow = false + this.getInfo(this.params.id) + this.$message.success('编辑成功') + } + }) + } + }) + }, + getInfo (id) { this.instance.post(`/app/appepidemicpreventionregisterinfo/queryDetailById?id=${id}`).then(res => { if (res.code === 0) { diff --git a/project/pingchang/apps/AppHomeReport/components/Detail.vue b/project/pingchang/apps/AppHomeReport/components/Detail.vue index 55206b89..cff45a33 100644 --- a/project/pingchang/apps/AppHomeReport/components/Detail.vue +++ b/project/pingchang/apps/AppHomeReport/components/Detail.vue @@ -9,7 +9,7 @@