优化关闭弹窗再次打开数据显示问题
This commit is contained in:
parent
b6794b7fe9
commit
f20f9a5a8b
@ -81,7 +81,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</el-card>
|
</el-card>
|
||||||
<!--审核-->
|
<!--审核-->
|
||||||
<el-dialog v-if="dialogVisible" :title="isExamine ? '审核' : '详情'" :visible.sync="dialogVisible" width="700px">
|
<el-dialog v-if="dialogVisible" :before-close="handleClose" :title="isExamine ? '审核' : '详情'" :visible.sync="dialogVisible" width="700px">
|
||||||
<div v-loading="loading">
|
<div v-loading="loading">
|
||||||
<el-form ref="ruleForm" :model="ruleForm" :rules="rules" label-width="120px" class="demo-ruleForm">
|
<el-form ref="ruleForm" :model="ruleForm" :rules="rules" label-width="120px" class="demo-ruleForm">
|
||||||
<el-form-item label="'封面:'">
|
<el-form-item label="'封面:'">
|
||||||
@ -249,9 +249,10 @@ export default {
|
|||||||
onSubmit(item) {
|
onSubmit(item) {
|
||||||
|
|
||||||
if (this.ruleForm.status == 1) {
|
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.$message.success(res.message)
|
||||||
this.dialogVisible = false
|
this.dialogVisible = false
|
||||||
|
this.ruleForm.float_rate = ''
|
||||||
this.formData = res.data
|
this.formData = res.data
|
||||||
}).catch(({ message }) => {
|
}).catch(({ message }) => {
|
||||||
this.$message.error(message)
|
this.$message.error(message)
|
||||||
@ -260,6 +261,7 @@ export default {
|
|||||||
resaleStatus(item.community_id, { "status": -1, "refusal": this.ruleForm.refusal }).then((res) => {
|
resaleStatus(item.community_id, { "status": -1, "refusal": this.ruleForm.refusal }).then((res) => {
|
||||||
this.$message.success(res.message)
|
this.$message.success(res.message)
|
||||||
this.dialogVisible = false
|
this.dialogVisible = false
|
||||||
|
this.ruleForm.refusal = ''
|
||||||
this.formData = res.data
|
this.formData = res.data
|
||||||
}).catch(({ message }) => {
|
}).catch(({ message }) => {
|
||||||
this.$message.error(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) {
|
onAudit(id) {
|
||||||
this.community_id = id;
|
this.community_id = id;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user