From f20f9a5a8be160db77fd5e86dcbedcbd48f80a0c Mon Sep 17 00:00:00 2001 From: jia <1451658316@qq.com> Date: Mon, 14 Aug 2023 17:49:08 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E5=85=B3=E9=97=AD=E5=BC=B9?= =?UTF-8?q?=E7=AA=97=E5=86=8D=E6=AC=A1=E6=89=93=E5=BC=80=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=E6=98=BE=E7=A4=BA=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/product/ProductResale/index.vue | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/src/views/product/ProductResale/index.vue b/src/views/product/ProductResale/index.vue index 7244723..b6258ea 100644 --- a/src/views/product/ProductResale/index.vue +++ b/src/views/product/ProductResale/index.vue @@ -81,7 +81,7 @@ - +
@@ -247,11 +247,12 @@ export default { }, // 审核 审核状态 1:审核通过 -1:拒绝 onSubmit(item) { - + if (this.ruleForm.status == 1) { - resaleStatus(item.community_id, { "status": 1 ,float_rate:this.ruleForm.float_rate}).then((res) => { + resaleStatus(item.community_id, { "status": 1, float_rate: this.ruleForm.float_rate }).then((res) => { this.$message.success(res.message) this.dialogVisible = false + this.ruleForm.float_rate = '' this.formData = res.data }).catch(({ message }) => { this.$message.error(message) @@ -260,6 +261,7 @@ export default { resaleStatus(item.community_id, { "status": -1, "refusal": this.ruleForm.refusal }).then((res) => { this.$message.success(res.message) this.dialogVisible = false + this.ruleForm.refusal = '' this.formData = res.data }).catch(({ message }) => { this.$message.error(message) @@ -267,6 +269,12 @@ export default { } }, + //关闭弹窗 + handleClose() { + this.dialogVisible = false + this.ruleForm.refusal = '' + this.ruleForm.float_rate = 0 + }, // 审核 onAudit(id) { this.community_id = id;