|
@@ -280,10 +280,11 @@ TalentInfoInfoDlg.initFileTable = function () {
|
|
for (var k in data["rows"]) {
|
|
for (var k in data["rows"]) {
|
|
var rel = data["rows"][k].rel;
|
|
var rel = data["rows"][k].rel;
|
|
if ($("#" + rel).length > 0) {
|
|
if ($("#" + rel).length > 0) {
|
|
|
|
+ var tableIndex = 0;
|
|
if ($("#" + rel).parents(".table").length > 0) {
|
|
if ($("#" + rel).parents(".table").length > 0) {
|
|
- var tableIndex = $("#" + rel).parents(".table").find("table.fileTable").index(".fileTable");
|
|
|
|
|
|
+ tableIndex = $("#" + rel).parents(".table").find("table.fileTable").index(".fileTable");
|
|
} else {
|
|
} else {
|
|
- var tableIndex = $("#" + rel).parents(".row").next(".row").find("table.fileTable").index(".fileTable");
|
|
|
|
|
|
+ tableIndex = $("#" + rel).parents(".row").next(".row").find("table.fileTable").index(".fileTable");
|
|
}
|
|
}
|
|
data["rows"][k].tableIndex = tableIndex;
|
|
data["rows"][k].tableIndex = tableIndex;
|
|
data["rows"][k].trIndex = datas[tableIndex].length;
|
|
data["rows"][k].trIndex = datas[tableIndex].length;
|
|
@@ -298,7 +299,12 @@ TalentInfoInfoDlg.initFileTable = function () {
|
|
}
|
|
}
|
|
} else {
|
|
} else {
|
|
if (data["rows"][k].isConditionFile) {
|
|
if (data["rows"][k].isConditionFile) {
|
|
- var tableIndex = $("#talent_condition").parents(".row").next(".row").find("table.fileTable").index(".fileTable");
|
|
|
|
|
|
+ var tableIndex = 0;
|
|
|
|
+ if ($("#talent_condition").parents(".table").length > 0) {
|
|
|
|
+ tableIndex = $("#talent_condition").parents(".table").find("table.fileTable").index(".fileTable");
|
|
|
|
+ } else {
|
|
|
|
+ tableIndex = $("#talent_condition").parents(".row").next(".row").find("table.fileTable").index(".fileTable");
|
|
|
|
+ }
|
|
data["rows"][k].tableIndex = tableIndex;
|
|
data["rows"][k].tableIndex = tableIndex;
|
|
data["rows"][k].trIndex = datas[tableIndex].length;
|
|
data["rows"][k].trIndex = datas[tableIndex].length;
|
|
datas[tableIndex].push(data["rows"][k]);//放入人才条件后面的附件表
|
|
datas[tableIndex].push(data["rows"][k]);//放入人才条件后面的附件表
|
|
@@ -424,7 +430,7 @@ TalentInfoInfoDlg.infoCallback = function (data) {
|
|
}
|
|
}
|
|
|
|
|
|
TalentInfoInfoDlg.getLayerCatdByLayer = function () {
|
|
TalentInfoInfoDlg.getLayerCatdByLayer = function () {
|
|
- $("#talent_condition").parents(".row").next(".row").find(".fileTable").find("tbody").html("");
|
|
|
|
|
|
+ $("#talent_condition").parents(".table").find(".fileTable").find("tbody").html("");
|
|
$("#talent_condition").html("<option>---请选择---</option>");
|
|
$("#talent_condition").html("<option>---请选择---</option>");
|
|
$("#annual_salary").parents(".rowGroup").css("display", "none");
|
|
$("#annual_salary").parents(".rowGroup").css("display", "none");
|
|
$('#talentInfoForm').bootstrapValidator('removeField', "annual_salary");
|
|
$('#talentInfoForm').bootstrapValidator('removeField', "annual_salary");
|
|
@@ -444,7 +450,7 @@ TalentInfoInfoDlg.getLayerCatdByLayer = function () {
|
|
* 获取人才认定
|
|
* 获取人才认定
|
|
*/
|
|
*/
|
|
TalentInfoInfoDlg.getIdentifyCondition = function () {
|
|
TalentInfoInfoDlg.getIdentifyCondition = function () {
|
|
- $("#talent_condition").parents(".row").next(".row").find(".fileTable").find("tbody").html("");
|
|
|
|
|
|
+ $("#talent_condition").parents(".table").find(".fileTable").find("tbody").html("");
|
|
$("#annual_salary").parents(".rowGroup").css("display", "none");
|
|
$("#annual_salary").parents(".rowGroup").css("display", "none");
|
|
$('#talentInfoForm').bootstrapValidator('removeField', "annual_salary");
|
|
$('#talentInfoForm').bootstrapValidator('removeField', "annual_salary");
|
|
var level = $("#talent_arrange").val();
|
|
var level = $("#talent_arrange").val();
|
|
@@ -462,6 +468,9 @@ TalentInfoInfoDlg.getIdentifyCondition = function () {
|
|
|
|
|
|
|
|
|
|
TalentInfoInfoDlg.getIdentifyNeedsFileTypes = function () {
|
|
TalentInfoInfoDlg.getIdentifyNeedsFileTypes = function () {
|
|
|
|
+ $("#talent_condition").parents(".table").find(".fileTable").find("tbody").html("");
|
|
|
|
+ $("#annual_salary").parents(".rowGroup").css("display", "none");
|
|
|
|
+ $('#talentInfoForm').bootstrapValidator('removeField', "annual_salary");
|
|
var condition = $("#talent_condition option:selected").val();
|
|
var condition = $("#talent_condition option:selected").val();
|
|
if (condition != "") {
|
|
if (condition != "") {
|
|
var ajax = new $ax("/common/api/getTalentCondtionUploadFile", function (data) {
|
|
var ajax = new $ax("/common/api/getTalentCondtionUploadFile", function (data) {
|