Commit 67eeab46 authored by guoyou's avatar guoyou

显示多次点击

parent ce15bf08
...@@ -120,7 +120,7 @@ ...@@ -120,7 +120,7 @@
</el-form> </el-form>
<div slot="footer" class="dialog-footer"> <div slot="footer" class="dialog-footer">
<el-button @click="cancelHandel">取 消</el-button> <el-button @click="cancelHandel">取 消</el-button>
<el-button type="primary" @click="edit('dialogFrom')">确 定</el-button> <el-button type="primary" @click="edit('dialogFrom')" :loading="submitBtn">确 定</el-button>
</div> </div>
</el-dialog> </el-dialog>
</div> </div>
...@@ -155,6 +155,7 @@ export default { ...@@ -155,6 +155,7 @@ export default {
}, },
data() { data() {
return { return {
submitBtn:false,
time:[],//提现时间 time:[],//提现时间
typeOptions: [ typeOptions: [
{ {
...@@ -259,6 +260,7 @@ export default { ...@@ -259,6 +260,7 @@ export default {
this.dialogVisible = true this.dialogVisible = true
}, },
edit(formName) { edit(formName) {
var that = this var that = this
const set = this.$refs const set = this.$refs
set[formName].validate(valid => { set[formName].validate(valid => {
...@@ -285,6 +287,7 @@ export default { ...@@ -285,6 +287,7 @@ export default {
} }
} }
if (valid) { if (valid) {
this.submitBtn = true;
editObj(that.dialogFrom).then(response => { editObj(that.dialogFrom).then(response => {
if (response.status === 200) { if (response.status === 200) {
this.dialogVisible = false this.dialogVisible = false
...@@ -295,6 +298,7 @@ export default { ...@@ -295,6 +298,7 @@ export default {
type: 'success', type: 'success',
duration: 2000 duration: 2000
}) })
this.submitBtn = false;
} else { } else {
this.$notify({ this.$notify({
title: '失败', title: '失败',
...@@ -304,6 +308,7 @@ export default { ...@@ -304,6 +308,7 @@ export default {
type: 'error', type: 'error',
duration: 2000 duration: 2000
}) })
this.submitBtn = false;
} }
}) })
} else { } else {
......
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