| | |
| | | <div class="holder" if:true={IsLoading}> |
| | | <lightning-spinner alternative-text="Loading" size="medium"></lightning-spinner> |
| | | </div> |
| | | <div if:false={IsLoading} class="toast"> |
| | | <div if:true={IsDisplay} class="toast"> |
| | | <span style="padding: 10px;">{msg}</span> |
| | | <button class="slds-button slds-button_icon slds-modal__close slds-button_icon-inverse" onclick={closeAction} title="Close" style="background-color: #e5e4e2;margin-top: 15px;"> |
| | | <lightning-icon class="greyIcon" icon-name="utility:close" alternative-text="Connected" variant="inverse" size="small" |
| | |
| | | //只获取当前list选中的一览Id |
| | | @api rentalApplySetIds; |
| | | IsLoading=true; |
| | | IsDisplay=true; |
| | | //提示信息 |
| | | msg; |
| | | |
| | | connectedCallback(){ |
| | | console.log(this.recordId); |
| | | console.log(JSON.stringify(this.rentalApplySetIds)); |
| | | // if(this.rentalApplySetIds.length<1){ |
| | | if (this.recordId && JSON.stringify(this.rentalApplySetIds)) { |
| | | this.IsLoading=false; |
| | | if (this.recordId && this.rentalApplySetIds) { |
| | | this.IsDisplay = false; |
| | | LightningConfirm.open({ |
| | | message: '你确定要重新分配吗?', |
| | | variant: 'headerless', |
| | |
| | | rentalApplyEquipmentSetReassign({ |
| | | raesID: this.rentalApplySetIds[0] |
| | | }).then(result=>{ |
| | | this.IsDisplay = true; |
| | | if(result == '1'){ |
| | | this.msg = "已重新分配"; |
| | | this.closeAction(); |
| | |
| | | return; |
| | | } |
| | | }) |
| | | }else{ |
| | | this.closeAction(); |
| | | return; |
| | | } |
| | | }) |
| | | }else{ |