19626
2023-09-09 e14d6d0619330cad423f06493e3aa2371faa2a8f
force-app/main/default/lwc/lexVOCCheck/lexVOCCheck.js
@@ -18,7 +18,7 @@
    userId;
    systemProfileId;
    luShengId;
    huDiAnId;
    // huDiAnId;
    Isloading = true;
    @wire(CurrentPageReference)
@@ -52,7 +52,7 @@
                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");
@@ -92,7 +92,8 @@
    }
    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;
@@ -118,6 +119,7 @@
                    this.showToast(result,"error");
                }else{
                    this.updateRecordView(this.recordId);
                    console.log("success");
                }
                this.Isloading = false;   
                this.dispatchEvent(new CloseActionScreenEvent());