|
@@ -554,6 +554,7 @@ export default {
|
|
|
// 获取编辑详情
|
|
|
getDetail () {
|
|
|
const _this = this
|
|
|
+ _this.spinning = true
|
|
|
getRuleDetail({ sn: this.itemSn }).then(res => {
|
|
|
if (res.status == 200) {
|
|
|
const resultObj = res.data
|
|
@@ -581,6 +582,7 @@ export default {
|
|
|
_this.form = { ..._this.form, ...resultObj }
|
|
|
_this.calculatePrice()
|
|
|
}
|
|
|
+ _this.spinning = false
|
|
|
})
|
|
|
},
|
|
|
newData (list) {
|
|
@@ -680,11 +682,11 @@ export default {
|
|
|
this.form.gateProductList = this.$refs.cillProduct.getResultVal()
|
|
|
} else if (this.chooseVal === 'b') {
|
|
|
this.form.regularProductList = this.$refs.normalPriceProduct.getResultVal()
|
|
|
- }else{
|
|
|
+ } else {
|
|
|
this.form.giftProductList = this.$refs.offerProduct.getResultVal()
|
|
|
}
|
|
|
}
|
|
|
- this.$nextTick(()=>{
|
|
|
+ this.$nextTick(() => {
|
|
|
const newPreviewList = this.getPreviewList(this.form[dataName + 'ProductList'])
|
|
|
if (newPreviewList && newPreviewList.length === 0) {
|
|
|
this.$message.warning('暂时没有可预览的产品')
|
|
@@ -696,7 +698,7 @@ export default {
|
|
|
}
|
|
|
this.$refs.previewModal.pageInit(resuleObj)
|
|
|
this.openProductModal = true
|
|
|
- })
|
|
|
+ })
|
|
|
},
|
|
|
closeProductModal () {
|
|
|
this.previewList = []
|