浏览代码

2024.08.26
- 涉及表单重置方法调用组件更改调用顺序;

zweiqin 7 月之前
父节点
当前提交
8154a93d0c

+ 1 - 1
src/views/active/combinationActivities/components/RegistrationReview.vue

@@ -76,12 +76,12 @@ export default {
     initList() {
     },
     handleOpen(params = {}) {
+      this.$refs.formData && this.$refs.formData.resetFields()
       this.modalOptions.title = '店铺的报名审核'
       this.formData.signId = params.signId
       // this.formData = Object.assign(this.$options.data().formData, params)
       this.visible = true
       this.initList()
-      this.$refs.formData && this.$refs.formData.resetFields()
     },
     handleSubmit() {
       this.$refs.formData.validate(async (valid) => {

+ 1 - 1
src/views/business/settlement/components/ApplicationProcessing.vue

@@ -129,11 +129,11 @@ export default {
     },
     handleOpen(params = {}) {
       this.modalOptions.title = '申请处理'
+      this.$refs.formData && this.$refs.formData.resetFields()
       // this.formData = Object.assign(this.$options.data().formData, params)
       this.formData.shopId = params.shopId
       this.visible = true
       this.initList()
-      this.$refs.formData && this.$refs.formData.resetFields()
     },
     handleSubmit() {
       this.$refs.formData.validate(async (valid) => {

+ 1 - 1
src/views/renovation/commoditySystem/components/VirtualSales.vue

@@ -67,12 +67,12 @@ export default {
     },
     handleOpen(params = {}) {
       this.modalOptions.title = '自定义虚拟销量'
+      this.$refs.formData && this.$refs.formData.resetFields()
       this.formData.productId = params.productId
       this.formData.fictitiousNumber = params.fictitiousNumber || 0
       // this.formData = Object.assign(this.$options.data().formData, params)
       this.visible = true
       this.initList()
-      this.$refs.formData && this.$refs.formData.resetFields()
     },
     handleSubmit() {
       this.$refs.formData.validate(async (valid) => {