Преглед изворни кода

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

liuzhuo пре 12 часа
родитељ
комит
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
 const totalRows = ref(0);
174
 const totalRows = ref(0);
175
 const resultData = ref([]);
175
 const resultData = ref([]);
176
 
176
 
177
-const dept=localStorage.getItem("dept")[0].deptCode;
178
 const getTableData = async () => {
177
 const getTableData = async () => {
179
 
178
 
180
   const url = 'sgsafe/ExamHead/queryByhead';
179
   const url = 'sgsafe/ExamHead/queryByhead';

+ 2
- 2
src/view/dati/examCheck/index.vue Прегледај датотеку

285
 const totalRows = ref(0);
285
 const totalRows = ref(0);
286
 const resultData = ref([]);
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
 const getTableData = async () => {
289
 const getTableData = async () => {
290
-  query.value.addDeptCode=dept
290
+  query.value.addDeptCode = dept;
291
   const url = 'sgsafe/EduCheckMaster/query';
291
   const url = 'sgsafe/EduCheckMaster/query';
292
   const param = {
292
   const param = {
293
     page: currentPage.value,
293
     page: currentPage.value,

Loading…
Откажи
Сачувај