wq 4 years ago
parent
commit
ebd9e720a1
2 changed files with 3 additions and 2 deletions
  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;