From 196df4d4bf1941546d349cadbf343655578ec280 Mon Sep 17 00:00:00 2001
From: 19626 <1962676589@qq.com>
Date: 星期三, 13 九月 2023 15:05:56 +0800
Subject: [PATCH] sit期间修改
---
force-app/main/default/lwc/lexCancelSubmit/lexCancelSubmit.js | 13 +++++++------
1 files changed, 7 insertions(+), 6 deletions(-)
diff --git a/force-app/main/default/lwc/lexCancelSubmit/lexCancelSubmit.js b/force-app/main/default/lwc/lexCancelSubmit/lexCancelSubmit.js
index 17d0216..b705df0 100644
--- a/force-app/main/default/lwc/lexCancelSubmit/lexCancelSubmit.js
+++ b/force-app/main/default/lwc/lexCancelSubmit/lexCancelSubmit.js
@@ -4,7 +4,7 @@
* @Author: chen jing wu
* @Date: 2023-04-07 09:02:03
* @LastEditors: chen jing wu
- * @LastEditTime: 2023-04-11 11:17:24
+ * @LastEditTime: 2023-09-11 14:32:05
*/
import { LightningElement,wire,track,api} from 'lwc';
import { CurrentPageReference } from "lightning/navigation";
@@ -19,6 +19,7 @@
@api recordId;//OwnerId
ownerId;
monthlyReportId;
+ userId;
IsLoading = true;
@@ -46,9 +47,9 @@
console.log(result);
if (result != null) {
this.ownerId = result.ownerId;
+ this.userId = result.userId;
this.monthlyReportId = result.Id;
this.cancelSubmit();
- console.log("end");
//window.location.replace("https://ocsm--partial.sandbox.lightning.force.com/lightning/r/Monthly_Report__c/" + this.monthlyReportId + "/view");
}
}).catch(error => {
@@ -59,9 +60,10 @@
showToast(msg,type) {
const event = new ShowToastEvent({
- title: '',
+ title: ' ',
message: msg,
- variant: type
+ variant: type,
+ mode: 'sticky'
});
this.dispatchEvent(event);
}
@@ -69,8 +71,7 @@
updateRecord({fields: { Id: recordId }});
}
cancelSubmit () {
- //闇�瑕佸畬鍠�
- if(this.ownerId == UserInfo_Owner.Id) {
+ if(this.ownerId == this.userId) {
cancel({
recordId: this.recordId
}).then(result=>{
--
Gitblit v1.9.1