Commit ed62eccc authored by GaiaXalter's avatar GaiaXalter 💬

fix:活动提交

parent 974b5eff
Pipeline #10258 failed with stages
in 2 minutes and 17 seconds
......@@ -85,7 +85,7 @@
<el-form :model="firstWinForm" :rules="rules2" ref="firstWinForm" label-width="80px" class="demo-dynamic">
<el-form-item prop="name" label="活动标题" :rules="{required: true, message: '活动标题不能为空', trigger: 'blur'}">
<el-input v-model="firstWinForm.name"></el-input>
<el-input v-model="firstWinForm.name" @input="onInput()"></el-input>
</el-form-item>
<el-form-item prop="email" label="活动日期">
......@@ -94,7 +94,7 @@
</el-form-item>
<el-form-item prop="max" label="达标场次">
<el-input v-model="firstWinForm.max" placeholder=""></el-input>
<el-input v-model="firstWinForm.max" @input="onInput()" placeholder=""></el-input>
</el-form-item>
</el-form>
......@@ -310,6 +310,8 @@
dialogFormVisible: false,
firstWinDialogVisible: false,
firstWinForm: {
name:'',
max:'',
},
form: {
......@@ -336,6 +338,11 @@
},
methods: {
onInput(){
this.$forceUpdate()
},
saveLable: function () {
var param = {
labelone: this.labelone
......@@ -524,17 +531,19 @@
end: this.to_date,
max: this.firstWinForm.max,
}
console.log('%c ---------------------src'+'\\'+'components'+'\\'+'Ads.vue---------------------%c:535','background:#73a8e1','background:#92c00d',
param)
var _this = this;
API.saveActivity(param).then((res) => {
this.firstWinDialogVisible = false
// this.$notify({
// title: '操作成功',
// message: '感谢您的提交!',
// type: 'success'
// })
this.$notify({
title: '操作成功',
message: '感谢您的提交!',
type: 'success'
})
setTimeout(function () {
_this.isClick = false;
}, 1500)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment