> {
- return SysRegionApiFp(this.configuration).apiSysRegionSyncRegionStatsPost(body, options).then((request) => request(this.axios, this.basePath));
- }
/**
*
* @summary 同步行政区划数据(天地图行政区划) 🔖
@@ -889,7 +889,7 @@ export class SysRegionApi extends BaseAPI {
}
/**
*
- * @summary 更新行政区域 🔖
+ * @summary 更新行政区划 🔖
* @param {UpdateRegionInput} [body]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
diff --git a/Web/src/api-services/models/index.ts b/Web/src/api-services/models/index.ts
index 19ad1277..0cf6633f 100644
--- a/Web/src/api-services/models/index.ts
+++ b/Web/src/api-services/models/index.ts
@@ -346,7 +346,6 @@ export * from './sql-sugar-paged-list-user-output';
export * from './status-enum';
export * from './struct-layout-attribute';
export * from './swagger-submit-url-body';
-export * from './sync-input';
export * from './sync-sys-ldap-input';
export * from './sys-code-gen';
export * from './sys-code-gen-config';
diff --git a/Web/src/api-services/models/sync-input.ts b/Web/src/api-services/models/sync-input.ts
deleted file mode 100644
index ff770a62..00000000
--- a/Web/src/api-services/models/sync-input.ts
+++ /dev/null
@@ -1,38 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * Admin.NET 通用权限开发平台
- * 让 .NET 开发更简单、更通用、更流行。整合最新技术,模块插件式开发,前后端分离,开箱即用。
👮不得利用本项目从事危害国家安全、扰乱社会秩序、侵犯他人合法权益等法律法规禁止的活动!任何基于本项目二次开发而产生的一切法律纠纷和责任,我们不承担任何责任!
- *
- * OpenAPI spec version: 1.0.0
- *
- *
- * NOTE: This class is auto generated by the swagger code generator program.
- * https://github.com/swagger-api/swagger-codegen.git
- * Do not edit the class manually.
- */
-
- /**
- *
- *
- * @export
- * @interface SyncInput
- */
-export interface SyncInput {
-
- /**
- * 指定省
- *
- * @type {string}
- * @memberof SyncInput
- */
- province?: string | null;
-
- /**
- * 指定市
- *
- * @type {string}
- * @memberof SyncInput
- */
- city?: string | null;
-}
diff --git a/Web/src/api-services/models/sys-oauth-user.ts b/Web/src/api-services/models/sys-oauth-user.ts
index 5e8a0503..d45a42c5 100644
--- a/Web/src/api-services/models/sys-oauth-user.ts
+++ b/Web/src/api-services/models/sys-oauth-user.ts
@@ -85,6 +85,14 @@ export interface SysOAuthUser {
*/
isDelete?: boolean;
+ /**
+ * 邮箱
+ *
+ * @type {string}
+ * @memberof SysOAuthUser
+ */
+ email?: string | null;
+
/**
* 系统用户Id
*
@@ -147,14 +155,6 @@ export interface SysOAuthUser {
*/
avatar?: string | null;
- /**
- * 邮箱
- *
- * @type {string}
- * @memberof SysOAuthUser
- */
- email?: string | null;
-
/**
* 手机号码
*
diff --git a/Web/src/views/system/region/component/syncStatsParam.vue b/Web/src/views/system/region/component/syncGdParam.vue
similarity index 72%
rename from Web/src/views/system/region/component/syncStatsParam.vue
rename to Web/src/views/system/region/component/syncGdParam.vue
index 78d3ac5d..d0667676 100644
--- a/Web/src/views/system/region/component/syncStatsParam.vue
+++ b/Web/src/views/system/region/component/syncGdParam.vue
@@ -9,25 +9,20 @@
- 不建议不指定任何省市名称直接生成全国区划数据,数据超大!
+ 此操作会更新行政区划表所有数据,请慎重操作!!!
-
-
-
-
-
-
-
+
+
@@ -76,10 +71,11 @@ const submit = () => {
ruleFormRef.value.validate(async (valid: boolean) => {
if (!valid) return;
- if (state.ruleForm.city && !state.ruleForm.province) {
- ElMessage.error('不能单独指定市级!');
+ if (state.ruleForm.key == null || state.ruleForm.key == '' || state.ruleForm.key.length < 30) {
+ ElMessage.error('请正确输入高德地图开发者 Key 值');
return;
}
+
ElNotification({
title: '提示',
message: '努力同步中...',
@@ -87,7 +83,7 @@ const submit = () => {
position: 'bottom-right',
});
state.loading = true;
- await getAPI(SysRegionApi).apiSysRegionSyncRegionStatsPost(state.ruleForm);
+ await getAPI(SysRegionApi).apiSysRegionSyncRegionGDKeyPost(state.ruleForm.key);
closeDialog();
ElMessage.success('生成成功');
diff --git a/Web/src/views/system/region/component/syncMcaParam.vue b/Web/src/views/system/region/component/syncMcaParam.vue
index 56531e4e..011161bc 100644
--- a/Web/src/views/system/region/component/syncMcaParam.vue
+++ b/Web/src/views/system/region/component/syncMcaParam.vue
@@ -18,7 +18,7 @@
diff --git a/Web/src/views/system/region/component/syncTdtParam.vue b/Web/src/views/system/region/component/syncTdtParam.vue
index 41c06f2e..2b437627 100644
--- a/Web/src/views/system/region/component/syncTdtParam.vue
+++ b/Web/src/views/system/region/component/syncTdtParam.vue
@@ -33,7 +33,7 @@
diff --git a/Web/src/views/system/region/index.vue b/Web/src/views/system/region/index.vue
index adbd05bc..5ad6cfee 100644
--- a/Web/src/views/system/region/index.vue
+++ b/Web/src/views/system/region/index.vue
@@ -42,9 +42,9 @@
全部折叠
- 同步国家统计局
- 同步国家地名信息库
+ 同步高德地图
同步天地图
+ 同步国家地名信息库
@@ -65,7 +65,7 @@
-
+
@@ -81,12 +81,12 @@ import { Local } from '/@/utils/storage';
import { Splitpanes, Pane } from 'splitpanes';
import 'splitpanes/dist/splitpanes.css';
-import RegionTree from '/@/views/system/region/component/regionTree.vue';
-import EditRegion from '/@/views/system/region/component/editRegion.vue';
-import SyncStatsParam from '/@/views/system/region/component/syncStatsParam.vue';
-import SyncMcaParam from '/@/views/system/region/component/syncMcaParam.vue';
-import SyncTdtParam from '/@/views/system/region/component/syncTdtParam.vue';
-import GenOrgLevel from '/@/views/system/region/component/genOrgLevel.vue';
+import RegionTree from './component/regionTree.vue';
+import EditRegion from './component/editRegion.vue';
+import SyncGdParam from './component/syncGdParam.vue';
+import SyncMcaParam from './component/syncMcaParam.vue';
+import SyncTdtParam from './component/syncTdtParam.vue';
+import GenOrgLevel from './component/genOrgLevel.vue';
import { getAPI } from '/@/utils/axios-utils';
import { SysRegionApi } from '/@/api-services/api';
@@ -94,7 +94,7 @@ import { SysRegion, PageRegionInput } from '/@/api-services/models';
const xGrid = ref();
const editRegionRef = ref>();
-const syncStatsParamRef = ref>();
+const syncGdParamRef = ref>();
const syncMcaParamRef = ref>();
const syncTdtParamRef = ref>();
const genOrgLevelRef = ref>();
@@ -234,10 +234,10 @@ const handleNodeChange = async (node: any) => {
await handleQuery();
};
-// 同步国家统计局
-const syncRegionStats = async () => {
- state.title = '同步国家统计局';
- syncStatsParamRef.value?.openDialog();
+// 同步高德地图
+const syncRegionGD = async () => {
+ state.title = '同步高德地图';
+ syncGdParamRef.value?.openDialog();
};
// 同步国家地名信息库