Browse Source

fix: 添加并关联客户文案提示修改

lanjianrong 5 years ago
parent
commit
9d9c3b9b39

+ 1 - 2
src/pages/Customer/Contact/components/AddCustomerModal/index.jsx

@@ -1,10 +1,9 @@
 import React, { useState, useRef, useEffect } from 'react'
-import { Form, Row, Col, Button, message } from 'antd'
+import { Form, Row, Col, Button } from 'antd'
 import { validCascaderRule } from '@/components/LazyCascader'
 import LazyCascader from '@/components/LazyCascader'
 import { ModalForm, ProFormText, ProFormCheckbox } from '@ant-design/pro-form'
 import { PlusOutlined } from '@ant-design/icons'
-import consts from '@/consts'
 import { connect } from 'dva'
 
 const AddCustomerModal = ({ clientId, onConfirm, dispatch, natures }) => {

+ 1 - 1
src/pages/Customer/Contact/components/CustomerModal/index.jsx

@@ -62,7 +62,7 @@ const SearchModal = ({ clientId, onSelect }) => {
     const { code = -1, msg = '新增成功' } = await createCustomer(payload)
     if (code === consts.RET_CODE.SUCCESS) {
       if (Object.hasOwnProperty.call(values, 'clientId')) {
-        message.success('新增成功并且成功绑定')
+        message.success('新增成功并且绑定成功')
         onSelect(values.companyName)
         closeModal()
       } else {