From 31ec63f0419895876cbaba99637a884a32d33d0d Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期三, 01 九月 2021 10:31:45 +0800
Subject: [PATCH] 2021-09-01

---
 src/tabviews/zshare/normalTable/index.jsx |   32 +++++++++++++++++---------------
 1 files changed, 17 insertions(+), 15 deletions(-)

diff --git a/src/tabviews/zshare/normalTable/index.jsx b/src/tabviews/zshare/normalTable/index.jsx
index 105916e..3f2291d 100644
--- a/src/tabviews/zshare/normalTable/index.jsx
+++ b/src/tabviews/zshare/normalTable/index.jsx
@@ -261,7 +261,7 @@
           _param.User_Name = sessionStorage.getItem('User_Name')
           _param.param = __param
           src = _url + window.btoa(window.encodeURIComponent(JSON.stringify(_param)))
-        } catch {
+        } catch (e) {
           console.warn('鑿滃崟鍙傛暟瑙f瀽閿欒锛�')
         }
       } else {
@@ -310,7 +310,7 @@
         try {
           originVal = parseFloat(originVal)
           contrastVal = parseFloat(contrastVal)
-        } catch {
+        } catch (e) {
           originVal = NaN
         }
 
@@ -321,7 +321,7 @@
         try {
           originVal = parseFloat(originVal)
           contrastVal = parseFloat(contrastVal)
-        } catch {
+        } catch (e) {
           originVal = NaN
         }
 
@@ -452,7 +452,7 @@
           if (isNaN(content)) {
             content = ''
           }
-        } catch {
+        } catch (e) {
           content = ''
         }
       }
@@ -555,8 +555,9 @@
         <div className="picture-col">
           {photos && photos.map((url, i) => {
             if (item.scale === 'true') {
-              return <img style={{maxHeight: maxHeight}} className="image-scale" onClick={() => {
-                MKEmitter.emit('mkImageScale', url, photos.length > 1 ? photos : '')
+              return <img style={{maxHeight: maxHeight}} className="image-scale" onClick={(e) => {
+                e.stopPropagation()
+                MKEmitter.emit('mkImageScale', url, photos)
               }} key={`${i}`} src={url} alt=""/>
             } else {
               return <img style={{maxHeight: maxHeight}} key={`${i}`} src={url} alt=""/>
@@ -604,7 +605,7 @@
         
         try {
           _param = window.btoa(_quary)
-        } catch {
+        } catch (e) {
           _param = window.btoa(window.encodeURIComponent(_quary))
         }
         
@@ -690,7 +691,7 @@
             if (isNaN(content)) {
               content = ''
             }
-          } catch {
+          } catch (e) {
             content = ''
           }
     
@@ -734,7 +735,7 @@
           try {
             photos = record[col.field] + ''
             photos = photos.split(',').filter(Boolean)
-          } catch {
+          } catch (e) {
             photos = []
           }
 
@@ -789,7 +790,7 @@
 
             try {
               _param = window.btoa(_quary)
-            } catch {
+            } catch (e) {
               _param = window.btoa(window.encodeURIComponent(_quary))
             }
 
@@ -870,8 +871,9 @@
           <div className="content-fence-top" style={images[0] ? {textAlign: images[0].align} : null}>
             {images.map((_img, index) => {
               if (_img.scale) {
-                return <img style={{maxHeight: _img.maxHeight}} className="image-scale" onClick={() => {
-                  MKEmitter.emit('mkImageScale', _img.url, images.length > 1 ? images.map(g => g.url) : '')
+                return <img style={{maxHeight: _img.maxHeight}} className="image-scale" onClick={(e) => {
+                  e.stopPropagation()
+                  MKEmitter.emit('mkImageScale', _img.url, images.map(g => g.url))
                 }} key={`${index}`} src={_img.url} alt=""/>
               } else {
                 return (<img style={{maxHeight: _img.maxHeight}} key={`${index}`} src={_img.url} alt=""/>)
@@ -892,7 +894,7 @@
             {images.map((_img, index) => {
               if (_img.scale) {
                 return <img style={{maxHeight: _img.maxHeight}} className="image-scale" onClick={() => {
-                  MKEmitter.emit('mkImageScale', _img.url, images.length > 1 ? images.map(g => g.url) : '')
+                  MKEmitter.emit('mkImageScale', _img.url, images.map(g => g.url))
                 }} key={`${index}`} src={_img.url} alt=""/>
               } else {
                 return (<img style={{maxHeight: _img.maxHeight}} key={`${index}`} src={_img.url} alt=""/>)
@@ -1179,7 +1181,7 @@
                 try {
                   originVal = parseFloat(originVal)
                   contrastVal = parseFloat(contrastVal)
-                } catch {
+                } catch (e) {
                   originVal = NaN
                 }
         
@@ -1190,7 +1192,7 @@
                 try {
                   originVal = parseFloat(originVal)
                   contrastVal = parseFloat(contrastVal)
-                } catch {
+                } catch (e) {
                   originVal = NaN
                 }
         

--
Gitblit v1.8.0