From 8d6b46929dc3cb6d012c889f22cb8976fa6bd04d Mon Sep 17 00:00:00 2001
From: dminyi <1301963064@qq.com>
Date: Wed, 11 Sep 2024 12:05:04 +0800
Subject: [PATCH] 修改
---
gz-customerSystem/src/views/register/handleFeedback/component/handle.jsx | 20 +++++++++++---------
1 files changed, 11 insertions(+), 9 deletions(-)
diff --git a/gz-customerSystem/src/views/register/handleFeedback/component/handle.jsx b/gz-customerSystem/src/views/register/handleFeedback/component/handle.jsx
index 3ba1229..056f38a 100644
--- a/gz-customerSystem/src/views/register/handleFeedback/component/handle.jsx
+++ b/gz-customerSystem/src/views/register/handleFeedback/component/handle.jsx
@@ -138,9 +138,12 @@
}
const getByIdRole = async () => {
+ console.log(feedbackInfoData?.handleUserId, 'feedbackInfoData?.handleUserId')
const res = await getByIdRoleApi(feedbackInfoData?.handleUserId)
- setPersonData(res.data)
-
+ if(res.type){
+ setPersonView(!personView)
+ setPersonData(res.data)
+ }
}
@@ -185,9 +188,9 @@
const getFeedbackInfo = async () => {
const res = await getFeedbackInfoApi(caseId)
if (res.type) {
- setFeedbackInfoData(res.data)
+ setFeedbackInfoData(() => res.data)
console.log(res.data, 'res.data')
- getByIdRole();
+ // getByIdRole();
}
}
@@ -269,7 +272,7 @@
}
const handlePersonView = () => {
- setPersonView(!personView)
+ getByIdRole();
}
@@ -366,7 +369,7 @@
caseId && managerName ?
<WantUserTag name={managerName} onClose={() => setWantUser({ wantUserId: null, wantUserName: null })} />
:
- <Button onClick={() => setIsModalVisible(true)} style={{ color: '#1A6FB8', border: '1px solid #1A6FB8' }} type='outline'>选择</Button>
+ <Button onClick={() => { setIsModalVisible(true); }} style={{ color: '#1A6FB8', border: '1px solid #1A6FB8' }} type='outline'>选择</Button>
}
</FormItem>
</Col>
@@ -407,7 +410,6 @@
wrapperStyle={{ width: '100%' }}
/>
</FormItem>
-
</Col>
<Col span={24}>
<FormItem
@@ -420,7 +422,7 @@
>
<ArcoUpload
params={{
- action: `${appUrl.fileUrl}/${appUrl.sys}/api/web/fileInfo/upload?mainId=${caseId}&ownerId=${caseId}&ownerType=${'22_00018-501'}`,
+ action: `${appUrl.fileUrl}/${appUrl.sys}/api/web/fileInfo/upload?mainId=${caseId}&ownerId=${id}&ownerType=${'22_00018-501'}`,
}}
field='file1'
// handleChangeFile={handleChangeFile}
@@ -543,7 +545,7 @@
</tr>
<tr>
<th bgcolor="#F7F8FA" className="table-title">所属部门</th>
- <td>{personData?.deptName}</td>
+ <td>{personData?.unitName}</td>
<th bgcolor="#F7F8FA" className="table-title">职务</th>
<td>{personData?.userRoles}</td>
</tr>
--
Gitblit v1.8.0