Browse Source

no message

Jianghan 3 years ago
parent
commit
7a6167365c
2 changed files with 11 additions and 7 deletions
  1. 6 3
      src/front/remark.go
  2. 5 4
      src/web/templates/project/remark_detail.html

+ 6 - 3
src/front/remark.go

@@ -242,7 +242,8 @@ func setPaceMap(info map[string]interface{}) ([]map[string]interface{}, []string
 	if packages, ok := info["package"].(map[string]interface{}); ok && len(packages) > 0 {
 		for k, tmpackage := range packages { //遍历分包
 			if tmppack, ok := tmpackage.(map[string]interface{}); ok {
-				isNew, _ := tmppack["isnew"].(bool)
+				//isNew, _ := tmppack["isnew"].(bool)
+				isNew := false
 				status := "-1"
 				if tmppack["package_son"] != nil {
 					status = "1"
@@ -335,7 +336,8 @@ func setPurchasingMap(info map[string]interface{}) ([]interface{}, []map[string]
 	if tmpcls, ok := info["purchasinglist"].([]interface{}); ok {
 		for _, v := range tmpcls {
 			if pcl, ok := v.(map[string]interface{}); ok {
-				isNew, _ := pcl["isnew"].(bool)
+				//isNew, _ := pcl["isnew"].(bool)
+				isNew := false
 				status := "-1"
 				if pcl["purchasinglist_son"] != nil {
 					status = "1"
@@ -378,7 +380,8 @@ func setWorderMap(info map[string]interface{}) ([]interface{}, []map[string]inte
 	if tmpwds, ok := info["winnerorder"].([]interface{}); ok {
 		for _, v := range tmpwds {
 			if wd, ok := v.(map[string]interface{}); ok {
-				isNew, _ := wd["isnew"].(bool)
+				//isNew, _ := wd["isnew"].(bool)
+				isNew := false
 				status := "-1"
 				if wd["winnerorder_son"] != nil {
 					status = "1"

+ 5 - 4
src/web/templates/project/remark_detail.html

@@ -401,6 +401,8 @@
 </body>
 
 <script>
+    let tid = {{ .T.tid }}
+    let did = {{ .T.did }}
     var allCheckFields = {{ .T.fields }}          //本次需标注的所有字段
     var moreInfo = {{ .T.moreInfo }}            // 更多关联信息
     var otherInfo = {{ .T.otherInfo }}          //公告关联信息
@@ -1004,7 +1006,6 @@
                 delNewTwo: function (one, index, two) {
                     //two.ck_isnew = false //目前点删除按钮页面直接不显示,但是集合索引位置不变,所以加了此代码
                     //two.show = false
-                    alert(two.isnew)
                     if (two.isnew) {
                         one.content.splice(index, 1)
                     } else {
@@ -1182,11 +1183,11 @@
                         }
                         if (n === "1" && v.status === "-1") {
                             v.status = n
-                        } else if (n === "-1") {
+                        } else if (n === -1) {
                             v.status = n
-                        } else if (n === "2") {
+                        } else if (n === 2) {
                             v.status = n
-                        } else if (n === "4") {
+                        } else if (n === 4) {
                             v.status = n
                         }
                     });