浏览代码

内场接待不显示

Baozhangchao 3 年前
父节点
当前提交
f64a977c5e
共有 3 个文件被更改,包括 9 次插入17 次删除
  1. 2
    2
      config/dev.js
  2. 6
    14
      src/pages/mine/addCustomer/index.jsx
  3. 1
    1
      src/subpackages/pages/marketing/changeVisit/index.jsx

+ 2
- 2
config/dev.js 查看文件

4
   },
4
   },
5
   defineConstants: {
5
   defineConstants: {
6
     // HOST: '"https://xlk.njyz.tech"',
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
     // WSS_HOST: '"wss://www.newhousehold.cn"',
10
     // WSS_HOST: '"wss://www.newhousehold.cn"',
11
     WSS_HOST: '"wss://xlk.njyz.tech"',
11
     WSS_HOST: '"wss://xlk.njyz.tech"',

+ 6
- 14
src/pages/mine/addCustomer/index.jsx 查看文件

77
   }
77
   }
78
 
78
 
79
   const onSubmit = () => {
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
     if (!preSubmit(payload)) {
87
     if (!preSubmit(payload)) {
96
       return;
88
       return;

+ 1
- 1
src/subpackages/pages/marketing/changeVisit/index.jsx 查看文件

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