From c69e36a64e4954b0b7e818843e8a833b3201ec29 Mon Sep 17 00:00:00 2001
From: liangxiaozhen <liangxiaozhen>
Date: 星期二, 08 八月 2023 18:23:15 +0800
Subject: [PATCH] 页面加lightning样式,开始询价LWC组件修改,补充controller
---
force-app/main/default/lwc/lexAssetMaintainHeaderDeleteApply/lexAssetMaintainHeaderDeleteApply.js | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/force-app/main/default/lwc/lexAssetMaintainHeaderDeleteApply/lexAssetMaintainHeaderDeleteApply.js b/force-app/main/default/lwc/lexAssetMaintainHeaderDeleteApply/lexAssetMaintainHeaderDeleteApply.js
index db8c855..bdfa1dd 100644
--- a/force-app/main/default/lwc/lexAssetMaintainHeaderDeleteApply/lexAssetMaintainHeaderDeleteApply.js
+++ b/force-app/main/default/lwc/lexAssetMaintainHeaderDeleteApply/lexAssetMaintainHeaderDeleteApply.js
@@ -2,6 +2,7 @@
import { CurrentPageReference,NavigationMixin } from 'lightning/navigation';
import { CloseActionScreenEvent } from 'lightning/actions';
import { updateRecord } from 'lightning/uiRecordApi';
+import { ShowToastEvent } from 'lightning/platformShowToastEvent';
import deleteApply from '@salesforce/apex/AssetMaintainHeaderWebService.deleteApply';
import applyPermission from '@salesforce/apex/AssetMaintainHeaderWebService.applyPermission';
@@ -24,11 +25,13 @@
connectedCallback(){
applyPermission().then(res=>{
if(res=='false'){
+ this.IsLoading = false;
this.showToast('娌℃湁鍒犻櫎鐢宠鐨勬潈闄�','error');
}else if(confirm("鏄惁纭畾鍒犻櫎锛�")){
deleteApply({
amhId:this.recordId
}).then(result=>{
+ console.log("result2222:"+result);
if(result=='1'){
this.showToast('宸插惎鍔˙atch锛屽畬鎴愭椂浼氭湁閭欢鎻愰啋','success');
}else{
--
Gitblit v1.9.1