|
@@ -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> 提交' ,'<i class="fa fa-eraser"></i> 关闭'],
|
|
|
|
|
|
+ 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> 提交', '<i class="fa fa-eraser"></i> 关闭'],
|
|
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));
|
|
});
|
|
});
|
|
|
|
|