Commit 1d2f3563 by 张权

提交加loding

1 parent a41c758d
......@@ -588,3 +588,13 @@ html {
.myMessage {
z-index: 4000 !important;
}
.loadingClass{
.el-icon-loading{
font-size: 22px;
}
.el-icon-loading,
.el-loading-text{
color: #5850ff!important;
}
}
\ No newline at end of file
......@@ -609,7 +609,7 @@ export default {
})
if (this.editForm.receiveRule == 1) {
params.receiveDetailList = this.phoneList.map(item => item.tel)
let maxLength = 1000
let maxLength = 500
if(params.receiveDetailList && params.receiveDetailList.length > maxLength){
return this.$message.error(`领取${this.receiveWay == 1 ? '手机号' : '车架号'}不能超过${maxLength}个`)
}
......@@ -651,9 +651,17 @@ export default {
// 创建-更新接口
insertHttp(params) {
// this.loading = true
const loadingMoadl = this.$loading({
lock: true,
text: '正在Loading···',
spinner: 'el-icon-loading',
background: 'rgba(0, 0, 0, 0.5)',
customClass:'loadingClass'
})
this.$apis.giftBag
.insertGiftApi(params)
.then(res => {
loadingMoadl.close()
this.$message({
message: res.code == '0' ? '操作成功' : res.message,
type: res.code == '0' ? 'success' : 'error'
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!