|
@@ -630,12 +630,19 @@ export default {
|
|
|
}
|
|
|
console.log('发布活动类型', val);
|
|
|
},
|
|
|
+ // 清空
|
|
|
+ clear() {
|
|
|
+ this.rowDetail = '';
|
|
|
+ this.showUploadImage = false;
|
|
|
+ this.filePath = '';
|
|
|
+ this.uploadFileUrl = '';
|
|
|
+ this.fileList = [];
|
|
|
+ this.$refs.endit.setContent(this.contents);
|
|
|
+ },
|
|
|
/**添加按钮 */
|
|
|
add() {
|
|
|
- this.rowDetail = '';
|
|
|
- this.showDetail = true;
|
|
|
this.centerDialogVisible = true;
|
|
|
- this.$refs.endit.setContent(this.contents);
|
|
|
+ this.clear();
|
|
|
this.$refs.upImages.clearImageList();
|
|
|
this.$refs['ruleForm'].resetFields();
|
|
|
},
|
|
@@ -707,14 +714,12 @@ export default {
|
|
|
});
|
|
|
} else if (type == 'clear') {
|
|
|
this.centerDialogVisible = false;
|
|
|
- this.rowDetail = '';
|
|
|
- this.$refs.endit.setContent(this.contents);
|
|
|
+ this.clear();
|
|
|
this.$refs.upImages.clearImageList();
|
|
|
this.$refs['ruleForm'].resetFields();
|
|
|
} else {
|
|
|
this.centerDialogVisible = false;
|
|
|
- this.rowDetail = '';
|
|
|
- this.$refs.endit.setContent(this.contents);
|
|
|
+ this.clear();
|
|
|
this.$refs.upImages.clearImageList();
|
|
|
this.$refs['ruleForm'].resetFields();
|
|
|
}
|