浏览代码

城市bug修改

asd26269546 1 年之前
父节点
当前提交
803ede2ef9
共有 2 个文件被更改,包括 6 次插入6 次删除
  1. 3 3
      src/components/testForm/index.vue
  2. 3 3
      src/views/procurementManagement/supplierConfig/add.vue

+ 3 - 3
src/components/testForm/index.vue

@@ -482,12 +482,12 @@ const getFieldReadonly = (i) => {
 
 // 国家初始化
 const cityOptionInit = () => {
-  proxy.post("/areaInfo/list", { parentId: "0" }).then((res) => {
+  proxy.post("/customizeArea/list", { parentId: "0" }).then((res) => {
     cityOption.value = res.data.map((item, index) => {
       return {
         ...item,
         index: index,
-        text: item.chineseName,
+        text: item.name,
         value: item.id,
         children: [],
       };
@@ -738,7 +738,7 @@ const handleRemove = (index,item) => {
 const getAreaInfo = (selectedOptions, item, index) => {
   showLoadingToast("加载中...");
   proxy
-    .post("/areaInfo/list", { parentId: selectedOptions.value })
+    .post("/customizeArea/list", { parentId: selectedOptions.value })
     .then((res) => {
       let countryIndex = selectedOptions.selectedOptions[0].index;
       let provinceIndex =

+ 3 - 3
src/views/procurementManagement/supplierConfig/add.vue

@@ -187,7 +187,7 @@ const onConfirmCity = (selectedOptions) => {
 const getAreaInfo = (selectedOptions) => {
   showLoadingToast("加载中...");
   proxy
-    .post("/areaInfo/list", { parentId: selectedOptions.value })
+    .post("/customizeArea/list", { parentId: selectedOptions.value })
     .then((res) => {
       let countryIndex = selectedOptions.selectedOptions[0].index;
       let provinceIndex =
@@ -358,12 +358,12 @@ const onSubmit = () => {
 };
 
 onMounted(() => {
-  proxy.post("/areaInfo/list", formData.value).then((res) => {
+  proxy.post("/customizeArea/list", formData.value).then((res) => {
     areaInfo.value = res.data.map((item, index) => {
       return {
         ...item,
         index: index,
-        text: item.chineseName,
+        text: item.name,
         value: item.id,
         children: [],
       };