From dd004276162a2bf9d042ff0aaa569dc30a95d827 Mon Sep 17 00:00:00 2001
From: binxie <137736985@qq.com>
Date: 星期一, 26 六月 2023 14:23:26 +0800
Subject: [PATCH] newbackup0626

---
 force-app/main/default/lwc/customOutputGood/customOutputGood.js |   57 +++++++++++++++++++++++++++++++++++----------------------
 1 files changed, 35 insertions(+), 22 deletions(-)

diff --git a/force-app/main/default/lwc/customOutputGood/customOutputGood.js b/force-app/main/default/lwc/customOutputGood/customOutputGood.js
index 643c9ce..a3b4649 100644
--- a/force-app/main/default/lwc/customOutputGood/customOutputGood.js
+++ b/force-app/main/default/lwc/customOutputGood/customOutputGood.js
@@ -1,42 +1,55 @@
-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