From e2ebcac1a76ab13952494c44336771cc193500db Mon Sep 17 00:00:00 2001 From: Lei OT Date: Tue, 16 Apr 2024 11:05:50 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=9C=AA=E5=88=86=E9=85=8D:=20?= =?UTF-8?q?=E5=88=86=E9=85=8D=E7=BB=99=E6=88=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/Conversations/InputAssign.jsx | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/src/views/Conversations/InputAssign.jsx b/src/views/Conversations/InputAssign.jsx index d184713..9f6ae97 100644 --- a/src/views/Conversations/InputAssign.jsx +++ b/src/views/Conversations/InputAssign.jsx @@ -3,8 +3,11 @@ import { App, Button, Form, Input } from 'antd'; import SearchInput from '@/components/SearchInput'; import { fetchSalesAgent, fetchSalesAgentWithDD } from '@/actions/CommonActions'; import { postAssignConversation } from '@/actions/ConversationActions'; +import useAuthStore from '@/stores/AuthStore'; const InputAssign = ({ initialValues, ...props }) => { + const [userId, username] = useAuthStore((state) => [state.loginUser.userId, state.loginUser.username]); + const { message } = App.useApp(); const [form] = Form.useForm(); @@ -19,6 +22,9 @@ const InputAssign = ({ initialValues, ...props }) => { setSubLoading(false); message.success('分配成功'); } + const assignToMe = () => { + form.setFieldValue('opi_sn', { label: username, value: userId }); + } return ( <>
@@ -28,10 +34,10 @@ const InputAssign = ({ initialValues, ...props }) => { -
- {/* */} +