From 7986d6aaf7e235f2f5a7dac7345f97a76ac00b97 Mon Sep 17 00:00:00 2001
From: 黄千龙 <huangqianlong@prec-tech.com>
Date: 星期五, 26 五月 2023 12:23:09 +0800
Subject: [PATCH] 清理多余引用,去除多余update操作(跳转带默认值未完成)

---
 force-app/main/default/lwc/lexQISSC/lexQISSC.js |    9 ++++-----
 1 files changed, 4 insertions(+), 5 deletions(-)

diff --git a/force-app/main/default/lwc/lexQISSC/lexQISSC.js b/force-app/main/default/lwc/lexQISSC/lexQISSC.js
index 768177f..6e89c21 100644
--- a/force-app/main/default/lwc/lexQISSC/lexQISSC.js
+++ b/force-app/main/default/lwc/lexQISSC/lexQISSC.js
@@ -1,11 +1,8 @@
 import { LightningElement,wire,track,api} from 'lwc';
 import { CurrentPageReference } from "lightning/navigation";
 import { CloseActionScreenEvent } from 'lightning/actions';
-import { NavigationMixin } from 'lightning/navigation';
 import { ShowToastEvent } from 'lightning/platformShowToastEvent';
 import init  from '@salesforce/apex/QISReportController.initForlexQISSCButton';
-import UserInfo_Owner from '@salesforce/apex/TaskFeedbackController.UserInfo_Owner';
-import { updateRecord } from 'lightning/uiRecordApi';
 
 export default class lexQISSC extends LightningElement {
 	@api recordId;
@@ -51,6 +48,7 @@
             console.log('qISSCReport='+this.qISSCReport);
             console.log('nextaction='+this.nextaction);
             console.log('qISMarketCategory='+this.qISMarketCategory);
+            console.log('qISSCId='+this.qISSCId);
             if (this.profileName == '2F4_鎶�鏈帹杩涢儴' || this.profileName == '2F4_鎶�鏈帹杩涢儴_OSH 闈炲崟鐐�') {
             	const evt = new ShowToastEvent({
                             title : '鎮ㄦ病鏈夋柊寤篞IS甯傚満閮ㄦ潈闄愩��',
@@ -62,8 +60,8 @@
                         return;
             }
             if (this.qISSCReport!=null) {
-            	var url = 'https://ocsm.my.salesforce.com/'+this.qISSCId;
-            	window.open(url);
+                var urlPrefix = window.location.protocol + '//' + window.location.host+'/'+this.qISSCId;
+            	 window.open(urlPrefix);
             	this.dispatchEvent(new CloseActionScreenEvent());
                 return;
             }else{
@@ -77,6 +75,7 @@
                         this.dispatchEvent(new CloseActionScreenEvent());
                         return;
             	}else{
+                    console.log('瑙﹀彂');
             		const evt = new ShowToastEvent({
                             title : '瀵瑰簲鏂规硶涓鸿繑鍥炰笖瀵瑰簲涓绘満/娑堣�楀搧涓篍T 鎴� ENG 鎴� EndoRapid 鏃讹紝鎵嶅彲浠ユ柊寤恒��',
                             message: '',

--
Gitblit v1.9.1