用户信息增加我的业务经理查询
Showing
3 changed files
with
138 additions
and
6 deletions
| ... | @@ -14,8 +14,8 @@ import VCharts from 'v-charts' | ... | @@ -14,8 +14,8 @@ import VCharts from 'v-charts' |
| 14 | Vue.config.productionTip = false | 14 | Vue.config.productionTip = false |
| 15 | Vue.prototype.$http = axios | 15 | Vue.prototype.$http = axios |
| 16 | Vue.prototype.$qs=qs | 16 | Vue.prototype.$qs=qs |
| 17 | axios.defaults.baseURL = 'http://39.105.142.246:9090' | 17 | //axios.defaults.baseURL = 'http://39.105.142.246:9090' |
| 18 | // axios.defaults.baseURL = 'http://127.0.0.1:9090' | 18 | axios.defaults.baseURL = 'http://192.168.8.203:9090' |
| 19 | 19 | ||
| 20 | Vue.use(Element, { size: 'small', zIndex: 3000 }); | 20 | Vue.use(Element, { size: 'small', zIndex: 3000 }); |
| 21 | Vue.use(vueClipboard); | 21 | Vue.use(vueClipboard); | ... | ... |
| ... | @@ -165,8 +165,11 @@ | ... | @@ -165,8 +165,11 @@ |
| 165 | </el-card> | 165 | </el-card> |
| 166 | </el-form> | 166 | </el-form> |
| 167 | </el-col> | 167 | </el-col> |
| 168 | </el-row> | ||
| 169 | |||
| 170 | <el-row style="margin-bottom: 15px;"> | ||
| 168 | <el-col :span="8"> | 171 | <el-col :span="8"> |
| 169 | <el-form ref="smsCode" :model="smsCode222" label-width="0px"> | 172 | <el-form ref="smsCode1" :model="smsCode222" label-width="0px"> |
| 170 | <el-card class="darkred" shadow="always"> | 173 | <el-card class="darkred" shadow="always"> |
| 171 | <div slot="header" class="clearfix"> | 174 | <div slot="header" class="clearfix"> |
| 172 | <span>测试设置短信验证码</span> | 175 | <span>测试设置短信验证码</span> |
| ... | @@ -186,6 +189,43 @@ | ... | @@ -186,6 +189,43 @@ |
| 186 | </el-card> | 189 | </el-card> |
| 187 | </el-form> | 190 | </el-form> |
| 188 | </el-col> | 191 | </el-col> |
| 192 | <el-col :span="8"> | ||
| 193 | <el-form ref="queryPhoneCode" :model="queryPhoneCode" label-width="0px"> | ||
| 194 | <el-card class="darkred" shadow="always"> | ||
| 195 | <div slot="header" class="clearfix"> | ||
| 196 | <span>测试查询短信验证码</span> | ||
| 197 | </div> | ||
| 198 | <div class="text item"> | ||
| 199 | <el-form-item> | ||
| 200 | <el-input placeholder="请输入手机号" v-model="queryPhoneCode222.phone" clearable></el-input> | ||
| 201 | </el-form-item> | ||
| 202 | <el-form-item> | ||
| 203 | <el-select v-model="queryPhoneCode222.huanjing" placeholder="请选择执行环境"> | ||
| 204 | <el-option | ||
| 205 | v-for="item in queryPhoneCode222Options" | ||
| 206 | :key="item.value" | ||
| 207 | :label="item.label" | ||
| 208 | :value="item.value"> | ||
| 209 | </el-option> | ||
| 210 | </el-select> | ||
| 211 | </el-form-item> | ||
| 212 | <div style="margin: 15px 0;"></div> | ||
| 213 | <el-form-item> | ||
| 214 | <el-button round @click="queryPhoneCodeSubmit222">查询验证码</el-button> | ||
| 215 | </el-form-item> | ||
| 216 | </div> | ||
| 217 | </el-card> | ||
| 218 | </el-form> | ||
| 219 | <el-dialog | ||
| 220 | title="短信验证码:" | ||
| 221 | :visible.sync="dialogQueryPhoneCode" | ||
| 222 | width="30%"> | ||
| 223 | <span>{{myQueryPhoneCode}}</span> | ||
| 224 | <span slot="footer" class="dialog-footer"> | ||
| 225 | <el-button type="primary" v-clipboard:copy="JSON.stringify(myQueryPhoneCode)" v-clipboard:success="onCopy" @click="dialogQueryPhoneCode = false">点击复制</el-button> | ||
| 226 | </span> | ||
| 227 | </el-dialog> | ||
| 228 | </el-col> | ||
| 189 | </el-row> | 229 | </el-row> |
| 190 | </div> | 230 | </div> |
| 191 | </template> | 231 | </template> |
| ... | @@ -263,7 +303,7 @@ | ... | @@ -263,7 +303,7 @@ |
| 263 | code: 1111 | 303 | code: 1111 |
| 264 | }, | 304 | }, |
| 265 | smsCode222: { | 305 | smsCode222: { |
| 266 | phone: '', | 306 | phone: '15910793402', |
| 267 | code: 6666 | 307 | code: 6666 |
| 268 | }, | 308 | }, |
| 269 | baomingWeijihuo: { | 309 | baomingWeijihuo: { |
| ... | @@ -275,6 +315,17 @@ | ... | @@ -275,6 +315,17 @@ |
| 275 | phone: '', | 315 | phone: '', |
| 276 | huanjing: [] | 316 | huanjing: [] |
| 277 | }, | 317 | }, |
| 318 | queryPhoneCode222: { | ||
| 319 | phone: '15910793402', | ||
| 320 | huanjing: [] | ||
| 321 | }, | ||
| 322 | queryPhoneCode222Options: [{ | ||
| 323 | value: '0', | ||
| 324 | label: '测试环境' | ||
| 325 | }, { | ||
| 326 | value: '1', | ||
| 327 | label: '线上环境' | ||
| 328 | }], | ||
| 278 | queryPhoneCodeOptions: [{ | 329 | queryPhoneCodeOptions: [{ |
| 279 | value: '0', | 330 | value: '0', |
| 280 | label: '测试环境' | 331 | label: '测试环境' |
| ... | @@ -405,7 +456,7 @@ | ... | @@ -405,7 +456,7 @@ |
| 405 | 'Content-Type': 'application/x-www-form-urlencoded' | 456 | 'Content-Type': 'application/x-www-form-urlencoded' |
| 406 | } | 457 | } |
| 407 | } | 458 | } |
| 408 | this.$http.get('/tool2/smsCode2?'+this.$qs.stringify({ | 459 | this.$http.get('/tool2/smsCode222?'+this.$qs.stringify({ |
| 409 | phone: this.smsCode222.phone, | 460 | phone: this.smsCode222.phone, |
| 410 | code: this.smsCode222.code | 461 | code: this.smsCode222.code |
| 411 | }),config).then((res)=>{ | 462 | }),config).then((res)=>{ |
| ... | @@ -438,6 +489,50 @@ | ... | @@ -438,6 +489,50 @@ |
| 438 | }); | 489 | }); |
| 439 | }) | 490 | }) |
| 440 | }, | 491 | }, |
| 492 | queryPhoneCodeSubmit222() { | ||
| 493 | const loading = this.$loading({ | ||
| 494 | lock: true, | ||
| 495 | text: '加载中...', | ||
| 496 | spinner: 'el-icon-loading', | ||
| 497 | background: 'rgba(0, 0, 0, 0.7)' | ||
| 498 | }); | ||
| 499 | let config = { | ||
| 500 | headers: { | ||
| 501 | 'Content-Type': 'application/x-www-form-urlencoded' | ||
| 502 | } | ||
| 503 | } | ||
| 504 | this.$http.get('/tool2/queryPhoneCode222?'+this.$qs.stringify({ | ||
| 505 | phone: this.queryPhoneCode222.phone, | ||
| 506 | type: this.queryPhoneCode222.huanjing.toString() | ||
| 507 | }),config).then((res)=>{ | ||
| 508 | console.log(res); | ||
| 509 | if(res.data=='codenull') { | ||
| 510 | this.$message({ | ||
| 511 | showClose: true, | ||
| 512 | message: '该手机号验证码为空', | ||
| 513 | type: 'error' | ||
| 514 | }); | ||
| 515 | } else if(res.data=='typeError') { | ||
| 516 | this.$message({ | ||
| 517 | showClose: true, | ||
| 518 | message: '执行环境参数错误', | ||
| 519 | type: 'error' | ||
| 520 | }); | ||
| 521 | } else { | ||
| 522 | this.myQueryPhoneCode = res.data | ||
| 523 | this.dialogQueryPhoneCode = true | ||
| 524 | } | ||
| 525 | loading.close(); | ||
| 526 | }).catch(error=>{ | ||
| 527 | console.log(error); | ||
| 528 | loading.close(); | ||
| 529 | this.$message({ | ||
| 530 | showClose: true, | ||
| 531 | message: '服务器处理失败,请核对参数!', | ||
| 532 | type: 'error' | ||
| 533 | }); | ||
| 534 | }) | ||
| 535 | }, | ||
| 441 | //-----------------------------------------------------------测试---------------------------------- | 536 | //-----------------------------------------------------------测试---------------------------------- |
| 442 | baomingWeijihuoSubmit() { | 537 | baomingWeijihuoSubmit() { |
| 443 | const loading = this.$loading({ | 538 | const loading = this.$loading({ | ... | ... |
| ... | @@ -88,6 +88,41 @@ | ... | @@ -88,6 +88,41 @@ |
| 88 | </el-table-column> | 88 | </el-table-column> |
| 89 | </el-table> | 89 | </el-table> |
| 90 | <br/> | 90 | <br/> |
| 91 | |||
| 92 | <br/> | ||
| 93 | <span>我的业务经理(tbl_customer_ownership)</span> | ||
| 94 | <el-table | ||
| 95 | :data="myCusOwner" | ||
| 96 | border | ||
| 97 | style="width: 100%" | ||
| 98 | :header-cell-style="{background: 'deepskyblue', color: 'snow'}"> | ||
| 99 | <el-table-column | ||
| 100 | prop="uid" | ||
| 101 | label="UID" | ||
| 102 | min-width="1"> | ||
| 103 | </el-table-column> | ||
| 104 | <el-table-column | ||
| 105 | prop="agentUid" | ||
| 106 | label="代理人uid" | ||
| 107 | min-width="1"> | ||
| 108 | </el-table-column> | ||
| 109 | <el-table-column | ||
| 110 | prop="chooseAgentUid" | ||
| 111 | label="业务经理uid" | ||
| 112 | min-width="1"> | ||
| 113 | </el-table-column> | ||
| 114 | <el-table-column | ||
| 115 | prop="chooseTime" | ||
| 116 | label="选择代理人时间" | ||
| 117 | min-width="1"> | ||
| 118 | </el-table-column> | ||
| 119 | |||
| 120 | </el-table> | ||
| 121 | <br/> | ||
| 122 | |||
| 123 | |||
| 124 | |||
| 125 | |||
| 91 | <br/> | 126 | <br/> |
| 92 | <span>代理人详情表(tbl_agent_properties)</span> | 127 | <span>代理人详情表(tbl_agent_properties)</span> |
| 93 | <el-table | 128 | <el-table |
| ... | @@ -222,7 +257,8 @@ | ... | @@ -222,7 +257,8 @@ |
| 222 | tblAgentProperties: [], | 257 | tblAgentProperties: [], |
| 223 | tblAgentCustomers: [], | 258 | tblAgentCustomers: [], |
| 224 | tblAgentCustomersAll: [], | 259 | tblAgentCustomersAll: [], |
| 225 | tblJiHuoAgentProperties: [] | 260 | tblJiHuoAgentProperties: [], |
| 261 | myCusOwner: [] | ||
| 226 | } | 262 | } |
| 227 | }, | 263 | }, |
| 228 | mounted() { | 264 | mounted() { |
| ... | @@ -251,6 +287,7 @@ | ... | @@ -251,6 +287,7 @@ |
| 251 | this.tblAgentCustomers=res.data.tblAgentCustomers | 287 | this.tblAgentCustomers=res.data.tblAgentCustomers |
| 252 | this.tblAgentCustomersAll=res.data.tblAgentCustomersAll | 288 | this.tblAgentCustomersAll=res.data.tblAgentCustomersAll |
| 253 | this.tblJiHuoAgentProperties=res.data.tblJiHuoAgentProperties | 289 | this.tblJiHuoAgentProperties=res.data.tblJiHuoAgentProperties |
| 290 | this.myCusOwner=res.data.myCusOwner | ||
| 254 | loading.close(); | 291 | loading.close(); |
| 255 | }).catch(error=>{ | 292 | }).catch(error=>{ |
| 256 | console.log(error); | 293 | console.log(error); | ... | ... |
-
Please register or sign in to post a comment