Commit 4dc69e26 authored by zhangderong's avatar zhangderong

登录账号改造为邮箱登录测试

parent fb584432
...@@ -69,9 +69,9 @@ export function getErcode(){ ...@@ -69,9 +69,9 @@ export function getErcode(){
'Content-Type':'application/json', 'Content-Type':'application/json',
}}) }})
} }
// //下载二维码 // //修改账户
// export function downloadErcode(){ export function updateAccount(parmars){
// return axios.get(`${sapi}/qrCode/downQrCode`,{headers: { return axios.post(`${sapi}/api/user/modify/${parmars.id}`,parmars,{headers: {
// 'Content-Type':'application/json', 'Content-Type':'application/json',
// }}) }})
// } }
\ No newline at end of file \ No newline at end of file
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
<div class="login_content"> <div class="login_content">
<Form ref="formInline" :model="formInline" :rules="ruleInline" style="height:161px"> <Form ref="formInline" :model="formInline" :rules="ruleInline" style="height:161px">
<FormItem prop="user" style="height:60px"> <FormItem prop="user" style="height:60px">
<Input type="text" v-model="formInline.user" placeholder="请输入账号" class="wordStyle" size="large"> <Input type="text" v-model="formInline.user" placeholder="请输入企业邮箱账号" class="wordStyle" size="large">
<Icon type="ios-person-outline" slot="prepend" ></Icon> <Icon type="ios-person-outline" slot="prepend" ></Icon>
</Input> </Input>
</FormItem> </FormItem>
...@@ -53,7 +53,7 @@ export default { ...@@ -53,7 +53,7 @@ export default {
}, },
ruleInline: { ruleInline: {
user: [ user: [
{ required: true, pattern:/^[1][3,4,5,7,8,6,9][0-9]{9}$/, message: '请输入正确的手机', trigger: 'blur' } { required: true, pattern:/\S+@quantgroup.cn/, message: '请输入正确的邮箱账', trigger: 'blur' }
], ],
password: [ password: [
{ required: true, message: '请输入正确的密码', trigger: 'blur' }, { required: true, message: '请输入正确的密码', trigger: 'blur' },
......
...@@ -5,11 +5,14 @@ ...@@ -5,11 +5,14 @@
<span style="font-size:18px;color:#2d8cf0;margin-left:18px;">新增账户</span> <span style="font-size:18px;color:#2d8cf0;margin-left:18px;">新增账户</span>
<span style="margin-left:10px;color:Grey">以下内容均为必填项</span> <span style="margin-left:10px;color:Grey">以下内容均为必填项</span>
</p> </p>
<Form :label-width="130" :model="formInline" :rules="ruleInline"> <Form :label-width="100" :model="formInline" :rules="ruleInline">
<FormItem label="配置登录账号:" style="margin-top:1%" prop="PhoneNumber"> <FormItem label="登录账号" style="margin-top:1%" prop="emailNumber">
<Input placeholder="请输入企业邮箱" style="width:300px" v-model="formInline.emailNumber"/>
</FormItem>
<FormItem label="手机号码" style="margin-top:1%" prop="PhoneNumber">
<Input placeholder="请输入正确的手机号" style="width:300px" v-model="formInline.PhoneNumber"/> <Input placeholder="请输入正确的手机号" style="width:300px" v-model="formInline.PhoneNumber"/>
</FormItem> </FormItem>
<FormItem label="绑定真实姓名:" style="margin-top:1%" prop="PerName"> <FormItem label="真实姓名" style="margin-top:1%" prop="PerName">
<Input placeholder="请输入真实姓名" style="width:300px" v-model="formInline.PerName" :maxlength="5"/> <Input placeholder="请输入真实姓名" style="width:300px" v-model="formInline.PerName" :maxlength="5"/>
</FormItem> </FormItem>
</Form> </Form>
...@@ -38,8 +41,10 @@ ...@@ -38,8 +41,10 @@
<input type='checkbox' name='checkboxinput' class='input-checkbox' v-model='checkboxList' :value="item.id" style="margin-left:25px;cursor:pointer" @click="delateArr(item.id)"> <input type='checkbox' name='checkboxinput' class='input-checkbox' v-model='checkboxList' :value="item.id" style="margin-left:25px;cursor:pointer" @click="delateArr(item.id)">
<span style="margin-left:5px" >{{item.userName}}</span> <span style="margin-left:5px" >{{item.userName}}</span>
<span style="margin-left:35px">{{item.userCode}}</span> <span style="margin-left:35px">{{item.userCode}}</span>
<span style="margin-left:35px">{{item.phone}}</span>
<span style="margin-left:35px">{{item.createTime}}</span> <span style="margin-left:35px">{{item.createTime}}</span>
<span style="margin-left:35px;color:#2d8cf0;cursor:pointer" @click="recoveryModal(item.id)">恢复初始密码</span> <span style="margin-left:35px;color:#2d8cf0;cursor:pointer" @click="recoveryModal(item.id)">恢复初始密码</span>
<span style="margin-left:35px;color:#2d8cf0;cursor:pointer" @click="updateModal(item)">修改</span>
<span style="margin-left:35px;color:#2d8cf0;cursor:pointer" @click="delateMaodal(item.id)">删除</span> <span style="margin-left:35px;color:#2d8cf0;cursor:pointer" @click="delateMaodal(item.id)">删除</span>
</div> </div>
<div style="height:10px;background:white;width:100%;"></div> <div style="height:10px;background:white;width:100%;"></div>
...@@ -61,6 +66,27 @@ ...@@ -61,6 +66,27 @@
<Button type='primary' @click='modal1=false'>取消</Button> <Button type='primary' @click='modal1=false'>取消</Button>
<Button type='primary' @click="recovery()" >确定</Button> <Button type='primary' @click="recovery()" >确定</Button>
</div> </div>
</Modal>
<Modal
v-model="modal6"
:closable="false"
width='450px'>
<h3 style="text-align:center;font-size:14px">修改信息</h3>
<Form :label-width="100" :model="formInline" :rules="ruleInline" class="updateClassModal">
<FormItem label="登录账号" style="margin-top:1%" prop="emailNumber">
<Input placeholder="请输入企业邮箱" style="width:300px;" v-model="formInline.updateemailNumber" disabled/>
</FormItem>
<FormItem label="手机号码" style="margin-top:1%" prop="updatePhoneNumber">
<Input placeholder="请输入正确的手机号" style="width:300px;" v-model="formInline.updatePhoneNumber"/>
</FormItem>
<FormItem label="真实姓名" style="margin-top:1%" prop="updatePerName">
<Input placeholder="请输入真实姓名" style="width:300px;" v-model="formInline.updatePerName" :maxlength="5"/>
</FormItem>
</Form>
<div slot='footer' style="text-align:center">
<Button type='primary' @click='modal6=false'>取消</Button>
<Button type='primary' @click="confireUpdate" >确定</Button>
</div>
</Modal> </Modal>
<!-- 删除当前的账户 --> <!-- 删除当前的账户 -->
<Modal <Modal
...@@ -98,7 +124,7 @@ ...@@ -98,7 +124,7 @@
</div> </div>
</template> </template>
<script> <script>
import { queryaccountList,addAccount,Delateaccount,delateAllAccount,recoveryPassword} from '../../api/stystem.server.js' import { queryaccountList,addAccount,Delateaccount,delateAllAccount,recoveryPassword,updateAccount} from '../../api/stystem.server.js'
export default { export default {
data(){ data(){
return { return {
...@@ -106,8 +132,10 @@ export default { ...@@ -106,8 +132,10 @@ export default {
modal2:false, modal2:false,
modal3:false, modal3:false,
modal4:false, modal4:false,
modal6:false,
checkboxList:[], checkboxList:[],
checked: false, checked: false,
updateAccountId:'',
pageT:'', pageT:'',
userName:'', userName:'',
userCode:'', userCode:'',
...@@ -126,7 +154,11 @@ export default { ...@@ -126,7 +154,11 @@ export default {
}, },
formInline: { formInline: {
PhoneNumber: '', PhoneNumber: '',
PerName: '' PerName: '',
emailNumber:'',
updatePhoneNumber: '',
updatePerName: '',
updateemailNumber:''
}, },
ruleInline: { ruleInline: {
PhoneNumber: [ PhoneNumber: [
...@@ -135,7 +167,17 @@ export default { ...@@ -135,7 +167,17 @@ export default {
PerName: [ PerName: [
{ required: true, message: '请输入真实的姓名', trigger: 'blur' }, { required: true, message: '请输入真实的姓名', trigger: 'blur' },
{ type: 'string', message: '', trigger: 'blur' } { type: 'string', message: '', trigger: 'blur' }
] ],
updateemailNumber: [
{ required: true, pattern:/^[1][3,4,5,7,8,6,9][0-9]{9}$/, message: '请输入正确的手机号', trigger: 'blur' }
],
updatePerName: [
{ required: true, message: '请输入真实的姓名', trigger: 'blur' },
{ type: 'string', message: '', trigger: 'blur' }
],
emailNumber: [
{ required: true, pattern:/\S+@quantgroup.cn/, message: '请输入正确的邮箱账号', trigger: 'blur' }
],
}, },
ajaxData:[], ajaxData:[],
checkData: [] ,// 双向数据绑定的数组 checkData: [] ,// 双向数据绑定的数组
...@@ -169,16 +211,60 @@ export default { ...@@ -169,16 +211,60 @@ export default {
}); });
} }
}, },
// 修改
updateModal(item){
this.modal6=true
this.updateAccountId=item.id
this.formInline.updateemailNumber=item.email
this.formInline.updatePhoneNumber=item.userCode
this.formInline.updatePerName=item.userName
},
// 确认修改
confireUpdate(){
let parmars={
id:this.updateAccountId,
userCode:this.formInline.updateemailNumber,
userName:this.formInline.updatePerName,
phone:this.formInline.updatePhoneNumber
}
if(this.formInline.updatePhoneNumber==''||this.formInline.updatePerName==''){
this.$Notice.error({
title: '提示',
desc: '请您填写正确的手机号码或姓名',
duration:2
});
return
}
if(!(/^[1][3,4,5,7,8,6,9][0-9]{9}$/.test(this.formInline.updatePhoneNumber))){
this.$Notice.error({
title: '提示',
desc: '请您填写正确的手机号',
duration:2
});
return
}
updateAccount(parmars).then(res=>{
if(res.data.success==true){
this.$Notice.success({
title: '提示',
desc: '修改成功',
duration:2
});
}
this.modal6=false
})
},
//添加账户 //添加账户
addacount(){ addacount(){
let parmars={ let parmars={
userCode:this.formInline.PhoneNumber, userCode:this.formInline.emailNumber,
userName:this.formInline.PerName userName:this.formInline.PerName,
phone:this.formInline.PhoneNumber
} }
if(this.formInline.PhoneNumber==''||this.formInline.PerName==''){ if(this.formInline.PhoneNumber==''||this.formInline.PerName==''||this.formInline.emailNumber==''){
this.$Notice.error({ this.$Notice.error({
title: '提示', title: '提示',
desc: '请您填写正确的手机号或姓名', desc: '请您填写正确的号或姓名',
duration:2 duration:2
}); });
return return
...@@ -192,6 +278,14 @@ export default { ...@@ -192,6 +278,14 @@ export default {
}); });
return return
} }
if(!(/\S+@quantgroup.cn/.test(this.formInline.emailNumber))){
this.$Notice.error({
title: '提示',
desc: '请您填写正确邮箱账号',
duration:2
});
return
}
addAccount(parmars).then(res=>{ addAccount(parmars).then(res=>{
if(res.data.success==true){ if(res.data.success==true){
this.$Notice.success({ this.$Notice.success({
...@@ -202,6 +296,7 @@ export default { ...@@ -202,6 +296,7 @@ export default {
this.SearchList() this.SearchList()
this.formInline.PhoneNumber='' this.formInline.PhoneNumber=''
this.formInline.PerName='' this.formInline.PerName=''
this.formInline.emailNumber=''
} }
if(res.data.body.code==0){ if(res.data.body.code==0){
this.Massage=res.data.body.message this.Massage=res.data.body.message
...@@ -212,6 +307,7 @@ export default { ...@@ -212,6 +307,7 @@ export default {
}); });
this.formInline.PhoneNumber='' this.formInline.PhoneNumber=''
this.formInline.PerName='' this.formInline.PerName=''
this.formInline.emailNumber=''
return return
} }
}) })
...@@ -347,7 +443,7 @@ export default { ...@@ -347,7 +443,7 @@ export default {
overflow: hidden; overflow: hidden;
} }
.addAcount{ .addAcount{
height:210px; height:240px;
width:100%; width:100%;
} }
.pageBottom{ .pageBottom{
...@@ -384,3 +480,8 @@ export default { ...@@ -384,3 +480,8 @@ export default {
display: inline-block; display: inline-block;
} }
</style> </style>
<style>
.updateClassModal .ivu-input{
color: grey !important
}
</style>
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
<div class="addEmail"> <div class="addEmail">
<p style="margin-top:10px"> <p style="margin-top:10px">
<span style="font-size:18px;color:#2d8cf0;margin-left:18px">新增接收邮箱</span> <span style="font-size:18px;color:#2d8cf0;margin-left:18px">新增接收邮箱</span>
<span style="margin-left:10px;color:Grey">绑定邮箱以接收简历</span> <span style="margin-left:10px;color:Grey">绑定邮箱以接收简历,仅可绑定一个邮箱</span>
</p> </p>
<Form :label-width="100" :model="formInline" :rules="ruleInline"> <Form :label-width="100" :model="formInline" :rules="ruleInline">
<FormItem label="邮箱账号" style="margin-top:20px" prop="emailNumber"> <FormItem label="邮箱账号" style="margin-top:20px" prop="emailNumber">
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
<FormItem label="所属人" style="margin-top:20px; position: absolute;top:110px;left: 410px" prop="UserName" :label-width="180"> <FormItem label="所属人" style="margin-top:20px; position: absolute;top:110px;left: 410px" prop="UserName" :label-width="180">
<Input placeholder="请输入所属者正确姓名" style="width:300px" v-model="formInline.UserName" :maxlength="5"/> <Input placeholder="请输入所属者正确姓名" style="width:300px" v-model="formInline.UserName" :maxlength="5"/>
</FormItem> </FormItem>
<span type="primary" style="line-height:30px;text-align:center; width:110px;height:30px;position: absolute;top:130px;left: 910px;border-radius: 5px;background:rgb(0, 146, 255);color:rgb(255,255,255);cursor:pointer" @click="bindingSynchronizat">绑定并开始同步</span> <Button type="primary" style="position: absolute;top:130px;left: 910px;" :disabled='disabled' @click="bindingSynchronizat">绑定并开始同步</Button>
</Form> </Form>
</div> </div>
<div class="Emailmange"> <div class="Emailmange">
...@@ -69,7 +69,7 @@ ...@@ -69,7 +69,7 @@
<h3 style="text-align:center">提示</h3> <h3 style="text-align:center">提示</h3>
<p style="height:30px;line-height:30px">同步完成,如密码发生改变,请及时点击<br><span>修改</span>来重置密码</p> <p style="height:30px;line-height:30px">同步完成,如密码发生改变,请及时点击<br><span>修改</span>来重置密码</p>
<!-- <h2 style="text-align:center;font-size:18px;color:#2d8cf0;height:40px;line-height:40px;margin-top:30px" @click="pushlist">我已知晓</h2> --> <!-- <h2 style="text-align:center;font-size:18px;color:#2d8cf0;height:40px;line-height:40px;margin-top:30px" @click="pushlist">我已知晓</h2> -->
<Button type="primary" style="margin:40px 0 0 80px" @click="modal2=false">我已知晓</Button> <Button type="primary" style="margin:40px 0 0 80px" @click="iKnow">我已知晓</Button>
</Modal> </Modal>
<!-- 同步绑定 --> <!-- 同步绑定 -->
<Modal <Modal
...@@ -165,6 +165,7 @@ export default { ...@@ -165,6 +165,7 @@ export default {
Tblengs:'', Tblengs:'',
checkboxList:[], checkboxList:[],
checked: false, checked: false,
disabled:false,
pageIndex:1, pageIndex:1,
pageSize:30, pageSize:30,
totalSize:null, totalSize:null,
...@@ -217,6 +218,7 @@ export default { ...@@ -217,6 +218,7 @@ export default {
}); });
return return
} }
this.disabled=true
this.modal3=true this.modal3=true
let parmars={ let parmars={
emailName:this.formInline.emailNumber, emailName:this.formInline.emailNumber,
...@@ -233,9 +235,11 @@ export default { ...@@ -233,9 +235,11 @@ export default {
this.formInline.UserName='' this.formInline.UserName=''
this.DATA='' this.DATA=''
this.SearchList() this.SearchList()
// this.disabled=false
} }
if(res.data.success==false){ if(res.data.success==false){
this.modal3=false this.modal3=false
this.disabled=false
this.Massage=res.data.body.message this.Massage=res.data.body.message
this.$Notice.error({ this.$Notice.error({
title: '提示', title: '提示',
...@@ -249,6 +253,10 @@ export default { ...@@ -249,6 +253,10 @@ export default {
this.formInline.emailPsd='' this.formInline.emailPsd=''
}) })
}, },
iKnow(){
this.modal2=false,
this.disabled=false
},
//选择同步的时间 //选择同步的时间
selectTime(b){ selectTime(b){
this.DATA=b this.DATA=b
......
...@@ -33,7 +33,7 @@ function tryHideFullScreenLoading() { ...@@ -33,7 +33,7 @@ function tryHideFullScreenLoading() {
}, 200) }, 200)
} }
} }
let needLoading = ['resume/findListByQueryVO', 'sendMail/sendEmailTemplate', 'resume/forwardResume', 'interview/findListByQueryVO'] let needLoading = ['resume/findListByQueryVO', 'sendMail/sendEmailTemplate', 'resume/forwardResume', 'interview/findListByQueryVO','resume/delete']
instance.interceptors.request.use(function (config) { instance.interceptors.request.use(function (config) {
// 在发送请求之前做些什么 // 在发送请求之前做些什么
if (!config.headers['Content-Type']) { if (!config.headers['Content-Type']) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment