zhangweicheng 5 лет назад
Родитель
Сommit
e8c7b5d549
2 измененных файлов с 7 добавлено и 0 удалено
  1. 1 0
      modules/users/models/log_model.js
  2. 6 0
      web/over_write/js/hunan_2020.js

+ 1 - 0
modules/users/models/log_model.js

@@ -60,6 +60,7 @@ class LogModel extends BaseModel {
      */
     async addLoginLog(userId, request) {
         let ip = request.connection.remoteAddress;
+        console.log(request.headers)
         ip = ip?ip.split(':'):[];
         ip = ip[3] === undefined ? '' : ip[3];
 

+ 6 - 0
web/over_write/js/hunan_2020.js

@@ -389,6 +389,12 @@ if (typeof baseFigureTemplate !== 'undefined') {
     };
 }
 
+if (typeof projectObj !== 'undefined') {
+  projectObj.isInsertEquipmentVisable = function (selected) {
+      return true;   //湖南不管是预算或者工程量清单,都显示   
+  }
+}
+
 // CommonJS module
 if (typeof module !== 'undefined' && !module.nodeType) { // 防止module是前端的一个html标签
     module.exports = {