From 4f200849487fc6f914e237d5af3ecefd6d802457 Mon Sep 17 00:00:00 2001
From: buli <137736985@qq.com>
Date: 星期一, 10 七月 2023 09:52:59 +0800
Subject: [PATCH] backup1007
---
force-app/main/default/lwc/customOutputGood/customOutputGood.js | 57 ++++++++++++++++++++++-----------------------------------
1 files changed, 22 insertions(+), 35 deletions(-)
diff --git a/force-app/main/default/lwc/customOutputGood/customOutputGood.js b/force-app/main/default/lwc/customOutputGood/customOutputGood.js
index a3b4649..643c9ce 100644
--- a/force-app/main/default/lwc/customOutputGood/customOutputGood.js
+++ b/force-app/main/default/lwc/customOutputGood/customOutputGood.js
@@ -1,55 +1,42 @@
-import { LightningElement, api, track } from 'lwc';
+import { LightningElement,api,track } from 'lwc';
export default class CustomOutputGood extends LightningElement {
@api outputValue;
@api outputType;
@api recordId;
-
- get showTitle() {
- if (this.outputType == 'Title') {
+
+ get showTitle(){
+ if(this.outputType == 'Title'){
return true;
- } else {
+ }else{
return false;
}
}
- get showLink() {
- if (this.outputType == 'Title') {
- if (
- this.outputValue == '璁㈠崟鏄庣粏姹囨��' ||
- this.outputValue == '寰呮搷浣滃叆搴撹鍗曟眹鎬�'
- ) {
+ get showLink(){
+ if(this.outputType == 'Title'){
+ if(this.outputValue == '璁㈠崟鏄庣粏姹囨��' || this.outputValue == '寰呮搷浣滃叆搴撹鍗曟眹鎬�'){
return false;
- } else {
- return true;
+ }else{
+ return true
}
- } else {
- if (
- this.outputValue == 0 ||
- this.outputValue == '0' ||
- this.outputValue == ''
- ) {
+ }else{
+ if(this.outputValue == 0 || this.outputValue == '0' || this.outputValue == ''){
return false;
- } else {
+ }else{
return true;
}
}
}
- clickLink(event) {
- this.dispatchEvent(
- new CustomEvent('clicklink', {
- composed: true,
- bubbles: true,
- cancelable: true,
- detail: {
- data: {
- value: this.outputValue,
- type: this.outputType,
- recordId: this.recordId
- }
- }
- })
- );
+ clickLink(event){
+ this.dispatchEvent(new CustomEvent('clicklink', {
+ composed: true,
+ bubbles: true,
+ cancelable: true,
+ detail: {
+ data: { value: this.outputValue, type: this.outputType, recordId:this.recordId}
+ }
+ }));
}
}
\ No newline at end of file
--
Gitblit v1.9.1