From b954ea6b036aa2d37bc09ee7ef9b892c17e5f355 Mon Sep 17 00:00:00 2001
From: KKbes <1620284052@qq.com>
Date: 星期三, 09 八月 2023 14:47:14 +0800
Subject: [PATCH] review
---
force-app/main/default/lwc/lexMeetingCosts/lexMeetingCosts.js | 28 ++++++++--------------------
1 files changed, 8 insertions(+), 20 deletions(-)
diff --git a/force-app/main/default/lwc/lexMeetingCosts/lexMeetingCosts.js b/force-app/main/default/lwc/lexMeetingCosts/lexMeetingCosts.js
index 8433064..84f94e2 100644
--- a/force-app/main/default/lwc/lexMeetingCosts/lexMeetingCosts.js
+++ b/force-app/main/default/lwc/lexMeetingCosts/lexMeetingCosts.js
@@ -13,9 +13,9 @@
// author: kkbes
const event = new ShowToastEvent({
- title: '鏉冮檺涓嶈冻',
message:
'鏃犳潈鏌ョ湅浼氳璐圭敤鎯呭喌',
+ variant : 'error'
});
export default class lexMeetingCosts extends LightningElement {
@@ -28,15 +28,10 @@
@wire(CurrentPageReference)
getStateParameters(currentPageReference) {
- console.log(111);
- console.log(currentPageReference);
-
if (currentPageReference) {
const urlValue = currentPageReference.state.recordId;
if (urlValue) {
let str = `${urlValue}`;
- console.log("str");
- console.log(str);
this.recordId = str;
}
}
@@ -44,20 +39,12 @@
@wire(getRecord, { recordId: USER_ID, fields: [USERPROFILE_ID]})
userDetails({error, data}) {
- console.log('222');
if (data) {
this.currentUserProfileId = data.fields.ProfileId.value;
- console.log(this.currentUserProfileId);
} else if (error) {
this.error = error ;
}
- }
-
-
-
- connectedCallback(){
- console.log(this.recordId);
init({
recordId: this.recordId
}).then(result => {
@@ -71,7 +58,13 @@
}).catch(error => {
console.log("error");
console.log(error);
- });
+ });
+ }
+
+
+
+ connectedCallback(){
+
}
@@ -85,13 +78,9 @@
var ProfileId= await getProfileIdByName({Name : "绯荤粺绠$悊鍛�"});
- console.log('scscscsccsc');
- console.log(records);
- console.log(ProfileId);
if(records.length>0 && this.Campaign.Sponsor_Ones_Post__c == '1.鍗庡寳'){
- console.log('if');
window.open("/apex/CampaignMeetingcost?id=" + this.Campaign.Id ,'CampaignMember','height=500,width=950');
}
else if (logUser == this.Campaign.OwnerId
@@ -99,7 +88,6 @@
|| logUser == this.Campaign.BuchangApprovalManager__c
|| logUser == this.Campaign.ZongjianApprovalManager__c
|| this.currentUserProfileId == ProfileId){
- console.log('else if');
window.open("/apex/CampaignMeetingcost?id=" + this.Campaign.Id ,'CampaignMember','height=500,width=950');
}
else {
--
Gitblit v1.9.1