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 @@