Przeglądaj źródła

style: 目录结构调整

lanjianrong 5 lat temu
rodzic
commit
3ec2302f0d

+ 5 - 5
config/routes.js

@@ -51,14 +51,14 @@ export default [
                 routes: [
                   {
                     path: '/customer',
-                    redirect: '/Customer/Contact',
+                    redirect: '/customer/client',
                     authority: ['admin', 'client_access']
                   },
                   {
-                    path: '/customer/contact',
-                    name: 'contact',
+                    path: '/customer/client',
+                    name: 'client',
                     icon: 'icon-address-book',
-                    component: './Customer/Contact',
+                    component: './Customer/Client',
                     authority: ['admin', 'client_access']
                   },
                   {
@@ -89,7 +89,7 @@ export default [
                 routes: [
                   {
                     path: '/product',
-                    redirect: '/Product/Lock'
+                    redirect: '/product/lock'
                   },
                   {
                     path: '/product/lock',

+ 1 - 1
src/components/EditableForm/src/editableFormItem.jsx

@@ -210,7 +210,7 @@ const EditableFormItem = ({
     <Col span={span}>
       <Row wrap={false} className="border-t-1px border-hex-f3f3f3 border-solid pt-8px pb-8px">
         <Col flex="100px" className="text-right">
-          <span className="zh-lh-32 mr-10px">{label}:</span>
+          <span className="leading-32px mr-10px">{label}:</span>
         </Col>
         <Col flex="auto">{cell}</Col>
       </Row>

+ 1 - 1
src/locales/zh-CN/menu.js

@@ -8,7 +8,7 @@ export default {
   'menu.workbench.dashboard': '仪表盘',
   'menu.workbench.workbench': '代办事项',
   'menu.customer': '客户',
-  'menu.customer.contact': '联系人',
+  'menu.customer.client': '联系人',
   'menu.customer.company': '客户',
   'menu.customer.business': '商机',
   'menu.customer.test': '测试',

+ 1 - 3
src/pages/Customer/Business/components/BusinessDetail/Form.jsx

@@ -1,9 +1,7 @@
 import { Row, Col } from 'antd'
 import React from 'react'
 import EditableForm from '@/components/EditableForm'
-import ChangeCompanyInput, {
-  ChangeCompMap
-} from '@/pages/Customer/Contact/components/ChangeCompany'
+import ChangeCompanyInput, { ChangeCompMap } from '@/pages/Customer/Client/components/ChangeCompany'
 import ChangeStaff from '../ChangeStaff/index'
 import Step from './Step/index'
 

+ 1 - 1
src/pages/Customer/Business/components/BusinessDetail/TabList.jsx

@@ -4,7 +4,7 @@ import consts from '@/consts'
 import { apiAddBusiService } from '@/services/customer'
 import { useDispatch } from 'dva'
 // import ProTable from '@ant-design/pro-table'
-import AddRecord from '@/pages/Customer/Contact/components/ContactDetail/AddRecord'
+import AddRecord from '@/pages/Customer/Client/components/ContactDetail/AddRecord'
 
 const ContanctTabList = ({ businessId }) => {
   const dispatch = useDispatch()

src/pages/Customer/Contact/components/AddContact/index.jsx → src/pages/Customer/Client/components/AddContact/index.jsx


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

@@ -3,7 +3,7 @@ import { LinkOne, LinkInterrupt, Switch } from '@icon-park/react'
 import { Card, Tooltip } from 'antd'
 import React from 'react'
 import styles from './index.less'
-import SearchModal from '@/pages/Customer/Contact/components/ConnectCompany'
+import SearchModal from '@/pages/Customer/Client/components/ConnectCompany'
 import { apiDelCustomer } from '@/services/customer'
 import { useDispatch } from 'dva'
 import consts from '@/consts'

src/pages/Customer/Contact/components/ChangeCompany/index.less → src/pages/Customer/Client/components/ChangeCompany/index.less


src/pages/Customer/Contact/components/ConnectCompany/index.jsx → src/pages/Customer/Client/components/ConnectCompany/index.jsx


src/pages/Customer/Contact/components/ConnectCompany/index.less → src/pages/Customer/Client/components/ConnectCompany/index.less


src/pages/Customer/Contact/components/ContactDetail/AddRecord.jsx → src/pages/Customer/Client/components/ContactDetail/AddRecord.jsx


+ 1 - 1
src/pages/Customer/Contact/components/ContactDetail/ContanctForm.jsx

@@ -1,7 +1,7 @@
 import { Row, Col, Tooltip } from 'antd'
 import React from 'react'
 import EditableForm from '@/components/EditableForm'
-import ChangeCompanyInput from '@/pages/Customer/Contact/components/ChangeCompany'
+import ChangeCompanyInput from '@/pages/Customer/Client/components/ChangeCompany'
 import { connect } from 'umi'
 import PersonLabel from '@/pages/Customer/Company/components/PersonLabel'
 import { Add } from '@icon-park/react'

+ 1 - 1
src/pages/Customer/Contact/components/ContactDetail/ContanctLowerList.jsx

@@ -4,7 +4,7 @@ import { dayjsFormat } from '@/utils/utils'
 
 const ContanctLowerList = props => {
   const {
-    log: { log: logs = [], total = 0 },
+    log: { log: logs = [] },
     servicelist
   } = props
   const servicelogEnum = {

src/pages/Customer/Contact/components/ContactDetail/ContanctTabList.jsx → src/pages/Customer/Client/components/ContactDetail/ContanctTabList.jsx


src/pages/Customer/Contact/components/ContactDetail/index.jsx → src/pages/Customer/Client/components/ContactDetail/index.jsx


+ 2 - 2
src/pages/Customer/Contact/index.jsx

@@ -1,6 +1,6 @@
-import ContactDetail from '@/pages/Customer/Contact/components/ContactDetail'
+import ContactDetail from '@/pages/Customer/Client/components/ContactDetail'
 import CompanyDetail from '@/pages/Customer/Company/components/CompanyDetail'
-import AddContact from '@/pages/Customer/Contact/components/AddContact'
+import AddContact from '@/pages/Customer/Client/components/AddContact'
 import ProTable from '@ant-design/pro-table'
 import { Input, Button, message, Tooltip, Select } from 'antd'
 import { connect } from 'dva'

src/pages/Customer/Contact/index.less → src/pages/Customer/Client/index.less


+ 1 - 1
src/pages/Customer/Company/components/AddCompany/index.jsx

@@ -5,7 +5,7 @@ import LazyCascader from '@/components/LazyCascader'
 import { ModalForm, ProFormText, ProFormCheckbox } from '@ant-design/pro-form'
 import { PlusOutlined } from '@ant-design/icons'
 import { connect } from 'dva'
-import { ChangeCompMap } from '../../../Contact/components/ChangeCompany'
+import { ChangeCompMap } from '../../../Client/components/ChangeCompany'
 
 const AddCompanyModal = ({ dataId, dataType, onConfirm, dispatch, natures }) => {
   const formRef = useRef()

+ 3 - 3
src/pages/Customer/Company/components/CompanyDetail/TabList.jsx

@@ -1,14 +1,14 @@
-import ContactDetail from '@/pages/Customer/Contact/components/ContactDetail'
+import ContactDetail from '@/pages/Customer/Client/components/ContactDetail'
 import React, { useRef, useState } from 'react'
 import { Tabs, message } from 'antd'
-import AddContact from '@/pages/Customer/Contact/components/AddContact'
+import AddContact from '@/pages/Customer/Client/components/AddContact'
 import { apiAddClient, apiAddCustomerService } from '@/services/customer'
 import { formatValues } from '@/components/LazyCascader'
 import consts from '@/consts'
 import ProTable from '@ant-design/pro-table'
 import { useModal } from '@/components/Modal'
 import { useDispatch } from 'dva'
-import AddRecord from '@/pages/Customer/Contact/components/ContactDetail/AddRecord'
+import AddRecord from '@/pages/Customer/Client/components/ContactDetail/AddRecord'
 
 const CompanyTabList = ({ initData, customerId, client, software }) => {
   const dispatch = useDispatch()

+ 0 - 5
src/pages/Customer/Contact/components/AlertOption/index.jsx

@@ -1,5 +0,0 @@
-const AlertOption = () => {
-  return <div />
-}
-
-export default AlertOption