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;