Переглянути джерело

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

liuzhuo 12 години тому
джерело
коміт
ad98482590

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

Завантаження…
Відмінити
Зберегти