From e1961f3d69deb7bb75c365748f4726bcedb10dda Mon Sep 17 00:00:00 2001 From: zhangyongtian <1181606322@qq.com> Date: Sat, 31 Aug 2024 15:37:54 +0800 Subject: [PATCH] feat:事件流转 --- gz-customerSystem/src/views/register/visit/component/agentDialog.jsx | 10 ++++++++-- 1 files changed, 8 insertions(+), 2 deletions(-) diff --git a/gz-customerSystem/src/views/register/visit/component/agentDialog.jsx b/gz-customerSystem/src/views/register/visit/component/agentDialog.jsx index 1a2c4f0..b63946c 100644 --- a/gz-customerSystem/src/views/register/visit/component/agentDialog.jsx +++ b/gz-customerSystem/src/views/register/visit/component/agentDialog.jsx @@ -1,7 +1,7 @@ import React, { useState, useEffect, useRef, Fragment } from "react"; import { Row, Col, Space } from 'antd'; import { Form, Input, Button, Radio, Select, Checkbox, Upload } from '@arco-design/web-react'; -import KeyVisits from "./keyVisits"; +import KeyVisits from "@/components/personCard/KeyVisits"; import { IconLink, } from '@arco-design/web-react/icon'; @@ -241,7 +241,7 @@ <Select placeholder='请选择' allowClear - options={$$.options.agentType} + options={$$.options.agentRelate} onChange={(value, options) => { formRef.current.setFieldValue('agentRelateName', options && options.children) }} @@ -275,6 +275,12 @@ label: <span>{x.trueName} <span style={{ color: '#86909c' }}>({x.perTypeName})</span></span>, value: x.id, }))} + onChange={(value) => { + if (value) { + const personList = visitList.filter(item => value.indexOf(item.id) != -1).map(item => item.trueName) + formRef.current.setFieldValue('personNameList', personList) + } + }} > </CheckboxGroup> </FormItem> -- Gitblit v1.8.0