From 56ea0318eea40aa2f9df4ef3605915d5e06f35cb Mon Sep 17 00:00:00 2001
From: dminyi <1301963064@qq.com>
Date: Wed, 11 Sep 2024 13:42:18 +0800
Subject: [PATCH] 修改

---
 gz-customerSystem/src/views/register/visit/component/levelDetail.jsx |   12 ++++++------
 gz-customerSystem/src/api/appUrl.js                                  |    6 +++---
 2 files changed, 9 insertions(+), 9 deletions(-)

diff --git a/gz-customerSystem/src/api/appUrl.js b/gz-customerSystem/src/api/appUrl.js
index e776580..ec6b2d5 100644
--- a/gz-customerSystem/src/api/appUrl.js
+++ b/gz-customerSystem/src/api/appUrl.js
@@ -2,7 +2,7 @@
  * @Company: hugeInfo
  * @Author: ldh
  * @Date: 2022-02-16 11:25:57
- * @LastEditTime: 2024-09-11 11:09:56
+ * @LastEditTime: 2024-09-11 13:37:26
  * @LastEditors: dminyi 1301963064@qq.com
  * @Version: 1.0.0
  * @Description: api地址
@@ -10,11 +10,11 @@
 export const debug = {
   // web服务
   // baseUrl: 'http://gz.hugeinfo.com.cn',
-  baseUrl: "http://zdpn35.natappfree.cc",
+  baseUrl: "http://192.168.3.108:9002",
   // baseUrl: 'http://mdqgnh.natappfree.cc',
 
   // 附件服务
-  fileUrl: "http://zdpn35.natappfree.cc",
+  fileUrl: "http://192.168.3.108:9002",
   // fileUrl: 'http://gz.hugeinfo.com.cn',
 
   // 文件查看url 后面接附件编号
diff --git a/gz-customerSystem/src/views/register/visit/component/levelDetail.jsx b/gz-customerSystem/src/views/register/visit/component/levelDetail.jsx
index d5aa843..c11df8e 100644
--- a/gz-customerSystem/src/views/register/visit/component/levelDetail.jsx
+++ b/gz-customerSystem/src/views/register/visit/component/levelDetail.jsx
@@ -2,7 +2,7 @@
  * @Author: dminyi 1301963064@qq.com
  * @Date: 2024-08-27 16:47:12
  * @LastEditors: dminyi 1301963064@qq.com
- * @LastEditTime: 2024-09-11 12:25:47
+ * @LastEditTime: 2024-09-11 13:35:29
  * @FilePath: \gzDyh\gz-customerSystem\src\views\register\visit\component\levelDetail.jsx
  * @Description: 右抽屉提示
  */
@@ -147,12 +147,12 @@
     ])
 
     const [caseDetail, setCaseDetail] = useState(false)
-    const toggleView = (type, id) => {
+    const toggleView = (type, id, caseType) => {
         setCaseDetail(true)
         setModalType(type)
 
         if (type === 'case') {
-            getCaseDetail(id);
+            getCaseDetail(id, caseType);
         }
         if (type === 'law') {
             console.log(id, 'idddddd')
@@ -168,10 +168,10 @@
         setCaseDetail(false)
     }
 
-    const getCaseDetail = async (id) => {
+    const getCaseDetail = async (id, type) => {
         const res = await getCaseDetailApi({
             caseId: id,
-            type: '1'
+            type: type
         })
         if (res.type) {
             setCaseDetailView(res.data)
@@ -213,7 +213,7 @@
                                     <div className='aiBox-list-item'>
                                         <div className='aiBox-list-item-type'>{item.caseType === 1 ? '典型案例' : '相似案例'}</div>
                                         <div className='aiBox-list-item-name'>{item.caseName}</div>
-                                        <div className='aiBox-list-item-btn' onClick={() => toggleView('case', item.caseId)}>查看</div>
+                                        <div className='aiBox-list-item-btn' onClick={() => toggleView('case', item.caseId, item.caseType)} >查看</div>
                                     </div>
                                 ))}
                             </div>

--
Gitblit v1.8.0