Prechádzať zdrojové kódy

数据修改添加modifytime

mxs 1 rok pred
rodič
commit
6317ccad67

+ 1 - 0
src/service/repair_service.go

@@ -622,6 +622,7 @@ func (jy *RepairRule) RepairSave() {
 			}
 		}
 		updata["modifyinfo"] = modifyinfo
+		updata["modifytime"] = time.Now().Unix()
 		var set map[string]interface{}
 		set = bson.M{
 			"$set": updata,

+ 3 - 3
src/web/templates/repair/jy_repair.html

@@ -219,7 +219,7 @@
                         } else {
                             return ""
                         }
-                    },  width: "18%"},
+                    }},
                 {"data": function (row) {
                         if (row.jyhref) {
                             var str = "链接地址"
@@ -228,11 +228,11 @@
                         } else {
                             return ""
                         }
-                    },  width: "18%"},
+                    }},
                 {"data": curColl, render: function (val){
                         return curColl
                     },  width: "7%"},
-                {"data": "publishtime",width:"18%", render: function (val) {
+                {"data": "publishtime", render: function (val) {
                         var dt = new Date()
                         dt.setTime(parseInt(val) * 1000);
                         return dt.format("yyyy-MM-dd")