|
@@ -52,7 +52,12 @@ TalentInfoInfoDlg.initFileTable = function () {
|
|
|
for (var k in data["rows"]) {
|
|
|
var rel = data["rows"][k].rel;
|
|
|
if ($("#" + rel).length > 0) {
|
|
|
- var tableIndex = $("#" + rel).parents(".row").next(".row").find("table.fileTable").index(".fileTable");
|
|
|
+ var tableIndex = 0;
|
|
|
+ if ($("#" + rel).parents(".table").length > 0) {
|
|
|
+ tableIndex = $("#" + rel).parents(".table").find("table.fileTable").index(".fileTable");
|
|
|
+ } else {
|
|
|
+ tableIndex = $("#" + rel).parents(".row").next(".row").find("table.fileTable").index(".fileTable");
|
|
|
+ }
|
|
|
data["rows"][k].tableIndex = tableIndex;
|
|
|
data["rows"][k].trIndex = datas[tableIndex].length;
|
|
|
datas[tableIndex].push(data["rows"][k]);
|
|
@@ -60,14 +65,18 @@ TalentInfoInfoDlg.initFileTable = function () {
|
|
|
//指定了选项
|
|
|
let selectVal = $("#" + rel).data("value").toString();
|
|
|
let options = data["rows"][k].option.split(",");
|
|
|
- console.log(selectVal,options)
|
|
|
if (options.indexOf(selectVal) == -1) {
|
|
|
data["rows"][k].hidden = true;
|
|
|
}
|
|
|
}
|
|
|
} else {
|
|
|
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].trIndex = datas[tableIndex].length;
|
|
|
datas[tableIndex].push(data["rows"][k]);//放入人才条件后面的附件表
|
|
@@ -101,7 +110,7 @@ TalentInfoInfoDlg.initFileTable = function () {
|
|
|
} else if (suffix == "xlsx" || suffix == "XLSX" || suffix == 'xls' || suffix == 'XLS') {
|
|
|
imgStr = "<button type='button' onclick=\"Feng.showExcel('" + files[key].url + "','" + files[key].id + "','" + files[key].orignName + "')\" class=\"btn btn-xs btn-danger\"><i class=\"fa fa-file-excel-o\" aria-hidden=\"true\"></i></button>";
|
|
|
} else {
|
|
|
- imgStr = '<img class=\"imgUrl\" src=\"' + files[key].url + '\" style=\"width:25px;height:25px;\">';
|
|
|
+ imgStr = '<img class=\"imgUrl\" onclick="Feng.showImg(this)" src=\"' + files[key].url + '\" style=\"width:25px;height:25px;\">';
|
|
|
}
|
|
|
|
|
|
html += '<li data-id="' + files[key].id + '">\n\
|
|
@@ -151,7 +160,6 @@ $(function () {
|
|
|
var id = $("#id").val();
|
|
|
var checkState = $("#checkState").val();
|
|
|
TalentInfoInfoDlg.initFileTable();
|
|
|
- $(".ibox-content").viewer({fullscreen: false});
|
|
|
if (id != null && id != '') {
|
|
|
//select初始化
|
|
|
$("select").each(function () {
|