From d773483d402b983f67822c434546009bd0f1e2e9 Mon Sep 17 00:00:00 2001
From: dminyi <1301963064@qq.com>
Date: Sun, 08 Sep 2024 15:18:44 +0800
Subject: [PATCH] ai对接

---
 gz-customerSystem/src/views/register/handleFeedback/index.jsx |   51 ++++++++++++++++++---------------------------------
 1 files changed, 18 insertions(+), 33 deletions(-)

diff --git a/gz-customerSystem/src/views/register/handleFeedback/index.jsx b/gz-customerSystem/src/views/register/handleFeedback/index.jsx
index 17d0936..8c2488e 100644
--- a/gz-customerSystem/src/views/register/handleFeedback/index.jsx
+++ b/gz-customerSystem/src/views/register/handleFeedback/index.jsx
@@ -3,7 +3,7 @@
  * @Author: dminyi 1301963064@qq.com
  * @Date: 2024-08-09 09:59:43
  * @LastEditors: dminyi 1301963064@qq.com
- * @LastEditTime: 2024-09-08 11:17:47
+ * @LastEditTime: 2024-09-08 11:53:51
  * @FilePath: \gzDyh\gz-customerSystem\src\views\basicInformation\organization\index.jsx
  * @Description: 来访登记
  * 
@@ -38,9 +38,7 @@
 	return $$.ax.request({ urlAi: `case-law/get-law`, typeAi: 'post', service: 'mediate', data });
 }
 
-function getCaseDetailApi(data) {
-	return $$.ax.request({ urlAi: `case-law/get-case-detail`, typeAi: 'get', service: 'mediate', data });
-}
+
 
 function getTabButton(data) {
 	return $$.ax.request({ url: `caseTask/getTabButton`, type: 'get', service: 'mediate', data });
@@ -51,7 +49,7 @@
 const Organization = () => {
 	const routeData = useParams();
 	const [current, setCurrent] = useState(3);
-	const [tabsActive, setTabsActive] = useState('1');
+	const [tabsActive, setTabsActive] = useState('sxxq');
 	const [AiQuestionView, setAiQuestionView] = useState(false)
 	const [aiData, setAiData] = useState([])
 	const [aiLawData, setAiLawData] = useState([])
@@ -63,23 +61,18 @@
 		{
 			img: Matter,
 			label: '事项详情',
-			key: '1'
+			key: "sxxq"
 		},
 		{
 			img: transfer,
-			label: '流转办理',
-			key: '2',
+			label: '事项办理',
+			key: "sxbl",
 			isNeedStep: true,
 		},
 		{
 			img: applyRecord,
 			label: '申请记录',
-			key: '3',
-		},
-		{
-			img: Audit,
-			label: '审核',
-			key: '4',
+			key: "sqjl",
 		},
 	]
 
@@ -110,15 +103,7 @@
 		}
 	}
 
-	const getCaseDetail = async () => {
-		const res = await getCaseDetailApi({
-			caseId: '10086',
-			type: '1'
-		})
-		if (res.type) {
-			setCaseDetail(res.data)
-		}
-	}
+
 
 	const getAuthor = async () => {
 		const res = await getTabButton({
@@ -126,6 +111,7 @@
 		})
 		if (res.type) {
 			const { tabList } = res.data
+			console.log(tabList, 'tabList1')
 			setAuthorData(res.data)
 			if (tabList.length === 0) {
 				//没有tab就不展示
@@ -139,6 +125,7 @@
 					})
 					return flag
 				}))
+				console.log(tabsList, 'tabsList2')
 				setTabsActive(tabList[0].id)
 			}
 		}
@@ -148,10 +135,9 @@
 
 
 	useEffect(() => {
-		// getAuthor();
-		// getCase();
-		// getLaw();
-		// getCaseDetail();
+		getAuthor();
+		getCase();
+		getLaw();
 	}, [])
 
 
@@ -165,11 +151,11 @@
 				}
 			>
 				<Tabs
-					defaultActiveTab='1'
+					defaultActiveTab='sxxq'
 					onChange={(v) => setTabsActive(v)}
 					className='myTabContent'
 				>
-					{myTab?.map(item => {
+					{tabsList?.map(item => {
 						return <TabPane
 							key={item.key}
 							title={
@@ -191,16 +177,16 @@
 									</Steps>
 								</div>
 							}
-							{tabsActive === '1' &&
+							{tabsActive === 'sxxq' &&
 								<MatterDetail hasApplet={true} hasEditBtn={true} />
 							}
 							{
-								tabsActive === '2' && <Typography.Paragraph style={style}>
+								tabsActive === 'sxbl' && <Typography.Paragraph style={style}>
 									<Handle />
 								</Typography.Paragraph>
 							}
 							{
-								tabsActive === '3' && <Typography.Paragraph style={style}>
+								tabsActive === 'sqjl' && <Typography.Paragraph style={style}>
 									<AuditView />
 								</Typography.Paragraph>
 							}
@@ -217,7 +203,6 @@
 				onClose={() => setAiQuestionView(false)}
 				aiData={aiData}
 				aiLawData={aiLawData}
-				caseDetail={caseDetailView}
 			/>
 		</div>
 	)

--
Gitblit v1.8.0