|
@@ -126,7 +126,7 @@
|
|
|
</a-form-model>
|
|
|
<div class="btn-cont">
|
|
|
<a-button id="promotionList-basicInfo-modal-back" @click="isShow = false">取消</a-button>
|
|
|
- <a-button style="margin-left: 15px;" type="primary" id="promotionList-modal-save" @click="handleSave">确定</a-button>
|
|
|
+ <a-button style="margin-left: 15px;" type="primary" id="promotionList-modal-save" :loading="loadingSave" @click="handleSave">确定</a-button>
|
|
|
</div>
|
|
|
</a-spin>
|
|
|
<!-- 选择参与客户 -->
|
|
@@ -208,7 +208,8 @@ export default {
|
|
|
content: [{ required: true, message: '请输入促销描述', trigger: 'blur' }]
|
|
|
},
|
|
|
attachAction: process.env.VUE_APP_API_BASE_URL + '/uploadGetFileInfo',
|
|
|
- openGuideModal: false
|
|
|
+ openGuideModal: false,
|
|
|
+ loadingSave: false
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
@@ -298,6 +299,7 @@ export default {
|
|
|
form.attachmentList = _this.attachList
|
|
|
delete form.activeDate
|
|
|
_this.spinning = true
|
|
|
+ _this.loadingSave = true
|
|
|
const ajaxName = _this.itemSn ? dealerPromotionEdit : dealerPromotionSave
|
|
|
ajaxName(form).then(res => {
|
|
|
if (res.status == 200) {
|
|
@@ -306,9 +308,11 @@ export default {
|
|
|
_this.isShow = false
|
|
|
_this.$emit('ok', res.data)
|
|
|
_this.spinning = false
|
|
|
+ _this.loadingSave = false
|
|
|
}, 1000)
|
|
|
} else {
|
|
|
_this.spinning = false
|
|
|
+ _this.loadingSave = false
|
|
|
}
|
|
|
})
|
|
|
} else {
|