瀏覽代碼

修复页面

魏熙美 5 年之前
父節點
當前提交
a53c3311ec

+ 5
- 1
src/config/api.js 查看文件

193
     },
193
     },
194
     drift: { // 游客列表
194
     drift: { // 游客列表
195
       method: `get`,
195
       method: `get`,
196
-      url: `${commPrefix}//customer/recommend/drift`
196
+      url: `${commPrefix}/customer/recommend/drift`
197
+    },
198
+    verify: { // 审核用户
199
+      method: `put`,
200
+      url: `${commPrefix}/customer/recommend/verify/:id`
197
     }
201
     }
198
   },
202
   },
199
   goods:{
203
   goods:{

+ 13
- 0
src/store/modules/customer.js 查看文件

120
         })
120
         })
121
       })
121
       })
122
     },
122
     },
123
+    verifyRecommend({ commit }, payload) { // 查询推荐客户列表
124
+      return new Promise((resolve, reject) => {
125
+        request({
126
+          ...apis.recommendCustomer.verify,
127
+          urlData: { id: payload.customerId },
128
+          params: payload,
129
+        }).then((data) => {
130
+          resolve(data)
131
+        }).catch(({ message }) => {
132
+          reject(message)
133
+        })
134
+      })
135
+    },
123
     
136
     
124
   }
137
   }
125
 }
138
 }

+ 4
- 2
src/views/customer/editRecommend.vue 查看文件

122
         verifyStatus: '0',
122
         verifyStatus: '0',
123
         buildings: [],
123
         buildings: [],
124
         realtyConsultant: '',
124
         realtyConsultant: '',
125
-        sex: ''
125
+        sex: '',
126
+        verifyRemark: ''
126
       },
127
       },
127
       dialogForm: {
128
       dialogForm: {
128
         pageNumber: 1,
129
         pageNumber: 1,
231
       this.imgList = fileList;
232
       this.imgList = fileList;
232
     },
233
     },
233
     submitForm() {
234
     submitForm() {
235
+        console.log('this.detail: ', this.detail)
234
       this.showLoadding("保存中...");
236
       this.showLoadding("保存中...");
235
-      this.$store.dispatch('customer/getRecommendCustomersUpdate',this.detail)
237
+      this.$store.dispatch('customer/verifyRecommend',this.detail)
236
         .then(res => {
238
         .then(res => {
237
           if (res.personId) {
239
           if (res.personId) {
238
             this.detail = res;
240
             this.detail = res;

+ 2
- 0
src/views/customer/integralRecord.vue 查看文件

126
           return '分享'
126
           return '分享'
127
         case 'authorize':
127
         case 'authorize':
128
           return '授权'
128
           return '授权'
129
+        case 'signup-agent':
130
+          return '推荐客户'
129
         default:
131
         default:
130
           return '未知类型'
132
           return '未知类型'
131
       }
133
       }

+ 1
- 1
src/views/customer/recommendCustomer.vue 查看文件

80
       </el-table-column>
80
       </el-table-column>
81
       <el-table-column fixed="right" width="200" label="操作">
81
       <el-table-column fixed="right" width="200" label="操作">
82
         <template slot-scope="scope">
82
         <template slot-scope="scope">
83
-          <router-link :to="{ name:'editRecommend', query: { id: scope.row.customerId } }" v-if="scope.row.verifyStatus !== 1">审核</router-link>
83
+          <router-link :to="{ name:'editRecommend', query: { id: scope.row.customerId } }" >审核</router-link> <!-- v-if="scope.row.verifyStatus !== 1" -->
84
         </template>
84
         </template>
85
       </el-table-column>
85
       </el-table-column>
86
     </el-table>
86
     </el-table>