force-app/main/default/lwc/lexCreateInstructReport/lexCreateInstructReport.js
@@ -17,6 +17,7 @@ IsLoading = true; Id; Status; msg; @wire(CurrentPageReference) getStateParameters(currentPageReference) { @@ -35,7 +36,6 @@ }).then(result => { console.log(result); if (result != null) { this.IsLoading = false; this.Id = result.Id; this.Status = result.Status; @@ -53,7 +53,12 @@ if (status == '公开中') { window.open("/apex/InstructReport?camid=" + this.Id, "_top"); } else { alert("只有批准后才能创建报告!") this.msg = '只有批准后才能创建报告!'; this.IsLoading = false; } } closeAction() { window.history.go(-1); } }