Quellcode durchsuchen

单证管理 目的国

lxf vor 1 Jahr
Ursprung
Commit
d7771d0fa4
1 geänderte Dateien mit 10 neuen und 2 gelöschten Zeilen
  1. 10 2
      src/views/salesMange/shipmentMange/document/index.vue

+ 10 - 2
src/views/salesMange/shipmentMange/document/index.vue

@@ -1009,8 +1009,16 @@ const config = computed(() => {
   ];
 });
 const getDict = () => {
-  proxy.post("/areaInfo/list", { parentId: "0" }).then((res) => {
-    countryData.value = res;
+  proxy.post("/customizeArea/list", { parentId: "0" }).then((res) => {
+    if (res && res.length > 0) {
+      countryData.value = res.map((item) => {
+        return {
+          ...item,
+          label: item.chineseName,
+          value: item.id,
+        };
+      });
+    }
   });
   proxy
     .post("/dictTenantData/page", {