|
@@ -9,7 +9,7 @@
|
|
|
v-dialogDrag
|
|
|
center
|
|
|
>
|
|
|
- <div class="dialog-content-wrap" v-loading="dialogLoading">
|
|
|
+ <div class="dialog-content-wrap" v-loading="dialogLoading" :element-loading-text="loadingText">
|
|
|
<el-cascader v-model="sales"
|
|
|
ref="saleCascader"
|
|
|
placeholder="请选择销售"
|
|
@@ -36,7 +36,7 @@
|
|
|
</div>
|
|
|
<div class="btn-wrap">
|
|
|
<el-button type="primary" plain @click="$emit('close')">取消</el-button>
|
|
|
- <el-button type="primary" @click="choosedSales">确认</el-button>
|
|
|
+ <el-button type="primary" @click="choosedSales" :disabled="dialogLoading">确认</el-button>
|
|
|
</div>
|
|
|
</el-dialog>
|
|
|
</template>
|
|
@@ -62,12 +62,15 @@ export default {
|
|
|
saleCascaderKey:0,
|
|
|
AllSalesArr:[],
|
|
|
dialogLoading:false,
|
|
|
+ loadingText:''
|
|
|
};
|
|
|
},
|
|
|
watch:{
|
|
|
isSelectSaleShow(newval){
|
|
|
if(newval){
|
|
|
this.getSalesList()
|
|
|
+ }else{
|
|
|
+ this.loadingText = ''
|
|
|
}
|
|
|
}
|
|
|
},
|
|
@@ -126,6 +129,8 @@ export default {
|
|
|
}
|
|
|
})
|
|
|
AddSellerIdArr = Array.from(new Set([...AddSellerIdArr,...tempSales]))
|
|
|
+ this.loadingText = '保存销售中...'
|
|
|
+ this.dialogLoading = true
|
|
|
this.$emit('saveSales',{AddSellerIdArr,DelSellerIdArr,sales:this.selectList})
|
|
|
}
|
|
|
},
|