Commit f95c85f6 authored by zhangderong's avatar zhangderong

修复列表搜索问题

parent 644efd8d
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
<template v-for="(menu) in childMenu" > <template v-for="(menu) in childMenu" >
<Submenu :name="menu.name" :key="menu.name" v-show='!(isAdmin==false&&menu.item=="账户管理")'> <Submenu :name="menu.name" :key="menu.name" v-show='!(isAdmin==false&&menu.item=="账户管理")'>
<template slot="title"> <template slot="title">
<Icon :type="menu.icon"/> <Icon :type="menu.icon" style="font-size:20px;font-weight:bold"/>
{{menu.item}} {{menu.item}}
</template> </template>
<MenuItem v-for="child in menu.child" :key="child.name" :name="child.name" @click="go" :active-name="vSubName">{{child.item}}</MenuItem> <MenuItem v-for="child in menu.child" :key="child.name" :name="child.name" @click="go" :active-name="vSubName">{{child.item}}</MenuItem>
......
...@@ -716,12 +716,12 @@ export default { ...@@ -716,12 +716,12 @@ export default {
}, },
//改变页码 //改变页码
pageChange(page){ pageChange(page){
this.SearchList(page) this.Sousuo(page)
}, },
pageSizeChange(page){ pageSizeChange(page){
this.searchInfo.pageSize=page this.searchInfo.pageSize=page
this.pageSize=page this.pageSize=page
this.SearchList() this.Sousuo()
}, },
}, },
......
...@@ -83,6 +83,7 @@ export default { ...@@ -83,6 +83,7 @@ export default {
login(params).then(res=>{ login(params).then(res=>{
if(res.data.body.code=='100'){ if(res.data.body.code=='100'){
this.$router.push({name:'update',params:{userCode:this.formInline.user}}) this.$router.push({name:'update',params:{userCode:this.formInline.user}})
return
} }
if(res.data.success==true){ if(res.data.success==true){
this.ISIDMIN=res.data.body this.ISIDMIN=res.data.body
...@@ -150,7 +151,7 @@ export default { ...@@ -150,7 +151,7 @@ export default {
.login_content{ .login_content{
height: 200px; height: 200px;
width: 100%; width: 100%;
margin-left: 8% margin-left: 4%
} }
.copy{ .copy{
width: 100%; width: 100%;
......
...@@ -3,11 +3,11 @@ ...@@ -3,11 +3,11 @@
<div class="updatePsd"> <div class="updatePsd">
<div class="updatePsd-content"> <div class="updatePsd-content">
<div class="updatePsdContent-left"> <div class="updatePsdContent-left">
<img src="../../assets/login.jpg"> <img src="https://o7oe0d6qz.qnssl.com/image/login.jpg">
</div> </div>
<div class="updatePsdContent-right"> <div class="updatePsdContent-right">
<div class="logo"> <div class="logo">
<img src="../../assets/log.jpg"> <img src="https://o7oe0d6qz.qnssl.com/image/log.jpg">
<h3>首次登录请修改密码</h3> <h3>首次登录请修改密码</h3>
</div> </div>
<div class="updatePsd_content"> <div class="updatePsd_content">
...@@ -73,7 +73,7 @@ export default { ...@@ -73,7 +73,7 @@ export default {
if(this.formInline.passwordTwo!==this.formInline.password){ if(this.formInline.passwordTwo!==this.formInline.password){
this.twocontentmessage='输入密码不一致,请重新输入' this.twocontentmessage='输入密码不一致,请重新输入'
this.twocontent=true this.twocontent=true
setInterval(() => { setTimeout(() => {
this.twocontent=false this.twocontent=false
}, 3000) }, 3000)
return return
...@@ -81,35 +81,35 @@ export default { ...@@ -81,35 +81,35 @@ export default {
if(this.formInline.passwordTwo.length<4||this.formInline.password.length<4){ if(this.formInline.passwordTwo.length<4||this.formInline.password.length<4){
this.twocontentmessage='请输入4-20位密码' this.twocontentmessage='请输入4-20位密码'
this.twocontent=true this.twocontent=true
setInterval(() => { setTimeout(() => {
this.twocontent=false this.twocontent=false
}, 3000) }, 3000)
return return
} }
if(this.formInline.password.length>20){ if(this.formInline.password.length>20){
this.twocontentmessage='请输入4-20位密码' this.twocontentmessage='请输入4-20位密码'
setInterval(() => { setTimeout(() => {
this.twocontent=false this.twocontent=false
}, 3000) }, 3000)
return return
} }
if(this.formInline.password.length<4){ if(this.formInline.password.length<4){
this.twocontentmessage='请输入4-20位密码' this.twocontentmessage='请输入4-20位密码'
setInterval(() => { setTimeout(() => {
this.twocontent=false this.twocontent=false
}, 3000) }, 3000)
return return
} }
if(this.formInline.password.length==0){ if(this.formInline.password.length==0){
this.twocontentmessage='密码不能为空' this.twocontentmessage='密码不能为空'
setInterval(() => { setTimeout(() => {
this.twocontent=false this.twocontent=false
}, 3000) }, 3000)
return return
} }
if(this.formInline.passwordTwo.length==0){ if(this.formInline.passwordTwo.length==0){
this.twocontentmessage='请输入相同的确认密码' this.twocontentmessage='请输入相同的确认密码'
setInterval(() => { setTimeout(() => {
this.twocontent=false this.twocontent=false
}, 3000) }, 3000)
return return
...@@ -125,7 +125,7 @@ export default { ...@@ -125,7 +125,7 @@ export default {
this.Massage=res.data.body.message this.Massage=res.data.body.message
this.twocontent=true this.twocontent=true
this.twocontentmessage=this.Massage this.twocontentmessage=this.Massage
setInterval(() => { setTimeout(() => {
this.twocontent=false this.twocontent=false
}, 3000) }, 3000)
...@@ -135,7 +135,7 @@ export default { ...@@ -135,7 +135,7 @@ export default {
verification(){ verification(){
if(this.formInline.password==123456){ if(this.formInline.password==123456){
this.twocontentmessage='输入密码与初始密码相同,请重新输入' this.twocontentmessage='输入密码与初始密码相同,请重新输入'
setInterval(() => { setTimeout(() => {
this.twocontent=false this.twocontent=false
}, 3000) }, 3000)
} }
......
...@@ -512,7 +512,7 @@ import Router from 'vue-router'; ...@@ -512,7 +512,7 @@ import Router from 'vue-router';
this.formInline.UpdateOWER='' this.formInline.UpdateOWER=''
this.formInline.UpdateVIEW='' this.formInline.UpdateVIEW=''
this.formInline.UpdateTIME='' this.formInline.UpdateTIME=''
this.SearchList() this.SearchList(this.pageT)
} }
if(res.data.body.code==0){ if(res.data.body.code==0){
this.SearchList(this.pageT) this.SearchList(this.pageT)
...@@ -1021,12 +1021,12 @@ import Router from 'vue-router'; ...@@ -1021,12 +1021,12 @@ import Router from 'vue-router';
//改变页码 //改变页码
pageChange(page){ pageChange(page){
this.pageT=page this.pageT=page
this.SearchList(page) this.SouSuo(page)
}, },
pageSizeChange(page){ pageSizeChange(page){
this.searchInfo.pageSize=page this.searchInfo.pageSize=page
this.pageSize=page this.pageSize=page
this.SearchList() this.SouSuo()
}, },
// 跳转到面试管理 // 跳转到面试管理
tointerview(){ tointerview(){
......
...@@ -678,12 +678,12 @@ export default { ...@@ -678,12 +678,12 @@ export default {
}, },
pageChange(page){ pageChange(page){
this.pageT=page this.pageT=page
this.quxiaoxi(page) this.SouSuo(this.pageT)
}, },
pageSizeChange(page){ pageSizeChange(page){
this.searchInfo.pageSize=page this.searchInfo.pageSize=page
this.pageSize=page this.pageSize=page
this.quxiaoxi() this.SouSuo()
}, },
// 跳转到面试管理 // 跳转到面试管理
tointerview(){ tointerview(){
...@@ -920,7 +920,10 @@ export default { ...@@ -920,7 +920,10 @@ export default {
}) })
}, },
//搜索 //搜索
SouSuo(){ SouSuo(page){
page = typeof(page)=='number'?page:1
this.searchInfo.pageIndex = page
this.pageIndex = page
let parmars={ let parmars={
pageSize:this.searchInfo.pageSize, pageSize:this.searchInfo.pageSize,
pageIndex:this.searchInfo.pageIndex, pageIndex:this.searchInfo.pageIndex,
...@@ -935,6 +938,7 @@ export default { ...@@ -935,6 +938,7 @@ export default {
ownerWorkYears2:this.searchInfo.ownerWorkYears2, ownerWorkYears2:this.searchInfo.ownerWorkYears2,
} }
} }
this.ajaxData=[]
if(this.searchInfo.ownerWorkYears1>this.searchInfo.ownerWorkYears2){ if(this.searchInfo.ownerWorkYears1>this.searchInfo.ownerWorkYears2){
this.$Message.error('最低年限不能大于最高年限') this.$Message.error('最低年限不能大于最高年限')
return return
...@@ -949,6 +953,7 @@ export default { ...@@ -949,6 +953,7 @@ export default {
this.checkboxList=[] this.checkboxList=[]
this.spinShow=false this.spinShow=false
this.ajaxData=res.data.body.items.map((item,index)=>{ this.ajaxData=res.data.body.items.map((item,index)=>{
this.totalSize=res.data.body.totalNumber
item.id=item.id item.id=item.id
item.ownerName=item.ownerName item.ownerName=item.ownerName
item.ownerSex=item.ownerSex item.ownerSex=item.ownerSex
......
...@@ -2,39 +2,40 @@ ...@@ -2,39 +2,40 @@
<div id="Sweepcode"> <div id="Sweepcode">
<h2 class="header">应聘登记表</h2> <h2 class="header">应聘登记表</h2>
<div class="sweepcode_content"> <div class="sweepcode_content">
<Form :label-width="100" :model="formInline" :rules="ruleInline" style="background:Gainsboro"> <Form :label-width="110" :model="formInline" :rules="ruleInline" ref="formInline">
<FormItem label="邀约人" style="position:absolute;left:-40px;top:70px" prop="Inviter" > <FormItem label="邀约人" prop="Inviter" >
<Input placeholder="请输入" style="width:260px;margin-left:31px" v-model="formInline.Inviter"/> <Input placeholder="请输入" style="width:250px;" v-model="formInline.Inviter"/>
</FormItem> </FormItem>
<FormItem label="邀约手机号" style="position:absolute;left:-20px;top:120px" > <FormItem label="邀约手机号" style="" >
<Input placeholder="请输入" style="width:260px;border:0 !import;margin-left:10px" v-model="formInline.InviterPhoneNumber"/> <Input placeholder="请输入" style="width:250px;" v-model="formInline.InviterPhoneNumber"/>
</FormItem> </FormItem>
<FormItem label="面试时间" style="position:absolute;left:-30px;top:170px" > <FormItem label="面试时间" prop="time">
<DatePicker type="date" placeholder="请选择日期" style="width: 127px;margin-left:20px" v-model="formInline.date" @on-change="selectDate" :options="options3" ></DatePicker> <Input placeholder="请输入" style="width: 120px;" v-model="formInline.date"/>
<!-- <DatePicker type="date" placeholder="请选择日期" style="width: 120px;margin-left:20px" v-model="formInline.date" @on-change="selectDate" :options="options3" ></DatePicker> -->
<TimePicker type="time" placeholder="请选择时间" style="width: 127px" v-model="formInline.time" format="HH:mm" @on-change="selectTime"></TimePicker> <TimePicker type="time" placeholder="请选择时间" style="width: 127px" v-model="formInline.time" format="HH:mm" @on-change="selectTime"></TimePicker>
</FormItem> </FormItem>
<FormItem label="应聘职位" style="position:absolute;left:-30px;top:220px" > <FormItem label="应聘职位" prop="position">
<Input placeholder="请输入" style="width:260px;margin-left:20px" v-model="formInline.position"/> <Input placeholder="请输入" style="width:250px;" v-model="formInline.position"/>
</FormItem> </FormItem>
<FormItem label="应聘来源" style="position:absolute;left:-30px;top:270px" > <FormItem label="应聘来源" prop="model1">
<Select v-model="formInline.model1" style="width:260px;margin-left:20px"> <Select v-model="formInline.model1" style="width:250px;">
<Option v-for="item in origen" :value="item.value" :key="item.value">{{ item.label }}</Option> <Option v-for="item in origen" :value="item.value" :key="item.value">{{ item.label }}</Option>
</Select> </Select>
</FormItem> </FormItem>
<FormItem label="姓名" style="position:absolute;left:-50px;top:320px" > <FormItem label="姓名" prop="name">
<Input placeholder="请与简历保持一致" style="width:260px;margin-left:40px" v-model="formInline.name" /> <Input placeholder="请与简历保持一致" style="width:250px;" v-model="formInline.name" />
</FormItem> </FormItem>
<FormItem label="手机号码" style="position:absolute;left:-30px;top:370px" > <FormItem label="手机号码" prop="phoneNUmber">
<Input placeholder="请输入" style="width:260px;margin-left:20px" v-model="formInline.phoneNUmber"/> <Input placeholder="请输入" style="width:250px;" v-model="formInline.phoneNUmber"/>
</FormItem> </FormItem>
<FormItem label="是否携带简历" style="position:absolute;left:-10px;top:420px" > <FormItem label="是否携带简历" prop="model2">
<Select v-model="formInline.model2" style="width:260px;margin-left:0px"> <Select v-model="formInline.model2" style="width:250px;">
<Option v-for="item in isGET" :value="item.value" :key="item.value">{{ item.label }}</Option> <Option v-for="item in isGET" :value="item.value" :key="item.value">{{ item.label }}</Option>
</Select> </Select>
</FormItem> </FormItem>
</Form> </Form>
<div class="submission"> <div class="submission">
<h4 style="font-size:1rem" @click="confirmSubmission">提交</h4> <Button type='primary' @click="confirmSubmission" class="utbuton">提交</Button>
</div> </div>
</div> </div>
<Modal <Modal
...@@ -43,7 +44,7 @@ ...@@ -43,7 +44,7 @@
:closable='false'> :closable='false'>
<div > <div >
<h2 style="text-align: center;color:black">欢迎来到量星球</h2> <h2 style="text-align: center;color:black">欢迎来到量星球</h2>
<p>您好,为了更好的面试体验,请仔细填写以下信息,预计用时1-2分钟</p> <p style="font-size:15px">您好,为了更好的面试体验,请仔细填写以下信息,预计用时1-2分钟</p>
</div> </div>
<div slot='footer' style="text-align:center"> <div slot='footer' style="text-align:center">
<Button type='primary' @click='modal3=false'>确定</Button> <Button type='primary' @click='modal3=false'>确定</Button>
...@@ -63,12 +64,39 @@ ...@@ -63,12 +64,39 @@
</div> </div>
</template> </template>
<script> <script>
import moment from 'moment'
import {submitMassage} from '../../api/sweepCode.server.js' import {submitMassage} from '../../api/sweepCode.server.js'
export default { export default {
data(){ data(){
return { return {
modal3:false, modal3:false,
modal4:false, modal4:false,
ruleInline: {
Inviter: [
{ required: true, message: '邀约人不能为空', trigger: 'blur' }
],
date: [
{ required: true, message: '面试时间不能为空', trigger: 'date' }
],
time: [
{ required: true,message: '面试官不能为空', trigger: 'date' }
],
position: [
{ required: true,message: '面试官不能为空', trigger: 'blur' }
],
model1: [
{ required: true,message: '面试官不能为空', trigger: 'blur' }
],
name: [
{ required: true,message: '面试官不能为空', trigger: 'blur' }
],
phoneNUmber: [
{ required: true,message: '面试官不能为空', trigger: 'blur' }
],
model2: [
{ required: true,message: '面试官不能为空', trigger: 'blur' }
],
},
saleDate:'', saleDate:'',
options3: { options3: {
disabledDate (date) { disabledDate (date) {
...@@ -111,12 +139,6 @@ export default { ...@@ -111,12 +139,6 @@ export default {
label: '' label: ''
}, },
], ],
ruleInline:{
model1: [
{ required: true, message: '请输入正确的应聘来源', trigger: 'blur' },
{ type: 'string', message: '', trigger: 'blur' }
],
},
formInline:{ formInline:{
model1:'', model1:'',
model2:'', model2:'',
...@@ -137,10 +159,12 @@ export default { ...@@ -137,10 +159,12 @@ export default {
this.$Message.error('请填写完整的信息') this.$Message.error('请填写完整的信息')
return return
} }
console.log(this.formInline.time)
console.log(moment(this.formInline.time).format('HH:mm'),999999)
let parmars={ let parmars={
invitePerson:this.formInline.Inviter, invitePerson:this.formInline.Inviter,
inviterMobile:this.formInline.InviterPhoneNumber, inviterMobile:this.formInline.InviterPhoneNumber,
dateTime:this.formInline.date + ' ' +this.formInline.time, dateTime:moment(this.formInline.date).format('YYYY-MM-DD') + ' ' + this.formInline.time,
interviewTitle:this.formInline.position, interviewTitle:this.formInline.position,
source:this.formInline.model1, source:this.formInline.model1,
name:this.formInline.name, name:this.formInline.name,
...@@ -189,22 +213,32 @@ export default { ...@@ -189,22 +213,32 @@ export default {
<style lang="less" scoped> <style lang="less" scoped>
#Sweepcode{ #Sweepcode{
font-size: 66vw; font-size: 66vw;
background: Gainsboro // background: Gainsboro
} }
.header{ .header{
font-size: 1rem; font-size: 1rem;
border-bottom: 1px solid Grey; border-bottom: 1px solid Grey;
text-align: center; text-align: center;
height: 3rem; height: 3rem;
line-height: 3rem line-height: 3rem;
background:Grey
} }
.submission{ .utbuton{
position: fixed; position: fixed;
bottom: 0; bottom: 0;
height: 40px; width:100%
width: 100%; }
background:LightGray; .sweepcode_content{
line-height: 40px; background: rgb(255,255,255);
text-align: center margin-top: 30px
} }
// .submission{
// position: fixed;
// bottom: 0;
// height: 40px;
// width: 100%;
// background:#0092FF;
// line-height: 40px;
// text-align: center
// }
</style> </style>
\ No newline at end of file
...@@ -110,6 +110,7 @@ export default { ...@@ -110,6 +110,7 @@ export default {
pageT:'', pageT:'',
userName:'', userName:'',
userCode:'', userCode:'',
Massage:'',
spinShow:true, spinShow:true,
delateARR:[], delateARR:[],
id:'', id:'',
...@@ -202,9 +203,10 @@ export default { ...@@ -202,9 +203,10 @@ export default {
this.formInline.PerName='' this.formInline.PerName=''
} }
if(res.data.body.code==0){ if(res.data.body.code==0){
this.Massage=res.data.body.message
this.$Notice.error({ this.$Notice.error({
title: '提示', title: '提示',
desc: '该账户已存在,请勿重复添加', desc:this.Massage,
duration:2 duration:2
}); });
this.formInline.PhoneNumber='' this.formInline.PhoneNumber=''
......
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
</FormItem> </FormItem>
<FormItem label="请选择开始同步的时间" style="margin-top:20px; position: absolute;top:30px;left: 490px" :label-width="180"> <FormItem label="请选择开始同步的时间" style="margin-top:20px; position: absolute;top:30px;left: 490px" :label-width="180">
<DatePicker type="datetime" format="yyyy-MM-dd HH:mm:ss" placeholder="请选择日期" style="width: 200px" v-model="DATA" @on-change="selectTime" :options="options3" :editable='false'></DatePicker><br> <DatePicker type="datetime" format="yyyy-MM-dd HH:mm:ss" placeholder="请选择日期" style="width: 200px" v-model="DATA" @on-change="selectTime" :options="options3" :editable='false'></DatePicker><br>
<span style="font-size:8px;margin-left:0px;"><Icon type="md-information-circle" />如不选取默认同步邮箱中的所有简历</span> <span style="font-size:8px;margin-left:0px;"><Icon type="md-information-circle" />最长可同步30天</span>
</FormItem> </FormItem>
<FormItem label="邮箱密码" style="margin-top:20px; position: absolute;top:110px;left: -80px" prop="emailPsd" :label-width="180"> <FormItem label="邮箱密码" style="margin-top:20px; position: absolute;top:110px;left: -80px" prop="emailPsd" :label-width="180">
<Input placeholder="请输入企业邮箱密码" style="width:300px" v-model="formInline.emailPsd" type="password" /><br> <Input placeholder="请输入企业邮箱密码" style="width:300px" v-model="formInline.emailPsd" type="password" /><br>
...@@ -140,7 +140,7 @@ export default { ...@@ -140,7 +140,7 @@ export default {
Tname:'', Tname:'',
options3: { options3: {
disabledDate (date) { disabledDate (date) {
return date && date.valueOf() > Date.now(); return date && date.valueOf() > Date.now()|| date.valueOf()<3600*1000*30*24;
} }
}, },
UpassWord:'', UpassWord:'',
......
...@@ -50,7 +50,7 @@ export default function upload(option) { ...@@ -50,7 +50,7 @@ export default function upload(option) {
} }
const xhr = new XMLHttpRequest(); const xhr = new XMLHttpRequest();
const action = option.action; const action = option.action ;
if (xhr.upload) { if (xhr.upload) {
xhr.upload.onprogress = function progress(e) { xhr.upload.onprogress = function progress(e) {
......
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