Ver código fonte

区域bug修复

chenjj 3 meses atrás
pai
commit
2b03cebdcf
3 arquivos alterados com 7 adições e 13 exclusões
  1. 2 11
      src/views/system/dept/address.js
  2. 3 0
      src/views/system/dept/index.vue
  3. 2 2
      vite.config.js

+ 2 - 11
src/views/system/dept/address.js

@@ -19222,16 +19222,7 @@ export default [
                         "districtInitial": "S",
                         "name": "双桥经济技术开发区",
                         "districtPinyin": "shuang qiao jing ji ji shu kai fa qu"
-                    }
-                ]
-            },
-            {
-                "cityAcronym": "ZQJX",
-                "code": 500200,
-                "cityInitial": "Z",
-                "name": "重庆郊县",
-                "cityPinyin": "zhong qing jiao xian",
-                "children": [
+                    },
                     {
                         "districtAcronym": "CKX",
                         "code": 500229,
@@ -19317,7 +19308,7 @@ export default [
                         "districtPinyin": "peng shui miao zu tu jia zu zi zhi xian"
                     }
                 ]
-            }
+            },
         ],
         "provinceAcronym": "ZQS",
         "code": 500000,

+ 3 - 0
src/views/system/dept/index.vue

@@ -266,6 +266,8 @@ function handleAdd(row) {
    }
    open.value = true;
    title.value = "添加区域";
+
+   province.value = address;
 }
 
 /** 展开/折叠操作 */
@@ -280,6 +282,7 @@ function toggleExpandAll() {
 /** 修改按钮操作 */
 function handleUpdate(row) {
    reset();
+   province.value = address;
    listDeptExcludeChild(row.deptId).then(response => {
       deptOptions.value = proxy.handleTree(response.data, "deptId");
    });

+ 2 - 2
vite.config.js

@@ -37,10 +37,10 @@ export default defineConfig(({ mode, command }) => {
         },
         // https://cn.vitejs.dev/config/#server-proxy
         '/dev-api': {
-          // target: 'http://192.168.100.139:9527',
+          target: 'http://192.168.100.139:9527',
           // target: 'https://zybooks.tech/prod-api', 
           // target: 'http://192.168.100.128:9527',
-          target: 'https://goldshulin.com/prod-api',
+          // target: 'https://goldshulin.com/prod-api',
           changeOrigin: true,
           rewrite: (p) => p.replace(/^\/dev-api/, '')
         },