修复bug

This commit is contained in:
hoteas
2021-10-21 22:52:40 +08:00
parent e5dfe9aa8d
commit 3efd5bd0a0
17 changed files with 40 additions and 2482 deletions
+3 -8
View File
@@ -551,7 +551,7 @@ func (that *MakeCode) Add(table string, req *http.Request) Map {
//不可使用,未在前端展示,但在内存中保持有
if v.GetBool("notUse") {
if v.GetString("type") == "index" && that.TableColumns[table]["parent_id"] != nil {
data[v.GetString("name")] = Slice{}
data[v.GetString("name")] = ","
}
continue
@@ -593,7 +593,7 @@ func (that *MakeCode) Edit(table string, req *http.Request) Map {
//不可使用,未在前端展示,但在内存中保持有
if v.GetBool("notUse") {
if v.GetString("type") == "index" && that.TableColumns[table]["parent_id"] != nil {
data[v.GetString("name")] = Slice{}
data[v.GetString("name")] = ","
}
continue
}
@@ -626,17 +626,12 @@ func (that *MakeCode) Delete(table string, req *http.Request) Map {
//不可使用,未在前端展示,但在内存中保持有
if v.GetBool("notUse") {
if v.GetString("type") == "index" && that.TableColumns[table]["parent_id"] != nil {
data[v.GetString("name")] = Slice{}
data[v.GetString("name")] = ","
}
continue
}
}
if len(data) == 0 {
return nil
}
return data
}