Bläddra i källkod

移动端-逢考必查-修复同一部门下部分人员考试任务不可见问题(获取dept问题)

liuzhuo 17 timmar sedan
förälder
incheckning
ad98482590
2 ändrade filer med 2 tillägg och 3 borttagningar
  1. 0
    1
      src/view/dati/examCheck/addPeo.vue
  2. 2
    2
      src/view/dati/examCheck/index.vue

+ 0
- 1
src/view/dati/examCheck/addPeo.vue Visa fil

@@ -174,7 +174,6 @@ const pageSize = ref(10);
174 174
 const totalRows = ref(0);
175 175
 const resultData = ref([]);
176 176
 
177
-const dept=localStorage.getItem("dept")[0].deptCode;
178 177
 const getTableData = async () => {
179 178
 
180 179
   const url = 'sgsafe/ExamHead/queryByhead';

+ 2
- 2
src/view/dati/examCheck/index.vue Visa fil

@@ -285,9 +285,9 @@ const pageSize = ref(10);
285 285
 const totalRows = ref(0);
286 286
 const resultData = ref([]);
287 287
 
288
-const dept=localStorage.getItem("dept")[0].deptCode;
288
+const dept = JSON.parse(localStorage.getItem('dept') || '[]')?.[0]?.deptCode || '';
289 289
 const getTableData = async () => {
290
-  query.value.addDeptCode=dept
290
+  query.value.addDeptCode = dept;
291 291
   const url = 'sgsafe/EduCheckMaster/query';
292 292
   const param = {
293 293
     page: currentPage.value,

Loading…
Avbryt
Spara