2 次代码提交 2cfa4597fb ... 99631fc6b1

作者 SHA1 备注 提交日期
  wq 99631fc6b1 Merge remote-tracking branch 'origin/master' 4 年之前
  wq ebd9e720a1 通知 4 年之前
共有 2 个文件被更改,包括 3 次插入2 次删除
  1. 2 1
      app/controller/visitController.js
  2. 1 1
      app/service/visitService.js

+ 2 - 1
app/controller/visitController.js

@@ -162,7 +162,8 @@ class VisitController extends Controller {
         { label: '安全状况', key: 'security', letter: 'I', width: 10 },
         { label: '卫生环境', key: 'hygiene', letter: 'J', width: 10 },
         { label: '居住环境', key: 'live', letter: 'K', width: 10 },
-        { label: '老人需求说明', key: 'demand', letter: 'L', width: 50 },
+        { label: '紧急程度', key: 'urgency', letter: 'L', width: 10 },
+        { label: '老人需求说明', key: 'demand', letter: 'M', width: 50 },
 
       ],
       sheetData: result,

+ 1 - 1
app/service/visitService.js

@@ -221,7 +221,7 @@ class VisitService extends Service {
       }
     ];
     const result = await model.VisitModel.find(where,{"dept1":1,"dept2":1,"dept3":1,"dept4":1,"dept5":1, "visitTime":1,"visitLocation":1,"oldInfo":1,"oldIdNumber":1,
-      "health":1,"mind":1,"security":1,"hygiene":1,"live":1,
+      "health":1,"mind":1,"security":1,"hygiene":1,"live":1,"urgency":1,
       "demand":1,"visitMessage":1,"userid":1}).populate(pop);
 
     return result;