Commit b5e7ab92 authored by zhangderong's avatar zhangderong

修改登录页

parent 3847ca83
const sapi = "http://recruit-ai3.liangkebang.net"
const sapi = "http://recruitapi-ai3.liangkebang.net"
export {
sapi
}
\ No newline at end of file
......@@ -104,7 +104,7 @@ export default {
}
}
</script>
<style>
<style scope>
.login{
width:100%;
height:100%;
......
<template>
<div>
<div class="updatePsd">
<div class="updatePsd-content">
<div class="updatePsdContent-left">
<img src="../../assets/login.jpg">
</div>
<div class="updatePsdContent-right">
<div class="logo">
<img src="../../assets/log.jpg">
<h3>首次登录请修改密码</h3>
</div>
<div class="updatePsd_content">
<Form ref="formInline" :model="formInline" class="formcontent">
<FormItem class="formitemcontent">
<Input type="password" v-model="formInline.password" placeholder="Password" class="wordStyle" @on-change='verification'>
<Icon type="ios-lock-outline" slot="prepend"></Icon>
</Input>
<span style="color:Grey;margin-left:30px" v-show="fistcontent">4-20位且不得与默认密码相同</span>
</FormItem>
<FormItem style="margin-top:-20px" class="formitemcontent">
<Input type="password" v-model="formInline.passwordTwo" placeholder="Password" class="wordStyle">
<Icon type="ios-lock-outline" slot="prepend"></Icon>
</Input>
<span style="color:Grey;margin-left:30px;color:red" v-show="twocontent">{{twocontentmessage}}</span>
</FormItem>
</Form>
<button type="primary" style="height:30px;width:440px;margin-left:30px; border-radius: 5px;background:rgb(0, 146, 255);color:rgb(255,255,255)" @click="loginT">登录</button>
</div>
<div class="copy">
<p>量化派为你提供全程服务</p>
<p>量化派版权所有</p>
</div>
</div>
</div>
</div>
</div>
</template>
<script>
import { updatePsd} from '../../api/login.server.js'
export default {
data () {
return {
formInline: {
passwordTwo: '',
password: ''
},
fistcontent:true,
twocontent:false,
twocontentmessage:'',
channelarr:[],
ISIDMIN:'',
}
},
methods: {
handleSubmit(name) {
this.$refs[name].validate((valid) => {
if (valid) {
this.$Message.success('Success!');
} else {
this.$Message.error('Fail!');
}
})
},
loginT(){
let params={
userCode:this.$route.params.userCode,
password:this.formInline.password,
confirmPassWord:this.formInline.passwordTwo
}
// if(this.formInline.password==123456){
// console.log(4444444)
// this.$Notice.error({
// title: '提示',
// desc: '请您填写正确的手机号',
// });
// this.twocontentmessage='输入密码与初始密码相同,请重新输入'
// setInterval(() => {
// this.twocontent=false
// }, 3000)
// return
// }
// if(this.formInline.passwordTwo==123456){
// console.log(4444444)
// this.twocontentmessage='输入密码与初始密码相同,请重新输入'
// setInterval(() => {
// this.twocontent=false
// }, 3000)
// return
// }
if(this.formInline.passwordTwo!==this.formInline.password){
this.twocontentmessage='输入密码不一致,请重新输入'
this.twocontent=true
setInterval(() => {
this.twocontent=false
}, 3000)
return
}else{
if(this.formInline.password==123456||this.formInline.passwordTwo==123456){
console.log(636467)
this.twocontentmessage='输入密码与初始密码相同,请重新输入'
console.log(this.twocontentmessage)
return
}
}
if(this.formInline.password.length>20){
this.twocontentmessage='请输入4-20位密码'
setInterval(() => {
this.twocontent=false
}, 3000)
return
}
if(this.formInline.password.length<4){
this.twocontentmessage='请输入4-20位密码'
setInterval(() => {
this.twocontent=false
}, 3000)
return
}
if(this.formInline.password.length==0){
this.twocontentmessage='密码不能为空'
setInterval(() => {
this.twocontent=false
}, 3000)
return
}
if(this.formInline.passwordTwo.length==0){
this.twocontentmessage='请输入相同的确认密码'
setInterval(() => {
this.twocontent=false
}, 3000)
return
}
updatePsd(params).then(res=>{
if(res.data.success==true){
this.ISIDMIN=res.data.body
localStorage.setItem('isADMIN',JSON.stringify(this.ISIDMIN))
this.$router.replace({name:'allResume'})
}
if(res.data.body.code='101'){
this.twocontentmessage=res.data.body.message
}
})
},
verification(){
if(this.formInline.password==123456){
this.twocontentmessage='输入密码与初始密码相同,请重新输入'
setInterval(() => {
this.twocontent=false
}, 3000)
}
if(this.formInline.password.length==0){
this.fistcontent=true
}
if(this.formInline.password==''){
this.fistcontent=true
}
if(this.formInline.password.length<4){
this.fistcontent=true
}
if(this.formInline.password.length>4){
this.fistcontent=false
}
if(this.formInline.password.length>20){
this.fistcontent=true
}
},
}
}
</script>
<style>
.updatePsd{
width:100%;
height:100%;
background: #EAEAEA;
}
.updatePsd-content{
width: 1200px;
height: 1000px;
margin-left: 500px;
}
.updatePsdContent-left {
float: left;
width: 620px;
height: 740px
}
.updatePsdContent-right{
float: left;
width: 500px;
height: 740px;
background: #ffffff
}
.updatePsdContent-left img{
width: 100%;
height: 100%;
}
.logo{
width:100%;
height:140px;
margin-top:80px;
}
.logo img {
width: 100px;
height: 60px;
margin-left: 30px
}
.logo h3{
font-size: 20px;
color: black;
margin-left: 40px
}
.updatePsd_content{
height: 200px;
width: 100%;
}
.copy{
width: 100%;
height:100px;
margin-top: 200px;
}
.copy p{
margin-left: 30px
}
.wordStyle{
width: 440px;
margin-left: 30px
}
.formcontent{
height:130px;
}
.formitemcontent{
height:60px;
}
</style>
<template>
<div>
<div class="login">
<div class="login-content">
<div class="loginContent-left">
<div class="updatePsd">
<div class="updatePsd-content">
<div class="updatePsdContent-left">
<img src="../../assets/login.jpg">
</div>
<div class="loginContent-right">
<div class="updatePsdContent-right">
<div class="logo">
<img src="../../assets/log.png">
<img src="../../assets/log.jpg">
<h3>首次登录请修改密码</h3>
</div>
<div class="login_content">
<Form ref="formInline" :model="formInline" :rules="ruleInline" >
<FormItem prop="user">
<Input type="text" v-model="formInline.user" placeholder="Username" class="wordStyle"/>
<Icon type="ios-person-outline" slot="prepend"></Icon>
</FormItem>
<FormItem prop="password">
<Input type="password" v-model="formInline.password" placeholder="Password" class="wordStyle"/>
<div class="updatePsd_content">
<Form ref="formInline" :model="formInline" class="formcontent">
<FormItem class="formitemcontent">
<Input type="password" v-model="formInline.password" placeholder="Password" class="wordStyle2" @on-change='verification'>
<Icon type="ios-lock-outline" slot="prepend"></Icon>
</Input>
<span style="color:Grey;margin-left:30px" v-show="fistcontent">4-20位且不得与默认密码相同</span>
</FormItem>
<FormItem>
<button style="width:440px;margin-left:30px; border-radius: 5px;background:rgb(0, 146, 255);color:rgb(255,255,255)">登录</button>
<FormItem style="margin-top:-20px" class="formitemcontent">
<Input type="password" v-model="formInline.passwordTwo" placeholder="Password" class="wordStyle2">
<Icon type="ios-lock-outline" slot="prepend"></Icon>
</Input>
<span style="color:Grey;margin-left:30px;color:red" v-show="twocontent">{{twocontentmessage}}</span>
</FormItem>
</Form>
<button type="primary" style="height:30px;width:440px;margin-left:30px; border-radius: 5px;background:rgb(0, 146, 255);color:rgb(255,255,255)" @click="loginT">登录</button>
</div>
<div class="copy">
<p>量化派为你提供全程服务</p>
......@@ -35,22 +37,20 @@
</div>
</template>
<script>
import { updatePsd} from '../../api/login.server.js'
export default {
data () {
return {
formInline: {
user: '',
passwordTwo: '',
password: ''
},
ruleInline: {
user: [
{ required: true, message: '请输入正确的手机号', trigger: 'blur' }
],
password: [
{ required: true, message: '请输入正确的密码', trigger: 'blur' },
{ type: 'string', min: 4, message: '', trigger: 'blur' }
]
}
fistcontent:true,
twocontent:false,
twocontentmessage:'',
channelarr:[],
ISIDMIN:'',
}
},
methods: {
......@@ -62,33 +62,141 @@ export default {
this.$Message.error('Fail!');
}
})
},
loginT(){
let params={
userCode:this.$route.params.userCode,
password:this.formInline.password,
confirmPassWord:this.formInline.passwordTwo
}
// if(this.formInline.password==123456){
// console.log(4444444)
// this.$Notice.error({
// title: '提示',
// desc: '请您填写正确的手机号',
// });
// this.twocontentmessage='输入密码与初始密码相同,请重新输入'
// setInterval(() => {
// this.twocontent=false
// }, 3000)
// return
// }
// if(this.formInline.passwordTwo==123456){
// console.log(4444444)
// this.twocontentmessage='输入密码与初始密码相同,请重新输入'
// setInterval(() => {
// this.twocontent=false
// }, 3000)
// return
// }
if(this.formInline.passwordTwo!==this.formInline.password){
this.twocontentmessage='输入密码不一致,请重新输入'
this.twocontent=true
setInterval(() => {
this.twocontent=false
}, 3000)
return
}else{
if(this.formInline.password==123456||this.formInline.passwordTwo==123456){
console.log(636467)
this.twocontentmessage='输入密码与初始密码相同,请重新输入'
console.log(this.twocontentmessage)
return
}
}
if(this.formInline.password.length>20){
this.twocontentmessage='请输入4-20位密码'
setInterval(() => {
this.twocontent=false
}, 3000)
return
}
if(this.formInline.password.length<4){
this.twocontentmessage='请输入4-20位密码'
setInterval(() => {
this.twocontent=false
}, 3000)
return
}
if(this.formInline.password.length==0){
this.twocontentmessage='密码不能为空'
setInterval(() => {
this.twocontent=false
}, 3000)
return
}
if(this.formInline.passwordTwo.length==0){
this.twocontentmessage='请输入相同的确认密码'
setInterval(() => {
this.twocontent=false
}, 3000)
return
}
updatePsd(params).then(res=>{
if(res.data.success==true){
this.ISIDMIN=res.data.body
localStorage.setItem('isADMIN',JSON.stringify(this.ISIDMIN))
this.$router.replace({name:'allResume'})
}
if(res.data.body.code='101'){
this.twocontentmessage=res.data.body.message
}
})
},
verification(){
if(this.formInline.password==123456){
this.twocontentmessage='输入密码与初始密码相同,请重新输入'
setInterval(() => {
this.twocontent=false
}, 3000)
}
if(this.formInline.password.length==0){
this.fistcontent=true
}
if(this.formInline.password==''){
this.fistcontent=true
}
if(this.formInline.password.length<4){
this.fistcontent=true
}
if(this.formInline.password.length>4){
this.fistcontent=false
}
if(this.formInline.password.length>20){
this.fistcontent=true
}
},
}
}
</script>
<style>
.login{
.updatePsd{
width:100%;
height:100%;
background: #EAEAEA;
}
.login-content{
width: 1100px;
.updatePsd-content{
width: 1200px;
height: 1000px;
margin-left: 500px
margin-left: 500px;
}
.loginContent-left {
.updatePsdContent-left {
float: left;
width: 600px;
height: 800px
width: 620px;
height: 740px
}
.loginContent-right{
.updatePsdContent-right{
float: left;
width: 500px;
height: 800px;
height: 740px;
background: #ffffff
}
.loginContent-left img{
.updatePsdContent-left img{
width: 100%;
height: 100%;
}
......@@ -103,11 +211,11 @@ export default {
margin-left: 30px
}
.logo h3{
font-size: 25px;
font-size: 20px;
color: black;
margin-left: 40px
}
.login_content{
.updatePsd_content{
height: 200px;
width: 100%;
}
......@@ -120,8 +228,14 @@ export default {
.copy p{
margin-left: 30px
}
.wordStyle{
width: 440px;
.wordStyle2{
width: 90%;
margin-left: 30px
}
.formcontent{
height:130px;
}
.formitemcontent{
height:60px;
}
</style>
......@@ -849,7 +849,7 @@ import Router from 'vue-router';
},
//下载单条简历
downloadONE(downID){
window.location.href=`/${sapi}/resume/download/formatted/one?resumeId=${downID}`
window.location.href=`${sapi}/api/resume/download/formatted/one?resumeId=${downID}`
},
// 批量下载简历
downloadAll(){
......@@ -860,11 +860,12 @@ import Router from 'vue-router';
});
return
}
let url='/text/api/resume/download/formatted/compress'
let url=`${sapi}/api/resume/download/formatted/compress`
this.checkboxList.map((item,index)=>{
url+=index==0?`?resumeId=${item}`:`&resumeId=${item}`
})
window.location.href=url
this.checkboxList=[]
},
// 可删除状态下点击
delateR(delateid){
......@@ -993,7 +994,7 @@ import Router from 'vue-router';
this.$Message.error('最高年限不能小于最小年限')
return
}
window.location.href=`/text/api/excel/output?optSourceCode=${parmars.optSourceCode}&keywordString=${parmars.keywordString}&company=${parmars.company}&ownerSex=${parmars.ownerSex}&highestDegreeNum=${parmars.highestDegreeNum}&flowStatusList=${parmars.flowStatusList}&ownerWorkYears1=${parmars.ownerWorkYears1}&ownerWorkYears2=${parmars.ownerWorkYears2}`
window.location.href=`${sapi}/api/excel/output?optSourceCode=${parmars.optSourceCode}&keywordString=${parmars.keywordString}&company=${parmars.company}&ownerSex=${parmars.ownerSex}&highestDegreeNum=${parmars.highestDegreeNum}&flowStatusList=${parmars.flowStatusList}&ownerWorkYears1=${parmars.ownerWorkYears1}&ownerWorkYears2=${parmars.ownerWorkYears2}`
},
//改变页码
pageChange(page){
......
......@@ -127,9 +127,9 @@
</span>
</p>
<p style="margin-top:10px">
<span style="display:inline-block;font-size: 12px;margin-left:25px;margin-top:10px" v-if="item.srcSite!==''">{{item.deliveryTime}}投递|</span>
<span style="display:inline-block;font-size: 12px;margin-left:25px" v-if="item.srcSite==''">{{item.deliveryTime}}上传|</span>
<span style="display:inline-block;height:100%;font-size: 12px;margin-left:2px">{{item.optSource}} |</span>
<span style="display:inline-block;font-size: 12px;margin-left:25px;margin-top:10px" v-if="item.srcSite!==''">{{item.deliveryTime}}投递 |</span>
<span style="display:inline-block;font-size: 12px;margin-left:25px" v-if="item.srcSite==''">{{item.deliveryTime}}上传 |</span>
<span style="display:inline-block;height:100%;font-size: 12px;margin-left:2px">{{item.optSource}} </span>
<span style="display:inline-block;height:100%;font-size: 12px;margin-left:2px">{{item.srcSite}}</span>
<span style="display:inline-block;height:100%;font-size: 12px;width:30%;float:right;text-align:right;margin-right:10px;margin-top:5px">
<span style="margin-left:15px;margin-top:5px">{{item.modifyTime}}</span>
......@@ -286,6 +286,9 @@
</template>
<script>
import {adoptOneSeeResumeList, serchList,downloadone,sousuoList,seedetail,PASS,TOSEE,OPTION,deleteREsume,downloadOne,exportLIST,recodeLIST,addinterview} from '../../api/resume.server.js'
import {
sapi
} from '../../config/env.config'
export default {
data(){
return {
......@@ -417,6 +420,9 @@ export default {
},
//全选与反选
checkedAll: function() {
if(this.ajaxData.length==0){
this.checkboxList=[]
}
if (this.checked) {//实现反选
this.checkboxList = [];
this.ajaxData.forEach( (item) => {
......@@ -427,6 +433,9 @@ export default {
});
} else { //实现全选
if(this.ajaxData.length==0){
this.checkboxList=[]
}
this.checkboxList = [];
this.ajaxData.forEach( (item) => {
this.checkboxList.push(item.id);
......@@ -862,12 +871,12 @@ export default {
this.$Message.error('最高年限不能小于最小年限')
return
}
window.location.href=`/text/api/excel/output?optSourceCode=${parmars.optSourceCode}&keywordString=${parmars.keywordString}&company=${parmars.company}&ownerSex=${parmars.ownerSex}&highestDegreeNum=${parmars.highestDegreeNum}&flowStatusList=${parmars.flowStatusList}&ownerWorkYears1=${parmars.ownerWorkYears1}&ownerWorkYears2=${parmars.ownerWorkYears2}`
window.location.href=`${sapi}/api/excel/output?optSourceCode=${parmars.optSourceCode}&keywordString=${parmars.keywordString}&company=${parmars.company}&ownerSex=${parmars.ownerSex}&highestDegreeNum=${parmars.highestDegreeNum}&flowStatusList=${parmars.flowStatusList}&ownerWorkYears1=${parmars.ownerWorkYears1}&ownerWorkYears2=${parmars.ownerWorkYears2}`
},
//下载单条简历
downloadONE(downID){
window.location.href=`/text/api/resume/download/formatted/one?resumeId=${downID}`
window.location.href=`${sapi}/api/resume/download/formatted/one?resumeId=${downID}`
},
// 操作记录查询
RecordSEE(RID,sname){
......
......@@ -108,6 +108,9 @@
</div>
</template>
<script>
import {
sapi
} from '../../config/env.config'
export default {
data(){
return {
......@@ -130,7 +133,7 @@ export default {
},
// 下载简历
downloadONE(downID){
window.location.href=`/text/api/resume/download/formatted/one?resumeId=${downID}`
window.location.href=`${sapi}/api/resume/download/formatted/one?resumeId=${downID}`
},
},
......
......@@ -10,6 +10,9 @@
</template>
<script>
import {getErcode,downloadErcode} from '../../api/stystem.server.js'
import {
sapi
} from '../../config'
export default {
data(){
return {
......@@ -27,7 +30,7 @@ export default {
})
},
downPic (img) {
window.location.href=`/api/qrCode/downQrCode`
window.location.href=`${sapi}/api/qrCode/downQrCode`
}
},
......
......@@ -176,6 +176,9 @@
</template>
<script>
import {getuploadNumber,uploadfile,serchList,serchRESUMEdetail,deleteREsumeUPLOad} from '../../api/upload.server'
import {
sapi
} from '../../config/env.config'
import ajax from '../../service/ajax'
export default {
data () {
......@@ -206,7 +209,7 @@ import ajax from '../../service/ajax'
massage:'',
Massage:'',
Code:'',
action: '/text/api/resume/upload',
action: `${sapi}/api/resume/upload`,
batchNum: '',
modal3:false,
modal1:false,
......@@ -354,7 +357,7 @@ import ajax from '../../service/ajax'
},
//下载单条简历
downloadONE(downID){
window.location.href=`/text/api/resume/download/formatted/one?resumeId=${downID}`
window.location.href=`${sapi}/api/resume/download/formatted/one?resumeId=${downID}`
},
// 获取上传批次号
getnumber(){
......
......@@ -4,7 +4,7 @@ import Router from 'vue-router';
const home = r => require.ensure([], () => r(require('@/components/home.vue')), 'home');
// const changepsd = r => require.ensure([], () => r(require('@/components/changepsd.vue')), 'changepsd');
const login = r => require.ensure([], () => r(require('@/page/login/login.vue')), 'login');
const text = r => require.ensure([], () => r(require('@/page/login/text.vue')), 'text');
const updatepsd = r => require.ensure([], () => r(require('@/page/login/updatepsd.vue')), 'updatepsd');
const resumeDetail = r =>require.ensure([], () => r(require('@/page/resume/resumeDetail.vue')),'resumeDetail')
const interview = r => require.ensure([], () => r(require('@/page/interview/interview.vue')), 'interview');
const allResume = r => require.ensure([], () => r(require('@/page/resume/allResume.vue')), 'allResume');
......@@ -30,9 +30,9 @@ export default new Router({
name: 'login',
component: login,},
{
path:'/text',
name:'text',
component:text
path:'/updatepsd',
name:'updatepsd',
component:updatepsd
},
{
path: '/resumeDetail',
......
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