lxf il y a 1 an
Parent
commit
44df0325ba
1 fichiers modifiés avec 6 ajouts et 1 suppressions
  1. 6 1
      src/views/group/finance/summary/index.vue

+ 6 - 1
src/views/group/finance/summary/index.vue

@@ -149,7 +149,12 @@ const config = computed(() => {
 const getDemandData = () => {
   proxy.post("/department/page", { pageNum: 1, pageSize: 999 }).then((res) => {
     if (res.rows && res.rows.length > 0) {
-      departmentList.value = departmentList.value;
+      departmentList.value = res.rows.map((item) => {
+        return {
+          dictKey: item.id,
+          dictValue: item.name,
+        };
+      });
     }
   });
 };