| | |
| | | import init from '@salesforce/apex/QISReportController.initForQisAgreeButton'; |
| | | import updateQis from '@salesforce/apex/QISReportController.updateQisForQisAgree'; |
| | | import UserInfo_Owner from '@salesforce/apex/TaskFeedbackController.UserInfo_Owner'; |
| | | import USER_ID from '@salesforce/user/Id'; |
| | | import { updateRecord } from 'lightning/uiRecordApi'; |
| | | |
| | | export default class lexQISAgree extends LightningElement { |
| | |
| | | IsLoading = true; |
| | | qisReportId; |
| | | OwnerId; |
| | | userId = USER_ID; |
| | | err; |
| | | |
| | | @wire(CurrentPageReference) |
| | |
| | | this.IsLoading = false; |
| | | this.qisReportId = result.Id; |
| | | this.OwnerId = result.ownerId; |
| | | if (this.OwnerId != UserInfo_Owner.Id) { |
| | | if (this.OwnerId != this.userId) { |
| | | const evt = new ShowToastEvent({ |
| | | title : '只有所有者可以按QIS结果跟进完毕的按钮', |
| | | message: '', |