|
@@ -21,7 +21,7 @@
|
|
|
<el-table-column
|
|
|
prop="num"
|
|
|
label="序 号"
|
|
|
- width="60">
|
|
|
+ width="55">
|
|
|
<template slot-scope="scope">
|
|
|
{{(currentPage - 1) * pageSize + scope.$index + 1}}
|
|
|
</template>
|
|
@@ -225,31 +225,33 @@ export default {
|
|
|
this.currentPage = val;
|
|
|
},
|
|
|
Inquireclick(){
|
|
|
- console.log(this.tableData)
|
|
|
var newarr=[];
|
|
|
if(this.input==""){
|
|
|
newarr=this.tableData;
|
|
|
}else{
|
|
|
for(var i=0;i<this.tableData.length;i++){
|
|
|
- if(this.tableData[i].number.includes(this.input)){
|
|
|
+ if(this.tableData[i].number.indexOf(this.input)!=-1){
|
|
|
newarr.push(this.tableData[i]);
|
|
|
}
|
|
|
- else if(this.tableData[i].cnName.includes(this.input)){
|
|
|
+ else if(this.tableData[i].cnName.indexOf(this.input)!=-1){
|
|
|
newarr.push(this.tableData[i]);
|
|
|
}
|
|
|
- else if(this.tableData[i].companyName.includes(this.input)){
|
|
|
+ else if(this.tableData[i].jobName.indexOf(this.input)!=-1){
|
|
|
newarr.push(this.tableData[i]);
|
|
|
}
|
|
|
- else if(this.tableData[i].ext.includes(this.input)){
|
|
|
+ else if(this.tableData[i].companyName.indexOf(this.input)!=-1){
|
|
|
newarr.push(this.tableData[i]);
|
|
|
}
|
|
|
- else if(this.tableData[i].phone.includes(this.input)){
|
|
|
+ else if(this.tableData[i].ext.indexOf(this.input)!=-1){
|
|
|
newarr.push(this.tableData[i]);
|
|
|
}
|
|
|
- else if(this.tableData[i].urgentPhone.includes(this.input)){
|
|
|
+ else if(this.tableData[i].phone.indexOf(this.input)!=-1){
|
|
|
newarr.push(this.tableData[i]);
|
|
|
}
|
|
|
- else if(this.tableData[i].email.includes(this.input)){
|
|
|
+ else if(this.tableData[i].urgentPhone.indexOf(this.input)!=-1){
|
|
|
+ newarr.push(this.tableData[i]);
|
|
|
+ }
|
|
|
+ else if(this.tableData[i].email.indexOf(this.input)!=-1){
|
|
|
newarr.push(this.tableData[i]);
|
|
|
}
|
|
|
}
|
|
@@ -260,23 +262,68 @@ export default {
|
|
|
var url="/api/System/GetUserList"
|
|
|
var that=this
|
|
|
this.$axios({
|
|
|
- method: 'GET',
|
|
|
+ method: 'post',
|
|
|
url:url,
|
|
|
headers:{
|
|
|
Authorization:'Bearer '+this.token
|
|
|
+ },
|
|
|
+ data:{
|
|
|
+ portType: 1,
|
|
|
}
|
|
|
}).then(function(res){
|
|
|
console.log(res)
|
|
|
if(res.data.code==200){
|
|
|
that.tableData=res.data.data
|
|
|
+ that.tableData.forEach(item=>{
|
|
|
+ if(item.cnName==null){
|
|
|
+ item.cnName = ''
|
|
|
+ }
|
|
|
+ if(item.companyId==null){
|
|
|
+ item.companyId = ''
|
|
|
+ }
|
|
|
+ if(item.companyName==null){
|
|
|
+ item.companyName = ''
|
|
|
+ }
|
|
|
+ if(item.depId==null){
|
|
|
+ item.depId = ''
|
|
|
+ }
|
|
|
+ if(item.depName==null){
|
|
|
+ item.depName = ''
|
|
|
+ }
|
|
|
+ if(item.email==null){
|
|
|
+ item.email = ''
|
|
|
+ }
|
|
|
+ if(item.ext==null){
|
|
|
+ item.ext = ''
|
|
|
+ }
|
|
|
+ if(item.id==null){
|
|
|
+ item.id = ''
|
|
|
+ }
|
|
|
+ if(item.jobName==null){
|
|
|
+ item.jobName = ''
|
|
|
+ }
|
|
|
+ if(item.jobPostId==null){
|
|
|
+ item.jobPostId = ''
|
|
|
+ }
|
|
|
+ if(item.number==null){
|
|
|
+ item.number = ''
|
|
|
+ }
|
|
|
+ if(item.phone==null){
|
|
|
+ item.phone = ''
|
|
|
+ }
|
|
|
+ if(item.urgentPhone==null){
|
|
|
+ item.urgentPhone = ''
|
|
|
+ }
|
|
|
+ })
|
|
|
that.tableDatas=that.tableData;
|
|
|
- console.log(that.tableData)
|
|
|
+ console.log(that.tableDatas)
|
|
|
}
|
|
|
})
|
|
|
}
|
|
|
},
|
|
|
mounted(){
|
|
|
this.token=localStorage.getItem('token');
|
|
|
+ console.log(this.token)
|
|
|
this.Getemployees();
|
|
|
}
|
|
|
}
|