|
@@ -252,6 +252,7 @@ export default {
|
|
|
},
|
|
|
methods: {
|
|
|
show(row) {
|
|
|
+ this.resetDialog()
|
|
|
if (row) {
|
|
|
const activitiesAddress = row.activitiesAddress !== DEFAULT_ACTIVITY_ADDRESS ? row.activitiesAddress : ''
|
|
|
let activitiesAddressTemp = ''
|
|
@@ -320,6 +321,13 @@ export default {
|
|
|
},
|
|
|
|
|
|
close() {
|
|
|
+ this.resetDialog()
|
|
|
+ this.$nextTick(() => {
|
|
|
+ this.activityVisible = false
|
|
|
+ })
|
|
|
+ },
|
|
|
+
|
|
|
+ resetDialog() {
|
|
|
this.activityForm = getDefaultActivityForm()
|
|
|
this.currentStep = 0
|
|
|
this.$refs.elCarouselRef.setActiveItem('step-one')
|
|
@@ -329,9 +337,6 @@ export default {
|
|
|
this.$refs.activityNextModalFormRef.resetFields()
|
|
|
this.selectAddressLabel = ''
|
|
|
typeof this.stopObserver === 'function' && this.stopObserver()
|
|
|
- this.$nextTick(() => {
|
|
|
- this.activityVisible = false
|
|
|
- })
|
|
|
},
|
|
|
|
|
|
// 计算swiper的高度
|