|
@@ -13,11 +13,16 @@ var TalentInfo = {
|
|
|
*/
|
|
|
TalentInfo.initColumn = function () {
|
|
|
var type = $("#type").val();
|
|
|
+ var code = $("#deptCode").val();
|
|
|
var isShow = true;
|
|
|
+ var isShowVerifyDept = false;
|
|
|
if (type == 2) {
|
|
|
isShow = false;
|
|
|
}
|
|
|
- ;
|
|
|
+ var depts = ["super", "rsj"];
|
|
|
+ if (depts.indexOf(code) > -1) {
|
|
|
+ isShowVerifyDept = true;
|
|
|
+ }
|
|
|
return [
|
|
|
{field: 'selectItem', checkbox: true},
|
|
|
{title: '企业名称', field: 'enterprise_name', visible: true, align: 'center', valign: 'middle', 'class': 'uitd_showTip', width: "120px"},
|
|
@@ -36,6 +41,26 @@ TalentInfo.initColumn = function () {
|
|
|
{title: '证件号码', field: 'card_number', visible: true, align: 'center', valign: 'middle', 'class': 'uitd_showTip', width: "120px"},
|
|
|
{title: '认定层次', field: 'talentArrangeName', visible: true, align: 'center', valign: 'middle', 'class': 'uitd_showTip', width: "80px"},
|
|
|
{title: '认定条件', field: 'talentConditionName', visible: true, align: 'center', valign: 'middle', 'class': 'uitd_showTip', width: "150px"},
|
|
|
+ {title: '审核部门', field: 'verifyDepts', visible: isShowVerifyDept, align: 'center', valign: 'middle', 'class': 'uitd_showTip', width: "150px",
|
|
|
+ formatter: function (value, row, index) {
|
|
|
+ var html = "";
|
|
|
+ for (var i in value) {
|
|
|
+ let checkState = "";
|
|
|
+ if (value[i].active == 1) {
|
|
|
+ if (value[i].checkState == 9) {
|
|
|
+ checkState = "<span style='color:#ff0000;'>审核驳回</span>";
|
|
|
+ }
|
|
|
+ if (value[i].checkState == 12) {
|
|
|
+ checkState = "<span style='color:green;'>审核通过</span>";
|
|
|
+ }
|
|
|
+ } else {
|
|
|
+ checkState = "<span style='color:gray;'>待审核</span>";
|
|
|
+ }
|
|
|
+ html += "<p style='margin:0 auto;'>" + value[i].name + "(" + checkState + ")</p>"
|
|
|
+ }
|
|
|
+ return html
|
|
|
+ }
|
|
|
+ },
|
|
|
{title: '首次提交时间', field: 'first_submit_time', visible: true, align: 'center', valign: 'middle', 'class': 'uitd_showTip', width: "100px"},
|
|
|
{title: '最新提交时间', field: 'new_submit_time', visible: true, align: 'center', valign: 'middle', 'class': 'uitd_showTip', width: "100px"},
|
|
|
{title: '审核状态', field: 'checkState', visible: true, align: 'center', valign: 'middle', width: "100px",
|