|
|
|
@ -7,6 +7,7 @@ import useAuthStore from '@/stores/AuthStore';
|
|
|
|
|
|
|
|
|
|
const InputAssign = ({ initialValues, ...props }) => {
|
|
|
|
|
const [userId, username] = useAuthStore((state) => [state.loginUser.userId, state.loginUser.username]);
|
|
|
|
|
const actionDisabled = !['79', '383', '404', '227'].includes(String(userId));
|
|
|
|
|
|
|
|
|
|
const { message } = App.useApp();
|
|
|
|
|
const [form] = Form.useForm();
|
|
|
|
@ -16,6 +17,7 @@ const InputAssign = ({ initialValues, ...props }) => {
|
|
|
|
|
const valuesSub = {
|
|
|
|
|
...values,
|
|
|
|
|
opi_sn: values.opi_sn.value,
|
|
|
|
|
from_opi_sn: userId, // 谁在操作
|
|
|
|
|
};
|
|
|
|
|
setSubLoading(true);
|
|
|
|
|
await postAssignConversation(valuesSub);
|
|
|
|
@ -35,10 +37,11 @@ const InputAssign = ({ initialValues, ...props }) => {
|
|
|
|
|
<Input />
|
|
|
|
|
</Form.Item>
|
|
|
|
|
<div className='flex justify-end gap-4 items-end'>
|
|
|
|
|
<Button type='primary' ghost size={'small'} onClick={assignToMe} disabled={subLoading}>
|
|
|
|
|
{actionDisabled && <div className='text-yellow-400'>无权限操作, 请联系陆燕</div>}
|
|
|
|
|
<Button type='primary' ghost size={'small'} onClick={assignToMe} disabled={actionDisabled || subLoading}>
|
|
|
|
|
分配给我
|
|
|
|
|
</Button>
|
|
|
|
|
<Button type='primary' htmlType='submit' loading={subLoading}>
|
|
|
|
|
<Button type='primary' htmlType='submit' loading={subLoading} disabled={actionDisabled}>
|
|
|
|
|
确认
|
|
|
|
|
</Button>
|
|
|
|
|
</div>
|
|
|
|
|