|
@@ -23,7 +23,7 @@
|
|
</el-form>
|
|
</el-form>
|
|
<span slot="footer" class="dialog-footer">
|
|
<span slot="footer" class="dialog-footer">
|
|
<el-button @click="handleCloseTask">取 消</el-button>
|
|
<el-button @click="handleCloseTask">取 消</el-button>
|
|
- <el-button type="primary" @click="submitTask">确 定</el-button>
|
|
|
|
|
|
+ <el-button type="primary" :loading="btnLoading" @click="submitTask">确 定</el-button>
|
|
</span>
|
|
</span>
|
|
</el-dialog>
|
|
</el-dialog>
|
|
</div>
|
|
</div>
|
|
@@ -88,6 +88,7 @@ export default {
|
|
name: '',
|
|
name: '',
|
|
data: [],
|
|
data: [],
|
|
},
|
|
},
|
|
|
|
+ btnLoading:false
|
|
}
|
|
}
|
|
},
|
|
},
|
|
computed: {},
|
|
computed: {},
|
|
@@ -122,14 +123,21 @@ export default {
|
|
this.form.handlerType = 0
|
|
this.form.handlerType = 0
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+ this.showBtnLoading()
|
|
this.$emit('save',this.form)
|
|
this.$emit('save',this.form)
|
|
}
|
|
}
|
|
})
|
|
})
|
|
},
|
|
},
|
|
|
|
|
|
-
|
|
|
|
|
|
+ showBtnLoading(){
|
|
|
|
+ this.btnLoading = true
|
|
|
|
+ },
|
|
|
|
+ cancelBtnLoading(){
|
|
|
|
+ this.btnLoading = false
|
|
|
|
+ },
|
|
// 取消
|
|
// 取消
|
|
handleCloseTask() {
|
|
handleCloseTask() {
|
|
|
|
+ this.cancelBtnLoading()
|
|
this.$refs.form.resetFields()
|
|
this.$refs.form.resetFields()
|
|
this.form = {}
|
|
this.form = {}
|
|
this.showTask = false
|
|
this.showTask = false
|