Commit e3be132d authored by zhengke's avatar zhengke

防止重复提交

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