|
@@ -2,8 +2,8 @@
|
|
* 子女就学管理初始化
|
|
* 子女就学管理初始化
|
|
*/
|
|
*/
|
|
var EducationSchool = {
|
|
var EducationSchool = {
|
|
- id: "EducationSchoolTable", //表格id
|
|
|
|
- seItem: null, //选中的条目
|
|
|
|
|
|
+ id: "EducationSchoolTable", //表格id
|
|
|
|
+ seItem: null, //选中的条目
|
|
table: null,
|
|
table: null,
|
|
layerIndex: -1
|
|
layerIndex: -1
|
|
};
|
|
};
|
|
@@ -14,64 +14,71 @@ var EducationSchool = {
|
|
EducationSchool.initColumn = function () {
|
|
EducationSchool.initColumn = function () {
|
|
return [
|
|
return [
|
|
{field: 'selectItem', radio: true},
|
|
{field: 'selectItem', radio: true},
|
|
- {title: '申报年度', field: 'year', visible: true, align: 'center', valign: 'middle',width:"80px",'class': 'uitd_showTip'},
|
|
|
|
- {title: '申报项目', field: 'projectName', visible: true, align: 'center', valign: 'middle',width:"80px",'class': 'uitd_showTip'},
|
|
|
|
- {title: '父母姓名', field: 'pName', visible: true, align: 'center', valign: 'middle',width:"80px",'class': 'uitd_showTip'},
|
|
|
|
- {title: '父母性别', field: 'pSex', visible: true, align: 'center', valign: 'middle',width:"80px",'class': 'uitd_showTip',
|
|
|
|
- formatter : function (value,row,index) {
|
|
|
|
- if(value==1){
|
|
|
|
|
|
+ {title: '申报年度', field: 'year', visible: true, align: 'center', valign: 'middle', width: "80px", 'class': 'uitd_showTip'},
|
|
|
|
+ {title: '申报项目', field: 'projectName', visible: true, align: 'center', valign: 'middle', width: "80px", 'class': 'uitd_showTip'},
|
|
|
|
+ {title: '父母姓名', field: 'pName', visible: true, align: 'center', valign: 'middle', width: "80px", 'class': 'uitd_showTip'},
|
|
|
|
+ {title: '父母性别', field: 'pSex', visible: true, align: 'center', valign: 'middle', width: "80px", 'class': 'uitd_showTip',
|
|
|
|
+ formatter: function (value, row, index) {
|
|
|
|
+ if (value == 1) {
|
|
return '男';
|
|
return '男';
|
|
- }if(value==2){
|
|
|
|
|
|
+ }
|
|
|
|
+ if (value == 2) {
|
|
return '女';
|
|
return '女';
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
},
|
|
- {title: '父母证件号码', field: 'pIdcard', visible: true, align: 'center', valign: 'middle',width:"150px",'class': 'uitd_showTip'},
|
|
|
|
- {title: '工作单位', field: 'enterpriseName', visible: true, align: 'center', valign: 'middle',width:"120px",'class': 'uitd_showTip'},
|
|
|
|
- {title: '人才层次', field: 'talentArrangeName', visible: true, align: 'center', valign: 'middle',width:"80px",'class': 'uitd_showTip'},
|
|
|
|
- {title: '认定条件', field: 'identifyCondition', visible: true, align: 'center', valign: 'middle',width:"120px",'class': 'uitd_showTip'},
|
|
|
|
- {title: '人才证书有效期', field: 'certificateNo', visible: true, align: 'center', valign: 'middle',width:"140px",'class': 'uitd_showTip',
|
|
|
|
- formatter : function (value,row,index) {
|
|
|
|
|
|
+ {title: '父母证件号码', field: 'pIdcard', visible: true, align: 'center', valign: 'middle', width: "150px", 'class': 'uitd_showTip'},
|
|
|
|
+ {title: '工作单位', field: 'enterpriseName', visible: true, align: 'center', valign: 'middle', width: "120px", 'class': 'uitd_showTip'},
|
|
|
|
+ {title: '人才层次', field: 'talentArrangeName', visible: true, align: 'center', valign: 'middle', width: "80px", 'class': 'uitd_showTip'},
|
|
|
|
+ {title: '认定条件', field: 'identifyCondition', visible: true, align: 'center', valign: 'middle', width: "120px", 'class': 'uitd_showTip'},
|
|
|
|
+ {title: '人才证书有效期', field: 'certificateNo', visible: true, align: 'center', valign: 'middle', width: "140px", 'class': 'uitd_showTip',
|
|
|
|
+ formatter: function (value, row, index) {
|
|
return row.certificateStartTime + "至" + row.qzgccrcActiveTime;
|
|
return row.certificateStartTime + "至" + row.qzgccrcActiveTime;
|
|
}
|
|
}
|
|
},
|
|
},
|
|
- {title: '联系电话', field: 'phone', visible: true, align: 'center', valign: 'middle',width:"80px",'class': 'uitd_showTip'},
|
|
|
|
- {title: '子女姓名', field: 'cName', visible: true, align: 'center', valign: 'middle',width:"100px",'class': 'uitd_showTip'},
|
|
|
|
- {title: '子女性别', field: 'cSex', visible: true, align: 'center', valign: 'middle',width:"80px",
|
|
|
|
- formatter : function (value,row,index) {
|
|
|
|
- if(value==1){
|
|
|
|
|
|
+ {title: '联系电话', field: 'phone', visible: true, align: 'center', valign: 'middle', width: "80px", 'class': 'uitd_showTip'},
|
|
|
|
+ {title: '子女姓名', field: 'cName', visible: true, align: 'center', valign: 'middle', width: "100px", 'class': 'uitd_showTip'},
|
|
|
|
+ {title: '子女性别', field: 'cSex', visible: true, align: 'center', valign: 'middle', width: "80px",
|
|
|
|
+ formatter: function (value, row, index) {
|
|
|
|
+ if (value == 1) {
|
|
return '男';
|
|
return '男';
|
|
- }if(value==2){
|
|
|
|
|
|
+ }
|
|
|
|
+ if (value == 2) {
|
|
return '女';
|
|
return '女';
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
},
|
|
- {title: '与申报人关系', field: 'cRelationName', visible: true, align: 'center', valign: 'middle',width:"100px",'class': 'uitd_showTip'},
|
|
|
|
- {title: '现就读学校', field: 'nowSchool', visible: true, align: 'center', valign: 'middle',width:"100px",'class': 'uitd_showTip'},
|
|
|
|
- {title: '现就读年级', field: 'nowGradeName', visible: true, align: 'center', valign: 'middle',width:"100px",'class': 'uitd_showTip'},
|
|
|
|
- {title: '拟申请学校', field: 'applySchoolName', visible: true, align: 'center', valign: 'middle',width:"100px",'class': 'uitd_showTip'},
|
|
|
|
- {title: '审核状态', field: 'checkState', visible: true, align: 'center', valign: 'middle',width:"100px",
|
|
|
|
- formatter : function (value,row,index) {
|
|
|
|
- if(value==-2){
|
|
|
|
|
|
+ {title: '与申报人关系', field: 'cRelationName', visible: true, align: 'center', valign: 'middle', width: "100px", 'class': 'uitd_showTip'},
|
|
|
|
+ {title: '现就读学校', field: 'nowSchool', visible: true, align: 'center', valign: 'middle', width: "100px", 'class': 'uitd_showTip'},
|
|
|
|
+ {title: '现就读年级', field: 'nowGradeName', visible: true, align: 'center', valign: 'middle', width: "100px", 'class': 'uitd_showTip'},
|
|
|
|
+ {title: '拟申请学校', field: 'applySchoolName', visible: true, align: 'center', valign: 'middle', width: "100px", 'class': 'uitd_showTip'},
|
|
|
|
+ {title: '审核状态', field: 'checkState', visible: true, align: 'center', valign: 'middle', width: "100px",
|
|
|
|
+ formatter: function (value, row, index) {
|
|
|
|
+ if (value == -2) {
|
|
return '<span class="label label-default">待提交</span>';
|
|
return '<span class="label label-default">待提交</span>';
|
|
- }if(value==-1){
|
|
|
|
|
|
+ }
|
|
|
|
+ if (value == -1) {
|
|
return '<span class="label label-danger">审核不通过</span>';
|
|
return '<span class="label label-danger">审核不通过</span>';
|
|
- }if(value==1){
|
|
|
|
|
|
+ }
|
|
|
|
+ if (value == 1) {
|
|
return '<span class="label label-success">待审核</span>';
|
|
return '<span class="label label-success">待审核</span>';
|
|
- }if(value==2){
|
|
|
|
|
|
+ }
|
|
|
|
+ if (value == 2) {
|
|
return '<span class="label label-danger">审核驳回</span>';
|
|
return '<span class="label label-danger">审核驳回</span>';
|
|
- }if(value==3){
|
|
|
|
|
|
+ }
|
|
|
|
+ if (value == 3) {
|
|
return '<span class="label label-primary">审核通过</span>';
|
|
return '<span class="label label-primary">审核通过</span>';
|
|
- }if(value==9){
|
|
|
|
|
|
+ }
|
|
|
|
+ if (value == 9) {
|
|
return '<span class="label label-warning">重新提交</span>';
|
|
return '<span class="label label-warning">重新提交</span>';
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
},
|
|
- {title: '操作', field: 'id', visible: true, align: 'center', valign: 'middle',width:"80px",
|
|
|
|
- formatter : function (value,row,index){
|
|
|
|
- return "<span class='label label-success' onclick=\"EducationSchool.showLog('"+value+"')\" >" +
|
|
|
|
- "<i class=\"fa fa-book\"></i>日志" +
|
|
|
|
- "</span>";
|
|
|
|
|
|
+ {title: '操作', field: 'id', visible: true, align: 'center', valign: 'middle', width: "80px",
|
|
|
|
+ formatter: function (value, row, index) {
|
|
|
|
+ return "<span class='label label-success' onclick=\"EducationSchool.showLog('" + value + "')\" >" +
|
|
|
|
+ "<i class=\"fa fa-book\"></i>日志" +
|
|
|
|
+ "</span>";
|
|
}
|
|
}
|
|
}
|
|
}
|
|
];
|
|
];
|
|
@@ -82,10 +89,10 @@ EducationSchool.initColumn = function () {
|
|
*/
|
|
*/
|
|
EducationSchool.check = function () {
|
|
EducationSchool.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 {
|
|
EducationSchool.seItem = selected[0];
|
|
EducationSchool.seItem = selected[0];
|
|
return true;
|
|
return true;
|
|
}
|
|
}
|
|
@@ -95,7 +102,7 @@ EducationSchool.check = function () {
|
|
* 点击添加子女就学
|
|
* 点击添加子女就学
|
|
*/
|
|
*/
|
|
EducationSchool.openAddEducationSchool = function () {
|
|
EducationSchool.openAddEducationSchool = function () {
|
|
- var ajax = new $ax(Feng.ctxPath + "/api/educationSchool/valiateIsAdd", function (data) {
|
|
|
|
|
|
+ var ajax = new $ax(Feng.ctxPath + "/person/education/valiateIsAdd", function (data) {
|
|
if (data.code == 200) {
|
|
if (data.code == 200) {
|
|
var index = layer.open({
|
|
var index = layer.open({
|
|
type: 2,
|
|
type: 2,
|
|
@@ -103,27 +110,27 @@ EducationSchool.openAddEducationSchool = function () {
|
|
area: 'auto', //宽高
|
|
area: 'auto', //宽高
|
|
fix: false, //不固定
|
|
fix: false, //不固定
|
|
maxmin: true,
|
|
maxmin: true,
|
|
- content: Feng.ctxPath + '/api/educationSchool/educationSchool_add?year='+data.obj,
|
|
|
|
- btn: ['<i class="fa fa-eye"></i> 保存未提交','<i class="fa fa-check layui-bg-green"></i> 提交审核', '<i class="fa fa-eraser"></i> 取消'],
|
|
|
|
|
|
+ content: Feng.ctxPath + '/person/education/apply?year=' + data.obj,
|
|
|
|
+ btn: ['<i class="fa fa-eye"></i> 保存未提交', '<i class="fa fa-check layui-bg-green"></i> 提交审核', '<i class="fa fa-eraser"></i> 取消'],
|
|
btnAlign: 'c',
|
|
btnAlign: 'c',
|
|
btn1: function (index, layero) {
|
|
btn1: function (index, layero) {
|
|
var obj = layero.find("iframe")[0].contentWindow;
|
|
var obj = layero.find("iframe")[0].contentWindow;
|
|
obj.EducationSchoolInfoDlg.addSubmit();
|
|
obj.EducationSchoolInfoDlg.addSubmit();
|
|
- },btn2: function(index, layero){
|
|
|
|
|
|
+ }, btn2: function (index, layero) {
|
|
var obj = layero.find("iframe")[0].contentWindow;
|
|
var obj = layero.find("iframe")[0].contentWindow;
|
|
obj.EducationSchoolInfoDlg.submitToCheck();
|
|
obj.EducationSchoolInfoDlg.submitToCheck();
|
|
return false;
|
|
return false;
|
|
},
|
|
},
|
|
- success :function (layero, index) {
|
|
|
|
- layer.tips('添加基本信息并上传附件后点击','.layui-layer-btn1',{tips:[1,"#78BA32"],time:0,closeBtn :2});
|
|
|
|
|
|
+ success: function (layero, index) {
|
|
|
|
+ layer.tips('添加基本信息并上传附件后点击', '.layui-layer-btn1', {tips: [1, "#78BA32"], time: 0, closeBtn: 2});
|
|
},
|
|
},
|
|
- end :function () {
|
|
|
|
|
|
+ end: function () {
|
|
layer.closeAll('tips');
|
|
layer.closeAll('tips');
|
|
}
|
|
}
|
|
});
|
|
});
|
|
EducationSchool.layerIndex = index;
|
|
EducationSchool.layerIndex = index;
|
|
layer.full(index);
|
|
layer.full(index);
|
|
- }else{
|
|
|
|
|
|
+ } else {
|
|
Feng.info(data.msg);
|
|
Feng.info(data.msg);
|
|
}
|
|
}
|
|
}, function (data) {
|
|
}, function (data) {
|
|
@@ -137,8 +144,8 @@ EducationSchool.openAddEducationSchool = function () {
|
|
* 打开查看子女就学详情
|
|
* 打开查看子女就学详情
|
|
*/
|
|
*/
|
|
EducationSchool.openEducationSchoolDetail = function () {
|
|
EducationSchool.openEducationSchoolDetail = function () {
|
|
- if (this.check()){
|
|
|
|
- var ajax = new $ax(Feng.ctxPath + "/api/commonBatch/valiateIsEditOrSubmit", function (data) {
|
|
|
|
|
|
+ if (this.check()) {
|
|
|
|
+ var ajax = new $ax(Feng.ctxPath + "/common/batch/checkBatchValid", function (data) {
|
|
if (data.code == 200) {
|
|
if (data.code == 200) {
|
|
var index = layer.open({
|
|
var index = layer.open({
|
|
type: 2,
|
|
type: 2,
|
|
@@ -146,39 +153,40 @@ EducationSchool.openEducationSchoolDetail = function () {
|
|
area: 'auto', //宽高
|
|
area: 'auto', //宽高
|
|
fix: false, //不固定
|
|
fix: false, //不固定
|
|
maxmin: true,
|
|
maxmin: true,
|
|
- content: Feng.ctxPath + '/api/educationSchool/educationSchool_update/' + EducationSchool.seItem.id,
|
|
|
|
- btn: ['<i class="fa fa-eye"></i> 保存未提交','<i class="fa fa-check layui-bg-green"></i> 提交审核', '<i class="fa fa-eraser"></i> 取消'],
|
|
|
|
|
|
+ content: Feng.ctxPath + '/person/education/apply/id/' + EducationSchool.seItem.id,
|
|
|
|
+ btn: ['<i class="fa fa-eye"></i> 保存未提交', '<i class="fa fa-check layui-bg-green"></i> 提交审核', '<i class="fa fa-eraser"></i> 取消'],
|
|
btnAlign: 'c',
|
|
btnAlign: 'c',
|
|
btn1: function (index, layero) {
|
|
btn1: function (index, layero) {
|
|
var obj = layero.find("iframe")[0].contentWindow;
|
|
var obj = layero.find("iframe")[0].contentWindow;
|
|
obj.EducationSchoolInfoDlg.addSubmit();
|
|
obj.EducationSchoolInfoDlg.addSubmit();
|
|
- },btn2: function(index, layero){
|
|
|
|
|
|
+ }, btn2: function (index, layero) {
|
|
var obj = layero.find("iframe")[0].contentWindow;
|
|
var obj = layero.find("iframe")[0].contentWindow;
|
|
obj.EducationSchoolInfoDlg.submitToCheck();
|
|
obj.EducationSchoolInfoDlg.submitToCheck();
|
|
return false;
|
|
return false;
|
|
},
|
|
},
|
|
- success :function (layero, index) {
|
|
|
|
- layer.tips('添加基本信息并上传附件后点击','.layui-layer-btn1',{tips:[1,"#78BA32"],time:0,closeBtn :2});
|
|
|
|
|
|
+ success: function (layero, index) {
|
|
|
|
+ layer.tips('添加基本信息并上传附件后点击', '.layui-layer-btn1', {tips: [1, "#78BA32"], time: 0, closeBtn: 2});
|
|
},
|
|
},
|
|
- end :function () {
|
|
|
|
|
|
+ end: function () {
|
|
layer.closeAll('tips');
|
|
layer.closeAll('tips');
|
|
}
|
|
}
|
|
});
|
|
});
|
|
EducationSchool.layerIndex = index;
|
|
EducationSchool.layerIndex = index;
|
|
layer.full(index);
|
|
layer.full(index);
|
|
- }else{
|
|
|
|
|
|
+ } else {
|
|
Feng.info(data.msg);
|
|
Feng.info(data.msg);
|
|
}
|
|
}
|
|
}, function (data) {
|
|
}, function (data) {
|
|
Feng.error("校验失败!" + data.responseJSON.message + "!");
|
|
Feng.error("校验失败!" + data.responseJSON.message + "!");
|
|
});
|
|
});
|
|
- ajax.set("type",CONFIG.project_school);
|
|
|
|
- ajax.set("year",EducationSchool.seItem.year)
|
|
|
|
|
|
+ ajax.set("type", CONFIG.project_school);
|
|
|
|
+ ajax.set("year", EducationSchool.seItem.year)
|
|
|
|
+ ajax.set("first_submit_time", EducationSchool.seItem.firstSubmitTime)
|
|
ajax.start();
|
|
ajax.start();
|
|
}
|
|
}
|
|
};
|
|
};
|
|
|
|
|
|
-EducationSchool.openEducationSchoolSelect = function(){
|
|
|
|
|
|
+EducationSchool.openEducationSchoolSelect = function () {
|
|
if (this.check()) {
|
|
if (this.check()) {
|
|
var index = layer.open({
|
|
var index = layer.open({
|
|
type: 2,
|
|
type: 2,
|
|
@@ -186,7 +194,7 @@ EducationSchool.openEducationSchoolSelect = function(){
|
|
area: ['800px', '420px'], //宽高
|
|
area: ['800px', '420px'], //宽高
|
|
fix: false, //不固定
|
|
fix: false, //不固定
|
|
maxmin: true,
|
|
maxmin: true,
|
|
- content: Feng.ctxPath + '/api/educationSchool/educationSchool_select/' + EducationSchool.seItem.id,
|
|
|
|
|
|
+ content: Feng.ctxPath + '/person/education/view/id/' + EducationSchool.seItem.id,
|
|
btn: ['<i class="fa fa-eraser"></i> 取消'],
|
|
btn: ['<i class="fa fa-eraser"></i> 取消'],
|
|
btnAlign: 'c',
|
|
btnAlign: 'c',
|
|
});
|
|
});
|
|
@@ -200,22 +208,22 @@ EducationSchool.openEducationSchoolSelect = function(){
|
|
*/
|
|
*/
|
|
EducationSchool.delete = function () {
|
|
EducationSchool.delete = function () {
|
|
if (this.check()) {
|
|
if (this.check()) {
|
|
- if(EducationSchool.seItem.checkState != -2){
|
|
|
|
|
|
+ if (EducationSchool.seItem.checkState != -2) {
|
|
Feng.error("仅能删除未提交的数据");
|
|
Feng.error("仅能删除未提交的数据");
|
|
- return ;
|
|
|
|
|
|
+ return;
|
|
}
|
|
}
|
|
- var operation = function() {
|
|
|
|
- var ajax = new $ax(Feng.ctxPath + "/api/educationSchool/delete", function (data) {
|
|
|
|
- if(data.code == 200){
|
|
|
|
|
|
+ var operation = function () {
|
|
|
|
+ var ajax = new $ax(Feng.ctxPath + "/person/education/delete", function (data) {
|
|
|
|
+ if (data.code == 200) {
|
|
Feng.success(data.msg);
|
|
Feng.success(data.msg);
|
|
EducationSchool.table.refresh();
|
|
EducationSchool.table.refresh();
|
|
- }else{
|
|
|
|
|
|
+ } else {
|
|
Feng.info(data.msg);
|
|
Feng.info(data.msg);
|
|
}
|
|
}
|
|
}, function (data) {
|
|
}, function (data) {
|
|
Feng.error("删除失败!" + data.responseJSON.message + "!");
|
|
Feng.error("删除失败!" + data.responseJSON.message + "!");
|
|
});
|
|
});
|
|
- ajax.set("educationSchoolId",EducationSchool.seItem.id);
|
|
|
|
|
|
+ ajax.set("educationSchoolId", EducationSchool.seItem.id);
|
|
ajax.start();
|
|
ajax.start();
|
|
}
|
|
}
|
|
Feng.confirm("删除后无法恢复,确认删除吗?", operation);
|
|
Feng.confirm("删除后无法恢复,确认删除吗?", operation);
|
|
@@ -225,20 +233,20 @@ EducationSchool.delete = function () {
|
|
/**
|
|
/**
|
|
*
|
|
*
|
|
*/
|
|
*/
|
|
-EducationSchool.print = function(){
|
|
|
|
|
|
+EducationSchool.print = function () {
|
|
if (this.check()) {
|
|
if (this.check()) {
|
|
- if(EducationSchool.seItem.checkState != 3){
|
|
|
|
|
|
+ if (EducationSchool.seItem.checkState != 3) {
|
|
Feng.error("暂未审核通过,无法打印");
|
|
Feng.error("暂未审核通过,无法打印");
|
|
- return ;
|
|
|
|
|
|
+ return;
|
|
}
|
|
}
|
|
- window.open("/webroot/decision/view/report?viewlet=educationSchool.cpt&&id="+EducationSchool.seItem.id);
|
|
|
|
|
|
+ window.open("/webroot/decision/view/report?viewlet=educationSchool.cpt&&id=" + EducationSchool.seItem.id);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|
|
* 收集数据
|
|
* 收集数据
|
|
*/
|
|
*/
|
|
-EducationSchool.formParams = function(){
|
|
|
|
|
|
+EducationSchool.formParams = function () {
|
|
var queryData = {};
|
|
var queryData = {};
|
|
queryData['year'] = $("#year").val();
|
|
queryData['year'] = $("#year").val();
|
|
queryData['enterpriseName'] = $("#enterpriseName").val();
|
|
queryData['enterpriseName'] = $("#enterpriseName").val();
|
|
@@ -266,7 +274,7 @@ EducationSchool.formParams = function(){
|
|
/**
|
|
/**
|
|
* 重置
|
|
* 重置
|
|
*/
|
|
*/
|
|
-EducationSchool.reset = function(){
|
|
|
|
|
|
+EducationSchool.reset = function () {
|
|
$("#year").val("");
|
|
$("#year").val("");
|
|
$("#enterpriseName").val("");
|
|
$("#enterpriseName").val("");
|
|
$("#pName").val("");
|
|
$("#pName").val("");
|
|
@@ -299,16 +307,16 @@ EducationSchool.search = function () {
|
|
/**
|
|
/**
|
|
* 显示审核日志
|
|
* 显示审核日志
|
|
*/
|
|
*/
|
|
-EducationSchool.showLog = function (id){
|
|
|
|
|
|
+EducationSchool.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_school,"mainId":id,"typeFileId":"","active":1})
|
|
|
|
|
|
+ success: function (layero, index) {
|
|
|
|
+ Feng.getCheckLog(id, {"type": CONFIG.project_school, "mainId": id, "typeFileId": "", "active": 1})
|
|
}
|
|
}
|
|
});
|
|
});
|
|
}
|
|
}
|
|
@@ -316,7 +324,7 @@ EducationSchool.showLog = function (id){
|
|
|
|
|
|
$(function () {
|
|
$(function () {
|
|
var defaultColunms = EducationSchool.initColumn();
|
|
var defaultColunms = EducationSchool.initColumn();
|
|
- var table = new BSTable(EducationSchool.id, "/api/educationSchool/list", defaultColunms);
|
|
|
|
|
|
+ var table = new BSTable(EducationSchool.id, "/person/education/list", defaultColunms);
|
|
table.setPaginationType("server");
|
|
table.setPaginationType("server");
|
|
table.setOnDblClickRow(function () {
|
|
table.setOnDblClickRow(function () {
|
|
EducationSchool.openEducationSchoolDetail();
|
|
EducationSchool.openEducationSchoolDetail();
|
|
@@ -324,20 +332,20 @@ $(function () {
|
|
EducationSchool.table = table.init();
|
|
EducationSchool.table = table.init();
|
|
//批量加载字典表数据
|
|
//批量加载字典表数据
|
|
var arr = [
|
|
var arr = [
|
|
- {"name":"companyStreet","code":"un_street"},
|
|
|
|
- {"name":"houseStreet","code":"un_street"},
|
|
|
|
- {"name":"talentArrange","code":"un_talentLevel"},
|
|
|
|
- {"name":"cRelation","code":"un_education_relation"},
|
|
|
|
- {"name":"nowGrade","code":"un_grade"},
|
|
|
|
- {"name":"applySchool","code":"un_school_pool"}];
|
|
|
|
|
|
+ {"name": "companyStreet", "code": "un_street"},
|
|
|
|
+ {"name": "houseStreet", "code": "un_street"},
|
|
|
|
+ {"name": "talentArrange", "code": "un_talentLevel"},
|
|
|
|
+ {"name": "cRelation", "code": "un_education_relation"},
|
|
|
|
+ {"name": "nowGrade", "code": "un_grade"},
|
|
|
|
+ {"name": "applySchool", "code": "un_school_pool"}];
|
|
Feng.findChildDictBatch(JSON.stringify(arr));
|
|
Feng.findChildDictBatch(JSON.stringify(arr));
|
|
- $("#applySchool").on('chosen:ready', function(e, params) {
|
|
|
|
- $(".chosen-container-single .chosen-single").css("padding","4px 0px 0px 4px");
|
|
|
|
|
|
+ $("#applySchool").on('chosen:ready', function (e, params) {
|
|
|
|
+ $(".chosen-container-single .chosen-single").css("padding", "4px 0px 0px 4px");
|
|
});
|
|
});
|
|
$("#applySchool").chosen({
|
|
$("#applySchool").chosen({
|
|
- search_contains:true, //关键字模糊搜索。设置为true,只要选项包含搜索词就会显示;设置为false,则要求从选项开头开始匹配
|
|
|
|
|
|
+ search_contains: true, //关键字模糊搜索。设置为true,只要选项包含搜索词就会显示;设置为false,则要求从选项开头开始匹配
|
|
disable_search: false,
|
|
disable_search: false,
|
|
- width:"100%",
|
|
|
|
|
|
+ width: "100%",
|
|
enable_split_word_search: true
|
|
enable_split_word_search: true
|
|
});
|
|
});
|
|
});
|
|
});
|