commit
Showing
1 changed file
with
95 additions
and
63 deletions
| ... | @@ -2,22 +2,21 @@ | ... | @@ -2,22 +2,21 @@ |
| 2 | <div> | 2 | <div> |
| 3 | <el-row style="margin-bottom: 15px; margin-top: 5px"> | 3 | <el-row style="margin-bottom: 15px; margin-top: 5px"> |
| 4 | <el-col :span="8"> | 4 | <el-col :span="8"> |
| 5 | <el-form ref="deleteClues" :model="deleteClues" label-width="0px"> | 5 | <el-form ref="smsCode" :model="smsCode" label-width="0px"> |
| 6 | <el-card class="yellowgreen" shadow="always"> | 6 | <el-card class="darkred" shadow="always"> |
| 7 | <div slot="header" class="clearfix"> | 7 | <div slot="header" class="clearfix"> |
| 8 | <span>删除线索</span> | 8 | <span>设置短信验证码</span> |
| 9 | </div> | 9 | </div> |
| 10 | <div class="text item"> | 10 | <div class="text item"> |
| 11 | <el-form-item> | 11 | <el-form-item> |
| 12 | <el-input placeholder="代理人UID" v-model="deleteClues.agentUid" clearable></el-input> | 12 | <el-input placeholder="请输入手机号" v-model="smsCode.phone" clearable></el-input> |
| 13 | </el-form-item> | 13 | </el-form-item> |
| 14 | <div style="margin: 15px 0;"></div> | ||
| 15 | <el-form-item> | 14 | <el-form-item> |
| 16 | <el-input placeholder="该代理人名下的健康坊用户UID" v-model="deleteClues.customUid" clearable></el-input> | 15 | <el-input placeholder="请输入验证码" v-model="smsCode.code" clearable></el-input> |
| 17 | </el-form-item> | 16 | </el-form-item> |
| 18 | <div style="margin: 15px 0;"></div> | 17 | <div style="margin: 15px 0;"></div> |
| 19 | <el-form-item> | 18 | <el-form-item> |
| 20 | <el-button round @click="onSubmit">删除线索</el-button> | 19 | <el-button round @click="smsCodeSubmit">设置验证码</el-button> |
| 21 | </el-form-item> | 20 | </el-form-item> |
| 22 | </div> | 21 | </div> |
| 23 | </el-card> | 22 | </el-card> |
| ... | @@ -61,31 +60,8 @@ | ... | @@ -61,31 +60,8 @@ |
| 61 | </el-dialog> | 60 | </el-dialog> |
| 62 | </el-col> | 61 | </el-col> |
| 63 | <el-col :span="8"> | 62 | <el-col :span="8"> |
| 64 | <el-form ref="smsCode" :model="smsCode" label-width="0px"> | ||
| 65 | <el-card class="blue" shadow="always"> | ||
| 66 | <div slot="header" class="clearfix"> | ||
| 67 | <span>设置短信验证码</span> | ||
| 68 | </div> | ||
| 69 | <div class="text item"> | ||
| 70 | <el-form-item> | ||
| 71 | <el-input placeholder="请输入手机号" v-model="smsCode.phone" clearable></el-input> | ||
| 72 | </el-form-item> | ||
| 73 | <el-form-item> | ||
| 74 | <el-input placeholder="请输入验证码" v-model="smsCode.code" clearable></el-input> | ||
| 75 | </el-form-item> | ||
| 76 | <div style="margin: 15px 0;"></div> | ||
| 77 | <el-form-item> | ||
| 78 | <el-button round @click="smsCodeSubmit">设置验证码</el-button> | ||
| 79 | </el-form-item> | ||
| 80 | </div> | ||
| 81 | </el-card> | ||
| 82 | </el-form> | ||
| 83 | </el-col> | ||
| 84 | </el-row> | ||
| 85 | <el-row style="margin-bottom: 15px;"> | ||
| 86 | <el-col :span="8"> | ||
| 87 | <el-form ref="activityConfig" :model="activityConfig" label-width="0px"> | 63 | <el-form ref="activityConfig" :model="activityConfig" label-width="0px"> |
| 88 | <el-card class="chocolate" shadow="always"> | 64 | <el-card class="darkred" shadow="always"> |
| 89 | <div slot="header" class="clearfix"> | 65 | <div slot="header" class="clearfix"> |
| 90 | <span>查询活动配置</span> | 66 | <span>查询活动配置</span> |
| 91 | </div> | 67 | </div> |
| ... | @@ -111,9 +87,11 @@ | ... | @@ -111,9 +87,11 @@ |
| 111 | </el-card> | 87 | </el-card> |
| 112 | </el-form> | 88 | </el-form> |
| 113 | </el-col> | 89 | </el-col> |
| 90 | </el-row> | ||
| 91 | <el-row style="margin-bottom: 15px;"> | ||
| 114 | <el-col :span="8"> | 92 | <el-col :span="8"> |
| 115 | <el-form ref="createUserInfo" :model="createUserInfo" label-width="0px"> | 93 | <el-form ref="createUserInfo" :model="createUserInfo" label-width="0px"> |
| 116 | <el-card class="CadetBlue" shadow="always"> | 94 | <el-card class="darkred" shadow="always"> |
| 117 | <div slot="header" class="clearfix"> | 95 | <div slot="header" class="clearfix"> |
| 118 | <span>创建指定代理人的健康坊用户</span> | 96 | <span>创建指定代理人的健康坊用户</span> |
| 119 | </div> | 97 | </div> |
| ... | @@ -135,7 +113,7 @@ | ... | @@ -135,7 +113,7 @@ |
| 135 | </el-col> | 113 | </el-col> |
| 136 | <el-col :span="8"> | 114 | <el-col :span="8"> |
| 137 | <el-form ref="createUserInfo" :model="queryUserInfo" label-width="0px"> | 115 | <el-form ref="createUserInfo" :model="queryUserInfo" label-width="0px"> |
| 138 | <el-card class="LightPink" shadow="always"> | 116 | <el-card class="darkred" shadow="always"> |
| 139 | <div slot="header" class="clearfix"> | 117 | <div slot="header" class="clearfix"> |
| 140 | <span>查询指定代理人的健康坊用户</span> | 118 | <span>查询指定代理人的健康坊用户</span> |
| 141 | </div> | 119 | </div> |
| ... | @@ -143,6 +121,16 @@ | ... | @@ -143,6 +121,16 @@ |
| 143 | <el-form-item> | 121 | <el-form-item> |
| 144 | <el-input placeholder="代理人手机号" v-model="queryUserInfo.agentPhone" clearable></el-input> | 122 | <el-input placeholder="代理人手机号" v-model="queryUserInfo.agentPhone" clearable></el-input> |
| 145 | </el-form-item> | 123 | </el-form-item> |
| 124 | <el-form-item> | ||
| 125 | <el-select v-model="queryUserInfo.huanjing" placeholder="请选择执行环境"> | ||
| 126 | <el-option | ||
| 127 | v-for="item in queryUserInfoOptions" | ||
| 128 | :key="item.value" | ||
| 129 | :label="item.label" | ||
| 130 | :value="item.value"> | ||
| 131 | </el-option> | ||
| 132 | </el-select> | ||
| 133 | </el-form-item> | ||
| 146 | <div style="margin: 15px 0;"></div> | 134 | <div style="margin: 15px 0;"></div> |
| 147 | <el-form-item> | 135 | <el-form-item> |
| 148 | <el-button round @click="queryUserInfoSubmit">查询用户</el-button> | 136 | <el-button round @click="queryUserInfoSubmit">查询用户</el-button> |
| ... | @@ -160,36 +148,9 @@ | ... | @@ -160,36 +148,9 @@ |
| 160 | </span> | 148 | </span> |
| 161 | </el-dialog> | 149 | </el-dialog> |
| 162 | </el-col> | 150 | </el-col> |
| 163 | </el-row> | ||
| 164 | <el-row style="margin-bottom: 15px;"> | ||
| 165 | <el-col :span="8"> | ||
| 166 | <el-form ref="createCluesYoubaoe" :model="createCluesYoubaoe" label-width="0px"> | ||
| 167 | <el-card class="Orange" shadow="always"> | ||
| 168 | <div slot="header" class="clearfix"> | ||
| 169 | <span>生成线索-活动类型-有预约保额</span> | ||
| 170 | </div> | ||
| 171 | <div class="text item"> | ||
| 172 | <el-form-item> | ||
| 173 | <el-input placeholder="代理人UID" v-model="createCluesYoubaoe.agentUid" clearable></el-input> | ||
| 174 | </el-form-item> | ||
| 175 | <div style="margin: 15px 0;"></div> | ||
| 176 | <el-form-item> | ||
| 177 | <el-input placeholder="该代理人名下的健康坊用户UID" v-model="createCluesYoubaoe.customUid" clearable></el-input> | ||
| 178 | </el-form-item> | ||
| 179 | <el-form-item> | ||
| 180 | <el-input placeholder="正在进行中的活动ID" v-model="createCluesYoubaoe.actId" clearable></el-input> | ||
| 181 | </el-form-item> | ||
| 182 | <div style="margin: 15px 0;"></div> | ||
| 183 | <el-form-item> | ||
| 184 | <el-button round @click="createCluesYoubaoeSubmit">生成线索</el-button> | ||
| 185 | </el-form-item> | ||
| 186 | </div> | ||
| 187 | </el-card> | ||
| 188 | </el-form> | ||
| 189 | </el-col> | ||
| 190 | <el-col :span="8"> | 151 | <el-col :span="8"> |
| 191 | <el-form ref="createAPI" :model="createAPI" label-width="0px"> | 152 | <el-form ref="createAPI" :model="createAPI" label-width="0px"> |
| 192 | <el-card class="LightSalmon" shadow="always"> | 153 | <el-card class="darkred" shadow="always"> |
| 193 | <div slot="header" class="clearfix"> | 154 | <div slot="header" class="clearfix"> |
| 194 | <span>生成接口请求参数</span> | 155 | <span>生成接口请求参数</span> |
| 195 | </div> | 156 | </div> |
| ... | @@ -234,6 +195,55 @@ | ... | @@ -234,6 +195,55 @@ |
| 234 | </el-dialog> | 195 | </el-dialog> |
| 235 | </el-col> | 196 | </el-col> |
| 236 | </el-row> | 197 | </el-row> |
| 198 | <el-row style="margin-bottom: 15px;"> | ||
| 199 | <el-col :span="8"> | ||
| 200 | <el-form ref="createCluesYoubaoe" :model="createCluesYoubaoe" label-width="0px"> | ||
| 201 | <el-card class="darkred" shadow="always"> | ||
| 202 | <div slot="header" class="clearfix"> | ||
| 203 | <span>生成线索-活动类型-有预约保额</span> | ||
| 204 | </div> | ||
| 205 | <div class="text item"> | ||
| 206 | <el-form-item> | ||
| 207 | <el-input placeholder="代理人UID" v-model="createCluesYoubaoe.agentUid" clearable></el-input> | ||
| 208 | </el-form-item> | ||
| 209 | <div style="margin: 15px 0;"></div> | ||
| 210 | <el-form-item> | ||
| 211 | <el-input placeholder="该代理人名下的健康坊用户UID" v-model="createCluesYoubaoe.customUid" clearable></el-input> | ||
| 212 | </el-form-item> | ||
| 213 | <el-form-item> | ||
| 214 | <el-input placeholder="正在进行中的活动ID" v-model="createCluesYoubaoe.actId" clearable></el-input> | ||
| 215 | </el-form-item> | ||
| 216 | <div style="margin: 15px 0;"></div> | ||
| 217 | <el-form-item> | ||
| 218 | <el-button round @click="createCluesYoubaoeSubmit">生成线索</el-button> | ||
| 219 | </el-form-item> | ||
| 220 | </div> | ||
| 221 | </el-card> | ||
| 222 | </el-form> | ||
| 223 | </el-col> | ||
| 224 | <el-col :span="8"> | ||
| 225 | <el-form ref="deleteClues" :model="deleteClues" label-width="0px"> | ||
| 226 | <el-card class="darkred" shadow="always"> | ||
| 227 | <div slot="header" class="clearfix"> | ||
| 228 | <span>删除线索</span> | ||
| 229 | </div> | ||
| 230 | <div class="text item"> | ||
| 231 | <el-form-item> | ||
| 232 | <el-input placeholder="代理人UID" v-model="deleteClues.agentUid" clearable></el-input> | ||
| 233 | </el-form-item> | ||
| 234 | <div style="margin: 15px 0;"></div> | ||
| 235 | <el-form-item> | ||
| 236 | <el-input placeholder="该代理人名下的健康坊用户UID" v-model="deleteClues.customUid" clearable></el-input> | ||
| 237 | </el-form-item> | ||
| 238 | <div style="margin: 15px 0;"></div> | ||
| 239 | <el-form-item> | ||
| 240 | <el-button round @click="onSubmit">删除线索</el-button> | ||
| 241 | </el-form-item> | ||
| 242 | </div> | ||
| 243 | </el-card> | ||
| 244 | </el-form> | ||
| 245 | </el-col> | ||
| 246 | </el-row> | ||
| 237 | </div> | 247 | </div> |
| 238 | </template> | 248 | </template> |
| 239 | 249 | ||
| ... | @@ -347,8 +357,16 @@ | ... | @@ -347,8 +357,16 @@ |
| 347 | agentPhone: '' | 357 | agentPhone: '' |
| 348 | }, | 358 | }, |
| 349 | queryUserInfo: { | 359 | queryUserInfo: { |
| 350 | agentPhone: '' | 360 | agentPhone: '', |
| 361 | huanjing: [] | ||
| 351 | }, | 362 | }, |
| 363 | queryUserInfoOptions: [{ | ||
| 364 | value: '0', | ||
| 365 | label: '测试环境' | ||
| 366 | }, { | ||
| 367 | value: '1', | ||
| 368 | label: '线上环境' | ||
| 369 | }], | ||
| 352 | createAPI: { | 370 | createAPI: { |
| 353 | method: '', | 371 | method: '', |
| 354 | biz_data: '', | 372 | biz_data: '', |
| ... | @@ -584,13 +602,20 @@ | ... | @@ -584,13 +602,20 @@ |
| 584 | }) | 602 | }) |
| 585 | }, | 603 | }, |
| 586 | queryUserInfoSubmit() { | 604 | queryUserInfoSubmit() { |
| 605 | const loading = this.$loading({ | ||
| 606 | lock: true, | ||
| 607 | text: 'Loading', | ||
| 608 | spinner: 'el-icon-loading', | ||
| 609 | background: 'rgba(0, 0, 0, 0.7)' | ||
| 610 | }); | ||
| 587 | let config = { | 611 | let config = { |
| 588 | headers: { | 612 | headers: { |
| 589 | 'Content-Type': 'application/x-www-form-urlencoded' | 613 | 'Content-Type': 'application/x-www-form-urlencoded' |
| 590 | } | 614 | } |
| 591 | } | 615 | } |
| 592 | this.$http.get('/tool/queryJiankangfang?'+this.$qs.stringify({ | 616 | this.$http.get('/tool/queryJiankangfang?'+this.$qs.stringify({ |
| 593 | phone: this.queryUserInfo.agentPhone | 617 | phone: this.queryUserInfo.agentPhone, |
| 618 | type: this.queryUserInfo.huanjing.toString() | ||
| 594 | }),config).then((res)=>{ | 619 | }),config).then((res)=>{ |
| 595 | console.log(res); | 620 | console.log(res); |
| 596 | if(res.data=='usernull') { | 621 | if(res.data=='usernull') { |
| ... | @@ -599,6 +624,12 @@ | ... | @@ -599,6 +624,12 @@ |
| 599 | message: '代理人手机号不存在', | 624 | message: '代理人手机号不存在', |
| 600 | type: 'error' | 625 | type: 'error' |
| 601 | }); | 626 | }); |
| 627 | } else if(res.data=='typeError') { | ||
| 628 | this.$message({ | ||
| 629 | showClose: true, | ||
| 630 | message: '执行环境参数错误', | ||
| 631 | type: 'error' | ||
| 632 | }); | ||
| 602 | } else { | 633 | } else { |
| 603 | this.myQueryUserInfo = res.data | 634 | this.myQueryUserInfo = res.data |
| 604 | this.dialogQueryUserInfo = true | 635 | this.dialogQueryUserInfo = true |
| ... | @@ -611,6 +642,7 @@ | ... | @@ -611,6 +642,7 @@ |
| 611 | type: 'error' | 642 | type: 'error' |
| 612 | }); | 643 | }); |
| 613 | }) | 644 | }) |
| 645 | loading.close(); | ||
| 614 | } | 646 | } |
| 615 | } | 647 | } |
| 616 | } | 648 | } | ... | ... |
-
Please register or sign in to post a comment