parent
1ba43dc288
commit
a70ff7c91d
|
@ -0,0 +1,142 @@
|
|||
<template>
|
||||
<div class="app-container">
|
||||
<el-container>
|
||||
<el-main>
|
||||
<div class="filter-container">
|
||||
<div class="filter-lable w70">姓名:</div>
|
||||
<el-input v-model="employee_name" clearable placeholder="搜索人员姓名" class="filter-item" style="width: 200px;"/>
|
||||
<div class="filter-lable w70">身份证号:</div>
|
||||
<el-input v-model="id_card_number" clearable placeholder="搜索人员身份证号" class="filter-item" style="width: 200px;"/>
|
||||
<div class="filter-lable w70">企业名称:</div>
|
||||
<el-input v-model="corporation_name" clearable placeholder="搜索人员企业名称" class="filter-item" style="width: 200px;"/>
|
||||
<div class="filter-lable w70">是否对比成功:</div>
|
||||
<el-select ref="refDeptLevel" v-model="IS_IN_SYSTEM" clearable placeholder="请选择是否对比成功" class="filter-item">
|
||||
<el-option v-for="item in IS_IN_SYSTEM_LIST" :key="item.ID" :label="item.NAME" :value="item.ID" />
|
||||
</el-select>
|
||||
<el-button v-waves class="filter-item" type="primary" icon="el-icon-search" @click="getList">
|
||||
搜索
|
||||
</el-button>
|
||||
<el-button v-waves class="filter-item" type="success" icon="el-icon-refresh" @click="goKeyReset">
|
||||
重置
|
||||
</el-button>
|
||||
</div>
|
||||
<div class="app-statistical">
|
||||
<span>
|
||||
人资系统人员总数:<i>{{ HR_USER_COUNT }}</i>
|
||||
</span>
|
||||
<span>
|
||||
对比成功人数:<i>{{ IN_SYSTEM_COUNT }}</i>
|
||||
</span>
|
||||
<span>
|
||||
未对比成功人数:<i>{{ NOT_IN_SYSTEM_COUNT }}</i>
|
||||
</span>
|
||||
</div>
|
||||
<el-table
|
||||
ref="multipleTable"
|
||||
:data="varList"
|
||||
:header-cell-style="{
|
||||
'font-weight': 'bold',
|
||||
'color': '#000'
|
||||
}"
|
||||
tooltip-effect="dark"
|
||||
border
|
||||
fit
|
||||
highlight-current-row
|
||||
>
|
||||
<el-table-column
|
||||
type="selection"
|
||||
width="55"
|
||||
align="center"/>
|
||||
<el-table-column type="index" label="序号" width="50" align="center"/>
|
||||
<el-table-column prop="employee_name" label="姓名" align="center"/>
|
||||
<el-table-column prop="employee_gender" label="性别" align="center"/>
|
||||
<el-table-column prop="employee_age" label="年龄" align="center"/>
|
||||
<el-table-column prop="id_card_number" label="身份证号" align="center"/>
|
||||
<el-table-column prop="phone_number" label="手机号" align="center"/>
|
||||
<el-table-column prop="entry_time" label="入职时间" align="center"/>
|
||||
<el-table-column prop="employee_status" label="入职状态" align="center"/>
|
||||
<el-table-column prop="job_name" label="职务" align="center"/>
|
||||
<el-table-column prop="position_name" label="岗位" align="center"/>
|
||||
<el-table-column prop="corporation_name" label="企业名称" align="center"/>
|
||||
<el-table-column prop="dept_name" label="部门名称" align="center"/>
|
||||
<el-table-column prop="IS_IN_SYSTEM" label="是否对比成功" >
|
||||
<template slot-scope="{row}">
|
||||
<span v-if="row.IS_IN_SYSTEM =='0'">否</span>
|
||||
<span v-if="row.IS_IN_SYSTEM =='1'">是</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
<div class="page-btn-group">
|
||||
<div/>
|
||||
<pagination :total="total" :page.sync="listQuery.page" :limit.sync="listQuery.limit" @pagination="getList"/>
|
||||
</div>
|
||||
</el-main>
|
||||
</el-container>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import Pagination from '@/components/Pagination' // 通过 el-pagination二次打包
|
||||
import {requestFN} from '@/utils/request'
|
||||
import waves from '@/directive/waves' // waves directive
|
||||
import SelectTree from '@/components/SelectTree'
|
||||
|
||||
export default {
|
||||
components: {Pagination, SelectTree},
|
||||
directives: {waves},
|
||||
data() {
|
||||
return {
|
||||
employee_name: '',
|
||||
id_card_number: '',
|
||||
corporation_name: '',
|
||||
IS_IN_SYSTEM: '',
|
||||
IS_IN_SYSTEM_LIST: [
|
||||
{ ID: '0', NAME: '否' },
|
||||
{ ID: '1', NAME: '是' }
|
||||
],
|
||||
listQuery: {
|
||||
page: 1,
|
||||
limit: 20
|
||||
},
|
||||
total: 0,
|
||||
IN_SYSTEM_COUNT: 0,
|
||||
NOT_IN_SYSTEM_COUNT: 0,
|
||||
HR_USER_COUNT: 0,
|
||||
varList: []
|
||||
}
|
||||
},
|
||||
created() {
|
||||
this.getList()
|
||||
},
|
||||
methods: {
|
||||
getList() {
|
||||
this.listLoading = true
|
||||
requestFN(
|
||||
'/openApi/hr/personList?showCount=' + this.listQuery.limit + '¤tPage=' + this.listQuery.page,
|
||||
{
|
||||
employee_name: this.employee_name,
|
||||
id_card_number: this.id_card_number,
|
||||
corporation_name: this.corporation_name,
|
||||
IS_IN_SYSTEM: this.IS_IN_SYSTEM
|
||||
}
|
||||
).then((data) => {
|
||||
this.listLoading = false
|
||||
this.varList = data.varList
|
||||
this.total = data.page.totalResult
|
||||
this.IN_SYSTEM_COUNT = data.varList[0].IN_SYSTEM_COUNT
|
||||
this.NOT_IN_SYSTEM_COUNT = data.varList[0].NOT_IN_SYSTEM_COUNT
|
||||
this.HR_USER_COUNT = data.varList[0].HR_USER_COUNT
|
||||
}).catch((e) => {
|
||||
this.listLoading = false
|
||||
})
|
||||
},
|
||||
goKeyReset() {
|
||||
this.employee_name = ''
|
||||
this.id_card_number = ''
|
||||
this.corporation_name = ''
|
||||
this.getList()
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
Loading…
Reference in New Issue