Commit 158f26b0 by swl

gx

parent 8feea2e8
...@@ -2,7 +2,6 @@ const domain = { ...@@ -2,7 +2,6 @@ const domain = {
// dev: "http://192.168.3.87:8881", // 姚镇接口 // dev: "http://192.168.3.87:8881", // 姚镇接口
// dev: "http://192.168.100.16:8881", // 姚镇接口 // dev: "http://192.168.100.16:8881", // 姚镇接口
// dev: "http://192.168.100.16:8881", // 姚镇接口
// dev: "http://81.69.231.72:8881", // 测试接口 // dev: "http://81.69.231.72:8881", // 测试接口
dev: "https://exam.smart-zj.cn:9100/smartExam/", // /新正式接口 dev: "https://exam.smart-zj.cn:9100/smartExam/", // /新正式接口
}; };
......
<template> <template>
<div class="coldfood"> <div class="coldfood">
<div class="search-wrapper"> <div class="search-wrapper">
<el-form <el-form :inline="true" :model="searchForm" class="search_form" style="text-align: left">
:inline="true"
:model="searchForm"
class="search_form"
style="text-align: left"
>
<el-form-item label="姓名" label-width="200"> <el-form-item label="姓名" label-width="200">
<el-input <el-input v-model="searchForm.name" placeholder="请输入姓名" @keyup.enter.native="onSubmit"></el-input>
v-model="searchForm.name"
placeholder="请输入姓名"
@keyup.enter.native="onSubmit"
></el-input>
</el-form-item> </el-form-item>
<el-form-item label="手机号码"> <el-form-item label="手机号码">
<el-input <el-input v-model="searchForm.phone" placeholder="请输入手机号码" @keyup.enter.native="onSubmit">
v-model="searchForm.phone"
placeholder="请输入手机号码"
@keyup.enter.native="onSubmit"
>
</el-input> </el-input>
</el-form-item> </el-form-item>
<el-form-item label="单位名称"> <el-form-item label="单位名称">
<el-input <el-input v-model="searchForm.unitName" placeholder="请输入单位名称" @keyup.enter.native="onSubmit">
v-model="searchForm.unitName"
placeholder="请输入单位名称"
@keyup.enter.native="onSubmit"
>
</el-input> </el-input>
</el-form-item> </el-form-item>
<el-form-item label="操作人"> <el-form-item label="操作人">
<el-input <el-input v-model="searchForm.recordName" placeholder="请输入操作人" @keyup.enter.native="onSubmit">
v-model="searchForm.recordName"
placeholder="请输入操作人"
@keyup.enter.native="onSubmit"
>
</el-input> </el-input>
</el-form-item> </el-form-item>
<el-form-item label="人才类型" v-if="this.branchCode == '5'"> <el-form-item label="人才类型" v-if="this.branchCode == '5'">
<el-select <el-select v-model="searchForm.talentClassification" placeholder="请选择人才类型" style="width: 100%"
v-model="searchForm.talentClassification" @change="onSubmit">
placeholder="请选择人才类型" <el-option v-for="item in talentsList" :key="item.id" :label="item.label" :value="item.id">
style="width: 100%"
@change="onSubmit"
>
<el-option
v-for="item in talentsList"
:key="item.id"
:label="item.label"
:value="item.id"
>
</el-option> </el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="认定类型"> <el-form-item label="认定类型">
<el-select <el-select v-model="searchForm.typeCode" placeholder="请选择认定类型" style="width: 100%" @change="onSubmit">
v-model="searchForm.typeCode" <el-option v-for="item in typeList" :key="item.typeCode" :label="item.typeName"
placeholder="请选择认定类型" :value="item.typeCode"></el-option>
style="width: 100%"
@change="onSubmit"
>
<el-option
v-for="item in typeList"
:key="item.typeCode"
:label="item.typeName"
:value="item.typeCode"
></el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item v-if="!branchCode" label="责任部门"> <el-form-item v-if="!branchCode" label="责任部门">
<el-select <el-select v-model="searchForm.branchCode" placeholder="请选择责任部门" style="width: 100%" @change="onSubmit">
v-model="searchForm.branchCode" <el-option v-for="item in branchList" :key="item.branchCode" :label="item.branchName"
placeholder="请选择责任部门" :value="item.branchCode"></el-option>
style="width: 100%"
@change="onSubmit"
>
<el-option
v-for="item in branchList"
:key="item.branchCode"
:label="item.branchName"
:value="item.branchCode"
></el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>
...@@ -108,11 +60,7 @@ ...@@ -108,11 +60,7 @@
<el-form-item label="状态" style="margin-top: 10px"> <el-form-item label="状态" style="margin-top: 10px">
<el-radio-group v-model="searchForm.state" @change="onSubmit"> <el-radio-group v-model="searchForm.state" @change="onSubmit">
<el-radio <el-radio :label="item.state" v-for="item in stateList" :key="item.state">{{ item.stateName }}
:label="item.state"
v-for="item in stateList"
:key="item.state"
>{{ item.stateName }}
</el-radio> </el-radio>
</el-radio-group> </el-radio-group>
</el-form-item> </el-form-item>
...@@ -120,31 +68,15 @@ ...@@ -120,31 +68,15 @@
</div> </div>
<!-- 表格 --> <!-- 表格 -->
<div class="table-wrapper1"> <div class="table-wrapper1">
<table-template <table-template :tableData="tableData" :tableColumns="tableColumns" :loading="loading" :pagination="pagination"
:tableData="tableData" @Jump="jumpPage">
:tableColumns="tableColumns" <el-table-column width="120" key="updateTime" prop="updateTime" label="更新时间" align="center">
:loading="loading"
:pagination="pagination"
@Jump="jumpPage"
>
<el-table-column
width="120"
key="updateTime"
prop="updateTime"
label="更新时间"
align="center"
>
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{ scope.row.updateTime }}</span> <span>{{ scope.row.updateTime }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column width="120" prop="talentClassification" label="人才类型" align="center">
width="120"
prop="talentClassification"
label="人才类型"
align="center"
>
<template slot-scope="scope"> <template slot-scope="scope">
<div v-if="scope.row.talentClassification == '1'"> <div v-if="scope.row.talentClassification == '1'">
乡土或创新人才 乡土或创新人才
...@@ -161,89 +93,40 @@ ...@@ -161,89 +93,40 @@
<div v-else>-</div> <div v-else>-</div>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column width="120" prop="overdue" label="逾期状态" align="center">
width="120"
prop="overdue"
label="逾期状态"
align="center"
>
<template slot-scope="scope"> <template slot-scope="scope">
<div v-if="scope.row.state == 1"> <div v-if="scope.row.state == 1">
<div v-if="scope.row.overdue < 3"></div> <div v-if="scope.row.overdue < 3"></div>
<div <div class="early" v-if="scope.row.overdue < 5 && scope.row.overdue >= 3"></div>
class="early"
v-if="scope.row.overdue < 5 && scope.row.overdue >= 3"
></div>
<div class="warning" v-if="scope.row.overdue >= 5"></div> <div class="warning" v-if="scope.row.overdue >= 5"></div>
</div> </div>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column width="120" key="stateName" prop="onlineName" label="状态" align="center">
width="120"
key="stateName"
prop="onlineName"
label="状态"
align="center"
>
<template slot-scope="scope"> <template slot-scope="scope">
<el-tag <el-tag :type="stateFilter(scope.row.state)" :effect="plainFilter(scope.row.state)">{{ scope.row.stateName
:type="stateFilter(scope.row.state)" }}</el-tag>
:effect="plainFilter(scope.row.state)"
>{{ scope.row.stateName }}</el-tag
>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column fixed="right" label="操作" width="380" align="left"> <el-table-column fixed="right" label="操作" width="380" align="left">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button type="primary" size="mini" round @click="view(scope.row)" <el-button type="primary" size="mini" round @click="view(scope.row)">查看</el-button>
>查看</el-button <el-button type="primary" size="mini" round @click="getRecord(scope.row)">记录</el-button>
>
<el-button
type="primary"
size="mini"
round
@click="getRecord(scope.row)"
>记录</el-button
>
<!-- 公示期的单子可以暂停公示 --> <!-- 公示期的单子可以暂停公示 -->
<el-button <el-button v-if="scope.row.state === 2" type="warning" size="mini" round
v-if="scope.row.state === 2" @click="pause(scope.row.talentCode)">暂停公示</el-button>
type="warning"
size="mini"
round
@click="pause(scope.row.talentCode)"
>暂停公示</el-button
>
<!-- 暂停公示的单子可以恢复公示 --> <!-- 暂停公示的单子可以恢复公示 -->
<el-button <el-button v-if="scope.row.state === 4" type="success" size="mini" round
v-if="scope.row.state === 4" @click="recover(scope.row.talentCode)">恢复公示</el-button>
type="success"
size="mini"
round
@click="recover(scope.row.talentCode)"
>恢复公示</el-button
>
<!-- 审核通过后的单子都可以拉入黑名单撤销 --> <!-- 审核通过后的单子都可以拉入黑名单撤销 -->
<el-button <el-button v-if="
v-if=" scope.row.state === 2 ||
scope.row.state === 2 || scope.row.state === 3 ||
scope.row.state === 3 || scope.row.state === 4
scope.row.state === 4 " type="danger" size="mini" round @click="blacklist(scope.row.talentCode)">撤销</el-button>
"
type="danger"
size="mini"
round
@click="blacklist(scope.row.talentCode)"
>撤销</el-button
>
<!-- 审核通过后的单子都可以打印--> <!-- 审核通过后的单子都可以打印-->
<el-button <el-button size="mini" round @click="print(scope.row.talentCode, scope.row)">打印</el-button>
size="mini"
round
@click="print(scope.row.talentCode, scope.row)"
>打印</el-button
>
</template> </template>
</el-table-column> </el-table-column>
</table-template> </table-template>
...@@ -251,40 +134,16 @@ ...@@ -251,40 +134,16 @@
<!-- 表格end --> <!-- 表格end -->
<!-- 拒绝对话框 --> <!-- 拒绝对话框 -->
<el-dialog <el-dialog title="提示" :visible.sync="refuseDialog" width="30%" class="refuseDialog" :before-close="cancelBtn">
title="提示" <span>确定拒绝该人才的申请吗?确定的话请<span style="color: red">选择或输入</span>拒绝原因</span>
:visible.sync="refuseDialog"
width="30%"
class="refuseDialog"
:before-close="cancelBtn"
>
<span
>确定拒绝该人才的申请吗?确定的话请<span style="color: red"
>选择或输入</span
>拒绝原因</span
>
<div> <div>
<el-select <el-select v-model="refuseValue" placeholder="请选择拒绝原因" @change="refuseSelect">
v-model="refuseValue" <el-option v-for="item in refuseOptions" :key="item.value" :label="item.label" :value="item.value">
placeholder="请选择拒绝原因"
@change="refuseSelect"
>
<el-option
v-for="item in refuseOptions"
:key="item.value"
:label="item.label"
:value="item.value"
>
</el-option> </el-option>
</el-select> </el-select>
</div> </div>
<div class="refuseTex"> <div class="refuseTex">
<el-input <el-input type="textarea" autosize placeholder="请输入拒绝原因" v-model="refuseTextarea">
type="textarea"
autosize
placeholder="请输入拒绝原因"
v-model="refuseTextarea"
>
</el-input> </el-input>
</div> </div>
<span slot="footer" class="dialog-footer"> <span slot="footer" class="dialog-footer">
...@@ -295,13 +154,8 @@ ...@@ -295,13 +154,8 @@
<!-- 人才详情的对话框 --> <!-- 人才详情的对话框 -->
<!-- <!--
--> -->
<el-dialog <el-dialog title="人才详情" width="800px" :visible.sync="viewShow" :close-on-press-escape="false"
title="人才详情" @close="showEdu = false">
width="800px"
:visible.sync="viewShow"
:close-on-press-escape="false"
@close="showEdu = false"
>
<div class="content"> <div class="content">
<!-- 开始 --> <!-- 开始 -->
<div style="background: #f3f4f6"> <div style="background: #f3f4f6">
...@@ -319,7 +173,13 @@ ...@@ -319,7 +173,13 @@
</div> </div>
<div class="cell"> <div class="cell">
<p class="label"> <p class="label">
{{ viewDetail.passport === 0 ? "身份证" : "护照" }} 证件类型
</p>
<p class="value">{{ viewDetail.cardTypeName }}</p>
</div>
<div class="cell">
<p class="label">
证件号码
</p> </p>
<p class="value">{{ viewDetail.idCard }}</p> <p class="value">{{ viewDetail.idCard }}</p>
</div> </div>
...@@ -341,26 +201,14 @@ ...@@ -341,26 +201,14 @@
</div> </div>
<div class="cell"> <div class="cell">
<p class="label">个人承诺函</p> <p class="label">个人承诺函</p>
<el-image <el-image style="height: 100px; max-width: 150px" :src="viewDetail.promise"
style="height: 100px; max-width: 150px" :preview-src-list="[viewDetail.promise]" :z-index="1000000" />
:src="viewDetail.promise"
:preview-src-list="[viewDetail.promise]"
:z-index="1000000"
/>
</div> </div>
<div <div class="cell" v-for="(item, index) in viewDetail.pictureList" :key="index">
class="cell"
v-for="(item, index) in viewDetail.pictureList"
:key="index"
>
<template v-if="item.pictureType === 1"> <template v-if="item.pictureType === 1">
<p class="label">佐证材料(图片)</p> <p class="label">佐证材料(图片)</p>
<el-image <el-image style="height: 100px; max-width: 150px" :src="item.picture" :preview-src-list="[item.picture]"
style="height: 100px; max-width: 150px" :z-index="1000000" />
:src="item.picture"
:preview-src-list="[item.picture]"
:z-index="1000000"
/>
</template> </template>
<template v-if="item.pictureType === 2"> <template v-if="item.pictureType === 2">
<p class="label">佐证材料(文件)</p> <p class="label">佐证材料(文件)</p>
...@@ -375,9 +223,7 @@ ...@@ -375,9 +223,7 @@
发文机构:{{ item.issuingOrganization }} 发文机构:{{ item.issuingOrganization }}
</p> </p>
<p class="item"> <p class="item">
<a class="download" target="_blank" :href="item.picture" <a class="download" target="_blank" :href="item.picture">下载文件</a>
>下载文件</a
>
</p> </p>
</div> </div>
</template> </template>
...@@ -424,27 +270,14 @@ ...@@ -424,27 +270,14 @@
<p class="label"> <p class="label">
学历所在(<span style="color: red">{{ 学历所在(<span style="color: red">{{
viewDetail.educationState === 0 ? "校验未通过" : "校验已通过" viewDetail.educationState === 0 ? "校验未通过" : "校验已通过"
}}</span }}</span>)
>)
</p> </p>
<p class="value"> <p class="value">
{{ viewDetail.educationPassport === 0 ? "国内" : "国外" }} {{ viewDetail.educationPassport === 0 ? "国内" : "国外" }}
</p> </p>
<el-button <el-button style="margin-left: 20px" size="mini" type="success" @click="viewEdu">查看</el-button>
style="margin-left: 20px" <el-button style="margin-left: 20px" v-if="viewDetail.educationState === 0" type="primary" size="mini"
size="mini" @click="passEducation">审核通过</el-button>
type="success"
@click="viewEdu"
>查看</el-button
>
<el-button
style="margin-left: 20px"
v-if="viewDetail.educationState === 0"
type="primary"
size="mini"
@click="passEducation"
>审核通过</el-button
>
</div> </div>
<div class="cell" v-show="showEdu"> <div class="cell" v-show="showEdu">
<p class="label">学历查验</p> <p class="label">学历查验</p>
...@@ -498,10 +331,10 @@ ...@@ -498,10 +331,10 @@
viewDetail.unitType === "1" viewDetail.unitType === "1"
? "企业" ? "企业"
: viewDetail.unitType === "2" : viewDetail.unitType === "2"
? "事业单位(专技人员)" ? "事业单位(专技人员)"
: viewDetail.unitType === "3" : viewDetail.unitType === "3"
? "劳务派遣" ? "劳务派遣"
: " " : " "
}} }}
</p> </p>
</div> </div>
...@@ -521,33 +354,17 @@ ...@@ -521,33 +354,17 @@
<div class="cell"> <div class="cell">
<p class="label">个人照片</p> <p class="label">个人照片</p>
<el-image <el-image style="height: 100px; max-width: 150px" :src="viewDetail.headPortrait"
style="height: 100px; max-width: 150px" :preview-src-list="[viewDetail.headPortrait]" :z-index="1000000" />
:src="viewDetail.headPortrait"
:preview-src-list="[viewDetail.headPortrait]"
:z-index="1000000"
/>
</div> </div>
<div <div class="cell" v-if="viewDetail.payroll && viewDetail.unitType == '2'">
class="cell"
v-if="viewDetail.payroll && viewDetail.unitType == '2'"
>
<p class="label">工资变动审批表</p> <p class="label">工资变动审批表</p>
<a class="download" target="_blank" :href="viewDetail.payroll" <a class="download" target="_blank" :href="viewDetail.payroll">下载文件</a>
>下载文件</a
>
</div> </div>
<div <div class="cell" v-if="viewDetail.payroll && viewDetail.unitType == '3'">
class="cell"
v-if="viewDetail.payroll && viewDetail.unitType == '3'"
>
<p class="label">劳务派遣合同个人签字和盖章</p> <p class="label">劳务派遣合同个人签字和盖章</p>
<el-image <el-image style="height: 100px; max-width: 150px" :src="viewDetail.payroll"
style="height: 100px; max-width: 150px" :preview-src-list="[viewDetail.payroll]" :z-index="7777777" />
:src="viewDetail.payroll"
:preview-src-list="[viewDetail.payroll]"
:z-index="7777777"
/>
</div> </div>
<!-- <div class="cell" v-if="viewDetail.titleCertificate">--> <!-- <div class="cell" v-if="viewDetail.titleCertificate">-->
<!-- <p class="label">职称证明</p>--> <!-- <p class="label">职称证明</p>-->
...@@ -559,50 +376,25 @@ ...@@ -559,50 +376,25 @@
<!-- </div>--> <!-- </div>-->
<div class="cell" v-if="viewDetail.education"> <div class="cell" v-if="viewDetail.education">
<p class="label">学信网学历证明</p> <p class="label">学信网学历证明</p>
<el-image <el-image style="height: 100px; max-width: 150px" :src="viewDetail.education"
style="height: 100px; max-width: 150px" :preview-src-list="[viewDetail.education]" :z-index="7777777" />
:src="viewDetail.education"
:preview-src-list="[viewDetail.education]"
:z-index="7777777"
/>
</div> </div>
<div class="cell" v-if="viewDetail.studentStatus"> <div class="cell" v-if="viewDetail.studentStatus">
<p class="label">学信网学籍证明</p> <p class="label">学信网学籍证明</p>
<el-image <el-image style="height: 100px; max-width: 150px" :src="viewDetail.studentStatus" :z-index="7777777"
style="height: 100px; max-width: 150px" :preview-src-list="[viewDetail.studentStatus]" />
:src="viewDetail.studentStatus"
:z-index="7777777"
:preview-src-list="[viewDetail.studentStatus]"
/>
</div> </div>
</div> </div>
<span slot="footer" class="dialog-footer"> <span slot="footer" class="dialog-footer">
<!-- 申请的单子有通过拒绝--> <!-- 申请的单子有通过拒绝-->
<el-button <el-button v-if="viewRow.state === 1" type="danger" size="mini" round @click="deny(viewRow)">拒绝
v-if="viewRow.state === 1"
type="danger"
size="mini"
round
@click="deny(viewRow)"
>拒绝
</el-button> </el-button>
<!-- 通过 --> <!-- 通过 -->
<el-button <el-button v-if="viewRow.state === 1" type="success" size="mini" round @click="pass(viewRow)">通过
v-if="viewRow.state === 1"
type="success"
size="mini"
round
@click="pass(viewRow)"
>通过
</el-button> </el-button>
</span> </span>
</el-dialog> </el-dialog>
<el-dialog <el-dialog title="操作记录" :visible.sync="recordShow" width="800px" :close-on-press-escape="false">
title="操作记录"
:visible.sync="recordShow"
width="800px"
:close-on-press-escape="false"
>
<div class="content"> <div class="content">
<div class="cell" v-for="item in record" :key="item.createTime"> <div class="cell" v-for="item in record" :key="item.createTime">
<p class="label" style="margin-right: 20px"> <p class="label" style="margin-right: 20px">
...@@ -957,7 +749,6 @@ export default { ...@@ -957,7 +749,6 @@ export default {
this.pagination.total = res.data.total; this.pagination.total = res.data.total;
if (res.data.total) { if (res.data.total) {
this.tableData = res.data.list.map((item) => { this.tableData = res.data.list.map((item) => {
console.log("人才码列表----", item);
item.updateTime = item.updateTime?.substring(0, 10); item.updateTime = item.updateTime?.substring(0, 10);
item.stateName = this.getSatusArr(item.state).stateName; item.stateName = this.getSatusArr(item.state).stateName;
item.type = this.getSatusArr(item.state).type; item.type = this.getSatusArr(item.state).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