Commit e3be132d authored by zhengke's avatar zhengke

防止重复提交

parent 2c211888
......@@ -716,7 +716,7 @@
</div>
</el-tab-pane>
<div style="padding-left:410px;padding-top:20px">
<el-button @click="saveVipMsg('vipMsg')" size="small" type="primary" v-if="activeName == 'sixth' ">保存</el-button>
<el-button @click="saveVipMsg('vipMsg')" size="small" type="primary" :disabled="loadingbut" v-if="activeName == 'sixth' ">保存</el-button>
<el-button @click="save" size="small" type="primary" v-if="activeName != 'sixth' ">保存</el-button>
</div>
</el-tabs>
......@@ -797,6 +797,8 @@
trigger: 'blur'
}]
},
//防止重复提交
loadingbut:false
}
},
created() {
......@@ -823,7 +825,9 @@
},
//保存vip购买
saveVip(){
this.loadingbut=true;
this.apipost("/api/UserVip/SetFXGradeCustom", this.vipMsg, res => {
this.loadingbut=false;
if (res.data.resultCode == 1) {
this.Success(res.data.message);
}else{
......@@ -939,7 +943,6 @@
this.loading = false;
if (res.data.resultCode == 1) {
this.addMsg = res.data.data;
console.log(this.addMsg,'this.addMsg');
}
})
......
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