zhangchunxu
2023-08-04 1bc3f32b126277b5349564485665b462bb760354
force-app/main/default/lwc/lexReassign/lexReassign.js
@@ -6,14 +6,16 @@
   //只获取当前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',
@@ -23,7 +25,8 @@
                rentalApplyEquipmentSetReassign({
                   raesID: this.rentalApplySetIds[0]
                }).then(result=>{
                   if(result == '1'){
                   this.IsDisplay = true;
                   if(result == '1'){
                      this.msg = "已重新分配";
                      this.closeAction();
                   }else{
@@ -31,6 +34,9 @@
                      return;
                   }
                })
             }else{
                this.closeAction();
                return;
             }
          })
      }else{