commit
Showing
1 changed file
with
79 additions
and
0 deletions
| ... | @@ -855,6 +855,36 @@ | ... | @@ -855,6 +855,36 @@ |
| 855 | </el-form> | 855 | </el-form> |
| 856 | </el-col> | 856 | </el-col> |
| 857 | <el-col :span="8"> | 857 | <el-col :span="8"> |
| 858 | <el-form ref="addPhoneAuthor" :model="addPhoneAuthor" label-width="0px"> | ||
| 859 | <el-card class="darkred" shadow="always"> | ||
| 860 | <div slot="header" class="clearfix"> | ||
| 861 | <span>开通超级鑫卡、电话医生、一站式健康管家权限</span> | ||
| 862 | </div> | ||
| 863 | <div class="text item"> | ||
| 864 | <el-form-item> | ||
| 865 | <el-input placeholder="请输入手机号" v-model="addPhoneAuthor.phone" clearable></el-input> | ||
| 866 | </el-form-item> | ||
| 867 | <el-form-item> | ||
| 868 | <el-select v-model="addPhoneAuthor.type" placeholder="请选择权限种类"> | ||
| 869 | <el-option | ||
| 870 | v-for="item in addPhoneAuthorOptions" | ||
| 871 | :key="item.value" | ||
| 872 | :label="item.label" | ||
| 873 | :value="item.value"> | ||
| 874 | </el-option> | ||
| 875 | </el-select> | ||
| 876 | </el-form-item> | ||
| 877 | <div style="margin: 15px 0;"></div> | ||
| 878 | <el-form-item> | ||
| 879 | <el-button round @click="addPhoneAuthorSubmit">开通权限</el-button> | ||
| 880 | </el-form-item> | ||
| 881 | </div> | ||
| 882 | </el-card> | ||
| 883 | </el-form> | ||
| 884 | </el-col> | ||
| 885 | </el-row> | ||
| 886 | <el-row style="margin-bottom: 15px;"> | ||
| 887 | <el-col :span="8"> | ||
| 858 | <el-form ref="createPhoneVisit" :model="createPhoneVisit" label-width="0px"> | 888 | <el-form ref="createPhoneVisit" :model="createPhoneVisit" label-width="0px"> |
| 859 | <el-card class="darkred" shadow="always"> | 889 | <el-card class="darkred" shadow="always"> |
| 860 | <div slot="header" class="clearfix"> | 890 | <div slot="header" class="clearfix"> |
| ... | @@ -1075,6 +1105,14 @@ | ... | @@ -1075,6 +1105,14 @@ |
| 1075 | value: '1', | 1105 | value: '1', |
| 1076 | label: '线上环境' | 1106 | label: '线上环境' |
| 1077 | }], | 1107 | }], |
| 1108 | addPhoneAuthor: { | ||
| 1109 | phone: '', | ||
| 1110 | type: [] | ||
| 1111 | }, | ||
| 1112 | addPhoneAuthorOptions: [{ | ||
| 1113 | value: '0', | ||
| 1114 | label: '吉林超级鑫卡' | ||
| 1115 | }], | ||
| 1078 | queryPhoneCode: { | 1116 | queryPhoneCode: { |
| 1079 | phone: '', | 1117 | phone: '', |
| 1080 | huanjing: [] | 1118 | huanjing: [] |
| ... | @@ -1630,6 +1668,47 @@ | ... | @@ -1630,6 +1668,47 @@ |
| 1630 | }); | 1668 | }); |
| 1631 | }) | 1669 | }) |
| 1632 | }, | 1670 | }, |
| 1671 | addPhoneAuthorSubmit() { | ||
| 1672 | const loading = this.$loading({ | ||
| 1673 | lock: true, | ||
| 1674 | text: '加载中...', | ||
| 1675 | spinner: 'el-icon-loading', | ||
| 1676 | background: 'rgba(0, 0, 0, 0.7)' | ||
| 1677 | }); | ||
| 1678 | let config = { | ||
| 1679 | headers: { | ||
| 1680 | 'Content-Type': 'application/x-www-form-urlencoded' | ||
| 1681 | } | ||
| 1682 | } | ||
| 1683 | this.$http.get('/tool/addPhoneAuthor?'+this.$qs.stringify({ | ||
| 1684 | phone: this.addPhoneAuthor.phone, | ||
| 1685 | type: this.addPhoneAuthor.type.toString() | ||
| 1686 | }),config).then((res)=>{ | ||
| 1687 | console.log(res); | ||
| 1688 | if(res.data=='success') { | ||
| 1689 | this.$message({ | ||
| 1690 | showClose: true, | ||
| 1691 | message: '权限开通成功', | ||
| 1692 | type: 'success' | ||
| 1693 | }); | ||
| 1694 | } else { | ||
| 1695 | this.$message({ | ||
| 1696 | showClose: true, | ||
| 1697 | message: res.data, | ||
| 1698 | type: 'error' | ||
| 1699 | }); | ||
| 1700 | } | ||
| 1701 | loading.close() | ||
| 1702 | }).catch(error=>{ | ||
| 1703 | console.log(error); | ||
| 1704 | loading.close() | ||
| 1705 | this.$message({ | ||
| 1706 | showClose: true, | ||
| 1707 | message: '服务器处理失败,请核对参数!', | ||
| 1708 | type: 'error' | ||
| 1709 | }); | ||
| 1710 | }) | ||
| 1711 | }, | ||
| 1633 | smsCodeSubmit() { | 1712 | smsCodeSubmit() { |
| 1634 | let config = { | 1713 | let config = { |
| 1635 | headers: { | 1714 | headers: { | ... | ... |
-
Please register or sign in to post a comment