|
@@ -356,7 +356,7 @@ TalentInfoInfoDlg.initFileTable = function () {
|
|
|
var realState = $("#realState").val();
|
|
|
for (var key in data) {
|
|
|
var btn = "";
|
|
|
- if (Feng.isEmptyStr(checkState) || (checkState == 8 && realState == 8) || (checkState == 11 && realState != 14) || (realState == 11 && files.indexOf(row.id) != -1)) {
|
|
|
+ if (Feng.isEmptyStr(checkState) || (checkState == 8 && (realState == 8 || Feng.isEmptyStr(realState))) || (checkState == 11 && realState != 14) || (realState == 11 && files.indexOf(row.id) != -1)) {
|
|
|
btn = "<button type=\'button\' onclick=\"TalentInfoInfoDlg.checkFile(this,'" + row.fState + "','" + row.id + "','" + data[key].id + "')\" style=\'margin-right: 10px\' class=\"btn btn-xs btn-info\">" +
|
|
|
"<i class=\"fa fa-paste\"></i>修改" +
|
|
|
"</button>" +
|
|
@@ -549,7 +549,8 @@ TalentInfoInfoDlg.initFileTypeColumn = function () {
|
|
|
var files = $("#files").val();
|
|
|
var checkState = $("#checkState").val();
|
|
|
var realState = $("#realState").val();
|
|
|
- if (checkState == 8 || (checkState == 11 && realState != 14) || (realState == 11 && files.indexOf(value) != -1)) {
|
|
|
+ //if (checkState == 8 || (checkState == 11 && realState != 14) || (realState == 11 && files.indexOf(value) != -1)) {
|
|
|
+ if (Feng.isEmptyStr(checkState) || (checkState == 8 && (realState == 8 || Feng.isEmptyStr(realState))) || (checkState == 11 && realState != 14) || (realState == 11 && files.indexOf(value) != -1)) {
|
|
|
return "<button type='button' onclick=\"TalentInfoInfoDlg.checkFile(this,'" + row.fState + "','" + value + "','" + null + "')\" style='margin-right: 10px' class=\"btn btn-xs btn-info\">" +
|
|
|
"<i class=\"fa fa-upload\"></i>上传" +
|
|
|
"</button>";
|