Przeglądaj źródła

内场接待不显示

Baozhangchao 3 lat temu
rodzic
commit
f64a977c5e

+ 2
- 2
config/dev.js Wyświetl plik

@@ -4,8 +4,8 @@ module.exports = {
4 4
   },
5 5
   defineConstants: {
6 6
     // HOST: '"https://xlk.njyz.tech"',
7
-    HOST: '"https://www.newhousehold.cn"',
8
-    // HOST: '"http://192.168.89.147:8081"',
7
+    // HOST: '"https://www.newhousehold.cn"',
8
+    HOST: '"http://192.168.89.147:8081"',
9 9
 
10 10
     // WSS_HOST: '"wss://www.newhousehold.cn"',
11 11
     WSS_HOST: '"wss://xlk.njyz.tech"',

+ 6
- 14
src/pages/mine/addCustomer/index.jsx Wyświetl plik

@@ -77,20 +77,12 @@ export default withLayout((props) => {
77 77
   }
78 78
 
79 79
   const onSubmit = () => {
80
-    const payload = personType === ROLE_CODE.CONSULTANT ?
81
-      {
82
-        name: FormData.name, // 姓名
83
-        phone: FormData.phone, // 电话
84
-        sex: SexId, // 性别
85
-        describe: FormData.describe, // 描述
86
-        buildingId,
87
-      } :
88
-      {
89
-        ...FormData,
90
-        sex: SexId,
91
-        buildingId,
92
-        realtyConsultant: CardId
93
-      };
80
+    const payload = {
81
+      ...FormData,
82
+      sex: SexId,
83
+      buildingId,
84
+      realtyConsultant: CardId
85
+    };
94 86
 
95 87
     if (!preSubmit(payload)) {
96 88
       return;

+ 1
- 1
src/subpackages/pages/marketing/changeVisit/index.jsx Wyświetl plik

@@ -116,7 +116,7 @@ export default withLayout((props) => {
116 116
 
117 117
 
118 118
       return ConsultantList.map((item) => {
119
-        if (item.id === ConsultantId) {
119
+        if (item.id === ConsultantId || `${item.userId}` === ConsultantId) {
120 120
           setCurrnetConsultant(item)
121 121
         }
122 122
       })