Browse Source

人才库1

sugangqiang 1 year ago
parent
commit
3ed0352fc0

+ 4 - 0
app/enterprise/api/TalentApi.php

@@ -96,6 +96,10 @@ class TalentApi {
                             $where[] = ["checkState", "=", TalentState::CERTIFICATED];
                             $where[] = ["checkState", "=", TalentState::CERTIFICATED];
                             break;
                             break;
                     }
                     }
+                    break;
+                case 3:
+                    $where[] = ["checkState", "=", TalentState::CERTIFICATED];
+                    break;
             }
             }
             if ($name) {
             if ($name) {
                 $where[] = ["name", "like", "%" . $name . "%"];
                 $where[] = ["name", "like", "%" . $name . "%"];

+ 6 - 0
app/enterprise/controller/TalentLibrary.php

@@ -9,6 +9,7 @@
 namespace app\enterprise\controller;
 namespace app\enterprise\controller;
 
 
 use app\enterprise\common\EnterpriseController;
 use app\enterprise\common\EnterpriseController;
+use app\enterprise\api\TalentApi;
 
 
 /**
 /**
  * Description of TalentLibrary
  * Description of TalentLibrary
@@ -21,4 +22,9 @@ class TalentLibrary extends EnterpriseController {
         return view();
         return view();
     }
     }
 
 
+    public function list() {
+        $res = TalentApi::getList($this->request, 3);
+        return json($res);
+    }
+
 }
 }

+ 302 - 0
app/enterprise/view/talent_library/index.html

@@ -0,0 +1,302 @@
+{extend name="layout/content"}
+{block name="content"}
+<style type="text/css">
+    #talentInfoForm label {
+        font-size: xx-small;
+    }
+
+    .has-feedback .form-control {
+        padding-right: 5px;
+    }
+    #field ul li{
+        list-style: none;
+        display:inline-block;
+        margin-bottom: 5px;
+    }
+    #field ul li input{
+        vertical-align:middle;
+        margin-right:5px;
+        margin-top:1px;
+    }
+</style>
+<div class="row">
+    <div class="col-sm-12">
+        <div class="ibox float-e-margins">
+            <div class="ibox-title">
+                <h5>人才认定申报</h5>
+            </div>
+            <div class="ibox-content">
+                <div class="row row-lg">
+                    <div class="col-sm-12">
+                        <div class="row">
+                            <input type="hidden" id="type" value="{$type}">
+                            <div class="col-sm-3">
+                                <div class="input-group input-group-sm">
+                                    <div class="input-group-btn">
+                                        <button data-toggle="dropdown" class="btn btn-white dropdown-toggle" type="button">姓名</button>
+                                    </div>
+                                    <input type="text" class="form-control" id="name" placeholder="" />
+                                </div>
+                            </div>
+                            <div class="col-sm-3">
+                                <div class="input-group input-group-sm">
+                                    <div class="input-group-btn">
+                                        <button data-toggle="dropdown" class="btn btn-white dropdown-toggle" type="button">证件号码</button>
+                                    </div>
+                                    <input type="text" class="form-control" id="card_number" placeholder="" />
+                                </div>
+                            </div>
+                            <div class="col-sm-3">
+                                <div class="input-group input-group-sm">
+                                    <div class="input-group-btn">
+                                        <button data-toggle="dropdown" class="btn btn-white dropdown-toggle" type="button">
+                                            性别
+                                        </button>
+                                    </div>
+                                    <select class="form-control" id="sex">
+
+                                        <option value=""></option>
+                                        <option value="1">男</option>
+                                        <option value="2">女</option>
+                                    </select>
+                                </div>
+                            </div>
+                            <div class="col-sm-3">
+                                <div class="input-group input-group-sm">
+                                    <div class="input-group-btn">
+                                        <button data-toggle="dropdown" class="btn btn-white dropdown-toggle" type="button">
+                                            民族
+                                        </button>
+                                    </div>
+                                    <select class="form-control" id="nation">
+                                    </select>
+                                </div>
+                            </div>
+                            <div class="col-sm-3">
+                                <div class="input-group input-group-sm">
+                                    <div class="input-group-btn">
+                                        <button data-toggle="dropdown" class="btn btn-white dropdown-toggle" type="button">
+                                            国籍/地区
+                                        </button>
+                                    </div>
+                                    <select class="form-control" id="nationality">
+                                    </select>
+                                </div>
+                            </div>
+                            <div class="col-sm-3">
+                                <div class="input-group input-group-sm">
+                                    <div class="input-group-btn">
+                                        <button data-toggle="dropdown" class="btn btn-white dropdown-toggle" type="button">
+                                            人才标签
+                                        </button>
+                                    </div>
+                                    <select class="form-control" id="talentType">
+                                    </select>
+                                </div>
+                            </div>
+                            <div class="col-sm-3">
+                                <div class="input-group input-group-sm">
+                                    <div class="input-group-btn">
+                                        <button data-toggle="dropdown" class="btn btn-white dropdown-toggle" type="button">
+                                            人才层次
+                                        </button>
+                                    </div>
+                                    <select class="form-control" id="talent_arrange">
+                                    </select>
+                                </div>
+                            </div>
+                            <div class="col-sm-3">
+                                <button type="button" class="btn btn-sm btn-primary" onclick="TalentInfo.search()">
+                                    <i class="fa fa-search"></i>&nbsp;搜索
+                                </button>
+                                <button type="button" class="btn btn-sm btn-primary" onclick="TalentInfo.reset()">
+                                    <i class="fa fa-trash"></i>&nbsp;重置
+                                </button>
+                            </div>
+                        </div>
+                        <div class="hidden-xs" id="TalentInfoTableToolbar" role="group">
+                            <button type="button" class="btn btn-sm btn-primary" onclick="TalentInfo.updatePhoto()">
+                                <i class="fa fa-photo"></i>&nbsp;修改头像
+                            </button>
+                            <button type="button" class="btn btn-sm btn-primary" onclick="TalentInfo.updatePhoneModal()">
+                                <i class="fa fa-edit"></i>&nbsp;修改手机号码
+                            </button>
+                            <button type="button" class="btn btn-sm btn-primary" onclick="TalentInfo.showExportModal()">
+                                <i class="fa fa-file-excel-o"></i>&nbsp;导出
+                            </button>
+                            <button type="button" class="btn btn-sm btn-primary" onclick="TalentInfo.openTalentInfoDetail()">
+                                <i class="fa fa-book"></i>&nbsp;查看
+                            </button>
+                        </div>
+                        <table id="TalentInfoTable" class="table-condensed" style="font-size: 10px;table-layout: fixed!important;" data-mobile-responsive="true" data-click-to-select="true">
+                            <thead>
+                                <tr>
+                                    <th data-field="selectItem" data-checkbox="true"></th>
+                                </tr>
+                            </thead>
+                        </table>
+                    </div>
+                </div>
+            </div>
+        </div>
+    </div>
+</div>
+<!--公示再审核模态框-->
+<div class="modal fade " id="updateModal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel">
+    <div class="modal-dialog" role="document">
+        <div class="modal-content animated flipInY">
+            <div class="modal-header">
+                <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
+                <h4 class="modal-title" id="updateModalLabel">修改手机号码</h4>
+            </div>
+            <div class="modal-body">
+                <form id="phoneForm" class="form-horizontal">
+                    <input type="hidden" id="mainId" name="id">
+                    <div class="form-group">
+                        <div class="row" style="margin-bottom: 10px;">
+                            <label class="col-sm-2 control-label">原手机号码</label>
+                            <div class="col-sm-10">
+                                <input type="text" class="form-control" id="oldPhone" name="oldPhone">
+                            </div>
+
+                        </div>
+                        <div class="row">
+                            <label class="col-sm-2 control-label">新手机号码</label>
+                            <div class="col-sm-10">
+                                <input type="text" class="form-control" id="newPhone" name="newPhone">
+                            </div>
+                        </div>
+                    </div>
+                </form>
+            </div>
+            <div class="modal-footer">
+                <button type="button" class="btn btn-primary" onclick="TalentInfo.updatePhone()">提交</button>
+                <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
+            </div>
+        </div>
+    </div>
+</div>
+<!--导出模态框-->
+<div class="modal fade " id="exportModal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel">
+    <div class="modal-dialog modal-lg" role="document">
+        <div class="modal-content animated flipInY">
+            <div class="modal-header">
+                <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
+                <h4 class="modal-title" id="firstModalLabel">导出</h4>
+            </div>
+            <div class="modal-body">
+                <form id="exportForm"  target="hiddenIframe" class="form-horizontal">
+                    <div class="form-group" id="field">
+                        <div id="field_info">
+                            <ul>
+                                @if(type==1){
+                                <li style="width:12%"><input type="checkbox" value="name"><span>姓名</span></li>
+                                <li style="width:12%"><input type="checkbox" value="sexName"><span>性别</span></li>
+                                <li style="width:12%"><input type="checkbox" value="birthday"><span>出生日期</span></li>
+                                <li style="width:12%"><input type="checkbox" value="nationalityName"><span>国籍/地区</span></li>
+                                <li style="width:12%"><input type="checkbox" value="provinceName"><span>籍贯省</span></li>
+                                <li style="width:12%"><input type="checkbox" value="cityName"><span>籍贯市</span></li>
+                                <li style="width:12%"><input type="checkbox" value="countyName"><span>籍贯县</span></li>
+                                <li style="width:12%"><input type="checkbox" value="nationName"><span>民族</span></li>
+                                <li style="width:12%"><input type="checkbox" value="politicsName"><span>政治面貌</span></li>
+                                <li style="width:12%"><input type="checkbox" value="cardTypeName"><span>证件类型</span></li>
+                                <li style="width:12%"><input type="checkbox" value="idCard"><span>证件号码</span></li>
+                                <li style="width:24%"><input type="checkbox" value="firstInJJTime"><span>首次来晋工作时间</span></li>
+                                <li style="width:12%"><input type="checkbox" value="enterpriseName"><span>企业名称</span></li>
+                                <li style="width:12%"><input type="checkbox" value="industryFieldName"><span>行业领域</span></li>
+                                <li style="width:12%"><input type="checkbox" value="streetName"><span>所属镇街</span></li>
+                                <li style="width:12%"><input type="checkbox" value="sourceName"><span>申报来源</span></li>
+                                <li style="width:12%"><input type="checkbox" value="fromCityName"><span>入选来源县市</span></li>
+                                <li style="width:12%"><input type="checkbox" value="qzBatch"><span>入选名单批次</span></li>
+                                <li style="width:24%"><input type="checkbox" value="certificateStartTime"><span>泉州高层次人才证书发证日期</span></li>
+                                <li style="width:24%"><input type="checkbox" value="qzgccrcActiveTime"><span>泉州高层次人才证书的有效期</span></li>
+                                <li style="width:12%"><input type="checkbox" value="talentArrangeName"><span>人才层次</span></li>
+                                <li style="width:12%"><input type="checkbox" value="identifyConditionText"><span>认定条件</span></li>
+                                <li style="width:12%"><input type="checkbox" value="identifyConditionName"><span>认定条件名称</span></li>
+                                <li style="width:24%"><input type="checkbox" value="identifyGetTime"><span>认定条件证书取得时间</span></li>
+                                <li style="width:12%"><input type="checkbox" value="talentTypeName"><span>人才标签</span></li>
+                                <li style="width:24%"><input type="checkbox" value="letterTime"><span>首次来晋行政介绍信时间</span></li>
+                                <li style="width:12%"><input type="checkbox" value="introductionModeName"><span>引进方式</span></li>
+                                <li style="width:24%"><input type="checkbox" value="entryTime"><span>本单位入职时间</span></li>
+                                <li style="width:12%"><input type="checkbox" value="post"><span>职务</span></li>
+                                <li style="width:24%"><input type="checkbox" value="startTime"><span>工作合同开始时间</span></li>
+                                <li style="width:24%"><input type="checkbox" value="endTime"><span>工作合同结束时间</span></li>
+                                <li style="width:12%"><input type="checkbox" value="educationName"><span>最高学历</span></li>
+                                <li style="width:12%"><input type="checkbox" value="major"><span>专业</span></li>
+                                <li style="width:12%"><input type="checkbox" value="title"><span>职称</span></li>
+                                <li style="width:12%"><input type="checkbox" value="professionalQualifications"><span>国家职业资格</span></li>
+                                <li style="width:24%"><input type="checkbox" value="studyAbroadName"><span>是否有留学经历</span></li>
+                                <li style="width:12%"><input type="checkbox" value="phone"><span>手机号码</span></li>
+                                <li style="width:12%"><input type="checkbox" value="email"><span>电子邮箱</span></li>
+                                <li style="width:12%"><input type="checkbox" value="bank"><span>开户银行</span></li>
+                                <li style="width:24%"><input type="checkbox" value="bankNetwork"><span>开户银行网点</span></li>
+                                <li style="width:12%"><input type="checkbox" value="bankNumber"><span>银行行号</span></li>
+                                <li style="width:12%"><input type="checkbox" value="bankAccount"><span>银行账号</span></li>
+                                <li style="width:24.5%"><input type="checkbox" value="breakFaithName"><span>曾被相关主管部门列为失信个人</span></li>
+                                <li style="width:12%"><input type="checkbox" value="identifyMonth"><span>公布入选月份</span></li>
+                                <li style="width:12%"><input type="checkbox" value="certificateNO"><span>人才编号</span></li>
+                                <li style="width:12%"><input type="checkbox" value="activeName"><span>离职状态</span></li>
+                                <li style="width:12%"><input type="checkbox" value="quitTime"><span>离职时间</span></li>
+                                @}
+                                @if(type==2){
+                                <li style="width:12%"><input type="checkbox" value="enterpriseName"><span>企业名称</span></li>
+                                <li style="width:12%"><input type="checkbox" value="name"><span>姓名</span></li>
+                                <li style="width:12%"><input type="checkbox" value="sexName"><span>性别</span></li>
+                                <li style="width:12%"><input type="checkbox" value="birthday"><span>出生日期</span></li>
+                                <li style="width:12%"><input type="checkbox" value="nationName"><span>民族</span></li>
+                                <li style="width:12%"><input type="checkbox" value="cardTypeName"><span>证件类型</span></li>
+                                <li style="width:12%"><input type="checkbox" value="idCard"><span>证件号码</span></li>
+                                <li style="width:12%"><input type="checkbox" value="nationalityName"><span>国籍/地区</span></li>
+                                <li style="width:12%"><input type="checkbox" value="politicsName"><span>政治面貌</span></li>
+                                <li style="width:12%"><input type="checkbox" value="streetName"><span>所属镇街</span></li>
+                                <li style="width:12%"><input type="checkbox" value="provinceName"><span>籍贯省</span></li>
+                                <li style="width:12%"><input type="checkbox" value="cityName"><span>籍贯市</span></li>
+                                <li style="width:12%"><input type="checkbox" value="countyName"><span>籍贯县</span></li>
+                                <li style="width:12%"><input type="checkbox" value="educationName"><span>最高学历</span></li>
+                                <li style="width:12%"><input type="checkbox" value="graduateSchool"><span>毕业学校</span></li>
+                                <li style="width:12%"><input type="checkbox" value="major"><span>专业</span></li>
+                                <li style="width:12%"><input type="checkbox" value="post"><span>职务</span></li>
+                                <li style="width:12%"><input type="checkbox" value="phone"><span>手机号码</span></li>
+                                <li style="width:12%"><input type="checkbox" value="email"><span>电子邮箱</span></li>
+                                <li style="width:12%"><input type="checkbox" value="bank"><span>开户银行</span></li>
+                                <li style="width:24%"><input type="checkbox" value="bankNetwork"><span>开户银行网点</span></li>
+                                <li style="width:12%"><input type="checkbox" value="bankAccount"><span>银行账号</span></li>
+                                <li style="width:24%"><input type="checkbox" value="startTime"><span>工作合同开始时间</span></li>
+                                <li style="width:24%"><input type="checkbox" value="endTime"><span>工作合同结束时间</span></li>
+                                <li style="width:24%"><input type="checkbox" value="entryTime"><span>本单位入职时间</span></li>
+                                <li style="width:12%"><input type="checkbox" value="talentArrangeName"><span>人才层次</span></li>
+                                <li style="width:12%"><input type="checkbox" value="identifyConditionText"><span>认定条件</span></li>
+                                <li style="width:12%"><input type="checkbox" value="identifyConditionName"><span>认定条件名称</span></li>
+                                <li style="width:24%"><input type="checkbox" value="identifyGetTime"><span>认定条件证书取得时间</span></li>
+                                <li style="width:12%"><input type="checkbox" value="title"><span>职称</span></li>
+                                <li style="width:12%"><input type="checkbox" value="professionalQualifications"><span>国家职业资格</span></li>
+                                <li style="width:24.5%"><input type="checkbox" value="studyAbroadName"><span>是否有留学经历</span></li>
+                                <li style="width:36%"><input type="checkbox" value="breakFaithName"><span>曾被相关主管部门列为失信个人</span></li>
+                                <li style="width:12%"><input type="checkbox" value="identifyMonth"><span>公布入选月份</span></li>
+                                <li style="width:12%"><input type="checkbox" value="certificateNO"><span>人才编号</span></li>
+                                <li style="width:12%"><input type="checkbox" value="activeName"><span>离职状态</span></li>
+                                <li style="width:12%"><input type="checkbox" value="quitTime"><span>离职时间</span></li>
+                                @}
+                            </ul>
+                        </div>
+                        <div class="form-group" style="text-align: center">
+                            <button type="button" class="btn btn-primary" onclick="TalentInfo.checkAll()">全选</button>
+                            <button type="button" class="btn btn-success" onclick="TalentInfo.unCheckAll()">反选</button>
+                        </div>
+                    </div>
+                </form>
+            </div>
+            <div class="modal-footer">
+                <button type="button" class="btn btn-primary" onclick="TalentInfo.export()">导出</button>
+                <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
+            </div>
+        </div>
+    </div>
+</div>
+<iframe id="hiddenIframe" name="hiddenIframe" style="display: none;"></iframe>
+<!--<script src="${ctxPath}/static/modular/gate/talentInfo/talentInfo_library.js"></script>-->
+<script type="text/javascript">
+    document.write('<script src="/static/modular/gate/talentInfo/talentInfo_library.js?v=' + (new Date()).getTime() + '"><\/script>');
+    document.write('<script src="/static/modular/common/config.js?v=' + (new Date()).getTime() + '"><\/script>');
+</script>
+{/block}

+ 101 - 98
public/static/modular/gate/talentInfo/talentInfo_library.js

@@ -2,8 +2,8 @@
  * 人才认定申报管理初始化
  * 人才认定申报管理初始化
  */
  */
 var TalentInfo = {
 var TalentInfo = {
-    id: "TalentInfoTable",	//表格id
-    seItem: null,		//选中的条目
+    id: "TalentInfoTable", //表格id
+    seItem: null, //选中的条目
     table: null,
     table: null,
     layerIndex: -1
     layerIndex: -1
 };
 };
@@ -14,57 +14,60 @@ var TalentInfo = {
 TalentInfo.initColumn = function () {
 TalentInfo.initColumn = function () {
     var type = $("#type").val();
     var type = $("#type").val();
     var isShow = true;
     var isShow = true;
-    if(type==2){
+    if (type == 2) {
         isShow = false;
         isShow = false;
     }
     }
     return [
     return [
         {field: 'selectItem', radio: true},
         {field: 'selectItem', radio: true},
-        {title: '申报年度', field: 'year', visible: true, align: 'center', valign: 'middle',width:'80px'},
-        {title: '离职状态', field: 'active', visible: true, align: 'center', valign: 'middle',width:'80px',
-            formatter : function (value,row,index) {
-                if(value==1){
+        {title: '申报年度', field: 'year', visible: true, align: 'center', valign: 'middle', width: '80px'},
+        {title: '离职状态', field: 'active', visible: true, align: 'center', valign: 'middle', width: '80px',
+            formatter: function (value, row, index) {
+                if (value == 1) {
                     return '<span style="color:#6495ED">在职</span>';
                     return '<span style="color:#6495ED">在职</span>';
-                }if(value==2){
+                }
+                if (value == 2) {
                     return '<span style="color:#FF82AB">离职</span>';
                     return '<span style="color:#FF82AB">离职</span>';
                 }
                 }
             }
             }
         },
         },
-        {title: '姓名', field: 'name', visible: true, align: 'center', valign: 'middle',width:"100px",
-            formatter : function(value,row,index){
-                if(row.sex==1){
-                    return value+'<span style="color:#6495ED">【男】</span>';
-                }if(row.sex==2){
-                    return value+'<span style="color:#FF82AB">【女】</span>';
+        {title: '姓名', field: 'name', visible: true, align: 'center', valign: 'middle', width: "100px",
+            formatter: function (value, row, index) {
+                if (row.sex == 1) {
+                    return value + '<span style="color:#6495ED">【男】</span>';
+                }
+                if (row.sex == 2) {
+                    return value + '<span style="color:#FF82AB">【女】</span>';
                 }
                 }
             }
             }
         },
         },
-        {title: '人才类别', field: 'type', visible: true, align: 'center', valign: 'middle',width:"100px",
-            formatter : function (value,row,index){
-                if(value==1){
+        {title: '人才类别', field: 'type', visible: true, align: 'center', valign: 'middle', width: "100px",
+            formatter: function (value, row, index) {
+                if (value == 1) {
                     return '晋江市现代产业体系人才';
                     return '晋江市现代产业体系人才';
-                }if(value==2){
+                }
+                if (value == 2) {
                     return '集成电路优秀人才';
                     return '集成电路优秀人才';
                 }
                 }
             }
             }
         },
         },
-        {title: '人才层次', field: 'talentArrangeName', visible: true, align: 'center', valign: 'middle','class': 'uitd_showTip',width:"80px"},
-        {title: '人才标签', field: 'talentTypeName', visible: isShow, align: 'center', valign: 'middle','class': 'uitd_showTip',width:"80px"},
-        {title: '证件号码', field: 'idCard', visible: true, align: 'center', valign: 'middle','class': 'uitd_showTip',width:"120px"},
-        {title: '认定条件', field: 'identifyConditionText', visible: true, align: 'center', valign: 'middle','class': 'uitd_showTip',width:"120px"},
-        {title: '认定条件名称', field: 'identifyConditionName', visible: true, align: 'center', valign: 'middle','class': 'uitd_showTip',width:"120px"},
-        {title: '认定条件证书取得时间', field: 'identifyGetTime', visible: true, align: 'center', valign: 'middle','class': 'uitd_showTip',width:"120px"},
-        {title: '人才证书有效期', field: 'identifyGetTime', visible: isShow, align: 'center', valign: 'middle','class': 'uitd_showTip',width:'150px',
-            formatter:function (value,row,index) {
-                return row.certificateStartTime + "至" + row.qzgccrcActiveTime ;
+        {title: '人才层次', field: 'talentArrangeName', visible: true, align: 'center', valign: 'middle', 'class': 'uitd_showTip', width: "80px"},
+        {title: '人才标签', field: 'talentTypeName', visible: isShow, align: 'center', valign: 'middle', 'class': 'uitd_showTip', width: "80px"},
+        {title: '证件号码', field: 'idCard', visible: true, align: 'center', valign: 'middle', 'class': 'uitd_showTip', width: "120px"},
+        {title: '认定条件', field: 'identifyConditionText', visible: true, align: 'center', valign: 'middle', 'class': 'uitd_showTip', width: "120px"},
+        {title: '认定条件名称', field: 'identifyConditionName', visible: true, align: 'center', valign: 'middle', 'class': 'uitd_showTip', width: "120px"},
+        {title: '认定条件证书取得时间', field: 'identifyGetTime', visible: true, align: 'center', valign: 'middle', 'class': 'uitd_showTip', width: "120px"},
+        {title: '人才证书有效期', field: 'identifyGetTime', visible: isShow, align: 'center', valign: 'middle', 'class': 'uitd_showTip', width: '150px',
+            formatter: function (value, row, index) {
+                return row.certificateStartTime + "至" + row.qzgccrcActiveTime;
             }
             }
         },
         },
-        {title: '公布入选月份', field: 'identifyMonth', visible: true, align: 'center', valign: 'middle','class': 'uitd_showTip',width:"100px"},
-        {title: '人才编号', field: 'certificateNO', visible: true, align: 'center', valign: 'middle','class': 'uitd_showTip',width:"100px"},
-        {title: '操作', field: 'id', visible: true, align: 'center', valign: 'middle',width:"80px",
-            formatter : function (value,row,index){
-                return "<span class='label label-success' onclick=\"TalentInfo.showLog('"+value+"')\" >" +
-                    "<i class=\"fa fa-book\"></i>日志" +
-                    "</span>";
+        {title: '公布入选月份', field: 'identifyMonth', visible: true, align: 'center', valign: 'middle', 'class': 'uitd_showTip', width: "100px"},
+        {title: '人才编号', field: 'certificateNO', visible: true, align: 'center', valign: 'middle', 'class': 'uitd_showTip', width: "100px"},
+        {title: '操作', field: 'id', visible: true, align: 'center', valign: 'middle', width: "80px",
+            formatter: function (value, row, index) {
+                return "<span class='label label-success' onclick=\"TalentInfo.showLog('" + value + "')\" >" +
+                        "<i class=\"fa fa-book\"></i>日志" +
+                        "</span>";
             }
             }
         }
         }
     ];
     ];
@@ -75,10 +78,10 @@ TalentInfo.initColumn = function () {
  */
  */
 TalentInfo.check = function () {
 TalentInfo.check = function () {
     var selected = $('#' + this.id).bootstrapTable('getSelections');
     var selected = $('#' + this.id).bootstrapTable('getSelections');
-    if(selected.length == 0){
+    if (selected.length == 0) {
         Feng.info("请先选中表格中的某一记录!");
         Feng.info("请先选中表格中的某一记录!");
         return false;
         return false;
-    }else{
+    } else {
         TalentInfo.seItem = selected[0];
         TalentInfo.seItem = selected[0];
         return true;
         return true;
     }
     }
@@ -87,16 +90,16 @@ TalentInfo.check = function () {
 /**
 /**
  * 显示审核日志
  * 显示审核日志
  */
  */
-TalentInfo.showLog = function (id){
+TalentInfo.showLog = function (id) {
     layer.open({
     layer.open({
         type: 1,
         type: 1,
-        title:"日志",
-        fixed:false,
-        content: '<table id="'+id+'"></table>',
+        title: "日志",
+        fixed: false,
+        content: '<table id="' + id + '"></table>',
         area: ['80%', '80%'],
         area: ['80%', '80%'],
         maxmin: true,
         maxmin: true,
-        success :function (layero, index) {
-            Feng.getCheckLog(id,{"type":CONFIG.project_rcrd,"mainId":id,"typeFileId":"","active":1})
+        success: function (layero, index) {
+            Feng.getCheckLog(id, {"type": CONFIG.project_rcrd, "mainId": id, "typeFileId": "", "active": 1})
         }
         }
     });
     });
 
 
@@ -112,7 +115,7 @@ TalentInfo.openTalentInfoDetail = function () {
             title: '人才认定申报详情',
             title: '人才认定申报详情',
             fix: false, //不固定
             fix: false, //不固定
             maxmin: true,
             maxmin: true,
-            content: Feng.ctxPath + '/api/talentInfo/talentInfo_update/' + TalentInfo.seItem.id+"/select",
+            content: '/enterprise/talent/view/id/' + TalentInfo.seItem.id
         });
         });
         layer.full(index);
         layer.full(index);
         TalentInfo.layerIndex = index;
         TalentInfo.layerIndex = index;
@@ -123,15 +126,15 @@ TalentInfo.openTalentInfoDetail = function () {
  * 查询表单提交参数对象
  * 查询表单提交参数对象
  * @returns {{}}
  * @returns {{}}
  */
  */
-TalentInfo.formParams = function() {
+TalentInfo.formParams = function () {
     var queryData = {};
     var queryData = {};
     queryData['name'] = $("#name").val();
     queryData['name'] = $("#name").val();
-    queryData['idCard'] = $("#idCard").val();
+    queryData['card_number'] = $("#card_number").val();
     queryData['sex'] = $("#sex").val();
     queryData['sex'] = $("#sex").val();
     queryData['nation'] = $("#nation").val();
     queryData['nation'] = $("#nation").val();
     queryData['nationality'] = $("#nationality").val();
     queryData['nationality'] = $("#nationality").val();
     queryData['talentType'] = $("#talentType").val();
     queryData['talentType'] = $("#talentType").val();
-    queryData['talentArrange'] = $("#talentArrange").val();
+    queryData['talent_arrange'] = $("#talent_arrange").val();
     return queryData;
     return queryData;
 }
 }
 
 
@@ -145,49 +148,49 @@ TalentInfo.search = function () {
 /**
 /**
  * 重置
  * 重置
  */
  */
-TalentInfo.reset = function (){
+TalentInfo.reset = function () {
     $("#name").val("");
     $("#name").val("");
-    $("#idCard").val("");
+    $("#card_number").val("");
     $("#sex").val("");
     $("#sex").val("");
     $("#nation").val("");
     $("#nation").val("");
     $("#nationality").val("");
     $("#nationality").val("");
     $("#talentType").val("");
     $("#talentType").val("");
-    $("#talentArrange").val("");
+    $("#talent_arrange").val("");
 }
 }
 
 
 //显示修改手机号码模态框
 //显示修改手机号码模态框
-TalentInfo.updatePhoneModal = function(){
-    if(this.check()){
+TalentInfo.updatePhoneModal = function () {
+    if (this.check()) {
         $("#phoneForm")[0].reset();
         $("#phoneForm")[0].reset();
         $("#updateModal").modal("show");
         $("#updateModal").modal("show");
     }
     }
 }
 }
 
 
 //修改手机号码提交
 //修改手机号码提交
-TalentInfo.updatePhone = function(){
+TalentInfo.updatePhone = function () {
     var oldPhone = $("#oldPhone").val();
     var oldPhone = $("#oldPhone").val();
     var newPhone = $("#newPhone").val();
     var newPhone = $("#newPhone").val();
-    if($.trim(oldPhone)!=TalentInfo.seItem.phone){
+    if ($.trim(oldPhone) != TalentInfo.seItem.phone) {
         Feng.info("原手机号码不正确");
         Feng.info("原手机号码不正确");
-        return ;
+        return;
     }
     }
-    if(newPhone==null || newPhone==''){
+    if (newPhone == null || newPhone == '') {
         Feng.info("新手机号码不能为空");
         Feng.info("新手机号码不能为空");
         return;
         return;
     }
     }
-    var operation = function() {
-        var ajax = new $ax(Feng.ctxPath + "/api/talentInfo/updatePhone", function (data) {
-            if(data.code==200){
+    var operation = function () {
+        var ajax = new $ax(Feng.ctxPath + "/enterprise/talent_library/updatePhone", function (data) {
+            if (data.code == 200) {
                 Feng.success(data.msg);
                 Feng.success(data.msg);
                 TalentInfo.table.refresh();
                 TalentInfo.table.refresh();
                 $("#updateModal").modal("hide");
                 $("#updateModal").modal("hide");
-            }else{
+            } else {
                 Feng.error(data.msg);
                 Feng.error(data.msg);
             }
             }
         }, function (data) {
         }, function (data) {
             Feng.error("修改手机号码失败!" + data.responseJSON.message + "!");
             Feng.error("修改手机号码失败!" + data.responseJSON.message + "!");
         });
         });
-        ajax.set("id",TalentInfo.seItem.id);
+        ajax.set("id", TalentInfo.seItem.id);
         ajax.set("oldPhone", oldPhone);
         ajax.set("oldPhone", oldPhone);
         ajax.set("newPhone", newPhone);
         ajax.set("newPhone", newPhone);
         ajax.start();
         ajax.start();
@@ -195,11 +198,11 @@ TalentInfo.updatePhone = function(){
     Feng.confirm("确定修改手机号码吗?", operation);
     Feng.confirm("确定修改手机号码吗?", operation);
 }
 }
 
 
-TalentInfo.updatePhoto = function(){
-    if(this.check()){
-        if (TalentInfo.seItem.isCertification == 2){
+TalentInfo.updatePhoto = function () {
+    if (this.check()) {
+        if (TalentInfo.seItem.isCertification == 2) {
             Feng.info("已制证,无法修改");
             Feng.info("已制证,无法修改");
-            return ;
+            return;
         }
         }
         var index = layer.open({
         var index = layer.open({
             type: 1,
             type: 1,
@@ -207,18 +210,18 @@ TalentInfo.updatePhoto = function(){
             area: ['800px', '420px'], //宽高
             area: ['800px', '420px'], //宽高
             fix: false, //不固定
             fix: false, //不固定
             maxmin: true,
             maxmin: true,
-            content: "<form id=\"commonFileForm\" action=\""+Feng.ctxPath+"/api/talentInfo/updatePhoto\" method=\"post\" enctype=\"multipart/form-data\" target=\"hiddenIframe\">\n" +
-                "                    <div  class=\"panel panel-default\">\n" +
-                "                        <div class=\"panel-heading\" style=\"font-weight: bold\">头像</div>\n" +
-                "                        <div class=\"panel-body\">\n" +
-                "                            <input type=\"text\" style=\"display: none\" id=\"libId\" name=\"libId\" >\n" +
-                "                            <input type=\"text\" style=\"display: none\" id=\"index\" name=\"index\" >\n" +
-                "                            <input type=\"file\" style=\"display: none\" id=\"fileUrl\" name=\"fileUrl\" onchange=\"TalentInfo.fileChange(this)\">\n" +
-                "                            <input class=\"form-control\" placeholder=\"请上传头像\" id=\"fileInput\" onclick=\"$('#fileUrl').click()\">\n" +
-                "                        </div>\n" +
-                "                    </div>\n" +
-                "                </form>",
-            btn: ['<i class="fa fa-eye"></i>&nbsp;&nbsp;提交' ,'<i class="fa fa-eraser"></i>&nbsp;&nbsp;关闭'],
+            content: "<form id=\"commonFileForm\" action=\"" + Feng.ctxPath + "/api/talentInfo/updatePhoto\" method=\"post\" enctype=\"multipart/form-data\" target=\"hiddenIframe\">\n" +
+                    "                    <div  class=\"panel panel-default\">\n" +
+                    "                        <div class=\"panel-heading\" style=\"font-weight: bold\">头像</div>\n" +
+                    "                        <div class=\"panel-body\">\n" +
+                    "                            <input type=\"text\" style=\"display: none\" id=\"libId\" name=\"libId\" >\n" +
+                    "                            <input type=\"text\" style=\"display: none\" id=\"index\" name=\"index\" >\n" +
+                    "                            <input type=\"file\" style=\"display: none\" id=\"fileUrl\" name=\"fileUrl\" onchange=\"TalentInfo.fileChange(this)\">\n" +
+                    "                            <input class=\"form-control\" placeholder=\"请上传头像\" id=\"fileInput\" onclick=\"$('#fileUrl').click()\">\n" +
+                    "                        </div>\n" +
+                    "                    </div>\n" +
+                    "                </form>",
+            btn: ['<i class="fa fa-eye"></i>&nbsp;&nbsp;提交', '<i class="fa fa-eraser"></i>&nbsp;&nbsp;关闭'],
             btnAlign: 'c',
             btnAlign: 'c',
             yes: function (index, layero) {
             yes: function (index, layero) {
                 $("#index").val(index);
                 $("#index").val(index);
@@ -229,42 +232,42 @@ TalentInfo.updatePhoto = function(){
     }
     }
 }
 }
 
 
-TalentInfo.fileChange = function(context){
-    var file  = $(context).val();
+TalentInfo.fileChange = function (context) {
+    var file = $(context).val();
     var pos = file.lastIndexOf("\\");
     var pos = file.lastIndexOf("\\");
-    $("#fileInput").val(file.substring(pos+1));
+    $("#fileInput").val(file.substring(pos + 1));
 }
 }
 
 
-TalentInfo.callback = function(data){
-    if(data.code == 200){
+TalentInfo.callback = function (data) {
+    if (data.code == 200) {
         Feng.success(data.msg);
         Feng.success(data.msg);
         layer.close(data.obj);
         layer.close(data.obj);
-    }else{
+    } else {
         Feng.info(data.msg);
         Feng.info(data.msg);
     }
     }
 }
 }
 
 
 
 
 //显示导出模态框
 //显示导出模态框
-TalentInfo.showExportModal = function(){
+TalentInfo.showExportModal = function () {
     $("#exportForm")[0].reset();
     $("#exportForm")[0].reset();
     $("#exportModal").modal("show");
     $("#exportModal").modal("show");
 }
 }
 
 
 
 
 //导出
 //导出
-TalentInfo.export = function(){
-    var operation = function() {
+TalentInfo.export = function () {
+    var operation = function () {
         var names = '';
         var names = '';
         var fieldCodes = '';
         var fieldCodes = '';
-        $("#field_info li input").each(function(index){
-            if($(this).is(":checked")){
+        $("#field_info li input").each(function (index) {
+            if ($(this).is(":checked")) {
                 fieldCodes = fieldCodes + $(this).val() + ",";
                 fieldCodes = fieldCodes + $(this).val() + ",";
                 names = names + $(this).next().text() + ",";
                 names = names + $(this).next().text() + ",";
             }
             }
         });
         });
-        var arr = { "names":names,"fieldCodes":fieldCodes,"name":$("#name").val(), "idCard":$("#idCard").val(), "sex":$("#sex").val(), "nation":$("#nation").val(),
-            "nationality":$("#nationality").val(),"talentType":$("#talentType").val(), "talentArrange":$("#talentArrange").val()};
+        var arr = {"names": names, "fieldCodes": fieldCodes, "name": $("#name").val(), "idCard": $("#idCard").val(), "sex": $("#sex").val(), "nation": $("#nation").val(),
+            "nationality": $("#nationality").val(), "talentType": $("#talentType").val(), "talentArrange": $("#talentArrange").val()};
         window.location.href = Feng.setUrlParam(Feng.ctxPath + "/api/talentInfoExport/export", arr);
         window.location.href = Feng.setUrlParam(Feng.ctxPath + "/api/talentInfoExport/export", arr);
         // window.location.href = Feng.ctxPath + "/api/talentInfoExport/export?names=" + names + "&fieldCodes=" + fieldCodes + "&name=" + $("#name").val() + "&idCard=" + $("#idCard").val()
         // window.location.href = Feng.ctxPath + "/api/talentInfoExport/export?names=" + names + "&fieldCodes=" + fieldCodes + "&name=" + $("#name").val() + "&idCard=" + $("#idCard").val()
         //     + "&sex=" + $("#sex").val()+ "&nation=" + $("#nation").val()+ "&nationality=" + $("#nationality").val()+ "&talentType=" + $("#talentType").val()+ "&talentArrange=" + $("#talentArrange").val();
         //     + "&sex=" + $("#sex").val()+ "&nation=" + $("#nation").val()+ "&nationality=" + $("#nationality").val()+ "&talentType=" + $("#talentType").val()+ "&talentArrange=" + $("#talentArrange").val();
@@ -275,7 +278,7 @@ TalentInfo.export = function(){
 /**
 /**
  * 全选
  * 全选
  */
  */
-TalentInfo.checkAll = function(){
+TalentInfo.checkAll = function () {
     $("#field_info input").each(function () {
     $("#field_info input").each(function () {
         this.checked = true;
         this.checked = true;
     })
     })
@@ -283,11 +286,11 @@ TalentInfo.checkAll = function(){
 /**
 /**
  * 反选
  * 反选
  */
  */
-TalentInfo.unCheckAll = function(){
+TalentInfo.unCheckAll = function () {
     $("#field_info input").each(function () {
     $("#field_info input").each(function () {
-        if(this.checked){
+        if (this.checked) {
             this.checked = false;
             this.checked = false;
-        }else{
+        } else {
             this.checked = true;
             this.checked = true;
         }
         }
     })
     })
@@ -295,7 +298,7 @@ TalentInfo.unCheckAll = function(){
 
 
 $(function () {
 $(function () {
     var defaultColunms = TalentInfo.initColumn();
     var defaultColunms = TalentInfo.initColumn();
-    var table = new BSTable(TalentInfo.id, "/api/talentInfo/list/2", defaultColunms);
+    var table = new BSTable(TalentInfo.id, "/enterprise/talent_library/list", defaultColunms);
     table.setPaginationType("server");
     table.setPaginationType("server");
     table.setOnDblClickRow(function () {
     table.setOnDblClickRow(function () {
         TalentInfo.openTalentInfoDetail();
         TalentInfo.openTalentInfoDetail();
@@ -303,10 +306,10 @@ $(function () {
     TalentInfo.table = table.init();
     TalentInfo.table = table.init();
     //批量加载字典表数据
     //批量加载字典表数据
     var arr = [
     var arr = [
-        {"name":"nation","code":"un_nation"},
-        {"name":"talentArrange","code":"un_talentLevel"},
-        {"name":"nationality","code":"un_nationality"},
-        {"name":"talentType","code":"un_jbt_talentType"}];
+        {"name": "nation", "code": "un_nation"},
+        {"name": "talentArrange", "code": "un_talentLevel"},
+        {"name": "nationality", "code": "un_nationality"},
+        {"name": "talentType", "code": "un_jbt_talentType"}];
     Feng.findChildDictBatch(JSON.stringify(arr));
     Feng.findChildDictBatch(JSON.stringify(arr));
 });
 });