修复部分bug

This commit is contained in:
hoteas 2022-11-05 01:55:11 +08:00
parent 25edb6b5b7
commit c0ae31f499
3 changed files with 413 additions and 379 deletions

11
code.go
View File

@ -218,6 +218,9 @@ var TptProject = Proj{
} }
inData["parent_ids"] = parent_ids + ObjToStr(re) + "," inData["parent_ids"] = parent_ids + ObjToStr(re) + ","
that.Db.Update(tableName, Map{"parent_ids": inData["parent_ids"]}, Map{"id": re}) that.Db.Update(tableName, Map{"parent_ids": inData["parent_ids"]}, Map{"id": re})
} else {
inData["parent_ids"] = "," + ObjToStr(re) + ","
that.Db.Update(tableName, Map{"parent_ids": inData["parent_ids"]}, Map{"id": re})
} }
that.Log["table_id"] = re that.Log["table_id"] = re
@ -365,10 +368,15 @@ var TptProject = Proj{
} }
if inData.Get("parent_id") != nil { if _, ok := inData["parent_id"]; ok {
//1 //1
//12 62 //12 62
//123 623 //123 623
if inData.GetCeilInt64("parent_id") == 0 {
that.Db.Update(tableName, Map{"parent_ids": "," + that.RouterString[2] + ","}, Map{"id": that.RouterString[2]})
} else {
Index := that.Db.Get(tableName, "parent_id,`parent_ids`", Map{"id": that.RouterString[2]}) Index := that.Db.Get(tableName, "parent_id,`parent_ids`", Map{"id": that.RouterString[2]})
if inData.GetCeilInt64("parent_id") != Index.GetCeilInt64("parent_id") { if inData.GetCeilInt64("parent_id") != Index.GetCeilInt64("parent_id") {
parentIndex := that.Db.Get(tableName, "`parent_ids`", Map{"id": inData.Get("parent_id")}) parentIndex := that.Db.Get(tableName, "`parent_ids`", Map{"id": inData.Get("parent_id")})
@ -383,6 +391,7 @@ var TptProject = Proj{
that.Db.Update(tableName, Map{"parent_ids": v["parent_ids"]}, Map{"id": v.GetCeilInt("id")}) that.Db.Update(tableName, Map{"parent_ids": v["parent_ids"]}, Map{"id": v.GetCeilInt("id")})
} }
} }
}
} }

View File

