Просмотр исходного кода

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

liuzhuo 9 часов назад
Родитель
Сommit
ad98482590
2 измененных файлов: 2 добавлений и 3 удалений
  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 Просмотреть файл

@@ -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 Просмотреть файл

@@ -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,

Загрузка…
Отмена
Сохранить