From d95eb4355cf1a265885ca642f6b53d229d0084b3 Mon Sep 17 00:00:00 2001
From: licp <lichunping@guanfang.com.cn>
Date: 星期四, 11 七月 2024 15:05:41 +0800
Subject: [PATCH] 修改中文判断逻辑

---
 static/js/worker.js                                    |    5 +++--
 src/components/do/b1-inspect-order-plan/Inspection.vue |    2 +-
 2 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/src/components/do/b1-inspect-order-plan/Inspection.vue b/src/components/do/b1-inspect-order-plan/Inspection.vue
index b7a8abe..c754568 100644
--- a/src/components/do/b1-inspect-order-plan/Inspection.vue
+++ b/src/components/do/b1-inspect-order-plan/Inspection.vue
@@ -1824,7 +1824,7 @@
           }
       },
       getValue(v){
-        let str = v.v?v.v:(v.ct&&v.ct.s?v.ct.s.length>0&&v.ct.s[0].v.replace(new RegExp('\n', 'g'), '<br/>'):'')
+        let str = v.v?v.v:(v.ct&&v.ct.s?v.ct.s.length>0&&v.ct.s[0].v.replace(new RegExp('\n', 'g'), '<br/>').replace(new RegExp('@', 'g'), '<br/>'):'')
         // str.replace(new RegExp(search, 'g'), replace)
         return str
       },
diff --git a/static/js/worker.js b/static/js/worker.js
index 5d77047..3964170 100644
--- a/static/js/worker.js
+++ b/static/js/worker.js
@@ -96,7 +96,8 @@
                     if(res.includes('/')){
                       return handleMoreParam(res,m.split('=')[1],'=')
                     }else{
-                      return  res.trim() == str.trim()
+                      console.log(res.trim().replace(/[.,銆傘�侊紱锛�'";?锛熲�滐紝]/g, ''),' == ',str.trim().replace(/[.,銆傘�侊紱锛�'";?锛熲�滐紝]/g, ''))
+                      return  res.trim().replace(/[.,銆傘�侊紱锛�'";?锛熲�滐紝]/g, '') == str.trim().replace(/[.,銆傘�侊紱锛�'";?锛熲�滐紝]/g, '')
                     }
                   }else{
                     return  eval(res) == eval(str)
@@ -180,7 +181,6 @@
                 }
               })
             } else {
-              console.log(333333)
               item.v.v = 0
               list.forEach(a => {
                 if (a[0].r == item.r) {
@@ -193,6 +193,7 @@
                 }
               })
             }
+            console.log(tableList)
           }
           result = {
             method:'saveInsContext',

--
Gitblit v1.9.3