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 @@ ...@@ -85,7 +85,7 @@
<el-form :model="firstWinForm" :rules="rules2" ref="firstWinForm" label-width="80px" class="demo-dynamic"> <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-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>
<el-form-item prop="email" label="活动日期"> <el-form-item prop="email" label="活动日期">
...@@ -94,7 +94,7 @@ ...@@ -94,7 +94,7 @@
</el-form-item> </el-form-item>
<el-form-item prop="max" label="达标场次"> <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-item>
</el-form> </el-form>
...@@ -310,6 +310,8 @@ ...@@ -310,6 +310,8 @@
dialogFormVisible: false, dialogFormVisible: false,
firstWinDialogVisible: false, firstWinDialogVisible: false,
firstWinForm: { firstWinForm: {
name:'',
max:'',
}, },
form: { form: {
...@@ -336,6 +338,11 @@ ...@@ -336,6 +338,11 @@
}, },
methods: { methods: {
onInput(){
this.$forceUpdate()
},
saveLable: function () { saveLable: function () {
var param = { var param = {
labelone: this.labelone labelone: this.labelone
...@@ -524,17 +531,19 @@ ...@@ -524,17 +531,19 @@
end: this.to_date, end: this.to_date,
max: this.firstWinForm.max, max: this.firstWinForm.max,
} }
console.log('%c ---------------------src'+'\\'+'components'+'\\'+'Ads.vue---------------------%c:535','background:#73a8e1','background:#92c00d',
param)
var _this = this; var _this = this;
API.saveActivity(param).then((res) => { API.saveActivity(param).then((res) => {
this.firstWinDialogVisible = false this.firstWinDialogVisible = false
// this.$notify({ this.$notify({
// title: '操作成功', title: '操作成功',
// message: '感谢您的提交!', message: '感谢您的提交!',
// type: 'success' type: 'success'
// }) })
setTimeout(function () { setTimeout(function () {
_this.isClick = false; _this.isClick = false;
}, 1500) }, 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