diff --git a/ui/src/pages/affair/AffairManage.vue b/ui/src/pages/affair/AffairManage.vue index 39db1ac..749576f 100644 --- a/ui/src/pages/affair/AffairManage.vue +++ b/ui/src/pages/affair/AffairManage.vue @@ -57,10 +57,11 @@ 查询 + 查询 - 重置 + 重置 @@ -87,7 +88,7 @@ export default { }, flagNotApproved: true, flagApproved: false, - count: 0, + updateKey: Date.now(), DataToRouterView: {} } }, @@ -128,9 +129,15 @@ export default { this.flagNotApproved = false this.flagApproved = true }, - resetForm() { - if (this.flagNotApproved) { - this.$router.go() + resetForm1() { + if (this.flagNotApproved && !this.flagApproved) { + this.formData.title = '' + this.formData.typeId = '' + this.onSubmit1() + } else { + this.formData.title = '' + this.formData.typeId = '' + this.onSubmit2() } } }