|
|
@@ -15,7 +15,11 @@
|
|
|
label-width="140px"
|
|
|
class="demo-ruleForm"
|
|
|
>
|
|
|
- <el-form-item label="活动名称:" prop="name" :class="{wanQuan:look}">
|
|
|
+ <el-form-item
|
|
|
+ label="活动名称:"
|
|
|
+ prop="name"
|
|
|
+ :class="{ wanQuan: look }"
|
|
|
+ >
|
|
|
<el-input
|
|
|
placeholder="请输入"
|
|
|
v-model="ruleForm.name"
|
|
|
@@ -23,7 +27,11 @@
|
|
|
show-word-limit
|
|
|
></el-input>
|
|
|
</el-form-item>
|
|
|
- <el-form-item label="活动地点:" prop="address" :class="{wanQuan:look}">
|
|
|
+ <el-form-item
|
|
|
+ label="活动地点:"
|
|
|
+ prop="address"
|
|
|
+ :class="{ wanQuan: look }"
|
|
|
+ >
|
|
|
<el-input
|
|
|
placeholder="请输入"
|
|
|
v-model="ruleForm.address"
|
|
|
@@ -39,7 +47,7 @@
|
|
|
show-word-limit
|
|
|
></el-input>
|
|
|
</el-form-item>
|
|
|
- <div class="row" :class="{none:look}">
|
|
|
+ <div class="row" :class="{ none: look }">
|
|
|
<el-form-item label="参与活动年龄段:">
|
|
|
<span class="biaoshi biaoshi3">*</span>
|
|
|
<el-select
|
|
|
@@ -131,7 +139,7 @@
|
|
|
<div>
|
|
|
<span>活动时间:</span>
|
|
|
<el-date-picker
|
|
|
- style="width:350px"
|
|
|
+ style="width: 350px"
|
|
|
:picker-options="pickerOptions"
|
|
|
value-format="yyyy-MM-dd"
|
|
|
v-model="ruleForm.startDay"
|
|
|
@@ -307,7 +315,8 @@ export default {
|
|
|
return this.$message.warning("图片封面不能为空!");
|
|
|
if (this.ruleForm.filePath === "")
|
|
|
return this.$message.warning("活动顶部配图不能为空!");
|
|
|
- if (!this.ruleForm.startDay) return this.$message.warning("请选择活动时间!");
|
|
|
+ if (!this.ruleForm.startDay)
|
|
|
+ return this.$message.warning("请选择活动时间!");
|
|
|
let timeFlag = false;
|
|
|
let numFlag = false;
|
|
|
let startTimeArr = [];
|
|
|
@@ -425,8 +434,10 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
handleRemove1(file, fileList) {
|
|
|
- this.$message.success("删除成功");
|
|
|
- this.ruleForm.thumb = "";
|
|
|
+ if (file && file.status === "success") {
|
|
|
+ this.$message.success("删除成功");
|
|
|
+ this.ruleForm.thumb = "";
|
|
|
+ }
|
|
|
},
|
|
|
handlePictureCardPreview(file) {
|
|
|
this.dialogImageUrl = file.url;
|
|
|
@@ -462,8 +473,10 @@ export default {
|
|
|
},
|
|
|
// 照片墙2
|
|
|
async handleRemove2(file, fileList) {
|
|
|
- this.$message.success("删除成功");
|
|
|
- this.ruleForm.filePath = "";
|
|
|
+ if (file && file.status === "success") {
|
|
|
+ this.$message.success("删除成功");
|
|
|
+ this.ruleForm.filePath = "";
|
|
|
+ }
|
|
|
},
|
|
|
upload_thumb_successImg2(data) {
|
|
|
this.$message.success("上传图片成功");
|
|
|
@@ -524,8 +537,8 @@ export default {
|
|
|
// 如果是查看
|
|
|
if (this.$route.query.flag == 1) {
|
|
|
this.look = true;
|
|
|
- this.editor.disable()
|
|
|
- }
|
|
|
+ this.editor.disable();
|
|
|
+ }
|
|
|
},
|
|
|
beforeCreate() {}, //生命周期 - 创建之前
|
|
|
beforeMount() {}, //生命周期 - 挂载之前
|
|
|
@@ -544,7 +557,7 @@ export default {
|
|
|
/deep/.el-upload-list__item-delete {
|
|
|
display: none !important;
|
|
|
}
|
|
|
- /deep/.el-input__suffix{
|
|
|
+ /deep/.el-input__suffix {
|
|
|
display: none !important;
|
|
|
}
|
|
|
}
|
|
|
@@ -593,7 +606,7 @@ export default {
|
|
|
.none {
|
|
|
pointer-events: none !important;
|
|
|
}
|
|
|
- .wanQuan{
|
|
|
+ .wanQuan {
|
|
|
width: 100% !important;
|
|
|
}
|
|
|
.mainBox {
|