From cbd022aed3bf619ece273fcf68a28374dd1edb56 Mon Sep 17 00:00:00 2001 From: shijingjing <1789544664@qq.com> Date: Thu, 7 Apr 2022 15:35:23 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=85=E5=9F=BA=E5=9C=B0=E6=96=B0=E5=A2=9E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../AppHouseManagement/components/Add.vue | 66 +++++++++---------- .../AppHouseManagement/components/List.vue | 30 +++++---- .../apps/AppLandTransfer/components/List.vue | 1 + 3 files changed, 53 insertions(+), 44 deletions(-) diff --git a/project/xiushan/apps/AppHouseManagement/components/Add.vue b/project/xiushan/apps/AppHouseManagement/components/Add.vue index 1904d37b..0fc6f882 100644 --- a/project/xiushan/apps/AppHouseManagement/components/Add.vue +++ b/project/xiushan/apps/AppHouseManagement/components/Add.vue @@ -11,7 +11,6 @@ 保存 @@ -108,7 +107,8 @@ export default { return { id: '', form: { - unifiedCode: '', + useCertificate: '', + }, isEdit: false, radioFrom: '' @@ -117,7 +117,7 @@ export default { computed: { rules() { return { - unifiedCode: [{required: true, message: '请输入', trigger: 'blur'}] + useCertificate: [{required: true, message: '请输入', trigger: 'blur'}] } }, ...mapState(['user']) @@ -137,28 +137,28 @@ export default { }) }, getDetail(id) { - // this.instance.post(`/appcreditadminstrativelicense/queryDetailById?id=${id}`).then(res => { - // if (res.code === 0) { - // this.data = res.data - // } - // }) + this.instance.post(`/apphomesteadinfo/queryDetailById?id=${id}`).then(res => { + if (res.code === 0) { + this.data = res.data + } + }) }, confirm() { - // this.$refs.form.validate((valid) => { - // if (valid) { - // this.instance.post(`/appcreditadminstrativelicense/addOrUpdate`, { - // ...this.forms, - // id: this.params.id || '', - // }).then(res => { - // if (res.code == 0) { - // this.$message.success('提交成功') - // setTimeout(() => { - // this.cancel(true) - // }, 600) - // } - // }) - // } - // }) + this.$refs.form.validate((valid) => { + if (valid) { + this.instance.post(`/apphomesteadinfo/addOrUpdate`, { + ...this.forms, + id: this.params.id || '', + }).then(res => { + if (res.code == 0) { + this.$message.success('提交成功') + setTimeout(() => { + this.cancel(true) + }, 600) + } + }) + } + }) }, }, } diff --git a/project/xiushan/apps/AppHouseManagement/components/List.vue b/project/xiushan/apps/AppHouseManagement/components/List.vue index 9bddbd7b..15e19e27 100644 --- a/project/xiushan/apps/AppHouseManagement/components/List.vue +++ b/project/xiushan/apps/AppHouseManagement/components/List.vue @@ -1,8 +1,8 @@