Răsfoiți Sursa

wip:权限管理

WH01243 3 ani în urmă
părinte
comite
d51964e492
2 a modificat fișierele cu 24 adăugiri și 8 ștergeri
  1. 8 8
      src/jfw/front/dataExport.go
  2. 16 0
      src/jfw/front/entsearch.go

+ 8 - 8
src/jfw/front/dataExport.go

@@ -858,11 +858,11 @@ func (this *DataExport) GetPcEntAuth() {
 					if hideUsers[util.IntAll(val["id"])] {
 						entnicheMenu = false
 					} else {
-						loc, _ := time.LoadLocation("Local")
-						t2, _ := time.ParseInLocation("2006-01-02 15:04:05", util.ObjToString(val["createtimes"]), loc)
-						if t2.Unix() > int64(1642227707) {
+						//loc, _ := time.LoadLocation("Local")
+						//t2, _ := time.ParseInLocation("2006-01-02 15:04:05", util.ObjToString(val["createtimes"]), loc)
+						//if t2.Unix() > int64(1642227707) {
 							isNew = true
-						}
+						//}
 						entnicheMenu = true
 					}
 					break
@@ -884,11 +884,11 @@ func (this *DataExport) GetPcEntAuth() {
 									if hideUsers[util.IntAll(vv["id"])] {
 										entnicheMenu = false
 									} else {
-										loc, _ := time.LoadLocation("Local")
-										t2, _ := time.ParseInLocation("2006-01-02 15:04:05", util.ObjToString(vv["createtime"]), loc)
-										if t2.Unix() > int64(1642227707) {
+										//loc, _ := time.LoadLocation("Local")
+										//t2, _ := time.ParseInLocation("2006-01-02 15:04:05", util.ObjToString(vv["createtime"]), loc)
+										//if t2.Unix() > int64(1642227707) {
 											isNew = true
-										}
+										//}
 										entnicheMenu = true
 									}
 								}

+ 16 - 0
src/jfw/front/entsearch.go

@@ -19,6 +19,8 @@ type Entsearch struct {
 	recList              xweb.Mapper `xweb:"/jylab/bidsearchforent/recList"`
 	entSearchIndex       xweb.Mapper `xweb:"/jylab/entSearch/index.html"`
 	pushSearchIndex       xweb.Mapper `xweb:"/jylab/purSearch/index.html"`
+	purScopebusniessIndex       xweb.Mapper `xweb:"/jylab/purScopebusniess/index.html"`
+
 }
 
 func init() {
@@ -49,6 +51,20 @@ func (e *Entsearch) PushSearchIndex() error {
 	e.T["industrylist"] = industrylist
 	return e.Render("/pc/pursearchindex.html", &e.T)
 }
+func (e *Entsearch) PurScopebusniessIndex() error {
+	defer util.Catch()
+	var shareid = e.GetString("id")
+	if len(shareid) == 0 {
+		shareid = "10"
+	}
+	e.T["shareid"] = se.EncodeString(shareid)
+	e.T["searchvalue"] = e.GetString("searchvalue")
+	e.T["logid"] = config.Seoconfig["jyzbqyss"].(string)
+	e.T["sortArray"] = sortArray
+	e.T["industrylist"] = industrylist
+	return e.Render("/pc/purScopebusniess.html", &e.T)
+}
+
 
 
 func (e *Entsearch) Bidsearchforentindex() error {