@ -743,17 +743,23 @@ func (that *MakeCode) Add(table string, user Map, req *http.Request) Map {
} }
reqValue := req.FormValue(v.GetString("name")) if req.Form[v.GetString("name")] == nil {
if (reqValue == "" || reqValue == "null") && strings.Contains(v.GetString("name"), "id") { continue
data[v.GetString("name")] = nil
} else {
if v.GetString("type") == "password" {
data[v.GetString("name")] = Md5(reqValue)
} else {
data[v.GetString("name")] = reqValue
} }
reqValue := req.FormValue(v.GetString("name"))
if reqValue == "null" {
data[v.GetString("name")] = nil
continue
} }
if v.GetString("type") == "password" {
data[v.GetString("name")] = Md5(reqValue)
continue
}
data[v.GetString("name")] = reqValue
} }
//sn则自动生成 //sn则自动生成
if v.GetString("name") == "sn" { if v.GetString("name") == "sn" {
@ -802,13 +808,21 @@ func (that *MakeCode) Edit(table string, req *http.Request) Map {
} }
if v.Get("edit") == nil || v.GetBool("edit") { if v.Get("edit") == nil || v.GetBool("edit") {
if len(req.Form[v.GetString("name")]) == 0 { if len(req.Form[v.GetString("name")]) == 0 {
continue continue
} }
reqValue := req.FormValue(v.GetString("name")) reqValue := req.FormValue(v.GetString("name"))
if reqValue == "null" { if reqValue == "null" {
data[v.GetString("name")] = nil
continue continue
} }
if v.GetString("type") == "number" && reqValue == "" {
data[v.GetString("name")] = nil
continue
}
if v.GetString("type") == "password" { if v.GetString("type") == "password" {
data[v.GetString("name")] = Md5(reqValue) data[v.GetString("name")] = Md5(reqValue)
} else { } else {
@ -909,12 +923,12 @@ func (that *MakeCode) Search(table string, userData Map, data Map, req *http.Req
// //
reqValue := req.FormValue(v.GetString("name")) reqValue := req.FormValue(v.GetString("name"))
if v.GetString("name") != "parent_id" && reqValue != "" { if v.GetString("name") != "parent_id" && reqValue != "" {
data[table+"."+v.GetString("name")] = reqValue data[v.GetString("name")] = reqValue
} }
// //
//} else { //} else {
reStr += table + "." + v.GetString("name") + "," reStr += v.GetString("name") + ","
//} //}
//if v["name"] == "parent_id" && v.GetString("link") != "" { //if v["name"] == "parent_id" && v.GetString("link") != "" {
@ -972,7 +986,7 @@ func (that *MakeCode) Search(table string, userData Map, data Map, req *http.Req
if strings.Contains(v.GetString("type"), "text") { if strings.Contains(v.GetString("type"), "text") {
reqValue := req.FormValue(v.GetString("name")) reqValue := req.FormValue(v.GetString("name"))
if reqValue != "" { if reqValue != "" {
data[table+"."+v.GetString("name")+"[~]"] = reqValue data[v.GetString("name")+"[~]"] = reqValue
} }
} }
@ -980,9 +994,9 @@ func (that *MakeCode) Search(table string, userData Map, data Map, req *http.Req
if v.GetString("type") == "unixtime" { if v.GetString("type") == "unixtime" {
if len(req.Form[v.GetString("name")]) == 1 { if len(req.Form[v.GetString("name")]) == 1 {
daterange[table+"."+v.GetString("name")+"[>]"] = req.FormValue("daterange") daterange[v.GetString("name")+"[>]"] = req.FormValue("daterange")
} else if len(req.Form[v.GetString("name")]) == 2 { } else if len(req.Form[v.GetString("name")]) == 2 {
daterange[table+"."+v.GetString("name")+"[<>]"] = ObjToSlice(req.Form["daterange"]) daterange[v.GetString("name")+"[<>]"] = ObjToSlice(req.Form["daterange"])
} }
//fmt.Println(req.Form["daterange"]) //fmt.Println(req.Form["daterange"])
@ -995,12 +1009,12 @@ func (that *MakeCode) Search(table string, userData Map, data Map, req *http.Req
if len(req.Form[v.GetString("name")]) == 1 { if len(req.Form[v.GetString("name")]) == 1 {
t := time.Unix(ObjToCeilInt64(req.FormValue(v.GetString("name"))), 0).Format("2006-01-02 15:04:05") t := time.Unix(ObjToCeilInt64(req.FormValue(v.GetString("name"))), 0).Format("2006-01-02 15:04:05")
daterange[table+"."+v.GetString("name")+"[>]"] = t daterange[v.GetString("name")+"[>]"] = t
} else if len(req.Form[v.GetString("name")]) == 2 { } else if len(req.Form[v.GetString("name")]) == 2 {
t1 := time.Unix(ObjToCeilInt64(req.Form[v.GetString("name")][0]), 0).Format("2006-01-02 15:04:05") t1 := time.Unix(ObjToCeilInt64(req.Form[v.GetString("name")][0]), 0).Format("2006-01-02 15:04:05")
t2 := time.Unix(ObjToCeilInt64(req.Form[v.GetString("name")][1]), 0).Format("2006-01-02 15:04:05") t2 := time.Unix(ObjToCeilInt64(req.Form[v.GetString("name")][1]), 0).Format("2006-01-02 15:04:05")
daterange[table+"."+v.GetString("name")+"[<>]"] = Slice{t1, t2} daterange[v.GetString("name")+"[<>]"] = Slice{t1, t2}
} }
} }
@ -1040,8 +1054,8 @@ func (that *MakeCode) Search(table string, userData Map, data Map, req *http.Req
for _, v := range r { for _, v := range r {
reqValue = append(reqValue, v.GetString("id")) reqValue = append(reqValue, v.GetString("id"))
} }
if data[table+"."+searchItemName] != nil { if data[searchItemName] != nil {
data[table+"."+searchItemName] = reqValue data[searchItemName] = reqValue
} }
} }
@ -1065,10 +1079,10 @@ func (that *MakeCode) Search(table string, userData Map, data Map, req *http.Req
if v.GetString("type") == "unixtime" { if v.GetString("type") == "unixtime" {
//fmt.Println(req.Form["daterange"]) //fmt.Println(req.Form["daterange"])
if len(req.Form["daterange"]) == 1 && req.Form["daterange"][0] != "" { if len(req.Form["daterange"]) == 1 && req.Form["daterange"][0] != "" {
daterange[table+"."+v.GetString("name")+"[>]"] = req.FormValue("daterange") daterange[v.GetString("name")+"[>]"] = req.FormValue("daterange")
} else if len(req.Form["daterange"]) == 2 { } else if len(req.Form["daterange"]) == 2 {
daterange[table+"."+v.GetString("name")+"[<>]"] = ObjToSlice(req.Form["daterange"]) daterange[v.GetString("name")+"[<>]"] = ObjToSlice(req.Form["daterange"])
} }
} }
if v.GetString("type") == "time" { if v.GetString("type") == "time" {
@ -1077,12 +1091,12 @@ func (that *MakeCode) Search(table string, userData Map, data Map, req *http.Req
if len(req.Form["daterange"]) == 1 && req.Form["daterange"][0] != "" { if len(req.Form["daterange"]) == 1 && req.Form["daterange"][0] != "" {
t := time.Unix(ObjToCeilInt64(req.FormValue("daterange")), 0).Format("2006-01-02 15:04:05") t := time.Unix(ObjToCeilInt64(req.FormValue("daterange")), 0).Format("2006-01-02 15:04:05")
daterange[table+"."+v.GetString("name")+"[>]"] = t daterange[v.GetString("name")+"[>]"] = t
} else if len(req.Form["daterange"]) == 2 { } else if len(req.Form["daterange"]) == 2 {
t1 := time.Unix(ObjToCeilInt64(req.Form["daterange"][0]), 0).Format("2006-01-02 15:04:05") t1 := time.Unix(ObjToCeilInt64(req.Form["daterange"][0]), 0).Format("2006-01-02 15:04:05")
t2 := time.Unix(ObjToCeilInt64(req.Form["daterange"][1]), 0).Format("2006-01-02 15:04:05") t2 := time.Unix(ObjToCeilInt64(req.Form["daterange"][1]), 0).Format("2006-01-02 15:04:05")
daterange[table+"."+v.GetString("name")+"[<>]"] = Slice{t1, t2} daterange[v.GetString("name")+"[<>]"] = Slice{t1, t2}
} }
} }
@ -1092,7 +1106,7 @@ func (that *MakeCode) Search(table string, userData Map, data Map, req *http.Req
if keywordTableStr != "" { if keywordTableStr != "" {
if keywordTableStr == v.GetString("name") { if keywordTableStr == v.GetString("name") {
data[table+"."+keywordTableStr+"[~]"] = keywordStr data[keywordTableStr+"[~]"] = keywordStr
} }
if keywordTableStr == v.GetString("value") { if keywordTableStr == v.GetString("value") {
@ -1109,11 +1123,11 @@ func (that *MakeCode) Search(table string, userData Map, data Map, req *http.Req
} }
if strings.Contains(v.GetString("type"), "text") { if strings.Contains(v.GetString("type"), "text") {
keyword[table+"."+v.GetString("name")+"[~]"] = keywordStr keyword[v.GetString("name")+"[~]"] = keywordStr
} }
if v.GetString("name") == "id" { if v.GetString("name") == "id" {
keyword[table+"."+v.GetString("name")] = keywordStr keyword[v.GetString("name")] = keywordStr
} }
if v.GetString("link") != "" && if v.GetString("link") != "" &&
v.GetString("name") != "parent_id" { v.GetString("name") != "parent_id" {
@ -1132,7 +1146,7 @@ func (that *MakeCode) Search(table string, userData Map, data Map, req *http.Req
} }
if len(reqValue) != 0 && searchItem.GetString("name") == "sort" && reqValue[0] != "" { if len(reqValue) != 0 && searchItem.GetString("name") == "sort" && reqValue[0] != "" {
sortMap["ORDER"] = table + "." + reqValue[0] sortMap["ORDER"] = reqValue[0]
} }
continue continue
@ -1143,7 +1157,7 @@ func (that *MakeCode) Search(table string, userData Map, data Map, req *http.Req
parentID := ObjToInt(req.FormValue("parent_id")) parentID := ObjToInt(req.FormValue("parent_id"))
if parentID == 0 { if parentID == 0 {
parentID = userData.GetCeilInt(table + "_id") parentID = userData.GetCeilInt(table + "_id")
data["OR"] = Map{table + ".id": parentID, table + ".parent_id": nil} data["OR"] = Map{"id": parentID, "parent_id": nil}
} else { } else {
//是否展示全部子级 //是否展示全部子级
where := Map{} where := Map{}
@ -1151,21 +1165,21 @@ func (that *MakeCode) Search(table string, userData Map, data Map, req *http.Req
for _, v := range reqValue { for _, v := range reqValue {
if len(where) == 0 { if len(where) == 0 {
where[table+"."+parent_idsStr] = "," + v + "," where[parent_idsStr] = "," + v + ","
continue continue
} }
where = Map{"OR": where, table + "." + parent_idsStr: "," + v + ","} where = Map{"OR": where, parent_idsStr: "," + v + ","}
} }
} else { } else {
where[table+".parent_id"] = reqValue where["parent_id"] = reqValue
} }
//是否展示自己 //是否展示自己
if req.FormValue("showself") == "1" { if req.FormValue("showself") == "1" {
if len(where) == 0 { if len(where) == 0 {
data["OR"] = Map{table + ".id": reqValue} data["OR"] = Map{"id": reqValue}
} else { } else {
data["OR"] = Map{"OR": where, table + ".id": reqValue} data["OR"] = Map{"OR": where, "id": reqValue}
} }
} else { } else {
if len(where) != 0 { if len(where) != 0 {
@ -1181,26 +1195,37 @@ func (that *MakeCode) Search(table string, userData Map, data Map, req *http.Req
if parent_idsStr != "" { if parent_idsStr != "" {
where := Map{} //where := Map{}
//是否全部展示 //是否全部展示
if req.FormValue("showall") != "1" { if req.FormValue("showall") != "1" {
where[table+"."+searchItem.GetString("name")] = reqValue if len(reqValue) != 0 {
} else { data[searchItem.GetString("name")] = reqValue
for _, v := range reqValue {
if len(where) == 0 {
where[searchItem.GetString("link")+"."+parent_idsStr] = "," + v + ","
continue
} }
where = Map{"OR": where, searchItem.GetString("link") + "." + parent_idsStr: "," + v + ","}
} else {
ls := []int64{}
for _, v := range reqValue {
ls1 := db.Select(searchItem.GetString("link"), "id", Map{"OR": Map{parent_idsStr: "," + v + ",", "id": v}})
for _, vls1 := range ls1 {
ls = append(ls, vls1.GetCeilInt64("id"))
}
}
if len(ls) != 0 {
data[searchItem.GetString("name")] = ls
} }
} }
//用户 //用户
if userData[searchItem.GetString("name")] != nil { //if userData[searchItem.GetString("name")] != nil {
//
where = Map{"AND": Map{searchItem.GetString("link") + "." + parent_idsStr: "," + ObjToStr(userData.GetCeilInt64(searchItem.GetString("name"))) + ",", "OR": where}} // where = Map{"AND": Map{searchItem.GetString("link") + "." + parent_idsStr: "," + ObjToStr(userData.GetCeilInt64(searchItem.GetString("name"))) + ",", "OR": where}}
} //}
data["OR"] = where //if len(where)!=0{
// data["OR"] = where
//}
continue continue
//r := db.Select(searchItem.GetString("link"), "id", where) //r := db.Select(searchItem.GetString("link"), "id", where)
@ -1212,13 +1237,13 @@ func (that *MakeCode) Search(table string, userData Map, data Map, req *http.Req
} }
if len(reqValue) != 0 && reqValue[0] != "" { if len(reqValue) != 0 && reqValue[0] != "" {
data[table+"."+searchItemName] = reqValue data[searchItemName] = reqValue
} }
} }
if sortMap["ORDER"] == nil { if sortMap["ORDER"] == nil {
sortMap["ORDER"] = table + ".id DESC" sortMap["ORDER"] = "id DESC"
} }
where := Map{} where := Map{}

View File

@ -74,20 +74,8 @@
"show" "show"
], ],
"icon": "Setting", "icon": "Setting",
"label": "栏目管理", "label": "关联栏目",
"menus": [ "menus": [
{
"auth": [
"show",
"add",
"delete",
"edit",
"info",
"download"
],
"label": "栏目管理",
"table": "ctg_copy"
},
{ {
"auth": [ "auth": [
"show", "show",
@ -111,6 +99,18 @@
], ],
"label": "栏目管理", "label": "栏目管理",
"table": "ctg" "table": "ctg"
},
{
"auth": [
"show",
"add",
"delete",
"edit",
"info",
"download"
],
"label": "栏目管理",
"table": "ctg_copy"
} }
], ],
"name": "sys:ctg" "name": "sys:ctg"
@ -120,7 +120,7 @@
"show" "show"
], ],
"icon": "Setting", "icon": "Setting",
"label": "ebw_jobs", "label": "ebw_customer",
"menus": [ "menus": [
{ {
"auth": [ "auth": [
@ -131,32 +131,8 @@
"info", "info",
"download" "download"
], ],
"label": "ebw_jobs", "label": "ebw_customer",
"table": "ebw_jobs" "table": "ebw_customer"
},
{
"auth": [
"show",
"add",
"delete",
"edit",
"info",
"download"
],
"label": "ebw_news",
"table": "ebw_news"
},
{
"auth": [
"show",
"add",
"delete",
"edit",
"info",
"download"
],
"label": "ebw_vote_user",
"table": "ebw_vote_user"
}, },
{ {
"auth": [ "auth": [
@ -179,8 +155,20 @@
"info", "info",
"download" "download"
], ],
"label": "ebw_res", "label": "ebw_annex",
"table": "ebw_res" "table": "ebw_annex"
},
{
"auth": [
"show",
"add",
"delete",
"edit",
"info",
"download"
],
"label": "ebw_news",
"table": "ebw_news"
}, },
{ {
"auth": [ "auth": [
@ -203,8 +191,8 @@
"info", "info",
"download" "download"
], ],
"label": "ebw_news_addition_res", "label": "ebw_res",
"table": "ebw_news_addition_res" "table": "ebw_res"
}, },
{ {
"auth": [ "auth": [
@ -227,20 +215,8 @@
"info", "info",
"download" "download"
], ],
"label": "ebw_annex", "label": "ebw_jobs",
"table": "ebw_annex" "table": "ebw_jobs"
},
{
"auth": [
"show",
"add",
"delete",
"edit",
"info",
"download"
],
"label": "ebw_customer",
"table": "ebw_customer"
}, },
{ {
"auth": [ "auth": [
@ -254,6 +230,18 @@
"label": "ebw_vote", "label": "ebw_vote",
"table": "ebw_vote" "table": "ebw_vote"
}, },
{
"auth": [
"show",
"add",
"delete",
"edit",
"info",
"download"
],
"label": "ebw_vote_user",
"table": "ebw_vote_user"
},
{ {
"auth": [ "auth": [
"show", "show",
@ -265,6 +253,18 @@
], ],
"label": "ebw_attachment", "label": "ebw_attachment",
"table": "ebw_attachment" "table": "ebw_attachment"
},
{
"auth": [
"show",
"add",
"delete",
"edit",
"info",
"download"
],
"label": "ebw_news_addition_res",
"table": "ebw_news_addition_res"
} }
], ],
"name": "sys:ebw" "name": "sys:ebw"
@ -274,7 +274,7 @@
"show" "show"
], ],
"icon": "Setting", "icon": "Setting",
"label": "底部", "label": "纪委信箱",
"menus": [ "menus": [
{ {
"auth": [ "auth": [
@ -285,8 +285,8 @@
"info", "info",
"download" "download"
], ],
"label": "底部", "label": "纪委信箱",
"table": "swiper_bottom" "table": "mail_discipline"
}, },
{ {
"auth": [ "auth": [
@ -297,9 +297,31 @@
"info", "info",
"download" "download"
], ],
"label": "顶部", "label": "党委书记信箱",
"table": "swiper_top" "table": "mail_part"
}, },
{
"auth": [
"show",
"add",
"delete",
"edit",
"info",
"download"
],
"label": "总经理信箱",
"table": "mail"
}
],
"name": "sys:mail"
},
{
"auth": [
"show"
],
"icon": "Setting",
"label": "关联专题",
"menus": [
{ {
"auth": [ "auth": [
"show", "show",
@ -324,6 +346,30 @@
"label": "中间", "label": "中间",
"table": "swiper_center" "table": "swiper_center"
}, },
{
"auth": [
"show",
"add",
"delete",
"edit",
"info",
"download"
],
"label": "飘窗",
"table": "swiper_fly"
},
{
"auth": [
"show",
"add",
"delete",
"edit",
"info",
"download"
],
"label": "底部",
"table": "swiper_bottom"
},
{ {
"auth": [ "auth": [
"show", "show",
@ -345,58 +391,12 @@
"info", "info",
"download" "download"
], ],
"label": "飘窗", "label": "顶部",
"table": "swiper_fly" "table": "swiper_top"
} }
], ],
"name": "sys:swiper" "name": "sys:swiper"
}, },
{
"auth": [
"show"
],
"icon": "Setting",
"label": "总经理信箱",
"menus": [
{
"auth": [
"show",
"add",
"delete",
"edit",
"info",
"download"
],
"label": "总经理信箱",
"table": "mail"
},
{
"auth": [
"show",
"add",
"delete",
"edit",
"info",
"download"
],
"label": "纪委信箱",
"table": "mail_discipline"
},
{
"auth": [
"show",
"add",
"delete",
"edit",
"info",
"download"
],
"label": "党委书记信箱",
"table": "mail_part"
}
],
"name": "sys:mail"
},
{ {
"auth": [ "auth": [
"show" "show"
@ -404,6 +404,14 @@
"icon": "Setting", "icon": "Setting",
"label": "系统管理", "label": "系统管理",
"menus": [ "menus": [
{
"auth": [
"show",
"download"
],
"label": "日志管理",
"table": "logs"
},
{ {
"auth": [ "auth": [
"show", "show",
@ -416,26 +424,6 @@
"label": "人员管理", "label": "人员管理",
"table": "admin" "table": "admin"
}, },
{
"auth": [
"show",
"add",
"delete",
"edit",
"info",
"download"
],
"label": "文章管理",
"table": "article"
},
{
"auth": [
"show",
"download"
],
"label": "日志管理",
"table": "logs"
},
{ {
"auth": [ "auth": [
"show", "show",
@ -459,6 +447,18 @@
], ],
"label": "角色管理", "label": "角色管理",
"table": "role" "table": "role"
},
{
"auth": [
"show",
"add",
"delete",
"edit",
"info",
"download"
],
"label": "文章管理",
"table": "article"
} }
], ],
"name": "sys" "name": "sys"
@ -577,13 +577,13 @@
"name": "名称", "name": "名称",
"value": "name" "value": "name"
}, },
{
"name": "职位",
"value": "title"
},
{ {
"name": "手机号", "name": "手机号",
"value": "phone" "value": "phone"
},
{
"name": "职位",
"value": "title"
} }
], ],
"type": "search", "type": "search",
@ -788,14 +788,14 @@
"name": "无", "name": "无",
"value": null "value": null
}, },
{
"name": "id",
"value": "id"
},
{ {
"name": "描述", "name": "描述",
"value": "description" "value": "description"
}, },
{
"name": "编号",
"value": "sn"
},
{ {
"name": "标题", "name": "标题",
"value": "title" "value": "title"
@ -809,8 +809,8 @@
"value": "content" "value": "content"
}, },
{ {
"name": "编号", "name": "id",
"value": "sn" "value": "id"
} }
], ],
"type": "search", "type": "search",
@ -1016,24 +1016,24 @@
"value": null "value": null
}, },
{ {
"name": "板块名称", "name": "源链接",
"value": "name" "value": "url"
},
{
"name": "文章",
"value": "article_id"
}, },
{ {
"name": "编码", "name": "编码",
"value": "sn" "value": "sn"
}, },
{ {
"name": "源链接", "name": "板块名称",
"value": "url" "value": "name"
}, },
{ {
"name": "ID", "name": "ID",
"value": "id" "value": "id"
},
{
"name": "文章",
"value": "article_id"
} }
], ],
"type": "search", "type": "search",
@ -1047,13 +1047,13 @@
"name": "无", "name": "无",
"value": null "value": null
}, },
{
"name": "变更时间",
"value": "modify_time"
},
{ {
"name": "创建时间", "name": "创建时间",
"value": "create_time" "value": "create_time"
},
{
"name": "变更时间",
"value": "modify_time"
} }
], ],
"type": "search", "type": "search",
@ -1412,6 +1412,10 @@
"name": "无", "name": "无",
"value": null "value": null
}, },
{
"name": "ID",
"value": "id"
},
{ {
"name": "文章", "name": "文章",
"value": "article_id" "value": "article_id"
@ -1420,17 +1424,13 @@
"name": "板块名称", "name": "板块名称",
"value": "name" "value": "name"
}, },
{
"name": "源链接",
"value": "url"
},
{
"name": "ID",
"value": "id"
},
{ {
"name": "编码", "name": "编码",
"value": "sn" "value": "sn"
},
{
"name": "源链接",
"value": "url"
} }
], ],
"type": "search", "type": "search",
@ -2456,38 +2456,6 @@
"name": "无", "name": "无",
"value": null "value": null
}, },
{
"name": "mail",
"value": "mail"
},
{
"name": "type",
"value": "type"
},
{
"name": "id",
"value": "id"
},
{
"name": "no",
"value": "no"
},
{
"name": "account",
"value": "account"
},
{
"name": "name",
"value": "name"
},
{
"name": "depNo",
"value": "depNo"
},
{
"name": "depName",
"value": "depName"
},
{ {
"name": "pass", "name": "pass",
"value": "pass" "value": "pass"
@ -2503,6 +2471,38 @@
{ {
"name": "tel", "name": "tel",
"value": "tel" "value": "tel"
},
{
"name": "type",
"value": "type"
},
{
"name": "name",
"value": "name"
},
{
"name": "no",
"value": "no"
},
{
"name": "account",
"value": "account"
},
{
"name": "mail",
"value": "mail"
},
{
"name": "depNo",
"value": "depNo"
},
{
"name": "depName",
"value": "depName"
},
{
"name": "id",
"value": "id"
} }
], ],
"type": "search", "type": "search",
@ -2944,16 +2944,16 @@
"value": null "value": null
}, },
{ {
"name": "其他内容", "name": "IP地址",
"value": "name" "value": "ip"
}, },
{ {
"name": "ID", "name": "ID",
"value": "id" "value": "id"
}, },
{ {
"name": "IP地址", "name": "其他内容",
"value": "ip" "value": "name"
} }
], ],
"type": "search", "type": "search",
@ -2993,30 +2993,6 @@
"type": "search", "type": "search",
"value": null "value": null
}, },
{
"label": "状态",
"name": "state",
"options": [
{
"name": "已启用",
"value": "0"
},
{
"name": "未启用",
"value": "1"
},
{
"name": "异常",
"value": "2"
},
{
"name": "全部",
"value": null
}
],
"type": "select",
"value": null
},
{ {
"label": "操作类型", "label": "操作类型",
"name": "type", "name": "type",
@ -3045,6 +3021,30 @@
"sortable": true, "sortable": true,
"type": "select", "type": "select",
"value": null "value": null
},
{
"label": "状态",
"name": "state",
"options": [
{
"name": "已启用",
"value": "0"
},
{
"name": "未启用",
"value": "1"
},
{
"name": "异常",
"value": "2"
},
{
"name": "全部",
"value": null
}
],
"type": "select",
"value": null
} }
], ],
"table": "logs" "table": "logs"
@ -3176,14 +3176,6 @@
"name": "无", "name": "无",
"value": null "value": null
}, },
{
"name": "手机号",
"value": "phone"
},
{
"name": "IP",
"value": "not_show_ip"
},
{ {
"name": "编号", "name": "编号",
"value": "sn" "value": "sn"
@ -3193,8 +3185,12 @@
"value": "title" "value": "title"
}, },
{ {
"name": "姓名", "name": "手机号",
"value": "name" "value": "phone"
},
{
"name": "IP",
"value": "not_show_ip"
}, },
{ {
"name": "id", "name": "id",
@ -3203,6 +3199,10 @@
{ {
"name": "内容", "name": "内容",
"value": "content" "value": "content"
},
{
"name": "姓名",
"value": "name"
} }
], ],
"type": "search", "type": "search",
@ -3216,13 +3216,13 @@
"name": "无", "name": "无",
"value": null "value": null
}, },
{
"name": "变更时间",
"value": "modify_time"
},
{ {
"name": "创建时间", "name": "创建时间",
"value": "create_time" "value": "create_time"
},
{
"name": "变更时间",
"value": "modify_time"
} }
], ],
"type": "search", "type": "search",
@ -3441,18 +3441,6 @@
"name": "无", "name": "无",
"value": null "value": null
}, },
{
"name": "id",
"value": "id"
},
{
"name": "标题",
"value": "title"
},
{
"name": "内容",
"value": "content"
},
{ {
"name": "姓名", "name": "姓名",
"value": "name" "value": "name"
@ -3461,10 +3449,22 @@
"name": "IP", "name": "IP",
"value": "not_show_ip" "value": "not_show_ip"
}, },
{
"name": "id",
"value": "id"
},
{ {
"name": "编号", "name": "编号",
"value": "sn" "value": "sn"
}, },
{
"name": "标题",
"value": "title"
},
{
"name": "内容",
"value": "content"
},
{ {
"name": "手机号", "name": "手机号",
"value": "phone" "value": "phone"
@ -3481,13 +3481,13 @@
"name": "无", "name": "无",
"value": null "value": null
}, },
{
"name": "创建时间",
"value": "create_time"
},
{ {
"name": "变更时间", "name": "变更时间",
"value": "modify_time" "value": "modify_time"
},
{
"name": "创建时间",
"value": "create_time"
} }
], ],
"type": "search", "type": "search",
@ -3531,27 +3531,6 @@
"type": "select", "type": "select",
"value": null "value": null
}, },
{
"label": "是否展示",
"name": "show",
"options": [
{
"name": "否",
"value": "0"
},
{
"name": "是",
"value": "1"
},
{
"name": "全部",
"value": null
}
],
"sortable": true,
"type": "select",
"value": null
},
{ {
"label": "进展", "label": "进展",
"name": "status", "name": "status",
@ -3575,6 +3554,27 @@
], ],
"type": "select", "type": "select",
"value": null "value": null
},
{
"label": "是否展示",
"name": "show",
"options": [
{
"name": "否",
"value": "0"
},
{
"name": "是",
"value": "1"
},
{
"name": "全部",
"value": null
}
],
"sortable": true,
"type": "select",
"value": null
} }
], ],
"table": "mail_discipline" "table": "mail_discipline"
@ -3706,18 +3706,6 @@
"name": "无", "name": "无",
"value": null "value": null
}, },
{
"name": "标题",
"value": "title"
},
{
"name": "内容",
"value": "content"
},
{
"name": "id",
"value": "id"
},
{ {
"name": "编号", "name": "编号",
"value": "sn" "value": "sn"
@ -3726,6 +3714,18 @@
"name": "姓名", "name": "姓名",
"value": "name" "value": "name"
}, },
{
"name": "id",
"value": "id"
},
{
"name": "标题",
"value": "title"
},
{
"name": "内容",
"value": "content"
},
{ {
"name": "手机号", "name": "手机号",
"value": "phone" "value": "phone"
@ -3952,14 +3952,14 @@
"name": "无", "name": "无",
"value": null "value": null
}, },
{
"name": "板块名称",
"value": "name"
},
{ {
"name": "ID", "name": "ID",
"value": "id" "value": "id"
}, },
{
"name": "板块名称",
"value": "name"
},
{ {
"name": "编码", "name": "编码",
"value": "sn" "value": "sn"
@ -4592,10 +4592,6 @@
"name": "无", "name": "无",
"value": null "value": null
}, },
{
"name": "名称",
"value": "name"
},
{ {
"name": "ID", "name": "ID",
"value": "id" "value": "id"
@ -4603,6 +4599,10 @@
{ {
"name": "链接", "name": "链接",
"value": "url" "value": "url"
},
{
"name": "名称",
"value": "name"
} }
], ],
"type": "search", "type": "search",
@ -4646,26 +4646,6 @@
"type": "search", "type": "search",
"value": null "value": null
}, },
{
"label": "状态",
"name": "state",
"options": [
{
"name": "正常",
"value": "0"
},
{
"name": "异常",
"value": "1"
},
{
"name": "全部",
"value": null
}
],
"type": "select",
"value": null
},
{ {
"label": "位置", "label": "位置",
"name": "pos", "name": "pos",
@ -4694,6 +4674,26 @@
"sortable": true, "sortable": true,
"type": "select", "type": "select",
"value": null "value": null
},
{
"label": "状态",
"name": "state",
"options": [
{
"name": "正常",
"value": "0"
},
{
"name": "异常",
"value": "1"
},
{
"name": "全部",
"value": null
}
],
"type": "select",
"value": null
} }
], ],
"table": "swiper_fly" "table": "swiper_fly"
@ -4780,10 +4780,6 @@
"name": "无", "name": "无",
"value": null "value": null
}, },
{
"name": "链接",
"value": "url"
},
{ {
"name": "ID", "name": "ID",
"value": "id" "value": "id"
@ -4791,6 +4787,10 @@
{ {
"name": "名称", "name": "名称",
"value": "name" "value": "name"
},
{
"name": "链接",
"value": "url"
} }
], ],
"type": "search", "type": "search",
@ -4939,6 +4939,10 @@
"name": "无", "name": "无",
"value": null "value": null
}, },
{
"name": "链接",
"value": "url"
},
{ {
"name": "ID", "name": "ID",
"value": "id" "value": "id"
@ -4946,10 +4950,6 @@
{ {
"name": "名称", "name": "名称",
"value": "name" "value": "name"
},
{
"name": "链接",
"value": "url"
} }
], ],
"type": "search", "type": "search",