فهرست منبع

新增联系人

outaozhen 5 سال پیش
والد
کامیت
19f8d9350b
2فایلهای تغییر یافته به همراه7 افزوده شده و 7 حذف شده
  1. 6 6
      src/components/PopContent/Contacts/AddRecord.jsx
  2. 1 1
      src/components/PopContent/Contacts/index.jsx

+ 6 - 6
src/components/PopContent/Contacts/AddRecord.jsx

@@ -4,9 +4,8 @@ import { useForm } from 'antd/lib/form/Form'
 
 const AddRecord = props => {
   const [form] = useForm()
-  // const { Option, OptGroup } = Select
   const { TextArea } = Input
-  const { visible, onCancel, onConfirm, loading } = props
+  const { visible, onCancel, onConfirm, loading, id = '' } = props
   const [showExtraItem, setShowExtraItem] = useState(false)
   const onChange = value => {
     // const { value = '' } = e.currentTarget || e.target
@@ -35,14 +34,15 @@ const AddRecord = props => {
               <Radio value={4}>其他事项</Radio>
             </Radio.Group>
           </Form.Item>
-          <Form.Item name="time" label="时间">
+          <Form.Item name="date" label="时间">
             <DatePicker style={{ width: '100%' }} />
           </Form.Item>
-          <Form.Item name="con" label="内容">
+          <Form.Item name="mark" label="内容">
             <TextArea rows={3} />
           </Form.Item>
-          <div className="zh-align-center">
-            <Switch onChange={onChange} /> <span>添加提醒</span>
+          <div className="zh-pd-bottom-20">
+            <Switch onChange={onChange} />
+            <span className="zh-mg-left-3">添加提醒</span>
           </div>
           {showExtraItem ? (
             <>

+ 1 - 1
src/components/PopContent/Contacts/index.jsx

@@ -46,7 +46,7 @@ const PopContent = props => {
           </div>
         </Col>
         <Col span={12}>
-          <ContanctTabList />
+          <ContanctTabList clientid={id} />
           <ContanctLowerList log={state.log} servicelist={state.serviceLog} />
         </Col>
       </Row>