|
|
|
@ -63,45 +63,6 @@ const NewTagForm = ({onSubmit,...props}) => {
|
|
|
|
|
</Form>
|
|
|
|
|
);
|
|
|
|
|
};
|
|
|
|
|
const EditChatMemoForm = ({onSubmit,...props}) => {
|
|
|
|
|
const [form] = Form.useForm();
|
|
|
|
|
const [subLoding, setSubLoding] = useState(false);
|
|
|
|
|
/**
|
|
|
|
|
* @deprecated
|
|
|
|
|
*/
|
|
|
|
|
const onFinish = async (values) => {
|
|
|
|
|
console.log('Received values of form[chat_memo]: ', values);
|
|
|
|
|
setSubLoding(true);
|
|
|
|
|
// debug:
|
|
|
|
|
setTimeout(() => {
|
|
|
|
|
setSubLoding(false);
|
|
|
|
|
}, 2000);
|
|
|
|
|
if (typeof onSubmit === 'function') {
|
|
|
|
|
await onSubmit();
|
|
|
|
|
}
|
|
|
|
|
form.resetFields();
|
|
|
|
|
setSubLoding(false);
|
|
|
|
|
}
|
|
|
|
|
return (
|
|
|
|
|
<Form
|
|
|
|
|
form={form}
|
|
|
|
|
name='chat_memo_form'
|
|
|
|
|
layout='inline' size='small'
|
|
|
|
|
initialValues={{}}
|
|
|
|
|
// onFinish={onFinish}
|
|
|
|
|
>
|
|
|
|
|
<Form.Item name={'memo'} rules={[{ required: true, message: '请输入备注' }]}>
|
|
|
|
|
<Input placeholder='输入备注' width={400} className='w-64' />
|
|
|
|
|
</Form.Item>
|
|
|
|
|
<Form.Item>
|
|
|
|
|
<Button type='primary' htmlType='submit' loading={subLoding} >
|
|
|
|
|
确定
|
|
|
|
|
</Button>
|
|
|
|
|
</Form.Item>
|
|
|
|
|
</Form>
|
|
|
|
|
);
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const ChatListItem = (({item, refreshConversationList,setListUpdateFlag,onSwitchConversation,tabSelectedConversation, setNewChatModalVisible,setEditingChat,...props}) => {
|
|
|
|
|
const [mobile] = useStyleStore((state) => [state.mobile]);
|
|
|
|
|