Просмотр исходного кода

fix: 关联客户对加密后的0进行特殊处理

lanjianrong 5 лет назад
Родитель
Сommit
51941b7747
2 измененных файлов с 6 добавлено и 2 удалено
  1. 2 1
      src/consts.js
  2. 4 1
      src/pages/Customer/Contact/components/ChangeCompany/index.jsx

+ 2 - 1
src/consts.js

@@ -4,5 +4,6 @@ import BASE_CONSTS from '@/basic/consts'
 export default {
   ...BASE_CONSTS,
   // 自定义变量
-  PAGE_SIZE: 20 // 分页条数
+  PAGE_SIZE: 20, // 分页条数
+  ENCRYPTION_ZERO: 'McAlO0O0OdO0O0Oi'
 }

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

@@ -6,6 +6,7 @@ import styles from './index.less'
 import SearchModal from '@/components/Modal/src/components/customerModal'
 import { apiDelCustomer } from '@/services/contact'
 import { useDispatch } from 'dva'
+import consts from '@/consts'
 
 const ChangeCompanyInput = props => {
   const dispatch = useDispatch()
@@ -85,7 +86,9 @@ const ChangeCompanyInput = props => {
     </Card>
   )
   return (
-    <div className={styles.companyInput}>{customerId ? normalValueRender : notValueRender}</div>
+    <div className={styles.companyInput}>
+      {customerId !== consts.ENCRYPTION_ZERO ? normalValueRender : notValueRender}
+    </div>
   )
 }