master
lion 3 years ago
parent 781c77fa51
commit 92ff919399

@ -85,7 +85,7 @@
v-model="selectedOptions"
@change="handleChange">
</el-cascader>
<el-select style="width:19%;margin-right:1%" @change="getStreet" v-model="form.area_id" placeholder="请选择街道">
<el-select style="width:19%;margin-right:1%" @change="getStreet" v-model="form.area_id" placeholder="全部">
<el-option
v-for="item in selects.streetType"
:key="item.id"
@ -177,7 +177,7 @@
<el-input type="textarea" rows="3" v-model="form.small" placeholder="请填写活动概述"></el-input>
</el-form-item>
</el-col>
<el-col span="24">
<el-col :span="24">
<el-form-item label="活动封面" prop="cover">
<el-upload action="/api/admin/upload-file" list-type="picture-card" :file-list="coverlist" ref="pictureUpload"
:limit="1" :auto-upload="true" :data="uploadOther"
@ -388,10 +388,7 @@
this.selects.streetType = res.detail;
this.selects.streetType[0].id="";
});
this.form.street = "全部";
this.form.street = "全部";
},
load() {
listActivity({
@ -427,18 +424,15 @@
that.info(obj);
} else {
this.daterange=[];
this.$refs.tiny.setContent("");
// this.$refs.tiny.setContent();
}
this.dialogFormVisible = true;
},
submitForm(formName) {
var that = this;
// console.log("aaaaaa");
// console.log(that.daterange);
// console.log(that.form);
// return;
that.form.start_time = this.daterange[0]
that.form.end_time = this.daterange[1]
that.form.end_time = this.daterange[1]
this.$refs[formName].validate((valid) => {
if (valid) {
if (that.form.id) {
@ -461,7 +455,8 @@
//reject(error)
})
}
that.fileList = [];
that.coverlist = [];
this.$refs.tiny.setContent("");
} else {
this.$Message.error('数据校验失败');
console.log('error submit!!');
@ -471,6 +466,7 @@
},
resetForm(formName) {
var that = this;
that.coverlist = [];
this.$refs.tiny.setContent("");
this.$refs[formName].resetFields();
that.dialogFormVisible = false;
@ -499,14 +495,14 @@
var that = this;
console.log(obj);
// that.selects
that.form.area_id = obj;
that.form.area_id = obj;
for(var m of that.selects.streetType){
if(obj==m.id){
that.form.street = m.value;
}
}
},
handleChange() {
var loc = "";

@ -363,7 +363,8 @@
//reject(error)
})
}
that.fileList = [];
that.fileList = [];
this.$refs.tiny.setContent("");
} else {
this.$Message.error('数据校验失败');
console.log('error submit!!');

@ -339,7 +339,8 @@
//reject(error)
})
}
that.fileList = [];
that.fileList = [];
this.$refs.tiny.setContent("");
} else {
this.$Message.error('数据校验失败');
console.log('error submit!!');

@ -363,7 +363,7 @@
},
submitForm(formName) {
var that = this;
this.$refs[formName].validate((valid) => {
if (valid) {
if (that.form.id) {
@ -386,7 +386,8 @@
//reject(error)
})
}
that.fileList = [];
that.fileList = [];
this.$refs.tiny.setContent("");
} else {
this.$Message.error('数据校验失败');
console.log('error submit!!');

Loading…
Cancel
Save