commit
Showing
1 changed file
with
68 additions
and
1 deletions
| ... | @@ -188,6 +188,24 @@ | ... | @@ -188,6 +188,24 @@ |
| 188 | </el-row> | 188 | </el-row> |
| 189 | <el-row style="margin-bottom: 15px;"> | 189 | <el-row style="margin-bottom: 15px;"> |
| 190 | <el-col :span="8"> | 190 | <el-col :span="8"> |
| 191 | <el-form ref="changeOrg" :model="changeOrg" label-width="0px"> | ||
| 192 | <el-card class="darkred" shadow="always"> | ||
| 193 | <div slot="header" class="clearfix"> | ||
| 194 | <span>开通切换任意机构权限</span> | ||
| 195 | </div> | ||
| 196 | <div class="text item"> | ||
| 197 | <el-form-item> | ||
| 198 | <el-input placeholder="请输入手机号" v-model="changeOrg.phone" clearable></el-input> | ||
| 199 | </el-form-item> | ||
| 200 | <div style="margin: 15px 0;"></div> | ||
| 201 | <el-form-item> | ||
| 202 | <el-button round @click="changeOrgSubmit">开通权限</el-button> | ||
| 203 | </el-form-item> | ||
| 204 | </div> | ||
| 205 | </el-card> | ||
| 206 | </el-form> | ||
| 207 | </el-col> | ||
| 208 | <el-col :span="8"> | ||
| 191 | <el-form ref="createAPI" :model="createAPI" label-width="0px"> | 209 | <el-form ref="createAPI" :model="createAPI" label-width="0px"> |
| 192 | <el-card class="darkred" shadow="always"> | 210 | <el-card class="darkred" shadow="always"> |
| 193 | <div slot="header" class="clearfix"> | 211 | <div slot="header" class="clearfix"> |
| ... | @@ -258,6 +276,8 @@ | ... | @@ -258,6 +276,8 @@ |
| 258 | </el-card> | 276 | </el-card> |
| 259 | </el-form> | 277 | </el-form> |
| 260 | </el-col> | 278 | </el-col> |
| 279 | </el-row> | ||
| 280 | <el-row style="margin-bottom: 15px;"> | ||
| 261 | <el-col :span="8"> | 281 | <el-col :span="8"> |
| 262 | <el-form ref="deleteClues" :model="deleteClues" label-width="0px"> | 282 | <el-form ref="deleteClues" :model="deleteClues" label-width="0px"> |
| 263 | <el-card class="darkred" shadow="always"> | 283 | <el-card class="darkred" shadow="always"> |
| ... | @@ -434,7 +454,10 @@ | ... | @@ -434,7 +454,10 @@ |
| 434 | dialogCreateApi: false, | 454 | dialogCreateApi: false, |
| 435 | myApi: '', | 455 | myApi: '', |
| 436 | dialogQueryUserInfo: false, | 456 | dialogQueryUserInfo: false, |
| 437 | myQueryUserInfo: '' | 457 | myQueryUserInfo: '', |
| 458 | changeOrg: { | ||
| 459 | phone: '' | ||
| 460 | } | ||
| 438 | // activityConfigRules: { | 461 | // activityConfigRules: { |
| 439 | // id: [ | 462 | // id: [ |
| 440 | // { required: true, message: '请输入活动ID', trigger: 'blur' } | 463 | // { required: true, message: '请输入活动ID', trigger: 'blur' } |
| ... | @@ -742,6 +765,50 @@ | ... | @@ -742,6 +765,50 @@ |
| 742 | }); | 765 | }); |
| 743 | }) | 766 | }) |
| 744 | loading.close(); | 767 | loading.close(); |
| 768 | }, | ||
| 769 | changeOrgSubmit() { | ||
| 770 | let config = { | ||
| 771 | headers: { | ||
| 772 | 'Content-Type': 'application/x-www-form-urlencoded' | ||
| 773 | } | ||
| 774 | } | ||
| 775 | this.$http.get('/tool/changeOrg?'+this.$qs.stringify({ | ||
| 776 | phone: this.changeOrg.phone | ||
| 777 | }),config).then((res)=>{ | ||
| 778 | console.log(res); | ||
| 779 | if(res.data=='jobnull') { | ||
| 780 | this.$message({ | ||
| 781 | showClose: true, | ||
| 782 | message: '代理人手机号不存在', | ||
| 783 | type: 'error' | ||
| 784 | }); | ||
| 785 | } else if(res.data=='jobexist') { | ||
| 786 | this.$message({ | ||
| 787 | showClose: true, | ||
| 788 | message: '该手机号已开通权限', | ||
| 789 | type: 'error' | ||
| 790 | }); | ||
| 791 | } else if(res.data=='success') { | ||
| 792 | this.$message({ | ||
| 793 | showClose: true, | ||
| 794 | message: '开通权限成功', | ||
| 795 | type: 'success' | ||
| 796 | }); | ||
| 797 | } else { | ||
| 798 | this.$message({ | ||
| 799 | showClose: true, | ||
| 800 | message: '开通权限失败', | ||
| 801 | type: 'error' | ||
| 802 | }); | ||
| 803 | } | ||
| 804 | }).catch(error=>{ | ||
| 805 | console.log(error); | ||
| 806 | this.$message({ | ||
| 807 | showClose: true, | ||
| 808 | message: '服务器处理失败,请核对参数!', | ||
| 809 | type: 'error' | ||
| 810 | }); | ||
| 811 | }) | ||
| 745 | } | 812 | } |
| 746 | } | 813 | } |
| 747 | } | 814 | } | ... | ... |
-
Please register or sign in to post a comment