| | |
| | | userId; |
| | | systemProfileId; |
| | | luShengId; |
| | | huDiAnId; |
| | | // huDiAnId; |
| | | Isloading = true; |
| | | |
| | | @wire(CurrentPageReference) |
| | |
| | | this.profileId = result.profileId; |
| | | this.systemProfileId = result.systemProfileId; |
| | | this.luShengId = result.luShengId; |
| | | this.huDiAnId = result.huDiAnId; |
| | | // this.huDiAnId = result.huDiAnId; |
| | | console.log(this.status); |
| | | this.check(); |
| | | //window.location.replace("https://ocsm--partial.sandbox.lightning.force.com/lightning/r/Report__c/" + this.recordId + "/view"); |
| | |
| | | } |
| | | check (){ |
| | | // 陆胜,胡迪安,系统管理员可点(需要调整) |
| | | if (this.userId != this.luShengId && this.userId != this.huDiAnId && this.profileId != this.systemProfileId) { |
| | | // && this.userId != this.huDiAnId 胡迪安已离职 |
| | | if (this.userId != this.luShengId && this.profileId != this.systemProfileId) { |
| | | this.showToast("你没有判定VOC的权限","error"); |
| | | this.dispatchEvent(new CloseActionScreenEvent()); |
| | | return; |
| | |
| | | this.showToast(result,"error"); |
| | | }else{ |
| | | this.updateRecordView(this.recordId); |
| | | console.log("success"); |
| | | } |
| | | this.Isloading = false; |
| | | this.dispatchEvent(new CloseActionScreenEvent()); |