@@ -21,7 +21,7 @@ class TalentApi {
* @return boolean
*/
public static function checkIsEditable($id) {
- $info = Talent::findOrEmpty($id);
+ $info = Talent::findOrEmpty($id)->toArray();
if (!$info || $info["delete"] == 1 || !in_array($info["checkState"], [0, TalentState::FST_SAVE, TalentState::BASE_REVERIFY_PASS, TalentState::SCND_SAVE]))
return false;
return true;
@@ -357,7 +357,7 @@ EpChangeEdit.deleteFile = function (id) {
}
var operation = function () {
var ajax = new $ax("/common/api/deleteTalentCommonFile", function (data) {
- if (data.code = 200) {
+ if (data.code == 200) {
Feng.success(data.msg);
$("#fileTable").bootstrapTable("refresh", {});
} else {
@@ -279,7 +279,7 @@ EpChangeEdit.deleteFile = function (id) {
var ajax = new $ax(Feng.ctxPath + "/api/talentCommonFile/deleteTalentCommonFile", function (data) {
@@ -449,7 +449,7 @@ IntegralInfoDlg.deleteFile = function (id, state) {
return;
var ajax = new $ax(Feng.ctxPath + "/common/api/deleteFile", function (data) {
$("input[name='uploadFiles[]'][value='" + id + "']").parents("li").remove();
//$("#fileTable").bootstrapTable("refresh", {});
@@ -195,7 +195,7 @@ IntegralInfoDlg.deleteFile = function (id, state) {
@@ -761,7 +761,7 @@ TalentInfoInfoDlg.deleteFile = function (id, state) {
@@ -981,7 +981,7 @@ TalentInfoInfoDlg.deleteFile = function (id, state) {
@@ -445,7 +445,7 @@ TalentInfoInfoDlg.deleteFile = function (id, state) {
@@ -721,7 +721,7 @@ TalentInfoInfoDlg.deleteFile = function (id, state) {