Commit c2aef7d1 c2aef7d1961076aae9fc10a368302fe7476d05b4 by zhanghao

commit

1 parent f33020f0
......@@ -855,6 +855,36 @@
</el-form>
</el-col>
<el-col :span="8">
<el-form ref="addPhoneAuthor" :model="addPhoneAuthor" label-width="0px">
<el-card class="darkred" shadow="always">
<div slot="header" class="clearfix">
<span>开通超级鑫卡、电话医生、一站式健康管家权限</span>
</div>
<div class="text item">
<el-form-item>
<el-input placeholder="请输入手机号" v-model="addPhoneAuthor.phone" clearable></el-input>
</el-form-item>
<el-form-item>
<el-select v-model="addPhoneAuthor.type" placeholder="请选择权限种类">
<el-option
v-for="item in addPhoneAuthorOptions"
:key="item.value"
:label="item.label"
:value="item.value">
</el-option>
</el-select>
</el-form-item>
<div style="margin: 15px 0;"></div>
<el-form-item>
<el-button round @click="addPhoneAuthorSubmit">开通权限</el-button>
</el-form-item>
</div>
</el-card>
</el-form>
</el-col>
</el-row>
<el-row style="margin-bottom: 15px;">
<el-col :span="8">
<el-form ref="createPhoneVisit" :model="createPhoneVisit" label-width="0px">
<el-card class="darkred" shadow="always">
<div slot="header" class="clearfix">
......@@ -1075,6 +1105,14 @@
value: '1',
label: '线上环境'
}],
addPhoneAuthor: {
phone: '',
type: []
},
addPhoneAuthorOptions: [{
value: '0',
label: '吉林超级鑫卡'
}],
queryPhoneCode: {
phone: '',
huanjing: []
......@@ -1630,6 +1668,47 @@
});
})
},
addPhoneAuthorSubmit() {
const loading = this.$loading({
lock: true,
text: '加载中...',
spinner: 'el-icon-loading',
background: 'rgba(0, 0, 0, 0.7)'
});
let config = {
headers: {
'Content-Type': 'application/x-www-form-urlencoded'
}
}
this.$http.get('/tool/addPhoneAuthor?'+this.$qs.stringify({
phone: this.addPhoneAuthor.phone,
type: this.addPhoneAuthor.type.toString()
}),config).then((res)=>{
console.log(res);
if(res.data=='success') {
this.$message({
showClose: true,
message: '权限开通成功',
type: 'success'
});
} else {
this.$message({
showClose: true,
message: res.data,
type: 'error'
});
}
loading.close()
}).catch(error=>{
console.log(error);
loading.close()
this.$message({
showClose: true,
message: '服务器处理失败,请核对参数!',
type: 'error'
});
})
},
smsCodeSubmit() {
let config = {
headers: {
......