diff --git a/apps/web-antd/src/adapter/component/index.ts b/apps/web-antd/src/adapter/component/index.ts index d452d521..ac0bb097 100644 --- a/apps/web-antd/src/adapter/component/index.ts +++ b/apps/web-antd/src/adapter/component/index.ts @@ -21,6 +21,8 @@ import { $t } from '@vben/locales'; import { notification } from 'ant-design-vue'; +import { registerComponent } from '#/components/form/component-map'; + const AutoComplete = defineAsyncComponent( () => import('ant-design-vue/es/auto-complete'), ); @@ -107,6 +109,7 @@ export type ComponentType = | 'ApiSelect' | 'ApiTreeSelect' | 'AutoComplete' + | 'Avatar' | 'Checkbox' | 'CheckboxGroup' | 'DatePicker' @@ -199,6 +202,8 @@ async function initComponentAdapter() { Upload, }; + // 自动注册自定义组件 + registerComponent(components); // 将组件注册到全局共享状态中 globalShareState.setComponents(components); diff --git a/apps/web-antd/src/api/core/auth.ts b/apps/web-antd/src/api/core/auth.ts index 71d9f994..2be704b5 100644 --- a/apps/web-antd/src/api/core/auth.ts +++ b/apps/web-antd/src/api/core/auth.ts @@ -4,12 +4,13 @@ export namespace AuthApi { /** 登录接口参数 */ export interface LoginParams { password?: string; - username?: string; + account?: string; + remember?: string; } /** 登录接口返回值 */ export interface LoginResult { - accessToken: string; + token: string; } export interface RefreshTokenResult { @@ -22,14 +23,14 @@ export namespace AuthApi { * 登录 */ export async function loginApi(data: AuthApi.LoginParams) { - return requestClient.post('/auth/login', data); + return requestClient.post('login', data); } /** * 刷新accessToken */ export async function refreshTokenApi() { - return baseRequestClient.post('/auth/refresh', { + return baseRequestClient.post('admin/refresh', { withCredentials: true, }); } @@ -38,7 +39,7 @@ export async function refreshTokenApi() { * 退出登录 */ export async function logoutApi() { - return baseRequestClient.post('/auth/logout', { + return baseRequestClient.post('admin/logout', { withCredentials: true, }); } @@ -47,5 +48,5 @@ export async function logoutApi() { * 获取用户权限码 */ export async function getAccessCodesApi() { - return requestClient.get('/auth/codes'); + return requestClient.get('admin/codes'); } diff --git a/apps/web-antd/src/api/core/menu.ts b/apps/web-antd/src/api/core/menu.ts index 9ef60b11..650e0c65 100644 --- a/apps/web-antd/src/api/core/menu.ts +++ b/apps/web-antd/src/api/core/menu.ts @@ -6,5 +6,5 @@ import { requestClient } from '#/api/request'; * 获取用户所有菜单 */ export async function getAllMenusApi() { - return requestClient.get('/menu/all'); + return requestClient.get('admin/menu'); } diff --git a/apps/web-antd/src/api/core/upload.ts b/apps/web-antd/src/api/core/upload.ts new file mode 100644 index 00000000..c57aae95 --- /dev/null +++ b/apps/web-antd/src/api/core/upload.ts @@ -0,0 +1,17 @@ +import { requestClient } from '#/api/request'; + +/** + * 文件上传 + * @param data + */ +export async function uploadFile(data: any) { + return requestClient.upload('upload/image', data); +} + +/** + * 通过文件id集合获取文件信息 + * @param data + */ +export async function getFileInfoByIds(data: any) { + return requestClient.post('/sys/fileInfo/getFileInfoByIds', data); +} diff --git a/apps/web-antd/src/api/core/user.ts b/apps/web-antd/src/api/core/user.ts index 7e28ea84..7757574a 100644 --- a/apps/web-antd/src/api/core/user.ts +++ b/apps/web-antd/src/api/core/user.ts @@ -6,5 +6,5 @@ import { requestClient } from '#/api/request'; * 获取用户信息 */ export async function getUserInfoApi() { - return requestClient.get('/user/info'); + return requestClient.get('admin/my-info'); } diff --git a/apps/web-antd/src/api/request.ts b/apps/web-antd/src/api/request.ts index 288dddd0..c5f04432 100644 --- a/apps/web-antd/src/api/request.ts +++ b/apps/web-antd/src/api/request.ts @@ -75,7 +75,7 @@ function createRequestClient(baseURL: string, options?: RequestClientOptions) { client.addResponseInterceptor( defaultResponseInterceptor({ codeField: 'code', - dataField: 'data', + dataField: 'result', successCode: 0, }), ); diff --git a/apps/web-antd/src/components/description/description.vue b/apps/web-antd/src/components/description/description.vue new file mode 100644 index 00000000..5e096f34 --- /dev/null +++ b/apps/web-antd/src/components/description/description.vue @@ -0,0 +1,77 @@ + + diff --git a/apps/web-antd/src/components/description/index.ts b/apps/web-antd/src/components/description/index.ts new file mode 100644 index 00000000..745e7550 --- /dev/null +++ b/apps/web-antd/src/components/description/index.ts @@ -0,0 +1,2 @@ +export { default as Description } from './description.vue'; +export type * from './types'; diff --git a/apps/web-antd/src/components/description/types.d.ts b/apps/web-antd/src/components/description/types.d.ts new file mode 100644 index 00000000..c5120b8e --- /dev/null +++ b/apps/web-antd/src/components/description/types.d.ts @@ -0,0 +1,54 @@ +import type { CollapseContainerOptions } from '@/components/Container'; +import type { DescriptionsProps } from 'ant-design-vue/es/descriptions'; + +import type { CSSProperties, VNode } from 'vue'; + +export interface DescItem { + labelMinWidth?: number; + contentMinWidth?: number; + labelStyle?: CSSProperties; + field: string; + label: JSX.Element | string | VNode; + // Merge column + span?: number; + show?: (...arg: any) => boolean; + // render + render?: ( + val: any, + data: Recordable, + ) => Element | JSX.Element | number | string | undefined | VNode; + component: string; + componentProps?: any; + children?: DescItem[]; +} + +export interface DescriptionProps extends DescriptionsProps { + // Whether to include the collapse component + useCollapse?: boolean; + /** + * item configuration + * @type DescItem + */ + schema: DescItem[]; + /** + * 数据 + * @type object + */ + data: Recordable; + /** + * Built-in CollapseContainer component configuration + * @type CollapseContainerOptions + */ + collapseOptions?: CollapseContainerOptions; +} + +export interface DescInstance { + setDescProps(descProps: Partial): void; +} + +export type Register = (descInstance: DescInstance) => void; + +/** + * @description: + */ +export type UseDescReturnType = [Register, DescInstance]; diff --git a/apps/web-antd/src/components/dynamic-schema-form/dynamic-schema-form.vue b/apps/web-antd/src/components/dynamic-schema-form/dynamic-schema-form.vue new file mode 100644 index 00000000..df32effe --- /dev/null +++ b/apps/web-antd/src/components/dynamic-schema-form/dynamic-schema-form.vue @@ -0,0 +1,104 @@ + + + diff --git a/apps/web-antd/src/components/dynamic-schema-form/index.ts b/apps/web-antd/src/components/dynamic-schema-form/index.ts new file mode 100644 index 00000000..7965c2c8 --- /dev/null +++ b/apps/web-antd/src/components/dynamic-schema-form/index.ts @@ -0,0 +1 @@ +export { default as DynamicSchemaForm } from './dynamic-schema-form.vue'; diff --git a/apps/web-antd/src/components/form-description/form-description.vue b/apps/web-antd/src/components/form-description/form-description.vue new file mode 100644 index 00000000..22bd5d55 --- /dev/null +++ b/apps/web-antd/src/components/form-description/form-description.vue @@ -0,0 +1,79 @@ + + + diff --git a/apps/web-antd/src/components/form-description/index.ts b/apps/web-antd/src/components/form-description/index.ts new file mode 100644 index 00000000..0fbe8296 --- /dev/null +++ b/apps/web-antd/src/components/form-description/index.ts @@ -0,0 +1 @@ +export { default as FormDescription } from './form-description.vue'; diff --git a/apps/web-antd/src/components/form/component-map.ts b/apps/web-antd/src/components/form/component-map.ts new file mode 100644 index 00000000..b4af6e68 --- /dev/null +++ b/apps/web-antd/src/components/form/component-map.ts @@ -0,0 +1,32 @@ +import type { Component } from 'vue'; + +import type { CustomComponentType } from './types'; + +import { getFileNameWithoutExtension, toPascalCase } from '#/util/tool'; + +const componentMap = new Map(); +// import.meta.glob() 直接引入所有的模块 Vite 独有的功能 +const modules = import.meta.glob( + ['./components/**/*.vue', '../../views/**/components/form/*.vue'], + { eager: true }, +); +// 加入到路由集合中 +Object.keys(modules).forEach((key) => { + if (!key.includes('-ignore')) { + const mod = (modules as any)[key].default || {}; + // ./components/ApiDict.vue + // 获取ApiDict + const compName = getFileNameWithoutExtension(key); + componentMap.set(toPascalCase(compName), mod); + } +}); +/** + * 注册组件 + * @param components + */ +export const registerComponent = (components: any) => { + componentMap.forEach((value, key) => { + components[key] = value as Component; + }); +}; +export { componentMap }; diff --git a/apps/web-antd/src/components/form/components/avatar.vue b/apps/web-antd/src/components/form/components/avatar.vue new file mode 100644 index 00000000..7be437cf --- /dev/null +++ b/apps/web-antd/src/components/form/components/avatar.vue @@ -0,0 +1,62 @@ + + + diff --git a/apps/web-antd/src/components/form/components/upload-image.vue b/apps/web-antd/src/components/form/components/upload-image.vue new file mode 100644 index 00000000..b8a96811 --- /dev/null +++ b/apps/web-antd/src/components/form/components/upload-image.vue @@ -0,0 +1,175 @@ + + + + + diff --git a/apps/web-antd/src/components/form/components/upload.vue b/apps/web-antd/src/components/form/components/upload.vue new file mode 100644 index 00000000..dda91eb9 --- /dev/null +++ b/apps/web-antd/src/components/form/components/upload.vue @@ -0,0 +1,160 @@ + + diff --git a/apps/web-antd/src/components/form/index.ts b/apps/web-antd/src/components/form/index.ts new file mode 100644 index 00000000..645f73a0 --- /dev/null +++ b/apps/web-antd/src/components/form/index.ts @@ -0,0 +1,7 @@ +// export { default as ApiCheckboxGroup } from './components/api-checkbox-group.vue'; +// export { default as ApiDict } from './components/api-dict.vue'; +// export { default as ApiRadioGroup } from './components/api-radio-group.vue'; +// export { default as ApiSelect } from './components/api-select.vue'; +// export { default as ApiTreeSelect } from './components/api-tree-select.vue'; +// export { default as IconPicker } from './components/icon-picker.vue'; +export { default as Upload } from './components/upload.vue'; diff --git a/apps/web-antd/src/components/form/types/index.d.ts b/apps/web-antd/src/components/form/types/index.d.ts new file mode 100644 index 00000000..c67d6ac9 --- /dev/null +++ b/apps/web-antd/src/components/form/types/index.d.ts @@ -0,0 +1,7 @@ +export type CustomComponentType = + | 'ApiCheckboxGroup' + | 'ApiDict' + | 'ApiRadioGroup' + | 'ApiSelect' + | 'ApiTreeSelect' + | 'IconPicker'; diff --git a/apps/web-antd/src/components/icon/icon.vue b/apps/web-antd/src/components/icon/icon.vue new file mode 100644 index 00000000..e5c0c310 --- /dev/null +++ b/apps/web-antd/src/components/icon/icon.vue @@ -0,0 +1,51 @@ + + + + diff --git a/apps/web-antd/src/components/icon/index.ts b/apps/web-antd/src/components/icon/index.ts new file mode 100644 index 00000000..fc989720 --- /dev/null +++ b/apps/web-antd/src/components/icon/index.ts @@ -0,0 +1 @@ +export { default as Icon } from './icon.vue'; diff --git a/apps/web-antd/src/components/modal/CheckChineseMedicineConflict.vue b/apps/web-antd/src/components/modal/CheckChineseMedicineConflict.vue new file mode 100644 index 00000000..dc5d52a8 --- /dev/null +++ b/apps/web-antd/src/components/modal/CheckChineseMedicineConflict.vue @@ -0,0 +1,32 @@ + + diff --git a/apps/web-antd/src/components/modal/DoctorQrCodePreview.vue b/apps/web-antd/src/components/modal/DoctorQrCodePreview.vue new file mode 100644 index 00000000..bd98047f --- /dev/null +++ b/apps/web-antd/src/components/modal/DoctorQrCodePreview.vue @@ -0,0 +1,169 @@ + + + diff --git a/apps/web-antd/src/components/modal/ImagePreview.vue b/apps/web-antd/src/components/modal/ImagePreview.vue new file mode 100644 index 00000000..aa059249 --- /dev/null +++ b/apps/web-antd/src/components/modal/ImagePreview.vue @@ -0,0 +1,34 @@ + + diff --git a/apps/web-antd/src/components/modal/QrCodePreview.vue b/apps/web-antd/src/components/modal/QrCodePreview.vue new file mode 100644 index 00000000..948bdcf4 --- /dev/null +++ b/apps/web-antd/src/components/modal/QrCodePreview.vue @@ -0,0 +1,135 @@ + + + diff --git a/apps/web-antd/src/components/table-action/index.ts b/apps/web-antd/src/components/table-action/index.ts new file mode 100644 index 00000000..00b7e6b6 --- /dev/null +++ b/apps/web-antd/src/components/table-action/index.ts @@ -0,0 +1,2 @@ +export { default as TableAction } from './table-action.vue'; +export type * from './types.d.ts'; diff --git a/apps/web-antd/src/components/table-action/table-action.vue b/apps/web-antd/src/components/table-action/table-action.vue new file mode 100644 index 00000000..139ba45b --- /dev/null +++ b/apps/web-antd/src/components/table-action/table-action.vue @@ -0,0 +1,227 @@ + + + + diff --git a/apps/web-antd/src/components/table-action/types.d.ts b/apps/web-antd/src/components/table-action/types.d.ts new file mode 100644 index 00000000..29e7d4d0 --- /dev/null +++ b/apps/web-antd/src/components/table-action/types.d.ts @@ -0,0 +1,26 @@ +import { ButtonProps } from 'ant-design-vue/es/button/buttonTypes'; +import { TooltipProps } from 'ant-design-vue/es/tooltip/Tooltip'; + +export interface PopConfirm { + title: string; + okText?: string; + cancelText?: string; + confirm: Fn; + cancel?: Fn; + icon?: string; + disabled?: boolean; +} +export interface ActionItem extends ButtonProps { + onClick?: Fn; + label?: string; + color?: 'error' | 'success' | 'warning'; + icon?: string; + popConfirm?: PopConfirm; + disabled?: boolean; + divider?: boolean; + // 权限编码控制是否显示 + auth?: string[]; + // 业务控制是否显示 + ifShow?: ((action: ActionItem) => boolean) | boolean; + tooltip?: string | TooltipProps; +} diff --git a/apps/web-antd/src/components/view/component-map.ts b/apps/web-antd/src/components/view/component-map.ts new file mode 100644 index 00000000..1bc0dedd --- /dev/null +++ b/apps/web-antd/src/components/view/component-map.ts @@ -0,0 +1,22 @@ +import type { Component } from 'vue'; + +import { getFileNameWithoutExtension, toPascalCase } from '#/util/tool'; + +const componentMap = new Map(); +// import.meta.glob() 直接引入所有的模块 Vite 独有的功能 +const modules = import.meta.glob( + ['./components/**/*.vue', '../../views/**/components/view/*.vue'], + { eager: true }, +); +// 加入到路由集合中 +Object.keys(modules).forEach((key) => { + if (!key.includes('-ignore')) { + const mod = (modules as any)[key].default || {}; + // ./components/ApiDict.vue + // 获取ApiDict + const compName = getFileNameWithoutExtension(key); + componentMap.set(toPascalCase(compName), mod); + } +}); + +export { componentMap }; diff --git a/apps/web-antd/src/components/view/components/api-cascader.vue b/apps/web-antd/src/components/view/components/api-cascader.vue new file mode 100644 index 00000000..e75a8a69 --- /dev/null +++ b/apps/web-antd/src/components/view/components/api-cascader.vue @@ -0,0 +1,100 @@ + + + diff --git a/apps/web-antd/src/components/view/components/api-checkbox-group.vue b/apps/web-antd/src/components/view/components/api-checkbox-group.vue new file mode 100644 index 00000000..dbca93f9 --- /dev/null +++ b/apps/web-antd/src/components/view/components/api-checkbox-group.vue @@ -0,0 +1,6 @@ + + diff --git a/apps/web-antd/src/components/view/components/api-dict.vue b/apps/web-antd/src/components/view/components/api-dict.vue new file mode 100644 index 00000000..b994408e --- /dev/null +++ b/apps/web-antd/src/components/view/components/api-dict.vue @@ -0,0 +1,67 @@ + + + diff --git a/apps/web-antd/src/components/view/components/api-radio-group.vue b/apps/web-antd/src/components/view/components/api-radio-group.vue new file mode 100644 index 00000000..dbca93f9 --- /dev/null +++ b/apps/web-antd/src/components/view/components/api-radio-group.vue @@ -0,0 +1,6 @@ + + diff --git a/apps/web-antd/src/components/view/components/api-select.vue b/apps/web-antd/src/components/view/components/api-select.vue new file mode 100644 index 00000000..a526474f --- /dev/null +++ b/apps/web-antd/src/components/view/components/api-select.vue @@ -0,0 +1,155 @@ + + + diff --git a/apps/web-antd/src/components/view/components/api-tree-select.vue b/apps/web-antd/src/components/view/components/api-tree-select.vue new file mode 100644 index 00000000..77d72467 --- /dev/null +++ b/apps/web-antd/src/components/view/components/api-tree-select.vue @@ -0,0 +1,104 @@ + + + diff --git a/apps/web-antd/src/components/view/components/avatar.vue b/apps/web-antd/src/components/view/components/avatar.vue new file mode 100644 index 00000000..721a8cdf --- /dev/null +++ b/apps/web-antd/src/components/view/components/avatar.vue @@ -0,0 +1,14 @@ + + + diff --git a/apps/web-antd/src/components/view/components/icon-picker.vue b/apps/web-antd/src/components/view/components/icon-picker.vue new file mode 100644 index 00000000..dbeb70e8 --- /dev/null +++ b/apps/web-antd/src/components/view/components/icon-picker.vue @@ -0,0 +1,22 @@ + + + diff --git a/apps/web-antd/src/components/view/components/radio-group.vue b/apps/web-antd/src/components/view/components/radio-group.vue new file mode 100644 index 00000000..28d369f9 --- /dev/null +++ b/apps/web-antd/src/components/view/components/radio-group.vue @@ -0,0 +1,7 @@ + + + diff --git a/apps/web-antd/src/components/view/components/select.vue b/apps/web-antd/src/components/view/components/select.vue new file mode 100644 index 00000000..8724e4e7 --- /dev/null +++ b/apps/web-antd/src/components/view/components/select.vue @@ -0,0 +1,35 @@ + + + diff --git a/apps/web-antd/src/components/view/components/switch.vue b/apps/web-antd/src/components/view/components/switch.vue new file mode 100644 index 00000000..72df1e6f --- /dev/null +++ b/apps/web-antd/src/components/view/components/switch.vue @@ -0,0 +1,27 @@ + + diff --git a/apps/web-antd/src/components/view/components/upload.vue b/apps/web-antd/src/components/view/components/upload.vue new file mode 100644 index 00000000..cc2c6ae0 --- /dev/null +++ b/apps/web-antd/src/components/view/components/upload.vue @@ -0,0 +1,25 @@ + + + diff --git a/apps/web-antd/src/layouts/basic.vue b/apps/web-antd/src/layouts/basic.vue index 1481dc5a..0101a3db 100644 --- a/apps/web-antd/src/layouts/basic.vue +++ b/apps/web-antd/src/layouts/basic.vue @@ -128,9 +128,9 @@ watch( diff --git a/apps/web-antd/src/preferences.ts b/apps/web-antd/src/preferences.ts index 047533a6..8841f754 100644 --- a/apps/web-antd/src/preferences.ts +++ b/apps/web-antd/src/preferences.ts @@ -8,9 +8,22 @@ import { defineOverridesPreferences } from '@vben/preferences'; export const overridesPreferences = defineOverridesPreferences({ // overrides app: { + // 权限模式 frontend 默认前端控制 backend 后端控制 + accessMode: 'backend', name: import.meta.env.VITE_APP_TITLE, layout: 'sidebar-mixed-nav', + // 是否开启检查更新 + enableCheckUpdates: true, + // 检查更新的时间间隔,单位为分钟 + checkUpdatesInterval: 1, + enableRefreshToken: false, }, + // logo: { + // enable: true, + // source: + // // 'https://yanydy.oss-cn-hangzhou.aliyuncs.com/uploads/20241219/2b38e38414a2b9383b8643983e3f69d7.png', + // '/img/logo.png', + // }, sidebar: { width: 220, }, diff --git a/apps/web-antd/src/store/auth.ts b/apps/web-antd/src/store/auth.ts index bd496d1e..099a873e 100644 --- a/apps/web-antd/src/store/auth.ts +++ b/apps/web-antd/src/store/auth.ts @@ -29,15 +29,15 @@ export const useAuthStore = defineStore('auth', () => { params: Recordable, onSuccess?: () => Promise | void, ) { - // 异步处理用户登录操作并获取 accessToken + // 异步处理用户登录操作并获取 token let userInfo: null | UserInfo = null; try { loginLoading.value = true; - const { accessToken } = await loginApi(params); + const { token } = await loginApi(params); - // 如果成功获取到 accessToken - if (accessToken) { - accessStore.setAccessToken(accessToken); + // 如果成功获取到 token + if (token) { + accessStore.setAccessToken(token); // 获取用户信息并存储到 accessStore 中 const [fetchUserInfoResult, accessCodes] = await Promise.all([ diff --git a/apps/web-antd/src/util/address.ts b/apps/web-antd/src/util/address.ts new file mode 100644 index 00000000..310c1af8 --- /dev/null +++ b/apps/web-antd/src/util/address.ts @@ -0,0 +1,12054 @@ +export const addressOption = [ + { + value: 1, + label: '天津市', + pvalue: 0, + children: [ + { + value: 2347, + label: '和平区', + pvalue: 1, + }, + { + value: 2348, + label: '河东区', + pvalue: 1, + }, + { + value: 2349, + label: '河西区', + pvalue: 1, + }, + { + value: 2350, + label: '南开区', + pvalue: 1, + }, + { + value: 2351, + label: '河北区', + pvalue: 1, + }, + { + value: 2352, + label: '红桥区', + pvalue: 1, + }, + { + value: 2353, + label: '滨海新区', + pvalue: 1, + }, + { + value: 2354, + label: '东丽区', + pvalue: 1, + }, + { + value: 2355, + label: '西青区', + pvalue: 1, + }, + { + value: 2356, + label: '津南区', + pvalue: 1, + }, + { + value: 2373, + label: '北辰区', + pvalue: 1, + }, + { + value: 2374, + label: '武清区', + pvalue: 1, + }, + { + value: 2375, + label: '宝坻区', + pvalue: 1, + }, + { + value: 2376, + label: '宁河区', + pvalue: 1, + }, + { + value: 2377, + label: '静海区', + pvalue: 1, + }, + { + value: 2378, + label: '蓟州区', + pvalue: 1, + }, + ], + }, + { + value: 2, + label: '上海市', + pvalue: 0, + children: [ + { + value: 2357, + label: '黄浦区', + pvalue: 2, + }, + { + value: 2358, + label: '徐汇区', + pvalue: 2, + }, + { + value: 2359, + label: '长宁区', + pvalue: 2, + }, + { + value: 2360, + label: '静安区', + pvalue: 2, + }, + { + value: 2361, + label: '普陀区', + pvalue: 2, + }, + { + value: 2362, + label: '虹口区', + pvalue: 2, + }, + { + value: 2363, + label: '杨浦区', + pvalue: 2, + }, + { + value: 2364, + label: '浦东新区', + pvalue: 2, + }, + { + value: 2365, + label: '闵行区', + pvalue: 2, + }, + { + value: 2366, + label: '宝山区', + pvalue: 2, + }, + { + value: 2367, + label: '嘉定区', + pvalue: 2, + }, + { + value: 2368, + label: '金山区', + pvalue: 2, + }, + { + value: 2369, + label: '松江区', + pvalue: 2, + }, + { + value: 2370, + label: '青浦区', + pvalue: 2, + }, + { + value: 2371, + label: '奉贤区', + pvalue: 2, + }, + { + value: 2372, + label: '崇明区', + pvalue: 2, + }, + ], + }, + { + value: 3, + label: '重庆市', + pvalue: 0, + children: [ + { + value: 2395, + label: '万州区', + pvalue: 3, + }, + { + value: 2396, + label: '涪陵区', + pvalue: 3, + }, + { + value: 2397, + label: '渝中区', + pvalue: 3, + }, + { + value: 2398, + label: '大渡口区', + pvalue: 3, + }, + { + value: 2399, + label: '江北区', + pvalue: 3, + }, + { + value: 2400, + label: '沙坪坝区', + pvalue: 3, + }, + { + value: 2401, + label: '九龙坡区', + pvalue: 3, + }, + { + value: 2402, + label: '南岸区', + pvalue: 3, + }, + { + value: 2403, + label: '北碚区', + pvalue: 3, + }, + { + value: 2404, + label: '綦江区', + pvalue: 3, + }, + { + value: 2405, + label: '大足区', + pvalue: 3, + }, + { + value: 2406, + label: '渝北区', + pvalue: 3, + }, + { + value: 2407, + label: '巴南区', + pvalue: 3, + }, + { + value: 2408, + label: '黔江区', + pvalue: 3, + }, + { + value: 2409, + label: '长寿区', + pvalue: 3, + }, + { + value: 2410, + label: '江津区', + pvalue: 3, + }, + { + value: 2411, + label: '合川区', + pvalue: 3, + }, + { + value: 2412, + label: '永川区', + pvalue: 3, + }, + { + value: 2413, + label: '南川区', + pvalue: 3, + }, + { + value: 2414, + label: '璧山区', + pvalue: 3, + }, + { + value: 2415, + label: '铜梁区', + pvalue: 3, + }, + { + value: 2416, + label: '潼南区', + pvalue: 3, + }, + { + value: 2417, + label: '荣昌区', + pvalue: 3, + }, + { + value: 2418, + label: '开州区', + pvalue: 3, + }, + { + value: 2419, + label: '梁平区', + pvalue: 3, + }, + { + value: 2420, + label: '武隆区', + pvalue: 3, + }, + { + value: 2421, + label: '城口县', + pvalue: 3, + }, + { + value: 2422, + label: '丰都县', + pvalue: 3, + }, + { + value: 2423, + label: '垫江县', + pvalue: 3, + }, + { + value: 2424, + label: '忠县', + pvalue: 3, + }, + { + value: 2425, + label: '云阳县', + pvalue: 3, + }, + { + value: 2426, + label: '奉节县', + pvalue: 3, + }, + { + value: 2427, + label: '巫山县', + pvalue: 3, + }, + { + value: 2428, + label: '巫溪县', + pvalue: 3, + }, + { + value: 2429, + label: '石柱土家族自治县', + pvalue: 3, + }, + { + value: 2430, + label: '秀山土家族苗族自治县', + pvalue: 3, + }, + { + value: 2431, + label: '酉阳土家族苗族自治县', + pvalue: 3, + }, + { + value: 2432, + label: '彭水苗族土家族自治县', + pvalue: 3, + }, + ], + }, + { + value: 4, + label: '河北省', + pvalue: 0, + children: [ + { + value: 737, + label: '石家庄市', + pvalue: 4, + }, + { + value: 738, + label: '晋州市', + pvalue: 4, + }, + { + value: 739, + label: '行唐县', + pvalue: 4, + }, + { + value: 740, + label: '灵寿县', + pvalue: 4, + }, + { + value: 741, + label: '平山县', + pvalue: 4, + }, + { + value: 742, + label: '赞皇县', + pvalue: 4, + }, + { + value: 743, + label: '元氏县', + pvalue: 4, + }, + { + value: 744, + label: '高邑县', + pvalue: 4, + }, + { + value: 745, + label: '新乐市', + pvalue: 4, + }, + { + value: 746, + label: '赵县', + pvalue: 4, + }, + { + value: 747, + label: '藁城市', + pvalue: 4, + }, + { + value: 748, + label: '无极县', + pvalue: 4, + }, + { + value: 749, + label: '深泽县', + pvalue: 4, + }, + { + value: 750, + label: '辛集市', + pvalue: 4, + }, + { + value: 751, + label: '鹿泉市', + pvalue: 4, + }, + { + value: 752, + label: '栾城县', + pvalue: 4, + }, + { + value: 753, + label: '正定县', + pvalue: 4, + }, + { + value: 754, + label: '井陉县', + pvalue: 4, + }, + { + value: 755, + label: '唐山市', + pvalue: 4, + }, + { + value: 756, + label: '滦县', + pvalue: 4, + }, + { + value: 757, + label: '滦南县', + pvalue: 4, + }, + { + value: 758, + label: '乐亭县', + pvalue: 4, + }, + { + value: 759, + label: '迁安市', + pvalue: 4, + }, + { + value: 760, + label: '迁西县', + pvalue: 4, + }, + { + value: 761, + label: '遵化市', + pvalue: 4, + }, + { + value: 762, + label: '玉田县', + pvalue: 4, + }, + { + value: 763, + label: '唐海县', + pvalue: 4, + }, + { + value: 764, + label: '秦皇岛市', + pvalue: 4, + }, + { + value: 765, + label: '青龙县', + pvalue: 4, + }, + { + value: 766, + label: '昌黎县', + pvalue: 4, + }, + { + value: 767, + label: '抚宁县', + pvalue: 4, + }, + { + value: 768, + label: '卢龙县', + pvalue: 4, + }, + { + value: 769, + label: '邯郸市', + pvalue: 4, + }, + { + value: 770, + label: '邯郸县', + pvalue: 4, + }, + { + value: 771, + label: '大名县', + pvalue: 4, + }, + { + value: 772, + label: '魏县', + pvalue: 4, + }, + { + value: 773, + label: '曲周县', + pvalue: 4, + }, + { + value: 774, + label: '邱县', + pvalue: 4, + }, + { + value: 775, + label: '鸡泽县', + pvalue: 4, + }, + { + value: 776, + label: '肥乡县', + pvalue: 4, + }, + { + value: 777, + label: '广平县', + pvalue: 4, + }, + { + value: 778, + label: '成安县', + pvalue: 4, + }, + { + value: 779, + label: '临漳县', + pvalue: 4, + }, + { + value: 780, + label: '磁县', + pvalue: 4, + }, + { + value: 781, + label: '涉县', + pvalue: 4, + }, + { + value: 782, + label: '永年县', + pvalue: 4, + }, + { + value: 783, + label: '馆陶县', + pvalue: 4, + }, + { + value: 784, + label: '武安市', + pvalue: 4, + }, + { + value: 785, + label: '邢台市', + pvalue: 4, + }, + { + value: 786, + label: '邢台县', + pvalue: 4, + }, + { + value: 787, + label: '南宫市', + pvalue: 4, + }, + { + value: 788, + label: '沙河市', + pvalue: 4, + }, + { + value: 789, + label: '临城县', + pvalue: 4, + }, + { + value: 790, + label: '内邱县', + pvalue: 4, + }, + { + value: 791, + label: '柏乡县', + pvalue: 4, + }, + { + value: 792, + label: '隆尧县', + pvalue: 4, + }, + { + value: 793, + label: '任县', + pvalue: 4, + }, + { + value: 794, + label: '南和县', + pvalue: 4, + }, + { + value: 795, + label: '宁晋县', + pvalue: 4, + }, + { + value: 796, + label: '巨鹿县', + pvalue: 4, + }, + { + value: 797, + label: '新河县', + pvalue: 4, + }, + { + value: 798, + label: '广宗县', + pvalue: 4, + }, + { + value: 799, + label: '平乡县', + pvalue: 4, + }, + { + value: 800, + label: '威县', + pvalue: 4, + }, + { + value: 801, + label: '清河县', + pvalue: 4, + }, + { + value: 802, + label: '临西县', + pvalue: 4, + }, + { + value: 803, + label: '保定市', + pvalue: 4, + }, + { + value: 804, + label: '满城县', + pvalue: 4, + }, + { + value: 805, + label: '清苑县', + pvalue: 4, + }, + { + value: 806, + label: '定州市', + pvalue: 4, + }, + { + value: 807, + label: '涿州市', + pvalue: 4, + }, + { + value: 808, + label: '易县', + pvalue: 4, + }, + { + value: 809, + label: '徐水县', + pvalue: 4, + }, + { + value: 810, + label: '涞源县', + pvalue: 4, + }, + { + value: 811, + label: '定兴县', + pvalue: 4, + }, + { + value: 812, + label: '顺平县', + pvalue: 4, + }, + { + value: 813, + label: '唐县', + pvalue: 4, + }, + { + value: 814, + label: '望都县', + pvalue: 4, + }, + { + value: 815, + label: '涞水县', + pvalue: 4, + }, + { + value: 816, + label: '高阳县', + pvalue: 4, + }, + { + value: 817, + label: '安新县', + pvalue: 4, + }, + { + value: 818, + label: '雄县', + pvalue: 4, + }, + { + value: 819, + label: '容城县', + pvalue: 4, + }, + { + value: 820, + label: '高碑店市', + pvalue: 4, + }, + { + value: 821, + label: '曲阳县', + pvalue: 4, + }, + { + value: 822, + label: '阜平县', + pvalue: 4, + }, + { + value: 823, + label: '安国市', + pvalue: 4, + }, + { + value: 824, + label: '博野县', + pvalue: 4, + }, + { + value: 825, + label: '蠡县', + pvalue: 4, + }, + { + value: 826, + label: '张家口市', + pvalue: 4, + }, + { + value: 827, + label: '宣化县', + pvalue: 4, + }, + { + value: 828, + label: '张北县', + pvalue: 4, + }, + { + value: 829, + label: '康保县', + pvalue: 4, + }, + { + value: 830, + label: '沽源县', + pvalue: 4, + }, + { + value: 831, + label: '尚义县', + pvalue: 4, + }, + { + value: 832, + label: '蔚县', + pvalue: 4, + }, + { + value: 833, + label: '阳原县', + pvalue: 4, + }, + { + value: 834, + label: '怀安县', + pvalue: 4, + }, + { + value: 835, + label: '万全县', + pvalue: 4, + }, + { + value: 836, + label: '怀来县', + pvalue: 4, + }, + { + value: 837, + label: '涿鹿县', + pvalue: 4, + }, + { + value: 838, + label: '赤城县', + pvalue: 4, + }, + { + value: 839, + label: '崇礼县', + pvalue: 4, + }, + { + value: 840, + label: '承德市', + pvalue: 4, + }, + { + value: 841, + label: '承德县', + pvalue: 4, + }, + { + value: 842, + label: '宽城县', + pvalue: 4, + }, + { + value: 843, + label: '兴隆县', + pvalue: 4, + }, + { + value: 844, + label: '平泉县', + pvalue: 4, + }, + { + value: 845, + label: '滦平县', + pvalue: 4, + }, + { + value: 846, + label: '丰宁县', + pvalue: 4, + }, + { + value: 847, + label: '隆化县', + pvalue: 4, + }, + { + value: 848, + label: '围场县', + pvalue: 4, + }, + { + value: 849, + label: '沧州市', + pvalue: 4, + }, + { + value: 850, + label: '沧县', + pvalue: 4, + }, + { + value: 851, + label: '青县', + pvalue: 4, + }, + { + value: 852, + label: '泊头市', + pvalue: 4, + }, + { + value: 853, + label: '任丘市', + pvalue: 4, + }, + { + value: 854, + label: '河间市', + pvalue: 4, + }, + { + value: 855, + label: '肃宁县', + pvalue: 4, + }, + { + value: 856, + label: '献县', + pvalue: 4, + }, + { + value: 857, + label: '吴桥县', + pvalue: 4, + }, + { + value: 858, + label: '东光县', + pvalue: 4, + }, + { + value: 859, + label: '南皮县', + pvalue: 4, + }, + { + value: 860, + label: '盐山县', + pvalue: 4, + }, + { + value: 861, + label: '黄骅市', + pvalue: 4, + }, + { + value: 862, + label: '孟村县', + pvalue: 4, + }, + { + value: 863, + label: '海兴县', + pvalue: 4, + }, + { + value: 864, + label: '廊坊市', + pvalue: 4, + }, + { + value: 865, + label: '三河市', + pvalue: 4, + }, + { + value: 866, + label: '固安县', + pvalue: 4, + }, + { + value: 867, + label: '永清县', + pvalue: 4, + }, + { + value: 868, + label: '香河县', + pvalue: 4, + }, + { + value: 869, + label: '大城县', + pvalue: 4, + }, + { + value: 870, + label: '文安县', + pvalue: 4, + }, + { + value: 871, + label: '霸州市', + pvalue: 4, + }, + { + value: 872, + label: '大厂县', + pvalue: 4, + }, + { + value: 873, + label: '衡水市', + pvalue: 4, + }, + { + value: 874, + label: '冀州市', + pvalue: 4, + }, + { + value: 875, + label: '枣强县', + pvalue: 4, + }, + { + value: 876, + label: '武邑县', + pvalue: 4, + }, + { + value: 877, + label: '深州市', + pvalue: 4, + }, + { + value: 878, + label: '武强县', + pvalue: 4, + }, + { + value: 879, + label: '饶阳县', + pvalue: 4, + }, + { + value: 880, + label: '安平县', + pvalue: 4, + }, + { + value: 881, + label: '故城县', + pvalue: 4, + }, + { + value: 882, + label: '景县', + pvalue: 4, + }, + { + value: 883, + label: '阜城县', + pvalue: 4, + }, + ], + }, + { + value: 5, + label: '河南省', + pvalue: 0, + children: [ + { + value: 1439, + label: '郑州市', + pvalue: 5, + }, + { + value: 1440, + label: '济源市', + pvalue: 5, + }, + { + value: 1441, + label: '新密市', + pvalue: 5, + }, + { + value: 1442, + label: '登封市', + pvalue: 5, + }, + { + value: 1443, + label: '巩义市', + pvalue: 5, + }, + { + value: 1444, + label: '新郑市', + pvalue: 5, + }, + { + value: 1445, + label: '中牟县', + pvalue: 5, + }, + { + value: 1446, + label: '荥阳市', + pvalue: 5, + }, + { + value: 1447, + label: '开封市', + pvalue: 5, + }, + { + value: 1448, + label: '杞县', + pvalue: 5, + }, + { + value: 1449, + label: '通许县', + pvalue: 5, + }, + { + value: 1450, + label: '尉氏县', + pvalue: 5, + }, + { + value: 1451, + label: '开封县', + pvalue: 5, + }, + { + value: 1452, + label: '兰考县', + pvalue: 5, + }, + { + value: 1453, + label: '洛阳市', + pvalue: 5, + }, + { + value: 1454, + label: '偃师市', + pvalue: 5, + }, + { + value: 1455, + label: '孟津县', + pvalue: 5, + }, + { + value: 1456, + label: '新安县', + pvalue: 5, + }, + { + value: 1457, + label: '栾川县', + pvalue: 5, + }, + { + value: 1458, + label: '嵩县', + pvalue: 5, + }, + { + value: 1459, + label: '汝阳县', + pvalue: 5, + }, + { + value: 1460, + label: '宜阳县', + pvalue: 5, + }, + { + value: 1461, + label: '洛宁县', + pvalue: 5, + }, + { + value: 1462, + label: '伊川县', + pvalue: 5, + }, + { + value: 1463, + label: '平顶山市', + pvalue: 5, + }, + { + value: 1464, + label: '宝丰县', + pvalue: 5, + }, + { + value: 1465, + label: '叶县', + pvalue: 5, + }, + { + value: 1466, + label: '鲁山县', + pvalue: 5, + }, + { + value: 1467, + label: '郏县', + pvalue: 5, + }, + { + value: 1468, + label: '襄城县', + pvalue: 5, + }, + { + value: 1469, + label: '汝州市', + pvalue: 5, + }, + { + value: 1470, + label: '安阳市', + pvalue: 5, + }, + { + value: 1471, + label: '林州市', + pvalue: 5, + }, + { + value: 1472, + label: '安阳县', + pvalue: 5, + }, + { + value: 1473, + label: '汤阴县', + pvalue: 5, + }, + { + value: 1474, + label: '滑县', + pvalue: 5, + }, + { + value: 1475, + label: '内黄县', + pvalue: 5, + }, + { + value: 1476, + label: '鹤壁市', + pvalue: 5, + }, + { + value: 1477, + label: '浚县', + pvalue: 5, + }, + { + value: 1478, + label: '淇县', + pvalue: 5, + }, + { + value: 1479, + label: '新乡市', + pvalue: 5, + }, + { + value: 1480, + label: '新乡县', + pvalue: 5, + }, + { + value: 1481, + label: '获嘉县', + pvalue: 5, + }, + { + value: 1482, + label: '原阳县', + pvalue: 5, + }, + { + value: 1483, + label: '延津县', + pvalue: 5, + }, + { + value: 1484, + label: '封丘县', + pvalue: 5, + }, + { + value: 1485, + label: '长垣县', + pvalue: 5, + }, + { + value: 1486, + label: '卫辉市', + pvalue: 5, + }, + { + value: 1487, + label: '辉县市', + pvalue: 5, + }, + { + value: 1488, + label: '焦作市', + pvalue: 5, + }, + { + value: 1489, + label: '修武县', + pvalue: 5, + }, + { + value: 1490, + label: '博爱县', + pvalue: 5, + }, + { + value: 1491, + label: '武陟县', + pvalue: 5, + }, + { + value: 1492, + label: '沁阳市', + pvalue: 5, + }, + { + value: 1493, + label: '温县', + pvalue: 5, + }, + { + value: 1494, + label: '孟州市', + pvalue: 5, + }, + { + value: 1495, + label: '濮阳市', + pvalue: 5, + }, + { + value: 1496, + label: '清丰县', + pvalue: 5, + }, + { + value: 1497, + label: '南乐县', + pvalue: 5, + }, + { + value: 1498, + label: '范县', + pvalue: 5, + }, + { + value: 1499, + label: '台前县', + pvalue: 5, + }, + { + value: 1500, + label: '濮阳县', + pvalue: 5, + }, + { + value: 1501, + label: '许昌市', + pvalue: 5, + }, + { + value: 1502, + label: '长葛市', + pvalue: 5, + }, + { + value: 1503, + label: '许昌县', + pvalue: 5, + }, + { + value: 1504, + label: '鄢陵县', + pvalue: 5, + }, + { + value: 1505, + label: '禹州市', + pvalue: 5, + }, + { + value: 1506, + label: '漯河市', + pvalue: 5, + }, + { + value: 1507, + label: '舞阳县', + pvalue: 5, + }, + { + value: 1508, + label: '临颍县', + pvalue: 5, + }, + { + value: 1509, + label: '郾城县', + pvalue: 5, + }, + { + value: 1510, + label: '舞钢市', + pvalue: 5, + }, + { + value: 1511, + label: '三门峡市', + pvalue: 5, + }, + { + value: 1512, + label: '渑池县', + pvalue: 5, + }, + { + value: 1513, + label: '陕县', + pvalue: 5, + }, + { + value: 1514, + label: '灵宝市', + pvalue: 5, + }, + { + value: 1515, + label: '卢氏县', + pvalue: 5, + }, + { + value: 1516, + label: '义马市', + pvalue: 5, + }, + { + value: 1517, + label: '商丘市', + pvalue: 5, + }, + { + value: 1518, + label: '虞城县', + pvalue: 5, + }, + { + value: 1519, + label: '民权县', + pvalue: 5, + }, + { + value: 1520, + label: '宁陵县', + pvalue: 5, + }, + { + value: 1521, + label: '睢县', + pvalue: 5, + }, + { + value: 1522, + label: '夏邑县', + pvalue: 5, + }, + { + value: 1523, + label: '柘城县', + pvalue: 5, + }, + { + value: 1524, + label: '永城市', + pvalue: 5, + }, + { + value: 1525, + label: '周口市', + pvalue: 5, + }, + { + value: 1526, + label: '扶沟县', + pvalue: 5, + }, + { + value: 1527, + label: '西华县', + pvalue: 5, + }, + { + value: 1528, + label: '商水县', + pvalue: 5, + }, + { + value: 1529, + label: '太康县', + pvalue: 5, + }, + { + value: 1530, + label: '鹿邑县', + pvalue: 5, + }, + { + value: 1531, + label: '郸城县', + pvalue: 5, + }, + { + value: 1532, + label: '淮阳县', + pvalue: 5, + }, + { + value: 1533, + label: '沈丘县', + pvalue: 5, + }, + { + value: 1534, + label: '项城市', + pvalue: 5, + }, + { + value: 1535, + label: '驻马店市', + pvalue: 5, + }, + { + value: 1536, + label: '确山县', + pvalue: 5, + }, + { + value: 1537, + label: '泌阳县', + pvalue: 5, + }, + { + value: 1538, + label: '遂平县', + pvalue: 5, + }, + { + value: 1539, + label: '西平县', + pvalue: 5, + }, + { + value: 1540, + label: '上蔡县', + pvalue: 5, + }, + { + value: 1541, + label: '汝南县', + pvalue: 5, + }, + { + value: 1542, + label: '平舆县', + pvalue: 5, + }, + { + value: 1543, + label: '新蔡县', + pvalue: 5, + }, + { + value: 1544, + label: '正阳县', + pvalue: 5, + }, + { + value: 1545, + label: '南阳市', + pvalue: 5, + }, + { + value: 1546, + label: '邓州市', + pvalue: 5, + }, + { + value: 1547, + label: '南召县', + pvalue: 5, + }, + { + value: 1548, + label: '方城县', + pvalue: 5, + }, + { + value: 1549, + label: '西峡县', + pvalue: 5, + }, + { + value: 1550, + label: '镇平县', + pvalue: 5, + }, + { + value: 1551, + label: '内乡县', + pvalue: 5, + }, + { + value: 1552, + label: '淅川县', + pvalue: 5, + }, + { + value: 1553, + label: '社旗县', + pvalue: 5, + }, + { + value: 1554, + label: '唐河县', + pvalue: 5, + }, + { + value: 1555, + label: '新野县', + pvalue: 5, + }, + { + value: 1556, + label: '桐柏县', + pvalue: 5, + }, + { + value: 1557, + label: '信阳市', + pvalue: 5, + }, + { + value: 1558, + label: '息县', + pvalue: 5, + }, + { + value: 1559, + label: '淮滨县', + pvalue: 5, + }, + { + value: 1560, + label: '潢川县', + pvalue: 5, + }, + { + value: 1561, + label: '光山县', + pvalue: 5, + }, + { + value: 1562, + label: '固始县', + pvalue: 5, + }, + { + value: 1563, + label: '商城县', + pvalue: 5, + }, + { + value: 1564, + label: '罗山县', + pvalue: 5, + }, + { + value: 1565, + label: '新县', + pvalue: 5, + }, + ], + }, + { + value: 6, + label: '云南省', + pvalue: 0, + children: [ + { + value: 1846, + label: '昆明市', + pvalue: 6, + }, + { + value: 1847, + label: '寻甸县', + pvalue: 6, + }, + { + value: 1848, + label: '禄劝县', + pvalue: 6, + }, + { + value: 1849, + label: '嵩明县', + pvalue: 6, + }, + { + value: 1850, + label: '石林县', + pvalue: 6, + }, + { + value: 1851, + label: '宜良县', + pvalue: 6, + }, + { + value: 1852, + label: '富民县', + pvalue: 6, + }, + { + value: 1853, + label: '安宁市', + pvalue: 6, + }, + { + value: 1854, + label: '晋宁县', + pvalue: 6, + }, + { + value: 1855, + label: '呈贡县', + pvalue: 6, + }, + { + value: 1856, + label: '昭通市', + pvalue: 6, + }, + { + value: 1857, + label: '鲁甸县', + pvalue: 6, + }, + { + value: 1858, + label: '巧家县', + pvalue: 6, + }, + { + value: 1859, + label: '盐津县', + pvalue: 6, + }, + { + value: 1860, + label: '大关县', + pvalue: 6, + }, + { + value: 1861, + label: '永善县', + pvalue: 6, + }, + { + value: 1862, + label: '绥江县', + pvalue: 6, + }, + { + value: 1863, + label: '镇雄县', + pvalue: 6, + }, + { + value: 1864, + label: '彝良县', + pvalue: 6, + }, + { + value: 1865, + label: '威信县', + pvalue: 6, + }, + { + value: 1866, + label: '水富县', + pvalue: 6, + }, + { + value: 1867, + label: '曲靖市', + pvalue: 6, + }, + { + value: 1868, + label: '马龙县', + pvalue: 6, + }, + { + value: 1869, + label: '宣威市', + pvalue: 6, + }, + { + value: 1870, + label: '富源县', + pvalue: 6, + }, + { + value: 1871, + label: '罗平县', + pvalue: 6, + }, + { + value: 1872, + label: '师宗县', + pvalue: 6, + }, + { + value: 1873, + label: '陆良县', + pvalue: 6, + }, + { + value: 1874, + label: '会泽县', + pvalue: 6, + }, + { + value: 1875, + label: '沾益县', + pvalue: 6, + }, + { + value: 1876, + label: '楚雄市', + pvalue: 6, + }, + { + value: 1877, + label: '双柏县', + pvalue: 6, + }, + { + value: 1878, + label: '牟定县', + pvalue: 6, + }, + { + value: 1879, + label: '南华县', + pvalue: 6, + }, + { + value: 1880, + label: '姚安县', + pvalue: 6, + }, + { + value: 1881, + label: '大姚县', + pvalue: 6, + }, + { + value: 1882, + label: '永仁县', + pvalue: 6, + }, + { + value: 1883, + label: '元谋县', + pvalue: 6, + }, + { + value: 1884, + label: '武定县', + pvalue: 6, + }, + { + value: 1885, + label: '禄丰县', + pvalue: 6, + }, + { + value: 1886, + label: '玉溪市', + pvalue: 6, + }, + { + value: 1887, + label: '江川县', + pvalue: 6, + }, + { + value: 1888, + label: '澄江县', + pvalue: 6, + }, + { + value: 1889, + label: '通海县', + pvalue: 6, + }, + { + value: 1890, + label: '华宁县', + pvalue: 6, + }, + { + value: 1891, + label: '易门县', + pvalue: 6, + }, + { + value: 1892, + label: '峨山县', + pvalue: 6, + }, + { + value: 1893, + label: '新平县', + pvalue: 6, + }, + { + value: 1894, + label: '元江县', + pvalue: 6, + }, + { + value: 1895, + label: '个旧市', + pvalue: 6, + }, + { + value: 1896, + label: '开远市', + pvalue: 6, + }, + { + value: 1897, + label: '蒙自县', + pvalue: 6, + }, + { + value: 1898, + label: '屏边县', + pvalue: 6, + }, + { + value: 1899, + label: '建水县', + pvalue: 6, + }, + { + value: 1900, + label: '石屏县', + pvalue: 6, + }, + { + value: 1901, + label: '弥勒县', + pvalue: 6, + }, + { + value: 1902, + label: '泸西县', + pvalue: 6, + }, + { + value: 1903, + label: '元阳县', + pvalue: 6, + }, + { + value: 1904, + label: '红河县', + pvalue: 6, + }, + { + value: 1905, + label: '金平县', + pvalue: 6, + }, + { + value: 1906, + label: '绿春县', + pvalue: 6, + }, + { + value: 1907, + label: '河口县', + pvalue: 6, + }, + { + value: 1908, + label: '文山县', + pvalue: 6, + }, + { + value: 1909, + label: '砚山县', + pvalue: 6, + }, + { + value: 1910, + label: '西畴县', + pvalue: 6, + }, + { + value: 1911, + label: '麻栗坡县', + pvalue: 6, + }, + { + value: 1912, + label: '马关县', + pvalue: 6, + }, + { + value: 1913, + label: '邱北县', + pvalue: 6, + }, + { + value: 1914, + label: '广南县', + pvalue: 6, + }, + { + value: 1915, + label: '富宁县', + pvalue: 6, + }, + { + value: 1916, + label: '思茅市', + pvalue: 6, + }, + { + value: 1917, + label: '普洱县', + pvalue: 6, + }, + { + value: 1918, + label: '墨江县', + pvalue: 6, + }, + { + value: 1919, + label: '景东县', + pvalue: 6, + }, + { + value: 1920, + label: '景谷县', + pvalue: 6, + }, + { + value: 1921, + label: '镇沅县', + pvalue: 6, + }, + { + value: 1922, + label: '江城县', + pvalue: 6, + }, + { + value: 1923, + label: '孟连县', + pvalue: 6, + }, + { + value: 1924, + label: '澜沧县', + pvalue: 6, + }, + { + value: 1925, + label: '西盟县', + pvalue: 6, + }, + { + value: 1926, + label: '景洪市', + pvalue: 6, + }, + { + value: 1927, + label: '勐海县', + pvalue: 6, + }, + { + value: 1928, + label: '勐腊县', + pvalue: 6, + }, + { + value: 1929, + label: '大理市', + pvalue: 6, + }, + { + value: 1930, + label: '漾濞县', + pvalue: 6, + }, + { + value: 1931, + label: '祥云县', + pvalue: 6, + }, + { + value: 1932, + label: '宾川县', + pvalue: 6, + }, + { + value: 1933, + label: '弥渡县', + pvalue: 6, + }, + { + value: 1934, + label: '南涧县', + pvalue: 6, + }, + { + value: 1935, + label: '巍山县', + pvalue: 6, + }, + { + value: 1936, + label: '永平县', + pvalue: 6, + }, + { + value: 1937, + label: '云龙县', + pvalue: 6, + }, + { + value: 1938, + label: '洱源县', + pvalue: 6, + }, + { + value: 1939, + label: '剑川县', + pvalue: 6, + }, + { + value: 1940, + label: '鹤庆县', + pvalue: 6, + }, + { + value: 1941, + label: '保山市', + pvalue: 6, + }, + { + value: 1942, + label: '施甸县', + pvalue: 6, + }, + { + value: 1943, + label: '腾冲县', + pvalue: 6, + }, + { + value: 1944, + label: '龙陵县', + pvalue: 6, + }, + { + value: 1945, + label: '昌宁县', + pvalue: 6, + }, + { + value: 1946, + label: '潞西市', + pvalue: 6, + }, + { + value: 1947, + label: '梁河县', + pvalue: 6, + }, + { + value: 1948, + label: '盈江县', + pvalue: 6, + }, + { + value: 1949, + label: '陇川县', + pvalue: 6, + }, + { + value: 1950, + label: '瑞丽市', + pvalue: 6, + }, + { + value: 1951, + label: '丽江市', + pvalue: 6, + }, + { + value: 1952, + label: '永胜县', + pvalue: 6, + }, + { + value: 1953, + label: '华坪县', + pvalue: 6, + }, + { + value: 1954, + label: '宁蒗县', + pvalue: 6, + }, + { + value: 1955, + label: '泸水县', + pvalue: 6, + }, + { + value: 1956, + label: '福贡县', + pvalue: 6, + }, + { + value: 1957, + label: '贡山县', + pvalue: 6, + }, + { + value: 1958, + label: '兰坪县', + pvalue: 6, + }, + { + value: 1959, + label: '香格里拉县', + pvalue: 6, + }, + { + value: 1960, + label: '德钦县', + pvalue: 6, + }, + { + value: 1961, + label: '维西县', + pvalue: 6, + }, + { + value: 1962, + label: '临沧市', + pvalue: 6, + }, + { + value: 1963, + label: '凤庆县', + pvalue: 6, + }, + { + value: 1964, + label: '云县', + pvalue: 6, + }, + { + value: 1965, + label: '永德县', + pvalue: 6, + }, + { + value: 1966, + label: '镇康县', + pvalue: 6, + }, + { + value: 1967, + label: '双江县', + pvalue: 6, + }, + { + value: 1968, + label: '耿马县', + pvalue: 6, + }, + { + value: 1969, + label: '沧源县', + pvalue: 6, + }, + ], + }, + { + value: 7, + label: '辽宁省', + pvalue: 0, + children: [ + { + value: 35, + label: '沈阳市', + pvalue: 7, + }, + { + value: 36, + label: '东城区', + pvalue: 7, + }, + { + value: 37, + label: '康平县', + pvalue: 7, + }, + { + value: 38, + label: '辽中县', + pvalue: 7, + }, + { + value: 39, + label: '新民市', + pvalue: 7, + }, + { + value: 40, + label: '大连市', + pvalue: 7, + }, + { + value: 41, + label: '普兰店市', + pvalue: 7, + }, + { + value: 42, + label: '庄河市', + pvalue: 7, + }, + { + value: 43, + label: '瓦房店市', + pvalue: 7, + }, + { + value: 44, + label: '长海县', + pvalue: 7, + }, + { + value: 45, + label: '鞍山市', + pvalue: 7, + }, + { + value: 46, + label: '台安县', + pvalue: 7, + }, + { + value: 47, + label: '海城市', + pvalue: 7, + }, + { + value: 48, + label: '抚顺市', + pvalue: 7, + }, + { + value: 49, + label: '抚顺县', + pvalue: 7, + }, + { + value: 50, + label: '新宾县', + pvalue: 7, + }, + { + value: 51, + label: '喀左县', + pvalue: 7, + }, + { + value: 52, + label: '本溪市', + pvalue: 7, + }, + { + value: 53, + label: '本溪县', + pvalue: 7, + }, + { + value: 54, + label: '桓仁县', + pvalue: 7, + }, + { + value: 55, + label: '丹东市', + pvalue: 7, + }, + { + value: 56, + label: '凤城市', + pvalue: 7, + }, + { + value: 57, + label: '大石桥市', + pvalue: 7, + }, + { + value: 58, + label: '东港市', + pvalue: 7, + }, + { + value: 59, + label: '宽甸县', + pvalue: 7, + }, + { + value: 60, + label: '岫岩县', + pvalue: 7, + }, + { + value: 61, + label: '锦州市', + pvalue: 7, + }, + { + value: 62, + label: '绥中县', + pvalue: 7, + }, + { + value: 63, + label: '凌海市', + pvalue: 7, + }, + { + value: 64, + label: '北宁市', + pvalue: 7, + }, + { + value: 65, + label: '黑山县', + pvalue: 7, + }, + { + value: 66, + label: '义县', + pvalue: 7, + }, + { + value: 67, + label: '葫芦岛市', + pvalue: 7, + }, + { + value: 68, + label: '兴城市', + pvalue: 7, + }, + { + value: 69, + label: '营口市', + pvalue: 7, + }, + { + value: 70, + label: '盖州市', + pvalue: 7, + }, + { + value: 71, + label: '阜新市', + pvalue: 7, + }, + { + value: 72, + label: '阜新县', + pvalue: 7, + }, + { + value: 73, + label: '彰武县', + pvalue: 7, + }, + { + value: 74, + label: '辽阳市', + pvalue: 7, + }, + { + value: 75, + label: '辽阳县', + pvalue: 7, + }, + { + value: 76, + label: '灯塔市', + pvalue: 7, + }, + { + value: 77, + label: '盘锦市', + pvalue: 7, + }, + { + value: 78, + label: '大洼县', + pvalue: 7, + }, + { + value: 79, + label: '盘山县', + pvalue: 7, + }, + { + value: 80, + label: '铁岭市', + pvalue: 7, + }, + { + value: 81, + label: '西丰县', + pvalue: 7, + }, + { + value: 82, + label: '昌图县', + pvalue: 7, + }, + { + value: 83, + label: '调兵山市', + pvalue: 7, + }, + { + value: 84, + label: '开原市', + pvalue: 7, + }, + { + value: 85, + label: '朝阳市', + pvalue: 7, + }, + { + value: 86, + label: '建平县', + pvalue: 7, + }, + { + value: 87, + label: '凌源市', + pvalue: 7, + }, + { + value: 88, + label: '清原县', + pvalue: 7, + }, + { + value: 89, + label: '建昌县', + pvalue: 7, + }, + { + value: 90, + label: '北票市', + pvalue: 7, + }, + ], + }, + { + value: 8, + label: '黑龙江省', + pvalue: 0, + children: [ + { + value: 1078, + label: '哈尔滨市', + pvalue: 8, + }, + { + value: 1079, + label: '依兰县', + pvalue: 8, + }, + { + value: 1080, + label: '延寿县', + pvalue: 8, + }, + { + value: 1081, + label: '方正县', + pvalue: 8, + }, + { + value: 1082, + label: '通河县', + pvalue: 8, + }, + { + value: 1083, + label: '木兰县', + pvalue: 8, + }, + { + value: 1084, + label: '巴彦县', + pvalue: 8, + }, + { + value: 1085, + label: '五常市', + pvalue: 8, + }, + { + value: 1086, + label: '宾县', + pvalue: 8, + }, + { + value: 1087, + label: '尚志市', + pvalue: 8, + }, + { + value: 1088, + label: '双城市', + pvalue: 8, + }, + { + value: 1089, + label: '阿城市', + pvalue: 8, + }, + { + value: 1090, + label: '呼兰县', + pvalue: 8, + }, + { + value: 1091, + label: '齐齐哈尔市', + pvalue: 8, + }, + { + value: 1092, + label: '龙江县', + pvalue: 8, + }, + { + value: 1093, + label: '讷河市', + pvalue: 8, + }, + { + value: 1094, + label: '依安县', + pvalue: 8, + }, + { + value: 1095, + label: '泰来县', + pvalue: 8, + }, + { + value: 1096, + label: '甘南县', + pvalue: 8, + }, + { + value: 1097, + label: '杜蒙县', + pvalue: 8, + }, + { + value: 1098, + label: '富裕县', + pvalue: 8, + }, + { + value: 1099, + label: '林甸县', + pvalue: 8, + }, + { + value: 1100, + label: '克山县', + pvalue: 8, + }, + { + value: 1101, + label: '大庆市', + pvalue: 8, + }, + { + value: 1102, + label: '克东县', + pvalue: 8, + }, + { + value: 1103, + label: '拜泉县', + pvalue: 8, + }, + { + value: 1104, + label: '鸡西市', + pvalue: 8, + }, + { + value: 1105, + label: '鸡东县', + pvalue: 8, + }, + { + value: 1106, + label: '鹤岗市', + pvalue: 8, + }, + { + value: 1107, + label: '萝北县', + pvalue: 8, + }, + { + value: 1108, + label: '绥滨县', + pvalue: 8, + }, + { + value: 1109, + label: '双鸭山市', + pvalue: 8, + }, + { + value: 1110, + label: '集贤县', + pvalue: 8, + }, + { + value: 1111, + label: '佳木斯市', + pvalue: 8, + }, + { + value: 1112, + label: '伊春市', + pvalue: 8, + }, + { + value: 1113, + label: '嘉荫县', + pvalue: 8, + }, + { + value: 1114, + label: '铁力市', + pvalue: 8, + }, + { + value: 1115, + label: '牡丹江市', + pvalue: 8, + }, + { + value: 1116, + label: '桦南县', + pvalue: 8, + }, + { + value: 1117, + label: '桦川县', + pvalue: 8, + }, + { + value: 1118, + label: '宝清县', + pvalue: 8, + }, + { + value: 1119, + label: '汤原县', + pvalue: 8, + }, + { + value: 1120, + label: '饶河县', + pvalue: 8, + }, + { + value: 1121, + label: '抚远县', + pvalue: 8, + }, + { + value: 1122, + label: '友谊县', + pvalue: 8, + }, + { + value: 1123, + label: '同江市', + pvalue: 8, + }, + { + value: 1124, + label: '富锦市', + pvalue: 8, + }, + { + value: 1125, + label: '七台河市', + pvalue: 8, + }, + { + value: 1126, + label: '勃利县', + pvalue: 8, + }, + { + value: 1127, + label: '宁安市', + pvalue: 8, + }, + { + value: 1128, + label: '海林市', + pvalue: 8, + }, + { + value: 1129, + label: '穆棱市', + pvalue: 8, + }, + { + value: 1130, + label: '东宁县', + pvalue: 8, + }, + { + value: 1131, + label: '林口县', + pvalue: 8, + }, + { + value: 1132, + label: '虎林市', + pvalue: 8, + }, + { + value: 1133, + label: '绥芬河市', + pvalue: 8, + }, + { + value: 1134, + label: '密山市', + pvalue: 8, + }, + { + value: 1135, + label: '绥化市', + pvalue: 8, + }, + { + value: 1136, + label: '安达市', + pvalue: 8, + }, + { + value: 1137, + label: '肇东市', + pvalue: 8, + }, + { + value: 1138, + label: '海伦市', + pvalue: 8, + }, + { + value: 1139, + label: '望奎县', + pvalue: 8, + }, + { + value: 1140, + label: '兰西县', + pvalue: 8, + }, + { + value: 1141, + label: '青冈县', + pvalue: 8, + }, + { + value: 1142, + label: '肇源县', + pvalue: 8, + }, + { + value: 1143, + label: '肇州县', + pvalue: 8, + }, + { + value: 1144, + label: '庆安县', + pvalue: 8, + }, + { + value: 1145, + label: '明水县', + pvalue: 8, + }, + { + value: 1146, + label: '绥棱县', + pvalue: 8, + }, + { + value: 1147, + label: '黑河市', + pvalue: 8, + }, + { + value: 1148, + label: '北安市', + pvalue: 8, + }, + { + value: 1149, + label: '五大连池市', + pvalue: 8, + }, + { + value: 1150, + label: '嫩江县', + pvalue: 8, + }, + { + value: 1151, + label: '逊克县', + pvalue: 8, + }, + { + value: 1152, + label: '孙吴县', + pvalue: 8, + }, + { + value: 1153, + label: '大兴安岭地区', + pvalue: 8, + }, + { + value: 1154, + label: '呼玛县', + pvalue: 8, + }, + { + value: 1155, + label: '塔河县', + pvalue: 8, + }, + { + value: 1156, + label: '漠河县', + pvalue: 8, + }, + ], + }, + { + value: 9, + label: '湖南省', + pvalue: 0, + children: [ + { + value: 1566, + label: '长沙市', + pvalue: 9, + }, + { + value: 1567, + label: '宁乡县', + pvalue: 9, + }, + { + value: 1568, + label: '浏阳市', + pvalue: 9, + }, + { + value: 1569, + label: '望城县', + pvalue: 9, + }, + { + value: 1570, + label: '株州市', + pvalue: 9, + }, + { + value: 1571, + label: '株洲县', + pvalue: 9, + }, + { + value: 1572, + label: '攸县', + pvalue: 9, + }, + { + value: 1573, + label: '茶陵县', + pvalue: 9, + }, + { + value: 1574, + label: '醴陵市', + pvalue: 9, + }, + { + value: 1575, + label: '炎陵县', + pvalue: 9, + }, + { + value: 1576, + label: '湘潭市', + pvalue: 9, + }, + { + value: 1577, + label: '湘乡市', + pvalue: 9, + }, + { + value: 1578, + label: '韶山市', + pvalue: 9, + }, + { + value: 1579, + label: '衡阳市', + pvalue: 9, + }, + { + value: 1580, + label: '衡阳县', + pvalue: 9, + }, + { + value: 1581, + label: '衡南县', + pvalue: 9, + }, + { + value: 1582, + label: '衡山县', + pvalue: 9, + }, + { + value: 1583, + label: '衡东县', + pvalue: 9, + }, + { + value: 1584, + label: '常宁市', + pvalue: 9, + }, + { + value: 1585, + label: '祁东县', + pvalue: 9, + }, + { + value: 1586, + label: '耒阳市', + pvalue: 9, + }, + { + value: 1587, + label: '邵阳市', + pvalue: 9, + }, + { + value: 1588, + label: '邵东县', + pvalue: 9, + }, + { + value: 1589, + label: '新邵县', + pvalue: 9, + }, + { + value: 1590, + label: '邵阳县', + pvalue: 9, + }, + { + value: 1591, + label: '隆回县', + pvalue: 9, + }, + { + value: 1592, + label: '洞口县', + pvalue: 9, + }, + { + value: 1593, + label: '武冈市', + pvalue: 9, + }, + { + value: 1594, + label: '绥宁县', + pvalue: 9, + }, + { + value: 1595, + label: '新宁县', + pvalue: 9, + }, + { + value: 1596, + label: '城步县', + pvalue: 9, + }, + { + value: 1597, + label: '岳阳市', + pvalue: 9, + }, + { + value: 1598, + label: '岳阳县', + pvalue: 9, + }, + { + value: 1599, + label: '临湘市', + pvalue: 9, + }, + { + value: 1600, + label: '华容县', + pvalue: 9, + }, + { + value: 1601, + label: '湘阴县', + pvalue: 9, + }, + { + value: 1602, + label: '平江县', + pvalue: 9, + }, + { + value: 1603, + label: '汩罗市', + pvalue: 9, + }, + { + value: 1604, + label: '常德市', + pvalue: 9, + }, + { + value: 1605, + label: '安乡县', + pvalue: 9, + }, + { + value: 1606, + label: '汉寿县', + pvalue: 9, + }, + { + value: 1607, + label: '澧县', + pvalue: 9, + }, + { + value: 1608, + label: '临澧县', + pvalue: 9, + }, + { + value: 1609, + label: '桃源县', + pvalue: 9, + }, + { + value: 1610, + label: '石门县', + pvalue: 9, + }, + { + value: 1611, + label: '津市市', + pvalue: 9, + }, + { + value: 1612, + label: '张家界市', + pvalue: 9, + }, + { + value: 1613, + label: '慈利县', + pvalue: 9, + }, + { + value: 1614, + label: '桑植县', + pvalue: 9, + }, + { + value: 1615, + label: '益阳市', + pvalue: 9, + }, + { + value: 1616, + label: '沅江市', + pvalue: 9, + }, + { + value: 1617, + label: '南县', + pvalue: 9, + }, + { + value: 1618, + label: '桃江县', + pvalue: 9, + }, + { + value: 1619, + label: '安化县', + pvalue: 9, + }, + { + value: 1620, + label: '娄底市', + pvalue: 9, + }, + { + value: 1621, + label: '冷水江市', + pvalue: 9, + }, + { + value: 1622, + label: '涟源市', + pvalue: 9, + }, + { + value: 1623, + label: '双峰县', + pvalue: 9, + }, + { + value: 1624, + label: '新化县', + pvalue: 9, + }, + { + value: 1625, + label: '郴州市', + pvalue: 9, + }, + { + value: 1626, + label: '资兴市', + pvalue: 9, + }, + { + value: 1627, + label: '桂阳县', + pvalue: 9, + }, + { + value: 1628, + label: '永兴县', + pvalue: 9, + }, + { + value: 1629, + label: '宜章县', + pvalue: 9, + }, + { + value: 1630, + label: '嘉禾县', + pvalue: 9, + }, + { + value: 1631, + label: '临武县', + pvalue: 9, + }, + { + value: 1632, + label: '汝城县', + pvalue: 9, + }, + { + value: 1633, + label: '桂东县', + pvalue: 9, + }, + { + value: 1634, + label: '安仁县', + pvalue: 9, + }, + { + value: 1635, + label: '永州市', + pvalue: 9, + }, + { + value: 1636, + label: '东安县', + pvalue: 9, + }, + { + value: 1637, + label: '道县', + pvalue: 9, + }, + { + value: 1638, + label: '宁远县', + pvalue: 9, + }, + { + value: 1639, + label: '江永县', + pvalue: 9, + }, + { + value: 1640, + label: '江华县', + pvalue: 9, + }, + { + value: 1641, + label: '蓝山县', + pvalue: 9, + }, + { + value: 1642, + label: '新田县', + pvalue: 9, + }, + { + value: 1643, + label: '双牌县', + pvalue: 9, + }, + { + value: 1644, + label: '祁阳县', + pvalue: 9, + }, + { + value: 1645, + label: '怀化市', + pvalue: 9, + }, + { + value: 1646, + label: '洪江市', + pvalue: 9, + }, + { + value: 1647, + label: '沅陵县', + pvalue: 9, + }, + { + value: 1648, + label: '辰溪县', + pvalue: 9, + }, + { + value: 1649, + label: '溆浦县', + pvalue: 9, + }, + { + value: 1650, + label: '麻阳县', + pvalue: 9, + }, + { + value: 1651, + label: '新晃县', + pvalue: 9, + }, + { + value: 1652, + label: '芷江县', + pvalue: 9, + }, + { + value: 1653, + label: '会同县', + pvalue: 9, + }, + { + value: 1654, + label: '靖州县', + pvalue: 9, + }, + { + value: 1655, + label: '通道县', + pvalue: 9, + }, + { + value: 1656, + label: '吉首市', + pvalue: 9, + }, + { + value: 1657, + label: '泸溪县', + pvalue: 9, + }, + { + value: 1658, + label: '凤凰县', + pvalue: 9, + }, + { + value: 1659, + label: '花垣县', + pvalue: 9, + }, + { + value: 1660, + label: '保靖县', + pvalue: 9, + }, + { + value: 1661, + label: '古丈县', + pvalue: 9, + }, + { + value: 1662, + label: '永顺县', + pvalue: 9, + }, + { + value: 1663, + label: '龙山县', + pvalue: 9, + }, + ], + }, + { + value: 10, + label: '安徽省', + pvalue: 0, + children: [ + { + value: 1361, + label: '合肥市', + pvalue: 10, + }, + { + value: 1362, + label: '长丰县', + pvalue: 10, + }, + { + value: 1363, + label: '肥西县', + pvalue: 10, + }, + { + value: 1364, + label: '肥东县', + pvalue: 10, + }, + { + value: 1365, + label: '芜湖市', + pvalue: 10, + }, + { + value: 1366, + label: '芜湖县', + pvalue: 10, + }, + { + value: 1367, + label: '繁昌县', + pvalue: 10, + }, + { + value: 1368, + label: '南陵县', + pvalue: 10, + }, + { + value: 1369, + label: '蚌埠市', + pvalue: 10, + }, + { + value: 1370, + label: '怀远县', + pvalue: 10, + }, + { + value: 1371, + label: '五河县', + pvalue: 10, + }, + { + value: 1372, + label: '固镇县', + pvalue: 10, + }, + { + value: 1373, + label: '淮南市', + pvalue: 10, + }, + { + value: 1374, + label: '凤台县', + pvalue: 10, + }, + { + value: 1375, + label: '马鞍山市', + pvalue: 10, + }, + { + value: 1376, + label: '当涂县', + pvalue: 10, + }, + { + value: 1377, + label: '淮北市', + pvalue: 10, + }, + { + value: 1378, + label: '濉溪县', + pvalue: 10, + }, + { + value: 1379, + label: '铜陵市', + pvalue: 10, + }, + { + value: 1380, + label: '铜陵县', + pvalue: 10, + }, + { + value: 1381, + label: '安庆市', + pvalue: 10, + }, + { + value: 1382, + label: '桐城市', + pvalue: 10, + }, + { + value: 1383, + label: '怀宁县', + pvalue: 10, + }, + { + value: 1384, + label: '枞阳县', + pvalue: 10, + }, + { + value: 1385, + label: '潜山县', + pvalue: 10, + }, + { + value: 1386, + label: '太湖县', + pvalue: 10, + }, + { + value: 1387, + label: '宿松县', + pvalue: 10, + }, + { + value: 1388, + label: '望江县', + pvalue: 10, + }, + { + value: 1389, + label: '岳西县', + pvalue: 10, + }, + { + value: 1390, + label: '黄山市', + pvalue: 10, + }, + { + value: 1391, + label: '歙县', + pvalue: 10, + }, + { + value: 1392, + label: '休宁县', + pvalue: 10, + }, + { + value: 1393, + label: '黟县', + pvalue: 10, + }, + { + value: 1394, + label: '祁门县', + pvalue: 10, + }, + { + value: 1395, + label: '阜阳市', + pvalue: 10, + }, + { + value: 1396, + label: '亳州市', + pvalue: 10, + }, + { + value: 1397, + label: '临泉县', + pvalue: 10, + }, + { + value: 1398, + label: '太和县', + pvalue: 10, + }, + { + value: 1399, + label: '涡阳县', + pvalue: 10, + }, + { + value: 1400, + label: '蒙城县', + pvalue: 10, + }, + { + value: 1401, + label: '阜南县', + pvalue: 10, + }, + { + value: 1402, + label: '颍上县', + pvalue: 10, + }, + { + value: 1403, + label: '界首市', + pvalue: 10, + }, + { + value: 1404, + label: '利辛县', + pvalue: 10, + }, + { + value: 1405, + label: '宿州市', + pvalue: 10, + }, + { + value: 1406, + label: '砀山县', + pvalue: 10, + }, + { + value: 1407, + label: '萧县', + pvalue: 10, + }, + { + value: 1408, + label: '灵璧县', + pvalue: 10, + }, + { + value: 1409, + label: '泗县', + pvalue: 10, + }, + { + value: 1410, + label: '滁州市', + pvalue: 10, + }, + { + value: 1411, + label: '天长市', + pvalue: 10, + }, + { + value: 1412, + label: '来安县', + pvalue: 10, + }, + { + value: 1413, + label: '全椒县', + pvalue: 10, + }, + { + value: 1414, + label: '定远县', + pvalue: 10, + }, + { + value: 1415, + label: '凤阳县', + pvalue: 10, + }, + { + value: 1416, + label: '明光市', + pvalue: 10, + }, + { + value: 1417, + label: '六安市', + pvalue: 10, + }, + { + value: 1418, + label: '寿县', + pvalue: 10, + }, + { + value: 1419, + label: '霍邱县', + pvalue: 10, + }, + { + value: 1420, + label: '舒城县', + pvalue: 10, + }, + { + value: 1421, + label: '金寨县', + pvalue: 10, + }, + { + value: 1422, + label: '霍山县', + pvalue: 10, + }, + { + value: 1423, + label: '宣城市', + pvalue: 10, + }, + { + value: 1424, + label: '郎溪县', + pvalue: 10, + }, + { + value: 1425, + label: '广德县', + pvalue: 10, + }, + { + value: 1426, + label: '宁国市', + pvalue: 10, + }, + { + value: 1427, + label: '泾县', + pvalue: 10, + }, + { + value: 1428, + label: '旌德县', + pvalue: 10, + }, + { + value: 1429, + label: '绩溪县', + pvalue: 10, + }, + { + value: 1430, + label: '巢湖市', + pvalue: 10, + }, + { + value: 1431, + label: '庐江县', + pvalue: 10, + }, + { + value: 1432, + label: '无为县', + pvalue: 10, + }, + { + value: 1433, + label: '含山县', + pvalue: 10, + }, + { + value: 1434, + label: '和县', + pvalue: 10, + }, + { + value: 1435, + label: '池州市', + pvalue: 10, + }, + { + value: 1436, + label: '东至县', + pvalue: 10, + }, + { + value: 1437, + label: '石台县', + pvalue: 10, + }, + { + value: 1438, + label: '青阳县', + pvalue: 10, + }, + ], + }, + { + value: 11, + label: '山东省', + pvalue: 0, + children: [ + { + value: 158, + label: '济南市', + pvalue: 11, + }, + { + value: 159, + label: '商河县', + pvalue: 11, + }, + { + value: 160, + label: '济阳县', + pvalue: 11, + }, + { + value: 161, + label: '平阴县', + pvalue: 11, + }, + { + value: 162, + label: '章丘市', + pvalue: 11, + }, + { + value: 163, + label: '青岛市', + pvalue: 11, + }, + { + value: 164, + label: '即墨市', + pvalue: 11, + }, + { + value: 165, + label: '胶南市', + pvalue: 11, + }, + { + value: 166, + label: '莱西市', + pvalue: 11, + }, + { + value: 167, + label: '平度市', + pvalue: 11, + }, + { + value: 168, + label: '胶州市', + pvalue: 11, + }, + { + value: 169, + label: '淄博市', + pvalue: 11, + }, + { + value: 170, + label: '桓台县', + pvalue: 11, + }, + { + value: 171, + label: '高青县', + pvalue: 11, + }, + { + value: 172, + label: '沂源县', + pvalue: 11, + }, + { + value: 173, + label: '枣庄市', + pvalue: 11, + }, + { + value: 174, + label: '滕州市', + pvalue: 11, + }, + { + value: 175, + label: '东营市', + pvalue: 11, + }, + { + value: 176, + label: '垦利县', + pvalue: 11, + }, + { + value: 177, + label: '利津县', + pvalue: 11, + }, + { + value: 178, + label: '广饶县', + pvalue: 11, + }, + { + value: 179, + label: '烟台市', + pvalue: 11, + }, + { + value: 180, + label: '蓬莱市', + pvalue: 11, + }, + { + value: 181, + label: '招远市', + pvalue: 11, + }, + { + value: 182, + label: '栖霞市', + pvalue: 11, + }, + { + value: 183, + label: '海阳市', + pvalue: 11, + }, + { + value: 184, + label: '长岛县', + pvalue: 11, + }, + { + value: 185, + label: '龙口市', + pvalue: 11, + }, + { + value: 186, + label: '莱阳市', + pvalue: 11, + }, + { + value: 187, + label: '莱州市', + pvalue: 11, + }, + { + value: 188, + label: '潍坊市', + pvalue: 11, + }, + { + value: 189, + label: '安丘市', + pvalue: 11, + }, + { + value: 190, + label: '寿光市', + pvalue: 11, + }, + { + value: 191, + label: '临朐县', + pvalue: 11, + }, + { + value: 192, + label: '昌乐县', + pvalue: 11, + }, + { + value: 193, + label: '昌邑市', + pvalue: 11, + }, + { + value: 194, + label: '高密市', + pvalue: 11, + }, + { + value: 195, + label: '五莲县', + pvalue: 11, + }, + { + value: 196, + label: '青州市', + pvalue: 11, + }, + { + value: 197, + label: '诸城市', + pvalue: 11, + }, + { + value: 198, + label: '济宁市', + pvalue: 11, + }, + { + value: 199, + label: '衮州市', + pvalue: 11, + }, + { + value: 200, + label: '邹城市', + pvalue: 11, + }, + { + value: 201, + label: '微山县', + pvalue: 11, + }, + { + value: 202, + label: '鱼台县', + pvalue: 11, + }, + { + value: 203, + label: '金乡县', + pvalue: 11, + }, + { + value: 204, + label: '嘉祥县', + pvalue: 11, + }, + { + value: 205, + label: '汶上县', + pvalue: 11, + }, + { + value: 206, + label: '泗水县', + pvalue: 11, + }, + { + value: 207, + label: '曲阜市', + pvalue: 11, + }, + { + value: 208, + label: '泰安市', + pvalue: 11, + }, + { + value: 209, + label: '宁阳县', + pvalue: 11, + }, + { + value: 210, + label: '肥城市', + pvalue: 11, + }, + { + value: 211, + label: '东平县', + pvalue: 11, + }, + { + value: 212, + label: '莱芜市', + pvalue: 11, + }, + { + value: 213, + label: '新泰市', + pvalue: 11, + }, + { + value: 214, + label: '威海市', + pvalue: 11, + }, + { + value: 215, + label: '乳山市', + pvalue: 11, + }, + { + value: 216, + label: '文登市', + pvalue: 11, + }, + { + value: 217, + label: '荣成市', + pvalue: 11, + }, + { + value: 218, + label: '滨州市', + pvalue: 11, + }, + { + value: 219, + label: '惠民县', + pvalue: 11, + }, + { + value: 220, + label: '阳信县', + pvalue: 11, + }, + { + value: 221, + label: '无棣县', + pvalue: 11, + }, + { + value: 222, + label: '沾化县', + pvalue: 11, + }, + { + value: 223, + label: '博兴县', + pvalue: 11, + }, + { + value: 224, + label: '邹平县', + pvalue: 11, + }, + { + value: 225, + label: '德州市', + pvalue: 11, + }, + { + value: 226, + label: '乐陵市', + pvalue: 11, + }, + { + value: 227, + label: '陵县', + pvalue: 11, + }, + { + value: 228, + label: '平原县', + pvalue: 11, + }, + { + value: 229, + label: '夏津县', + pvalue: 11, + }, + { + value: 230, + label: '武城县', + pvalue: 11, + }, + { + value: 231, + label: '齐河县', + pvalue: 11, + }, + { + value: 232, + label: '禹城市', + pvalue: 11, + }, + { + value: 233, + label: '临邑县', + pvalue: 11, + }, + { + value: 234, + label: '宁津县', + pvalue: 11, + }, + { + value: 235, + label: '庆云县', + pvalue: 11, + }, + { + value: 236, + label: '聊城市', + pvalue: 11, + }, + { + value: 237, + label: '临清市', + pvalue: 11, + }, + { + value: 238, + label: '阳谷县', + pvalue: 11, + }, + { + value: 239, + label: '莘县', + pvalue: 11, + }, + { + value: 240, + label: '茌平县', + pvalue: 11, + }, + { + value: 241, + label: '东阿县', + pvalue: 11, + }, + { + value: 242, + label: '冠县', + pvalue: 11, + }, + { + value: 243, + label: '高唐县', + pvalue: 11, + }, + { + value: 244, + label: '临沂市', + pvalue: 11, + }, + { + value: 245, + label: '日照市', + pvalue: 11, + }, + { + value: 246, + label: '郯城县', + pvalue: 11, + }, + { + value: 247, + label: '苍山县', + pvalue: 11, + }, + { + value: 248, + label: '莒南县', + pvalue: 11, + }, + { + value: 249, + label: '莒县', + pvalue: 11, + }, + { + value: 250, + label: '沂水县', + pvalue: 11, + }, + { + value: 251, + label: '蒙阴县', + pvalue: 11, + }, + { + value: 252, + label: '平邑县', + pvalue: 11, + }, + { + value: 253, + label: '费县', + pvalue: 11, + }, + { + value: 254, + label: '沂南县', + pvalue: 11, + }, + { + value: 255, + label: '临沭县', + pvalue: 11, + }, + { + value: 256, + label: '菏泽市', + pvalue: 11, + }, + { + value: 257, + label: '曹县', + pvalue: 11, + }, + { + value: 258, + label: '定陶县', + pvalue: 11, + }, + { + value: 259, + label: '成武县', + pvalue: 11, + }, + { + value: 260, + label: '单县', + pvalue: 11, + }, + { + value: 261, + label: '巨野县', + pvalue: 11, + }, + { + value: 262, + label: '梁山县', + pvalue: 11, + }, + { + value: 263, + label: '郓城县', + pvalue: 11, + }, + { + value: 264, + label: '鄄城县', + pvalue: 11, + }, + { + value: 265, + label: '东明县', + pvalue: 11, + }, + ], + }, + { + value: 12, + label: '新疆维吾尔族自治区', + pvalue: 0, + children: [ + { + value: 2255, + label: '乌鲁木齐市', + pvalue: 12, + }, + { + value: 2256, + label: '乌鲁木齐县', + pvalue: 12, + }, + { + value: 2257, + label: '克拉玛依市', + pvalue: 12, + }, + { + value: 2258, + label: '吐鲁番市', + pvalue: 12, + }, + { + value: 2259, + label: '鄯善县', + pvalue: 12, + }, + { + value: 2260, + label: '托克逊县', + pvalue: 12, + }, + { + value: 2261, + label: '哈密市', + pvalue: 12, + }, + { + value: 2262, + label: '巴里坤哈萨克自治县', + pvalue: 12, + }, + { + value: 2263, + label: '伊吾县', + pvalue: 12, + }, + { + value: 2264, + label: '北屯镇', + pvalue: 12, + }, + { + value: 2265, + label: '昌吉市', + pvalue: 12, + }, + { + value: 2266, + label: '米泉市', + pvalue: 12, + }, + { + value: 2267, + label: '呼图壁县', + pvalue: 12, + }, + { + value: 2268, + label: '玛纳斯县', + pvalue: 12, + }, + { + value: 2269, + label: '奇台县', + pvalue: 12, + }, + { + value: 2270, + label: '阜康市', + pvalue: 12, + }, + { + value: 2271, + label: '吉木萨尔县', + pvalue: 12, + }, + { + value: 2272, + label: '五家渠市', + pvalue: 12, + }, + { + value: 2273, + label: '木垒哈萨克自治县', + pvalue: 12, + }, + { + value: 2274, + label: '博乐市', + pvalue: 12, + }, + { + value: 2275, + label: '精河县', + pvalue: 12, + }, + { + value: 2276, + label: '温泉县', + pvalue: 12, + }, + { + value: 2277, + label: '库尔勒市', + pvalue: 12, + }, + { + value: 2278, + label: '轮台县', + pvalue: 12, + }, + { + value: 2279, + label: '尉犁县', + pvalue: 12, + }, + { + value: 2280, + label: '若羌县', + pvalue: 12, + }, + { + value: 2281, + label: '且末县', + pvalue: 12, + }, + { + value: 2282, + label: '焉耆回族自治县', + pvalue: 12, + }, + { + value: 2283, + label: '和静县', + pvalue: 12, + }, + { + value: 2284, + label: '和硕县', + pvalue: 12, + }, + { + value: 2285, + label: '博湖县', + pvalue: 12, + }, + { + value: 2286, + label: '阿克苏市', + pvalue: 12, + }, + { + value: 2287, + label: '温宿县', + pvalue: 12, + }, + { + value: 2288, + label: '库车县', + pvalue: 12, + }, + { + value: 2289, + label: '沙雅县', + pvalue: 12, + }, + { + value: 2290, + label: '新和县', + pvalue: 12, + }, + { + value: 2291, + label: '拜城县', + pvalue: 12, + }, + { + value: 2292, + label: '乌什县', + pvalue: 12, + }, + { + value: 2293, + label: '阿瓦提县', + pvalue: 12, + }, + { + value: 2294, + label: '柯坪县', + pvalue: 12, + }, + { + value: 2295, + label: '阿图什市', + pvalue: 12, + }, + { + value: 2296, + label: '阿克陶县', + pvalue: 12, + }, + { + value: 2297, + label: '阿合奇县', + pvalue: 12, + }, + { + value: 2298, + label: '乌恰县', + pvalue: 12, + }, + { + value: 2299, + label: '喀什市', + pvalue: 12, + }, + { + value: 2300, + label: '疏附县', + pvalue: 12, + }, + { + value: 2301, + label: '疏勒县', + pvalue: 12, + }, + { + value: 2302, + label: '英吉沙县', + pvalue: 12, + }, + { + value: 2303, + label: '泽普县', + pvalue: 12, + }, + { + value: 2304, + label: '莎车县', + pvalue: 12, + }, + { + value: 2305, + label: '叶城县', + pvalue: 12, + }, + { + value: 2306, + label: '麦盖提县', + pvalue: 12, + }, + { + value: 2307, + label: '岳普湖县', + pvalue: 12, + }, + { + value: 2308, + label: '伽师县', + pvalue: 12, + }, + { + value: 2309, + label: '巴楚县', + pvalue: 12, + }, + { + value: 2310, + label: '塔什库尔干塔吉克自治县', + pvalue: 12, + }, + { + value: 2311, + label: '和田市', + pvalue: 12, + }, + { + value: 2312, + label: '墨玉县', + pvalue: 12, + }, + { + value: 2313, + label: '皮山县', + pvalue: 12, + }, + { + value: 2314, + label: '洛浦县', + pvalue: 12, + }, + { + value: 2315, + label: '策勒县', + pvalue: 12, + }, + { + value: 2316, + label: '于田县', + pvalue: 12, + }, + { + value: 2317, + label: '民丰县', + pvalue: 12, + }, + { + value: 2318, + label: '伊宁市', + pvalue: 12, + }, + { + value: 2319, + label: '奎屯市', + pvalue: 12, + }, + { + value: 2320, + label: '伊宁县', + pvalue: 12, + }, + { + value: 2321, + label: '察布查尔锡伯自治县', + pvalue: 12, + }, + { + value: 2322, + label: '霍城县', + pvalue: 12, + }, + { + value: 2323, + label: '巩留县', + pvalue: 12, + }, + { + value: 2324, + label: '新源县', + pvalue: 12, + }, + { + value: 2325, + label: '昭苏县', + pvalue: 12, + }, + { + value: 2326, + label: '特克斯县', + pvalue: 12, + }, + { + value: 2327, + label: '尼勒克县', + pvalue: 12, + }, + { + value: 2328, + label: '塔城市', + pvalue: 12, + }, + { + value: 2329, + label: '额敏县', + pvalue: 12, + }, + { + value: 2330, + label: '乌苏市', + pvalue: 12, + }, + { + value: 2331, + label: '沙湾县', + pvalue: 12, + }, + { + value: 2332, + label: '托里县', + pvalue: 12, + }, + { + value: 2333, + label: '裕民县', + pvalue: 12, + }, + { + value: 2334, + label: '和布克赛尔蒙古自治县', + pvalue: 12, + }, + { + value: 2335, + label: '阿勒泰市', + pvalue: 12, + }, + { + value: 2336, + label: '布尔津县', + pvalue: 12, + }, + { + value: 2337, + label: '富蕴县', + pvalue: 12, + }, + { + value: 2338, + label: '福海县', + pvalue: 12, + }, + { + value: 2339, + label: '哈巴河县', + pvalue: 12, + }, + { + value: 2340, + label: '青河县', + pvalue: 12, + }, + { + value: 2341, + label: '吉木乃县', + pvalue: 12, + }, + { + value: 2342, + label: '石河子市', + pvalue: 12, + }, + { + value: 2343, + label: '三道岭地区', + pvalue: 12, + }, + { + value: 2344, + label: '阿拉尔市', + pvalue: 12, + }, + { + value: 2345, + label: '图木舒克市', + pvalue: 12, + }, + { + value: 2346, + label: '阿拉山口口岸', + pvalue: 12, + }, + ], + }, + { + value: 13, + label: '江苏省', + pvalue: 0, + children: [ + { + value: 91, + label: '南京市', + pvalue: 13, + }, + { + value: 92, + label: '高淳县', + pvalue: 13, + }, + { + value: 93, + label: '溧水县', + pvalue: 13, + }, + { + value: 94, + label: '无锡市', + pvalue: 13, + }, + { + value: 95, + label: '江阴市', + pvalue: 13, + }, + { + value: 96, + label: '宜兴市', + pvalue: 13, + }, + { + value: 97, + label: '徐州市', + pvalue: 13, + }, + { + value: 98, + label: '丰县', + pvalue: 13, + }, + { + value: 99, + label: '沛县', + pvalue: 13, + }, + { + value: 100, + label: '铜山县', + pvalue: 13, + }, + { + value: 101, + label: '睢宁县', + pvalue: 13, + }, + { + value: 102, + label: '邳州市', + pvalue: 13, + }, + { + value: 103, + label: '新沂市', + pvalue: 13, + }, + { + value: 104, + label: '常州市', + pvalue: 13, + }, + { + value: 105, + label: '金坛市', + pvalue: 13, + }, + { + value: 106, + label: '溧阳市', + pvalue: 13, + }, + { + value: 107, + label: '苏州市', + pvalue: 13, + }, + { + value: 108, + label: '太仓市', + pvalue: 13, + }, + { + value: 109, + label: '昆山市', + pvalue: 13, + }, + { + value: 110, + label: '吴江市', + pvalue: 13, + }, + { + value: 111, + label: '常熟市', + pvalue: 13, + }, + { + value: 112, + label: '张家港市', + pvalue: 13, + }, + { + value: 113, + label: '南通市', + pvalue: 13, + }, + { + value: 114, + label: '海安县', + pvalue: 13, + }, + { + value: 115, + label: '如皋市', + pvalue: 13, + }, + { + value: 116, + label: '如东县', + pvalue: 13, + }, + { + value: 117, + label: '海门市', + pvalue: 13, + }, + { + value: 118, + label: '启东市', + pvalue: 13, + }, + { + value: 119, + label: '连云港市', + pvalue: 13, + }, + { + value: 120, + label: '赣榆县', + pvalue: 13, + }, + { + value: 121, + label: '东海县', + pvalue: 13, + }, + { + value: 122, + label: '灌云县', + pvalue: 13, + }, + { + value: 123, + label: '淮安市', + pvalue: 13, + }, + { + value: 124, + label: '灌南县', + pvalue: 13, + }, + { + value: 125, + label: '沭阳县', + pvalue: 13, + }, + { + value: 126, + label: '通州市', + pvalue: 13, + }, + { + value: 127, + label: '涟水县', + pvalue: 13, + }, + { + value: 128, + label: '泗洪县', + pvalue: 13, + }, + { + value: 129, + label: '洪泽县', + pvalue: 13, + }, + { + value: 130, + label: '盱眙县', + pvalue: 13, + }, + { + value: 131, + label: '金湖县', + pvalue: 13, + }, + { + value: 132, + label: '宿迁市', + pvalue: 13, + }, + { + value: 133, + label: '泗阳县', + pvalue: 13, + }, + { + value: 134, + label: '宿豫县', + pvalue: 13, + }, + { + value: 135, + label: '盐城市', + pvalue: 13, + }, + { + value: 136, + label: '响水县', + pvalue: 13, + }, + { + value: 137, + label: '滨海县', + pvalue: 13, + }, + { + value: 138, + label: '阜宁县', + pvalue: 13, + }, + { + value: 139, + label: '射阳县', + pvalue: 13, + }, + { + value: 140, + label: '建湖县', + pvalue: 13, + }, + { + value: 141, + label: '大丰市', + pvalue: 13, + }, + { + value: 142, + label: '东台市', + pvalue: 13, + }, + { + value: 143, + label: '盐都县', + pvalue: 13, + }, + { + value: 144, + label: '扬州市', + pvalue: 13, + }, + { + value: 145, + label: '高邮市', + pvalue: 13, + }, + { + value: 146, + label: '宝应县', + pvalue: 13, + }, + { + value: 147, + label: '靖江市', + pvalue: 13, + }, + { + value: 148, + label: '泰兴市', + pvalue: 13, + }, + { + value: 149, + label: '江都市', + pvalue: 13, + }, + { + value: 150, + label: '泰州市', + pvalue: 13, + }, + { + value: 151, + label: '仪征市', + pvalue: 13, + }, + { + value: 152, + label: '兴化市', + pvalue: 13, + }, + { + value: 153, + label: '姜堰市', + pvalue: 13, + }, + { + value: 154, + label: '镇江市', + pvalue: 13, + }, + { + value: 155, + label: '丹阳市', + pvalue: 13, + }, + { + value: 156, + label: '句容市', + pvalue: 13, + }, + { + value: 157, + label: '扬中市', + pvalue: 13, + }, + ], + }, + { + value: 14, + label: '浙江省', + pvalue: 0, + children: [ + { + value: 1225, + label: '杭州市', + pvalue: 14, + }, + { + value: 1226, + label: '淳安县', + pvalue: 14, + }, + { + value: 1227, + label: '建德市', + pvalue: 14, + }, + { + value: 1228, + label: '临安市', + pvalue: 14, + }, + { + value: 1229, + label: '富阳市', + pvalue: 14, + }, + { + value: 1230, + label: '桐庐县', + pvalue: 14, + }, + { + value: 1231, + label: '宁波市', + pvalue: 14, + }, + { + value: 1232, + label: '象山县', + pvalue: 14, + }, + { + value: 1233, + label: '宁海县', + pvalue: 14, + }, + { + value: 1234, + label: '余姚市', + pvalue: 14, + }, + { + value: 1235, + label: '慈溪市', + pvalue: 14, + }, + { + value: 1236, + label: '奉化市', + pvalue: 14, + }, + { + value: 1237, + label: '温州市', + pvalue: 14, + }, + { + value: 1238, + label: '洞头县', + pvalue: 14, + }, + { + value: 1239, + label: '乐清市', + pvalue: 14, + }, + { + value: 1240, + label: '永嘉县', + pvalue: 14, + }, + { + value: 1241, + label: '平阳县', + pvalue: 14, + }, + { + value: 1242, + label: '苍南县', + pvalue: 14, + }, + { + value: 1243, + label: '文成县', + pvalue: 14, + }, + { + value: 1244, + label: '泰顺县', + pvalue: 14, + }, + { + value: 1245, + label: '瑞安市', + pvalue: 14, + }, + { + value: 1246, + label: '嘉兴市', + pvalue: 14, + }, + { + value: 1247, + label: '嘉善县', + pvalue: 14, + }, + { + value: 1248, + label: '平湖市', + pvalue: 14, + }, + { + value: 1249, + label: '海盐县', + pvalue: 14, + }, + { + value: 1250, + label: '桐乡市', + pvalue: 14, + }, + { + value: 1251, + label: '海宁市', + pvalue: 14, + }, + { + value: 1252, + label: '湖州市', + pvalue: 14, + }, + { + value: 1253, + label: '德清县', + pvalue: 14, + }, + { + value: 1254, + label: '长兴县', + pvalue: 14, + }, + { + value: 1255, + label: '安吉县', + pvalue: 14, + }, + { + value: 1256, + label: '绍兴市', + pvalue: 14, + }, + { + value: 1257, + label: '绍兴县', + pvalue: 14, + }, + { + value: 1258, + label: '上虞市', + pvalue: 14, + }, + { + value: 1259, + label: '嵊州市', + pvalue: 14, + }, + { + value: 1260, + label: '新昌县', + pvalue: 14, + }, + { + value: 1261, + label: '诸暨市', + pvalue: 14, + }, + { + value: 1262, + label: '金华市', + pvalue: 14, + }, + { + value: 1263, + label: '永康市', + pvalue: 14, + }, + { + value: 1264, + label: '武义县', + pvalue: 14, + }, + { + value: 1265, + label: '浦江县', + pvalue: 14, + }, + { + value: 1266, + label: '磐安县', + pvalue: 14, + }, + { + value: 1267, + label: '兰溪市', + pvalue: 14, + }, + { + value: 1268, + label: '义乌市', + pvalue: 14, + }, + { + value: 1269, + label: '东阳市', + pvalue: 14, + }, + { + value: 1270, + label: '衢州市', + pvalue: 14, + }, + { + value: 1271, + label: '常山县', + pvalue: 14, + }, + { + value: 1272, + label: '开化县', + pvalue: 14, + }, + { + value: 1273, + label: '龙游县', + pvalue: 14, + }, + { + value: 1274, + label: '江山市', + pvalue: 14, + }, + { + value: 1275, + label: '舟山市', + pvalue: 14, + }, + { + value: 1276, + label: '岱山县', + pvalue: 14, + }, + { + value: 1277, + label: '嵊泗县', + pvalue: 14, + }, + { + value: 1278, + label: '丽水市', + pvalue: 14, + }, + { + value: 1279, + label: '青田县', + pvalue: 14, + }, + { + value: 1280, + label: '云和县', + pvalue: 14, + }, + { + value: 1281, + label: '庆元县', + pvalue: 14, + }, + { + value: 1282, + label: '缙云县', + pvalue: 14, + }, + { + value: 1283, + label: '遂昌县', + pvalue: 14, + }, + { + value: 1284, + label: '松阳县', + pvalue: 14, + }, + { + value: 1285, + label: '景宁县', + pvalue: 14, + }, + { + value: 1286, + label: '龙泉市', + pvalue: 14, + }, + { + value: 1287, + label: '台州市', + pvalue: 14, + }, + { + value: 1288, + label: '临海市', + pvalue: 14, + }, + { + value: 1289, + label: '温岭市', + pvalue: 14, + }, + { + value: 1290, + label: '仙居县', + pvalue: 14, + }, + { + value: 1291, + label: '天台县', + pvalue: 14, + }, + { + value: 1292, + label: '三门县', + pvalue: 14, + }, + { + value: 1293, + label: '玉环县', + pvalue: 14, + }, + ], + }, + { + value: 15, + label: '江西省', + pvalue: 0, + children: [ + { + value: 1664, + label: '南昌市', + pvalue: 15, + }, + { + value: 1665, + label: '湾里', + pvalue: 15, + }, + { + value: 1666, + label: '进贤县', + pvalue: 15, + }, + { + value: 1667, + label: '安义县', + pvalue: 15, + }, + { + value: 1668, + label: '新建县', + pvalue: 15, + }, + { + value: 1669, + label: '南昌县', + pvalue: 15, + }, + { + value: 1670, + label: '景德镇市', + pvalue: 15, + }, + { + value: 1671, + label: '乐平市', + pvalue: 15, + }, + { + value: 1672, + label: '浮梁县', + pvalue: 15, + }, + { + value: 1673, + label: '萍乡市', + pvalue: 15, + }, + { + value: 1674, + label: '上栗县', + pvalue: 15, + }, + { + value: 1675, + label: '芦溪县', + pvalue: 15, + }, + { + value: 1676, + label: '九江市', + pvalue: 15, + }, + { + value: 1677, + label: '庐山', + pvalue: 15, + }, + { + value: 1678, + label: '九江县', + pvalue: 15, + }, + { + value: 1679, + label: '瑞昌市', + pvalue: 15, + }, + { + value: 1680, + label: '武宁县', + pvalue: 15, + }, + { + value: 1681, + label: '修水县', + pvalue: 15, + }, + { + value: 1682, + label: '永修县', + pvalue: 15, + }, + { + value: 1683, + label: '德安县', + pvalue: 15, + }, + { + value: 1684, + label: '星子县', + pvalue: 15, + }, + { + value: 1685, + label: '都昌县', + pvalue: 15, + }, + { + value: 1686, + label: '湖口县', + pvalue: 15, + }, + { + value: 1687, + label: '彭泽县', + pvalue: 15, + }, + { + value: 1688, + label: '新余市', + pvalue: 15, + }, + { + value: 1689, + label: '分宜县', + pvalue: 15, + }, + { + value: 1690, + label: '鹰潭市', + pvalue: 15, + }, + { + value: 1691, + label: '贵溪市', + pvalue: 15, + }, + { + value: 1692, + label: '余江县', + pvalue: 15, + }, + { + value: 1693, + label: '赣州市', + pvalue: 15, + }, + { + value: 1694, + label: '赣县', + pvalue: 15, + }, + { + value: 1695, + label: '南康市', + pvalue: 15, + }, + { + value: 1696, + label: '信丰县', + pvalue: 15, + }, + { + value: 1697, + label: '大余县', + pvalue: 15, + }, + { + value: 1698, + label: '上犹县', + pvalue: 15, + }, + { + value: 1699, + label: '崇义县', + pvalue: 15, + }, + { + value: 1700, + label: '安远县', + pvalue: 15, + }, + { + value: 1701, + label: '龙南县', + pvalue: 15, + }, + { + value: 1702, + label: '定南县', + pvalue: 15, + }, + { + value: 1703, + label: '全南县', + pvalue: 15, + }, + { + value: 1704, + label: '宁都县', + pvalue: 15, + }, + { + value: 1705, + label: '于都县', + pvalue: 15, + }, + { + value: 1706, + label: '兴国县', + pvalue: 15, + }, + { + value: 1707, + label: '瑞金市', + pvalue: 15, + }, + { + value: 1708, + label: '会昌县', + pvalue: 15, + }, + { + value: 1709, + label: '寻乌县', + pvalue: 15, + }, + { + value: 1710, + label: '石城县', + pvalue: 15, + }, + { + value: 1711, + label: '宜春市', + pvalue: 15, + }, + { + value: 1712, + label: '丰城市', + pvalue: 15, + }, + { + value: 1713, + label: '樟树市', + pvalue: 15, + }, + { + value: 1714, + label: '高安市', + pvalue: 15, + }, + { + value: 1715, + label: '奉新县', + pvalue: 15, + }, + { + value: 1716, + label: '万载县', + pvalue: 15, + }, + { + value: 1717, + label: '上高县', + pvalue: 15, + }, + { + value: 1718, + label: '宜丰县', + pvalue: 15, + }, + { + value: 1719, + label: '靖安县', + pvalue: 15, + }, + { + value: 1720, + label: '铜鼓县', + pvalue: 15, + }, + { + value: 1721, + label: '上饶市', + pvalue: 15, + }, + { + value: 1722, + label: '上饶县', + pvalue: 15, + }, + { + value: 1723, + label: '广丰县', + pvalue: 15, + }, + { + value: 1724, + label: '玉山县', + pvalue: 15, + }, + { + value: 1725, + label: '铅山县', + pvalue: 15, + }, + { + value: 1726, + label: '横峰县', + pvalue: 15, + }, + { + value: 1727, + label: '弋阳县', + pvalue: 15, + }, + { + value: 1728, + label: '余干县', + pvalue: 15, + }, + { + value: 1729, + label: '鄱阳县', + pvalue: 15, + }, + { + value: 1730, + label: '万年县', + pvalue: 15, + }, + { + value: 1731, + label: '德兴市', + pvalue: 15, + }, + { + value: 1732, + label: '婺源县', + pvalue: 15, + }, + { + value: 1733, + label: '吉安市', + pvalue: 15, + }, + { + value: 1734, + label: '井冈山市', + pvalue: 15, + }, + { + value: 1735, + label: '吉安县', + pvalue: 15, + }, + { + value: 1736, + label: '吉水县', + pvalue: 15, + }, + { + value: 1737, + label: '峡江县', + pvalue: 15, + }, + { + value: 1738, + label: '新干县', + pvalue: 15, + }, + { + value: 1739, + label: '永丰县', + pvalue: 15, + }, + { + value: 1740, + label: '泰和县', + pvalue: 15, + }, + { + value: 1741, + label: '遂川县', + pvalue: 15, + }, + { + value: 1742, + label: '万安县', + pvalue: 15, + }, + { + value: 1743, + label: '安福县', + pvalue: 15, + }, + { + value: 1744, + label: '永新县', + pvalue: 15, + }, + { + value: 1745, + label: '莲花县', + pvalue: 15, + }, + { + value: 1746, + label: '抚州市', + pvalue: 15, + }, + { + value: 1747, + label: '南城县', + pvalue: 15, + }, + { + value: 1748, + label: '黎川县', + pvalue: 15, + }, + { + value: 1749, + label: '南丰县', + pvalue: 15, + }, + { + value: 1750, + label: '崇仁县', + pvalue: 15, + }, + { + value: 1751, + label: '乐安县', + pvalue: 15, + }, + { + value: 1752, + label: '宜黄县', + pvalue: 15, + }, + { + value: 1753, + label: '金溪县', + pvalue: 15, + }, + { + value: 1754, + label: '资溪县', + pvalue: 15, + }, + { + value: 1755, + label: '东乡县', + pvalue: 15, + }, + { + value: 1756, + label: '广昌县', + pvalue: 15, + }, + ], + }, + { + value: 16, + label: '广西壮族自治区', + pvalue: 0, + children: [ + { + value: 1757, + label: '南宁市', + pvalue: 16, + }, + { + value: 1758, + label: '马山县', + pvalue: 16, + }, + { + value: 1759, + label: '隆安县', + pvalue: 16, + }, + { + value: 1760, + label: '上林县', + pvalue: 16, + }, + { + value: 1761, + label: '宾阳县', + pvalue: 16, + }, + { + value: 1762, + label: '横县', + pvalue: 16, + }, + { + value: 1763, + label: '武鸣县', + pvalue: 16, + }, + { + value: 1764, + label: '凭祥市', + pvalue: 16, + }, + { + value: 1765, + label: '扶绥县', + pvalue: 16, + }, + { + value: 1766, + label: '崇左市', + pvalue: 16, + }, + { + value: 1767, + label: '大新县', + pvalue: 16, + }, + { + value: 1768, + label: '天等县', + pvalue: 16, + }, + { + value: 1769, + label: '宁明县', + pvalue: 16, + }, + { + value: 1770, + label: '龙州县', + pvalue: 16, + }, + { + value: 1771, + label: '柳州市', + pvalue: 16, + }, + { + value: 1772, + label: '柳江县', + pvalue: 16, + }, + { + value: 1773, + label: '柳城县', + pvalue: 16, + }, + { + value: 1774, + label: '合山市', + pvalue: 16, + }, + { + value: 1775, + label: '鹿寨县', + pvalue: 16, + }, + { + value: 1776, + label: '象州县', + pvalue: 16, + }, + { + value: 1777, + label: '武宣县', + pvalue: 16, + }, + { + value: 1778, + label: '来宾市', + pvalue: 16, + }, + { + value: 1779, + label: '融安县', + pvalue: 16, + }, + { + value: 1780, + label: '三江县', + pvalue: 16, + }, + { + value: 1781, + label: '融水县', + pvalue: 16, + }, + { + value: 1782, + label: '金秀县', + pvalue: 16, + }, + { + value: 1783, + label: '忻城县', + pvalue: 16, + }, + { + value: 1784, + label: '桂林市', + pvalue: 16, + }, + { + value: 1785, + label: '阳朔县', + pvalue: 16, + }, + { + value: 1786, + label: '临桂县', + pvalue: 16, + }, + { + value: 1787, + label: '灵川县', + pvalue: 16, + }, + { + value: 1788, + label: '全州县', + pvalue: 16, + }, + { + value: 1789, + label: '兴安县', + pvalue: 16, + }, + { + value: 1790, + label: '永福县', + pvalue: 16, + }, + { + value: 1791, + label: '灌阳县', + pvalue: 16, + }, + { + value: 1792, + label: '龙胜县', + pvalue: 16, + }, + { + value: 1793, + label: '资源县', + pvalue: 16, + }, + { + value: 1794, + label: '平乐县', + pvalue: 16, + }, + { + value: 1795, + label: '荔浦县', + pvalue: 16, + }, + { + value: 1796, + label: '恭城县', + pvalue: 16, + }, + { + value: 1797, + label: '梧州市', + pvalue: 16, + }, + { + value: 1798, + label: '苍梧县', + pvalue: 16, + }, + { + value: 1799, + label: '岑溪市', + pvalue: 16, + }, + { + value: 1800, + label: '藤县', + pvalue: 16, + }, + { + value: 1801, + label: '昭平县', + pvalue: 16, + }, + { + value: 1802, + label: '蒙山县', + pvalue: 16, + }, + { + value: 1803, + label: '贺州市', + pvalue: 16, + }, + { + value: 1804, + label: '钟山县', + pvalue: 16, + }, + { + value: 1805, + label: '富川县', + pvalue: 16, + }, + { + value: 1806, + label: '北海市', + pvalue: 16, + }, + { + value: 1807, + label: '合浦县', + pvalue: 16, + }, + { + value: 1808, + label: '玉林市', + pvalue: 16, + }, + { + value: 1809, + label: '贵港市', + pvalue: 16, + }, + { + value: 1810, + label: '桂平市', + pvalue: 16, + }, + { + value: 1811, + label: '平南县', + pvalue: 16, + }, + { + value: 1812, + label: '容县', + pvalue: 16, + }, + { + value: 1813, + label: '北流市', + pvalue: 16, + }, + { + value: 1814, + label: '陆川县', + pvalue: 16, + }, + { + value: 1815, + label: '博白县', + pvalue: 16, + }, + { + value: 1816, + label: '兴业县', + pvalue: 16, + }, + { + value: 1817, + label: '百色市', + pvalue: 16, + }, + { + value: 1818, + label: '田阳县', + pvalue: 16, + }, + { + value: 1819, + label: '田东县', + pvalue: 16, + }, + { + value: 1820, + label: '平果县', + pvalue: 16, + }, + { + value: 1821, + label: '靖西县', + pvalue: 16, + }, + { + value: 1822, + label: '那坡县', + pvalue: 16, + }, + { + value: 1823, + label: '凌云县', + pvalue: 16, + }, + { + value: 1824, + label: '乐业县', + pvalue: 16, + }, + { + value: 1825, + label: '田林县', + pvalue: 16, + }, + { + value: 1826, + label: '隆林县', + pvalue: 16, + }, + { + value: 1827, + label: '西林县', + pvalue: 16, + }, + { + value: 1828, + label: '德保县', + pvalue: 16, + }, + { + value: 1829, + label: '河池市', + pvalue: 16, + }, + { + value: 1830, + label: '宜州市', + pvalue: 16, + }, + { + value: 1831, + label: '罗城县', + pvalue: 16, + }, + { + value: 1832, + label: '环江县', + pvalue: 16, + }, + { + value: 1833, + label: '南丹县', + pvalue: 16, + }, + { + value: 1834, + label: '天峨县', + pvalue: 16, + }, + { + value: 1835, + label: '凤山县', + pvalue: 16, + }, + { + value: 1836, + label: '东兰县', + pvalue: 16, + }, + { + value: 1837, + label: '巴马县', + pvalue: 16, + }, + { + value: 1838, + label: '都安县', + pvalue: 16, + }, + { + value: 1839, + label: '大化县', + pvalue: 16, + }, + { + value: 1840, + label: '钦州市', + pvalue: 16, + }, + { + value: 1841, + label: '上思县', + pvalue: 16, + }, + { + value: 1842, + label: '灵山县', + pvalue: 16, + }, + { + value: 1843, + label: '浦北县', + pvalue: 16, + }, + { + value: 1844, + label: '防城港市', + pvalue: 16, + }, + { + value: 1845, + label: '东兴市', + pvalue: 16, + }, + ], + }, + { + value: 17, + label: '甘肃省', + pvalue: 0, + children: [ + { + value: 2126, + label: '兰州市', + pvalue: 17, + }, + { + value: 2127, + label: '榆中县', + pvalue: 17, + }, + { + value: 2128, + label: '皋兰县', + pvalue: 17, + }, + { + value: 2129, + label: '永登县', + pvalue: 17, + }, + { + value: 2130, + label: '红古区', + pvalue: 17, + }, + { + value: 2131, + label: '嘉峪关市', + pvalue: 17, + }, + { + value: 2132, + label: '金昌市', + pvalue: 17, + }, + { + value: 2133, + label: '永昌县', + pvalue: 17, + }, + { + value: 2134, + label: '白银市', + pvalue: 17, + }, + { + value: 2135, + label: '靖远县', + pvalue: 17, + }, + { + value: 2136, + label: '会宁县', + pvalue: 17, + }, + { + value: 2137, + label: '景泰县', + pvalue: 17, + }, + { + value: 2138, + label: '平川区', + pvalue: 17, + }, + { + value: 2139, + label: '天水市', + pvalue: 17, + }, + { + value: 2140, + label: '清水县', + pvalue: 17, + }, + { + value: 2141, + label: '秦安县', + pvalue: 17, + }, + { + value: 2142, + label: '甘谷县', + pvalue: 17, + }, + { + value: 2143, + label: '武山县', + pvalue: 17, + }, + { + value: 2144, + label: '张家川县', + pvalue: 17, + }, + { + value: 2145, + label: '酒泉市', + pvalue: 17, + }, + { + value: 2146, + label: '玉门市', + pvalue: 17, + }, + { + value: 2147, + label: '敦煌市', + pvalue: 17, + }, + { + value: 2148, + label: '金塔县', + pvalue: 17, + }, + { + value: 2149, + label: '肃北县', + pvalue: 17, + }, + { + value: 2150, + label: '阿克塞县', + pvalue: 17, + }, + { + value: 2151, + label: '安西县', + pvalue: 17, + }, + { + value: 2152, + label: '张掖市', + pvalue: 17, + }, + { + value: 2153, + label: '肃南县', + pvalue: 17, + }, + { + value: 2154, + label: '民乐县', + pvalue: 17, + }, + { + value: 2155, + label: '临泽县', + pvalue: 17, + }, + { + value: 2156, + label: '高台县', + pvalue: 17, + }, + { + value: 2157, + label: '山丹县', + pvalue: 17, + }, + { + value: 2158, + label: '武威市', + pvalue: 17, + }, + { + value: 2159, + label: '民勤县', + pvalue: 17, + }, + { + value: 2160, + label: '古浪县', + pvalue: 17, + }, + { + value: 2161, + label: '天祝县', + pvalue: 17, + }, + { + value: 2162, + label: '定西市', + pvalue: 17, + }, + { + value: 2163, + label: '通渭县', + pvalue: 17, + }, + { + value: 2164, + label: '陇西县', + pvalue: 17, + }, + { + value: 2165, + label: '渭源县', + pvalue: 17, + }, + { + value: 2166, + label: '临洮县', + pvalue: 17, + }, + { + value: 2167, + label: '漳县', + pvalue: 17, + }, + { + value: 2168, + label: '岷县', + pvalue: 17, + }, + { + value: 2169, + label: '陇南市', + pvalue: 17, + }, + { + value: 2170, + label: '宕昌县', + pvalue: 17, + }, + { + value: 2171, + label: '成县', + pvalue: 17, + }, + { + value: 2172, + label: '康县', + pvalue: 17, + }, + { + value: 2173, + label: '文县', + pvalue: 17, + }, + { + value: 2174, + label: '西和县', + pvalue: 17, + }, + { + value: 2175, + label: '礼县', + pvalue: 17, + }, + { + value: 2176, + label: '两当县', + pvalue: 17, + }, + { + value: 2177, + label: '徽县', + pvalue: 17, + }, + { + value: 2178, + label: '平凉市', + pvalue: 17, + }, + { + value: 2179, + label: '泾川县', + pvalue: 17, + }, + { + value: 2180, + label: '灵台县', + pvalue: 17, + }, + { + value: 2181, + label: '崇信县', + pvalue: 17, + }, + { + value: 2182, + label: '华亭县', + pvalue: 17, + }, + { + value: 2183, + label: '庄浪县', + pvalue: 17, + }, + { + value: 2184, + label: '静宁县', + pvalue: 17, + }, + { + value: 2185, + label: '庆阳市', + pvalue: 17, + }, + { + value: 2186, + label: '庆城县', + pvalue: 17, + }, + { + value: 2187, + label: '环县', + pvalue: 17, + }, + { + value: 2188, + label: '华池县', + pvalue: 17, + }, + { + value: 2189, + label: '合水县', + pvalue: 17, + }, + { + value: 2190, + label: '正宁县', + pvalue: 17, + }, + { + value: 2191, + label: '宁县', + pvalue: 17, + }, + { + value: 2192, + label: '镇原县', + pvalue: 17, + }, + { + value: 2193, + label: '临夏州', + pvalue: 17, + }, + { + value: 2194, + label: '康乐县', + pvalue: 17, + }, + { + value: 2195, + label: '永靖县', + pvalue: 17, + }, + { + value: 2196, + label: '广河县', + pvalue: 17, + }, + { + value: 2197, + label: '和政县', + pvalue: 17, + }, + { + value: 2198, + label: '东乡县', + pvalue: 17, + }, + { + value: 2199, + label: '积石山县', + pvalue: 17, + }, + { + value: 2200, + label: '甘南州', + pvalue: 17, + }, + { + value: 2201, + label: '临潭县', + pvalue: 17, + }, + { + value: 2202, + label: '卓尼县', + pvalue: 17, + }, + { + value: 2203, + label: '舟曲县', + pvalue: 17, + }, + { + value: 2204, + label: '迭部县', + pvalue: 17, + }, + { + value: 2205, + label: '玛曲县', + pvalue: 17, + }, + { + value: 2206, + label: '碌曲县', + pvalue: 17, + }, + { + value: 2207, + label: '夏河县', + pvalue: 17, + }, + ], + }, + { + value: 18, + label: '山西省', + pvalue: 0, + children: [ + { + value: 884, + label: '太原市', + pvalue: 18, + }, + { + value: 885, + label: '古交市', + pvalue: 18, + }, + { + value: 886, + label: '娄烦县', + pvalue: 18, + }, + { + value: 887, + label: '阳曲县', + pvalue: 18, + }, + { + value: 888, + label: '清徐县', + pvalue: 18, + }, + { + value: 889, + label: '大同市', + pvalue: 18, + }, + { + value: 890, + label: '阳泉市', + pvalue: 18, + }, + { + value: 891, + label: '阳高县', + pvalue: 18, + }, + { + value: 892, + label: '天镇县', + pvalue: 18, + }, + { + value: 893, + label: '广灵县', + pvalue: 18, + }, + { + value: 894, + label: '灵邱县', + pvalue: 18, + }, + { + value: 895, + label: '浑源县', + pvalue: 18, + }, + { + value: 896, + label: '应县', + pvalue: 18, + }, + { + value: 897, + label: '左云县', + pvalue: 18, + }, + { + value: 898, + label: '右玉县', + pvalue: 18, + }, + { + value: 899, + label: '大同县', + pvalue: 18, + }, + { + value: 900, + label: '长治市', + pvalue: 18, + }, + { + value: 901, + label: '怀仁县', + pvalue: 18, + }, + { + value: 902, + label: '平定县', + pvalue: 18, + }, + { + value: 903, + label: '盂县', + pvalue: 18, + }, + { + value: 904, + label: '长治县', + pvalue: 18, + }, + { + value: 905, + label: '潞城市', + pvalue: 18, + }, + { + value: 906, + label: '襄垣县', + pvalue: 18, + }, + { + value: 907, + label: '屯留县', + pvalue: 18, + }, + { + value: 908, + label: '平顺县', + pvalue: 18, + }, + { + value: 909, + label: '黎城县', + pvalue: 18, + }, + { + value: 910, + label: '壶关县', + pvalue: 18, + }, + { + value: 911, + label: '长子县', + pvalue: 18, + }, + { + value: 912, + label: '武乡县', + pvalue: 18, + }, + { + value: 913, + label: '沁县', + pvalue: 18, + }, + { + value: 914, + label: '沁源县', + pvalue: 18, + }, + { + value: 915, + label: '晋城市', + pvalue: 18, + }, + { + value: 916, + label: '沁水县', + pvalue: 18, + }, + { + value: 917, + label: '阳城县', + pvalue: 18, + }, + { + value: 918, + label: '高平市', + pvalue: 18, + }, + { + value: 919, + label: '陵川县', + pvalue: 18, + }, + { + value: 920, + label: '朔州市', + pvalue: 18, + }, + { + value: 921, + label: '山阴县', + pvalue: 18, + }, + { + value: 922, + label: '忻州市', + pvalue: 18, + }, + { + value: 923, + label: '定襄县', + pvalue: 18, + }, + { + value: 924, + label: '五台县', + pvalue: 18, + }, + { + value: 925, + label: '原平市', + pvalue: 18, + }, + { + value: 926, + label: '代县', + pvalue: 18, + }, + { + value: 927, + label: '繁峙县', + pvalue: 18, + }, + { + value: 928, + label: '宁武县', + pvalue: 18, + }, + { + value: 929, + label: '静乐县', + pvalue: 18, + }, + { + value: 930, + label: '神池县', + pvalue: 18, + }, + { + value: 931, + label: '五寨县', + pvalue: 18, + }, + { + value: 932, + label: '岢岚县', + pvalue: 18, + }, + { + value: 933, + label: '河曲县', + pvalue: 18, + }, + { + value: 934, + label: '保德县', + pvalue: 18, + }, + { + value: 935, + label: '偏关县', + pvalue: 18, + }, + { + value: 936, + label: '吕梁市', + pvalue: 18, + }, + { + value: 937, + label: '汾阳市', + pvalue: 18, + }, + { + value: 938, + label: '文水县', + pvalue: 18, + }, + { + value: 939, + label: '交城县', + pvalue: 18, + }, + { + value: 940, + label: '孝义市', + pvalue: 18, + }, + { + value: 941, + label: '兴县', + pvalue: 18, + }, + { + value: 942, + label: '临县', + pvalue: 18, + }, + { + value: 943, + label: '柳林县', + pvalue: 18, + }, + { + value: 944, + label: '石楼县', + pvalue: 18, + }, + { + value: 945, + label: '岚县', + pvalue: 18, + }, + { + value: 946, + label: '方山县', + pvalue: 18, + }, + { + value: 947, + label: '中阳县', + pvalue: 18, + }, + { + value: 948, + label: '交口县', + pvalue: 18, + }, + { + value: 949, + label: '晋中市', + pvalue: 18, + }, + { + value: 950, + label: '榆社县', + pvalue: 18, + }, + { + value: 951, + label: '左权县', + pvalue: 18, + }, + { + value: 952, + label: '和顺县', + pvalue: 18, + }, + { + value: 953, + label: '昔阳县', + pvalue: 18, + }, + { + value: 954, + label: '寿阳县', + pvalue: 18, + }, + { + value: 955, + label: '太谷县', + pvalue: 18, + }, + { + value: 956, + label: '祁县', + pvalue: 18, + }, + { + value: 957, + label: '平遥县', + pvalue: 18, + }, + { + value: 958, + label: '介休市', + pvalue: 18, + }, + { + value: 959, + label: '灵石县', + pvalue: 18, + }, + { + value: 960, + label: '临汾市', + pvalue: 18, + }, + { + value: 961, + label: '侯马市', + pvalue: 18, + }, + { + value: 962, + label: '曲沃县', + pvalue: 18, + }, + { + value: 963, + label: '翼城县', + pvalue: 18, + }, + { + value: 964, + label: '襄汾县', + pvalue: 18, + }, + { + value: 965, + label: '洪洞县', + pvalue: 18, + }, + { + value: 966, + label: '霍州市', + pvalue: 18, + }, + { + value: 967, + label: '古县', + pvalue: 18, + }, + { + value: 968, + label: '安泽县', + pvalue: 18, + }, + { + value: 969, + label: '浮山县', + pvalue: 18, + }, + { + value: 970, + label: '吉县', + pvalue: 18, + }, + { + value: 971, + label: '乡宁县', + pvalue: 18, + }, + { + value: 972, + label: '蒲县', + pvalue: 18, + }, + { + value: 973, + label: '大宁县', + pvalue: 18, + }, + { + value: 974, + label: '永和县', + pvalue: 18, + }, + { + value: 975, + label: '隰县', + pvalue: 18, + }, + { + value: 976, + label: '汾西县', + pvalue: 18, + }, + { + value: 977, + label: '运城市', + pvalue: 18, + }, + { + value: 978, + label: '永济市', + pvalue: 18, + }, + { + value: 979, + label: '芮城县', + pvalue: 18, + }, + { + value: 980, + label: '临猗县', + pvalue: 18, + }, + { + value: 981, + label: '万荣县', + pvalue: 18, + }, + { + value: 982, + label: '新绛县', + pvalue: 18, + }, + { + value: 983, + label: '稷山县', + pvalue: 18, + }, + { + value: 984, + label: '河津市', + pvalue: 18, + }, + { + value: 985, + label: '闻喜县', + pvalue: 18, + }, + { + value: 986, + label: '夏县', + pvalue: 18, + }, + { + value: 987, + label: '绛县', + pvalue: 18, + }, + { + value: 988, + label: '平陆县', + pvalue: 18, + }, + { + value: 989, + label: '垣曲县', + pvalue: 18, + }, + ], + }, + { + value: 19, + label: '内蒙古自治区', + pvalue: 0, + children: [ + { + value: 990, + label: '呼和浩特市', + pvalue: 19, + }, + { + value: 991, + label: '清水河县', + pvalue: 19, + }, + { + value: 992, + label: '和林格尔县', + pvalue: 19, + }, + { + value: 993, + label: '武川县', + pvalue: 19, + }, + { + value: 994, + label: '托克托县', + pvalue: 19, + }, + { + value: 995, + label: '土左旗', + pvalue: 19, + }, + { + value: 996, + label: '包头市', + pvalue: 19, + }, + { + value: 997, + label: '土默特右旗', + pvalue: 19, + }, + { + value: 998, + label: '固阳县', + pvalue: 19, + }, + { + value: 999, + label: '乌海市', + pvalue: 19, + }, + { + value: 1000, + label: '赤峰市', + pvalue: 19, + }, + { + value: 1001, + label: '阿鲁科尔沁旗', + pvalue: 19, + }, + { + value: 1002, + label: '巴林左旗', + pvalue: 19, + }, + { + value: 1003, + label: '巴林右旗', + pvalue: 19, + }, + { + value: 1004, + label: '林西县', + pvalue: 19, + }, + { + value: 1005, + label: '克什克腾', + pvalue: 19, + }, + { + value: 1006, + label: '翁牛特旗', + pvalue: 19, + }, + { + value: 1007, + label: '喀喇沁旗', + pvalue: 19, + }, + { + value: 1008, + label: '宁城县', + pvalue: 19, + }, + { + value: 1009, + label: '敖汉旗', + pvalue: 19, + }, + { + value: 1010, + label: '呼伦贝尔市', + pvalue: 19, + }, + { + value: 1011, + label: '满州里市', + pvalue: 19, + }, + { + value: 1012, + label: '扎兰屯市', + pvalue: 19, + }, + { + value: 1013, + label: '牙克石市', + pvalue: 19, + }, + { + value: 1014, + label: '阿荣旗', + pvalue: 19, + }, + { + value: 1015, + label: '莫力达瓦达斡尔族自治旗', + pvalue: 19, + }, + { + value: 1016, + label: '额尔古纳市', + pvalue: 19, + }, + { + value: 1017, + label: '根河市', + pvalue: 19, + }, + { + value: 1018, + label: '鄂伦春族自治旗', + pvalue: 19, + }, + { + value: 1019, + label: '鄂温克族自治旗', + pvalue: 19, + }, + { + value: 1020, + label: '新巴尔虎右旗', + pvalue: 19, + }, + { + value: 1021, + label: '新巴尔虎左旗', + pvalue: 19, + }, + { + value: 1022, + label: '陈巴尔虎旗', + pvalue: 19, + }, + { + value: 1023, + label: '兴安盟', + pvalue: 19, + }, + { + value: 1024, + label: '科尔沁右翼中旗', + pvalue: 19, + }, + { + value: 1025, + label: '扎赉特旗', + pvalue: 19, + }, + { + value: 1026, + label: '突泉县', + pvalue: 19, + }, + { + value: 1027, + label: '阿尔山市', + pvalue: 19, + }, + { + value: 1028, + label: '通辽市', + pvalue: 19, + }, + { + value: 1029, + label: '霍林郭勒市', + pvalue: 19, + }, + { + value: 1030, + label: '科尔沁左翼中旗', + pvalue: 19, + }, + { + value: 1031, + label: '科尔沁左翼后旗', + pvalue: 19, + }, + { + value: 1032, + label: '开鲁县', + pvalue: 19, + }, + { + value: 1033, + label: '库伦旗', + pvalue: 19, + }, + { + value: 1034, + label: '奈曼旗', + pvalue: 19, + }, + { + value: 1035, + label: '扎鲁特旗', + pvalue: 19, + }, + { + value: 1036, + label: '锡林郭勒盟', + pvalue: 19, + }, + { + value: 1037, + label: '二连浩特市', + pvalue: 19, + }, + { + value: 1038, + label: '阿巴嘎旗', + pvalue: 19, + }, + { + value: 1039, + label: '苏尼特左旗', + pvalue: 19, + }, + { + value: 1040, + label: '苏尼特右旗', + pvalue: 19, + }, + { + value: 1041, + label: '东乌珠穆沁旗', + pvalue: 19, + }, + { + value: 1042, + label: '西乌珠穆沁旗', + pvalue: 19, + }, + { + value: 1043, + label: '太仆寺旗', + pvalue: 19, + }, + { + value: 1044, + label: '镶黄旗', + pvalue: 19, + }, + { + value: 1045, + label: '正镶白旗', + pvalue: 19, + }, + { + value: 1046, + label: '正蓝旗', + pvalue: 19, + }, + { + value: 1047, + label: '多伦县', + pvalue: 19, + }, + { + value: 1048, + label: '乌兰察布盟', + pvalue: 19, + }, + { + value: 1049, + label: '卓资县', + pvalue: 19, + }, + { + value: 1050, + label: '化德县', + pvalue: 19, + }, + { + value: 1051, + label: '商都县', + pvalue: 19, + }, + { + value: 1052, + label: '兴和县', + pvalue: 19, + }, + { + value: 1053, + label: '丰镇市', + pvalue: 19, + }, + { + value: 1054, + label: '凉城县', + pvalue: 19, + }, + { + value: 1055, + label: '察哈尔右翼前旗', + pvalue: 19, + }, + { + value: 1056, + label: '察哈尔右翼中旗', + pvalue: 19, + }, + { + value: 1057, + label: '察哈尔右翼后旗', + pvalue: 19, + }, + { + value: 1058, + label: '达尔罕茂明安联合旗', + pvalue: 19, + }, + { + value: 1059, + label: '四子王旗', + pvalue: 19, + }, + { + value: 1060, + label: '鄂尔多斯市', + pvalue: 19, + }, + { + value: 1061, + label: '达拉特旗', + pvalue: 19, + }, + { + value: 1062, + label: '准格尔旗', + pvalue: 19, + }, + { + value: 1063, + label: '鄂托克前旗', + pvalue: 19, + }, + { + value: 1064, + label: '鄂托克旗', + pvalue: 19, + }, + { + value: 1065, + label: '杭锦旗', + pvalue: 19, + }, + { + value: 1066, + label: '乌审旗', + pvalue: 19, + }, + { + value: 1067, + label: '伊金霍勒旗', + pvalue: 19, + }, + { + value: 1068, + label: '巴彦淖尔盟', + pvalue: 19, + }, + { + value: 1069, + label: '五原县', + pvalue: 19, + }, + { + value: 1070, + label: '磴口县', + pvalue: 19, + }, + { + value: 1071, + label: '乌拉特前旗', + pvalue: 19, + }, + { + value: 1072, + label: '乌拉特中旗', + pvalue: 19, + }, + { + value: 1073, + label: '乌拉特后旗', + pvalue: 19, + }, + { + value: 1074, + label: '杭锦后旗', + pvalue: 19, + }, + { + value: 1075, + label: '阿拉善盟', + pvalue: 19, + }, + { + value: 1076, + label: '阿右旗', + pvalue: 19, + }, + { + value: 1077, + label: '额济纳旗', + pvalue: 19, + }, + ], + }, + { + value: 20, + label: '陕西省', + pvalue: 0, + children: [ + { + value: 609, + label: '西安市', + pvalue: 20, + }, + { + value: 610, + label: '高陵县', + pvalue: 20, + }, + { + value: 611, + label: '户县', + pvalue: 20, + }, + { + value: 612, + label: '周至县', + pvalue: 20, + }, + { + value: 613, + label: '蓝田县', + pvalue: 20, + }, + { + value: 614, + label: '铜川市', + pvalue: 20, + }, + { + value: 615, + label: '耀县', + pvalue: 20, + }, + { + value: 616, + label: '宜君县', + pvalue: 20, + }, + { + value: 617, + label: '宝鸡市', + pvalue: 20, + }, + { + value: 618, + label: '凤翔县', + pvalue: 20, + }, + { + value: 619, + label: '岐山县', + pvalue: 20, + }, + { + value: 620, + label: '扶风县', + pvalue: 20, + }, + { + value: 621, + label: '眉县', + pvalue: 20, + }, + { + value: 622, + label: '陇县', + pvalue: 20, + }, + { + value: 623, + label: '千阳县', + pvalue: 20, + }, + { + value: 624, + label: '麟游县', + pvalue: 20, + }, + { + value: 625, + label: '凤县', + pvalue: 20, + }, + { + value: 626, + label: '太白县', + pvalue: 20, + }, + { + value: 627, + label: '咸阳市', + pvalue: 20, + }, + { + value: 628, + label: '兴平市', + pvalue: 20, + }, + { + value: 629, + label: '三原县', + pvalue: 20, + }, + { + value: 630, + label: '泾阳县', + pvalue: 20, + }, + { + value: 631, + label: '乾县', + pvalue: 20, + }, + { + value: 632, + label: '礼泉县', + pvalue: 20, + }, + { + value: 633, + label: '永寿县', + pvalue: 20, + }, + { + value: 634, + label: '彬县', + pvalue: 20, + }, + { + value: 635, + label: '长武县', + pvalue: 20, + }, + { + value: 636, + label: '旬邑县', + pvalue: 20, + }, + { + value: 637, + label: '淳化县', + pvalue: 20, + }, + { + value: 638, + label: '武功县', + pvalue: 20, + }, + { + value: 639, + label: '渭南市', + pvalue: 20, + }, + { + value: 640, + label: '韩城市', + pvalue: 20, + }, + { + value: 641, + label: '华县', + pvalue: 20, + }, + { + value: 642, + label: '华阴市', + pvalue: 20, + }, + { + value: 643, + label: '潼关县', + pvalue: 20, + }, + { + value: 644, + label: '大荔县', + pvalue: 20, + }, + { + value: 645, + label: '蒲城县', + pvalue: 20, + }, + { + value: 646, + label: '澄城县', + pvalue: 20, + }, + { + value: 647, + label: '白水县', + pvalue: 20, + }, + { + value: 648, + label: '合阳县', + pvalue: 20, + }, + { + value: 649, + label: '富平县', + pvalue: 20, + }, + { + value: 650, + label: '汉中市', + pvalue: 20, + }, + { + value: 651, + label: '南郑县', + pvalue: 20, + }, + { + value: 652, + label: '城固县', + pvalue: 20, + }, + { + value: 653, + label: '洋县', + pvalue: 20, + }, + { + value: 654, + label: '西乡县', + pvalue: 20, + }, + { + value: 655, + label: '勉县', + pvalue: 20, + }, + { + value: 656, + label: '宁强县', + pvalue: 20, + }, + { + value: 657, + label: '略阳县', + pvalue: 20, + }, + { + value: 658, + label: '镇巴县', + pvalue: 20, + }, + { + value: 659, + label: '留坝县', + pvalue: 20, + }, + { + value: 660, + label: '佛坪县', + pvalue: 20, + }, + { + value: 661, + label: '安康市', + pvalue: 20, + }, + { + value: 662, + label: '汉阴县', + pvalue: 20, + }, + { + value: 663, + label: '石泉县', + pvalue: 20, + }, + { + value: 664, + label: '宁陕县', + pvalue: 20, + }, + { + value: 665, + label: '紫阳县', + pvalue: 20, + }, + { + value: 666, + label: '岚皋县', + pvalue: 20, + }, + { + value: 667, + label: '平利县', + pvalue: 20, + }, + { + value: 668, + label: '镇坪县', + pvalue: 20, + }, + { + value: 669, + label: '旬阳县', + pvalue: 20, + }, + { + value: 670, + label: '白河县', + pvalue: 20, + }, + { + value: 671, + label: '商洛市', + pvalue: 20, + }, + { + value: 672, + label: '洛南县', + pvalue: 20, + }, + { + value: 673, + label: '丹凤县', + pvalue: 20, + }, + { + value: 674, + label: '商南县', + pvalue: 20, + }, + { + value: 675, + label: '山阳县', + pvalue: 20, + }, + { + value: 676, + label: '镇安县', + pvalue: 20, + }, + { + value: 677, + label: '柞水县', + pvalue: 20, + }, + { + value: 678, + label: '延安市', + pvalue: 20, + }, + { + value: 679, + label: '延长县', + pvalue: 20, + }, + { + value: 680, + label: '延川县', + pvalue: 20, + }, + { + value: 681, + label: '子长县', + pvalue: 20, + }, + { + value: 682, + label: '安塞县', + pvalue: 20, + }, + { + value: 683, + label: '志丹县', + pvalue: 20, + }, + { + value: 684, + label: '吴旗县', + pvalue: 20, + }, + { + value: 685, + label: '甘泉县', + pvalue: 20, + }, + { + value: 686, + label: '富县', + pvalue: 20, + }, + { + value: 687, + label: '洛川县', + pvalue: 20, + }, + { + value: 688, + label: '宜川县', + pvalue: 20, + }, + { + value: 689, + label: '黄龙县', + pvalue: 20, + }, + { + value: 690, + label: '黄陵县', + pvalue: 20, + }, + { + value: 691, + label: '榆林市', + pvalue: 20, + }, + { + value: 692, + label: '神木县', + pvalue: 20, + }, + { + value: 693, + label: '府谷县', + pvalue: 20, + }, + { + value: 694, + label: '横山县', + pvalue: 20, + }, + { + value: 695, + label: '靖边县', + pvalue: 20, + }, + { + value: 696, + label: '定边县', + pvalue: 20, + }, + { + value: 697, + label: '绥德县', + pvalue: 20, + }, + { + value: 698, + label: '米脂县', + pvalue: 20, + }, + { + value: 699, + label: '佳县', + pvalue: 20, + }, + { + value: 700, + label: '吴堡县', + pvalue: 20, + }, + { + value: 701, + label: '清涧县', + pvalue: 20, + }, + { + value: 702, + label: '子洲县', + pvalue: 20, + }, + ], + }, + { + value: 21, + label: '吉林省', + pvalue: 0, + children: [ + { + value: 1176, + label: '长春市', + pvalue: 21, + }, + { + value: 1177, + label: '九台市', + pvalue: 21, + }, + { + value: 1178, + label: '德惠市', + pvalue: 21, + }, + { + value: 1179, + label: '农安县', + pvalue: 21, + }, + { + value: 1180, + label: '榆树市', + pvalue: 21, + }, + { + value: 1181, + label: '吉林市', + pvalue: 21, + }, + { + value: 1182, + label: '永吉县', + pvalue: 21, + }, + { + value: 1183, + label: '磐石市', + pvalue: 21, + }, + { + value: 1184, + label: '蛟河市', + pvalue: 21, + }, + { + value: 1185, + label: '桦甸市', + pvalue: 21, + }, + { + value: 1186, + label: '舒兰市', + pvalue: 21, + }, + { + value: 1187, + label: '四平市', + pvalue: 21, + }, + { + value: 1188, + label: '梨树县', + pvalue: 21, + }, + { + value: 1189, + label: '伊通县', + pvalue: 21, + }, + { + value: 1190, + label: '双辽市', + pvalue: 21, + }, + { + value: 1191, + label: '公主岭市', + pvalue: 21, + }, + { + value: 1192, + label: '辽源市', + pvalue: 21, + }, + { + value: 1193, + label: '东丰县', + pvalue: 21, + }, + { + value: 1194, + label: '东辽县', + pvalue: 21, + }, + { + value: 1195, + label: '通化市', + pvalue: 21, + }, + { + value: 1196, + label: '通化县', + pvalue: 21, + }, + { + value: 1197, + label: '辉南县', + pvalue: 21, + }, + { + value: 1198, + label: '柳河县', + pvalue: 21, + }, + { + value: 1199, + label: '梅河口市', + pvalue: 21, + }, + { + value: 1200, + label: '集安市', + pvalue: 21, + }, + { + value: 1201, + label: '白山市', + pvalue: 21, + }, + { + value: 1202, + label: '抚松县', + pvalue: 21, + }, + { + value: 1203, + label: '靖宇县', + pvalue: 21, + }, + { + value: 1204, + label: '长白县', + pvalue: 21, + }, + { + value: 1205, + label: '江源县', + pvalue: 21, + }, + { + value: 1206, + label: '临江市', + pvalue: 21, + }, + { + value: 1207, + label: '白城市', + pvalue: 21, + }, + { + value: 1208, + label: '洮南市', + pvalue: 21, + }, + { + value: 1209, + label: '大安市', + pvalue: 21, + }, + { + value: 1210, + label: '镇赉县', + pvalue: 21, + }, + { + value: 1211, + label: '通榆县', + pvalue: 21, + }, + { + value: 1212, + label: '松原市', + pvalue: 21, + }, + { + value: 1213, + label: '扶余县', + pvalue: 21, + }, + { + value: 1214, + label: '长岭县', + pvalue: 21, + }, + { + value: 1215, + label: '前郭县', + pvalue: 21, + }, + { + value: 1216, + label: '乾安县', + pvalue: 21, + }, + { + value: 1217, + label: '延吉市', + pvalue: 21, + }, + { + value: 1218, + label: '图们市', + pvalue: 21, + }, + { + value: 1219, + label: '敦化市', + pvalue: 21, + }, + { + value: 1220, + label: '珲春市', + pvalue: 21, + }, + { + value: 1221, + label: '龙井市', + pvalue: 21, + }, + { + value: 1222, + label: '和龙市', + pvalue: 21, + }, + { + value: 1223, + label: '汪清县', + pvalue: 21, + }, + { + value: 1224, + label: '安图县', + pvalue: 21, + }, + ], + }, + { + value: 22, + label: '福建省', + pvalue: 0, + children: [ + { + value: 1294, + label: '福州市', + pvalue: 22, + }, + { + value: 1295, + label: '平潭县', + pvalue: 22, + }, + { + value: 1296, + label: '福清市', + pvalue: 22, + }, + { + value: 1297, + label: '长乐市', + pvalue: 22, + }, + { + value: 1298, + label: '永泰县', + pvalue: 22, + }, + { + value: 1299, + label: '闽清县', + pvalue: 22, + }, + { + value: 1300, + label: '罗源县', + pvalue: 22, + }, + { + value: 1301, + label: '连江县', + pvalue: 22, + }, + { + value: 1302, + label: '闽侯县', + pvalue: 22, + }, + { + value: 1303, + label: '厦门市', + pvalue: 22, + }, + { + value: 1304, + label: '莆田市', + pvalue: 22, + }, + { + value: 1305, + label: '仙游县', + pvalue: 22, + }, + { + value: 1306, + label: '三明市', + pvalue: 22, + }, + { + value: 1307, + label: '明溪县', + pvalue: 22, + }, + { + value: 1308, + label: '清流县', + pvalue: 22, + }, + { + value: 1309, + label: '宁化县', + pvalue: 22, + }, + { + value: 1310, + label: '大田县', + pvalue: 22, + }, + { + value: 1311, + label: '尤溪县', + pvalue: 22, + }, + { + value: 1312, + label: '沙县', + pvalue: 22, + }, + { + value: 1313, + label: '将乐县', + pvalue: 22, + }, + { + value: 1314, + label: '泰宁县', + pvalue: 22, + }, + { + value: 1315, + label: '建宁县', + pvalue: 22, + }, + { + value: 1316, + label: '永安市', + pvalue: 22, + }, + { + value: 1317, + label: '泉州市', + pvalue: 22, + }, + { + value: 1318, + label: '惠安县', + pvalue: 22, + }, + { + value: 1319, + label: '晋江市', + pvalue: 22, + }, + { + value: 1320, + label: '南安市', + pvalue: 22, + }, + { + value: 1321, + label: '安溪县', + pvalue: 22, + }, + { + value: 1322, + label: '永春县', + pvalue: 22, + }, + { + value: 1323, + label: '德化县', + pvalue: 22, + }, + { + value: 1324, + label: '石狮市', + pvalue: 22, + }, + { + value: 1325, + label: '漳州市', + pvalue: 22, + }, + { + value: 1326, + label: '龙海市', + pvalue: 22, + }, + { + value: 1327, + label: '云霄县', + pvalue: 22, + }, + { + value: 1328, + label: '漳浦县', + pvalue: 22, + }, + { + value: 1329, + label: '诏安县', + pvalue: 22, + }, + { + value: 1330, + label: '长泰县', + pvalue: 22, + }, + { + value: 1331, + label: '东山县', + pvalue: 22, + }, + { + value: 1332, + label: '南靖县', + pvalue: 22, + }, + { + value: 1333, + label: '平和县', + pvalue: 22, + }, + { + value: 1334, + label: '华安县', + pvalue: 22, + }, + { + value: 1335, + label: '南平市', + pvalue: 22, + }, + { + value: 1336, + label: '邵武市', + pvalue: 22, + }, + { + value: 1337, + label: '顺昌县', + pvalue: 22, + }, + { + value: 1338, + label: '建阳市', + pvalue: 22, + }, + { + value: 1339, + label: '建瓯市', + pvalue: 22, + }, + { + value: 1340, + label: '浦城县', + pvalue: 22, + }, + { + value: 1341, + label: '光泽县', + pvalue: 22, + }, + { + value: 1342, + label: '松溪县', + pvalue: 22, + }, + { + value: 1343, + label: '政和县', + pvalue: 22, + }, + { + value: 1344, + label: '武夷山市', + pvalue: 22, + }, + { + value: 1345, + label: '宁德市', + pvalue: 22, + }, + { + value: 1346, + label: '福鼎市', + pvalue: 22, + }, + { + value: 1347, + label: '霞浦县', + pvalue: 22, + }, + { + value: 1348, + label: '福安市', + pvalue: 22, + }, + { + value: 1349, + label: '古田县', + pvalue: 22, + }, + { + value: 1350, + label: '屏南县', + pvalue: 22, + }, + { + value: 1351, + label: '寿宁县', + pvalue: 22, + }, + { + value: 1352, + label: '周宁县', + pvalue: 22, + }, + { + value: 1353, + label: '柘荣县', + pvalue: 22, + }, + { + value: 1354, + label: '龙岩市', + pvalue: 22, + }, + { + value: 1355, + label: '长汀县', + pvalue: 22, + }, + { + value: 1356, + label: '永定县', + pvalue: 22, + }, + { + value: 1357, + label: '上杭县', + pvalue: 22, + }, + { + value: 1358, + label: '武平县', + pvalue: 22, + }, + { + value: 1359, + label: '漳平市', + pvalue: 22, + }, + { + value: 1360, + label: '连城县', + pvalue: 22, + }, + ], + }, + { + value: 23, + label: '贵州省', + pvalue: 0, + children: [ + { + value: 1970, + label: '贵阳市', + pvalue: 23, + }, + { + value: 1971, + label: '清镇市', + pvalue: 23, + }, + { + value: 1972, + label: '修文县', + pvalue: 23, + }, + { + value: 1973, + label: '息烽县', + pvalue: 23, + }, + { + value: 1974, + label: '开阳县', + pvalue: 23, + }, + { + value: 1975, + label: '六盘水市', + pvalue: 23, + }, + { + value: 1976, + label: '六枝特区', + pvalue: 23, + }, + { + value: 1977, + label: '盘县', + pvalue: 23, + }, + { + value: 1978, + label: '遵义市', + pvalue: 23, + }, + { + value: 1979, + label: '遵义县', + pvalue: 23, + }, + { + value: 1980, + label: '桐梓县', + pvalue: 23, + }, + { + value: 1981, + label: '绥阳县', + pvalue: 23, + }, + { + value: 1982, + label: '正安县', + pvalue: 23, + }, + { + value: 1983, + label: '道真县', + pvalue: 23, + }, + { + value: 1984, + label: '务川县', + pvalue: 23, + }, + { + value: 1985, + label: '凤冈县', + pvalue: 23, + }, + { + value: 1986, + label: '湄潭县', + pvalue: 23, + }, + { + value: 1987, + label: '余庆县', + pvalue: 23, + }, + { + value: 1988, + label: '仁怀市', + pvalue: 23, + }, + { + value: 1989, + label: '赤水市', + pvalue: 23, + }, + { + value: 1990, + label: '习水县', + pvalue: 23, + }, + { + value: 1991, + label: '铜仁市', + pvalue: 23, + }, + { + value: 1992, + label: '江口县', + pvalue: 23, + }, + { + value: 1993, + label: '玉屏县', + pvalue: 23, + }, + { + value: 1994, + label: '石阡县', + pvalue: 23, + }, + { + value: 1995, + label: '思南县', + pvalue: 23, + }, + { + value: 1996, + label: '印江县', + pvalue: 23, + }, + { + value: 1997, + label: '德江县', + pvalue: 23, + }, + { + value: 1998, + label: '沿河县', + pvalue: 23, + }, + { + value: 1999, + label: '松桃县', + pvalue: 23, + }, + { + value: 2000, + label: '万山特区', + pvalue: 23, + }, + { + value: 2001, + label: '兴义市', + pvalue: 23, + }, + { + value: 2002, + label: '兴仁县', + pvalue: 23, + }, + { + value: 2003, + label: '普安县', + pvalue: 23, + }, + { + value: 2004, + label: '晴隆县', + pvalue: 23, + }, + { + value: 2005, + label: '贞丰县', + pvalue: 23, + }, + { + value: 2006, + label: '望漠县', + pvalue: 23, + }, + { + value: 2007, + label: '册亨县', + pvalue: 23, + }, + { + value: 2008, + label: '安龙县', + pvalue: 23, + }, + { + value: 2009, + label: '毕节市', + pvalue: 23, + }, + { + value: 2010, + label: '大方县', + pvalue: 23, + }, + { + value: 2011, + label: '黔西县', + pvalue: 23, + }, + { + value: 2012, + label: '金沙县', + pvalue: 23, + }, + { + value: 2013, + label: '织金县', + pvalue: 23, + }, + { + value: 2014, + label: '纳雍县', + pvalue: 23, + }, + { + value: 2015, + label: '威宁县', + pvalue: 23, + }, + { + value: 2016, + label: '赫章县', + pvalue: 23, + }, + { + value: 2017, + label: '安顺市', + pvalue: 23, + }, + { + value: 2018, + label: '平坝县', + pvalue: 23, + }, + { + value: 2019, + label: '普定县', + pvalue: 23, + }, + { + value: 2020, + label: '关岭县', + pvalue: 23, + }, + { + value: 2021, + label: '镇宁县', + pvalue: 23, + }, + { + value: 2022, + label: '紫云县', + pvalue: 23, + }, + { + value: 2023, + label: '凯里市', + pvalue: 23, + }, + { + value: 2024, + label: '黄平县', + pvalue: 23, + }, + { + value: 2025, + label: '施秉县', + pvalue: 23, + }, + { + value: 2026, + label: '三穗县', + pvalue: 23, + }, + { + value: 2027, + label: '镇远县', + pvalue: 23, + }, + { + value: 2028, + label: '岑巩县', + pvalue: 23, + }, + { + value: 2029, + label: '天柱县', + pvalue: 23, + }, + { + value: 2030, + label: '锦屏县', + pvalue: 23, + }, + { + value: 2031, + label: '剑河县', + pvalue: 23, + }, + { + value: 2032, + label: '台江县', + pvalue: 23, + }, + { + value: 2033, + label: '黎平县', + pvalue: 23, + }, + { + value: 2034, + label: '榕江县', + pvalue: 23, + }, + { + value: 2035, + label: '从江县', + pvalue: 23, + }, + { + value: 2036, + label: '雷山县', + pvalue: 23, + }, + { + value: 2037, + label: '麻江县', + pvalue: 23, + }, + { + value: 2038, + label: '丹寨县', + pvalue: 23, + }, + { + value: 2039, + label: '都匀市', + pvalue: 23, + }, + { + value: 2040, + label: '荔波县', + pvalue: 23, + }, + { + value: 2041, + label: '贵定县', + pvalue: 23, + }, + { + value: 2042, + label: '福泉市', + pvalue: 23, + }, + { + value: 2043, + label: '瓮安县', + pvalue: 23, + }, + { + value: 2044, + label: '独山县', + pvalue: 23, + }, + { + value: 2045, + label: '平塘县', + pvalue: 23, + }, + { + value: 2046, + label: '罗甸县', + pvalue: 23, + }, + { + value: 2047, + label: '长顺县', + pvalue: 23, + }, + { + value: 2048, + label: '龙里县', + pvalue: 23, + }, + { + value: 2049, + label: '惠水县', + pvalue: 23, + }, + { + value: 2050, + label: '三都县', + pvalue: 23, + }, + ], + }, + { + value: 24, + label: '广东省', + pvalue: 0, + children: [ + { + value: 342, + label: '广州市', + pvalue: 24, + }, + { + value: 343, + label: '增城市', + pvalue: 24, + }, + { + value: 344, + label: '从化市', + pvalue: 24, + }, + { + value: 345, + label: '韶关市', + pvalue: 24, + }, + { + value: 346, + label: '曲江县', + pvalue: 24, + }, + { + value: 347, + label: '始兴县', + pvalue: 24, + }, + { + value: 348, + label: '南雄市', + pvalue: 24, + }, + { + value: 349, + label: '仁化县', + pvalue: 24, + }, + { + value: 350, + label: '乐昌市', + pvalue: 24, + }, + { + value: 351, + label: '翁源县', + pvalue: 24, + }, + { + value: 352, + label: '乳源县', + pvalue: 24, + }, + { + value: 353, + label: '新丰县', + pvalue: 24, + }, + { + value: 354, + label: '深圳市', + pvalue: 24, + }, + { + value: 355, + label: '珠海市', + pvalue: 24, + }, + { + value: 356, + label: '汕头市', + pvalue: 24, + }, + { + value: 357, + label: '澄海市', + pvalue: 24, + }, + { + value: 358, + label: '饶平县', + pvalue: 24, + }, + { + value: 359, + label: '南澳县', + pvalue: 24, + }, + { + value: 360, + label: '潮阳市', + pvalue: 24, + }, + { + value: 361, + label: '揭阳市', + pvalue: 24, + }, + { + value: 362, + label: '揭西县', + pvalue: 24, + }, + { + value: 363, + label: '普宁市', + pvalue: 24, + }, + { + value: 364, + label: '惠来县', + pvalue: 24, + }, + { + value: 365, + label: '潮州市', + pvalue: 24, + }, + { + value: 366, + label: '揭东县', + pvalue: 24, + }, + { + value: 367, + label: '潮安营业部', + pvalue: 24, + }, + { + value: 368, + label: '佛山市', + pvalue: 24, + }, + { + value: 369, + label: '江门市', + pvalue: 24, + }, + { + value: 370, + label: '台山市', + pvalue: 24, + }, + { + value: 371, + label: '恩平市', + pvalue: 24, + }, + { + value: 372, + label: '开平市', + pvalue: 24, + }, + { + value: 373, + label: '鹤山市', + pvalue: 24, + }, + { + value: 374, + label: '湛江市', + pvalue: 24, + }, + { + value: 375, + label: '吴川市', + pvalue: 24, + }, + { + value: 376, + label: '廉江市', + pvalue: 24, + }, + { + value: 377, + label: '遂溪县', + pvalue: 24, + }, + { + value: 378, + label: '雷州市', + pvalue: 24, + }, + { + value: 379, + label: '徐闻县', + pvalue: 24, + }, + { + value: 380, + label: '茂名市', + pvalue: 24, + }, + { + value: 381, + label: '信宜市', + pvalue: 24, + }, + { + value: 382, + label: '高州市', + pvalue: 24, + }, + { + value: 383, + label: '电白县', + pvalue: 24, + }, + { + value: 384, + label: '化州市', + pvalue: 24, + }, + { + value: 385, + label: '肇庆市', + pvalue: 24, + }, + { + value: 386, + label: '高要市', + pvalue: 24, + }, + { + value: 387, + label: '四会市', + pvalue: 24, + }, + { + value: 388, + label: '广宁县', + pvalue: 24, + }, + { + value: 389, + label: '怀集县', + pvalue: 24, + }, + { + value: 390, + label: '封开县', + pvalue: 24, + }, + { + value: 391, + label: '德庆县', + pvalue: 24, + }, + { + value: 392, + label: '云浮市', + pvalue: 24, + }, + { + value: 393, + label: '新兴县', + pvalue: 24, + }, + { + value: 394, + label: '郁南县', + pvalue: 24, + }, + { + value: 395, + label: '罗定市', + pvalue: 24, + }, + { + value: 396, + label: '惠州市', + pvalue: 24, + }, + { + value: 397, + label: '博罗县', + pvalue: 24, + }, + { + value: 398, + label: '惠东县', + pvalue: 24, + }, + { + value: 399, + label: '龙门县', + pvalue: 24, + }, + { + value: 400, + label: '大亚湾营业部', + pvalue: 24, + }, + { + value: 401, + label: '梅州市', + pvalue: 24, + }, + { + value: 402, + label: '大埔县', + pvalue: 24, + }, + { + value: 403, + label: '丰顺县', + pvalue: 24, + }, + { + value: 404, + label: '五华县', + pvalue: 24, + }, + { + value: 405, + label: '兴宁市', + pvalue: 24, + }, + { + value: 406, + label: '平远县', + pvalue: 24, + }, + { + value: 407, + label: '蕉岭县', + pvalue: 24, + }, + { + value: 408, + label: '汕尾市', + pvalue: 24, + }, + { + value: 409, + label: '海丰县', + pvalue: 24, + }, + { + value: 410, + label: '陆丰市', + pvalue: 24, + }, + { + value: 411, + label: '陆河县', + pvalue: 24, + }, + { + value: 412, + label: '河源市', + pvalue: 24, + }, + { + value: 413, + label: '紫金县', + pvalue: 24, + }, + { + value: 414, + label: '龙川县', + pvalue: 24, + }, + { + value: 415, + label: '连平县', + pvalue: 24, + }, + { + value: 416, + label: '和平县', + pvalue: 24, + }, + { + value: 417, + label: '东源县', + pvalue: 24, + }, + { + value: 418, + label: '阳江市', + pvalue: 24, + }, + { + value: 419, + label: '阳西县', + pvalue: 24, + }, + { + value: 420, + label: '阳春市', + pvalue: 24, + }, + { + value: 421, + label: '阳东县', + pvalue: 24, + }, + { + value: 422, + label: '清远市', + pvalue: 24, + }, + { + value: 423, + label: '佛冈县', + pvalue: 24, + }, + { + value: 424, + label: '英德市', + pvalue: 24, + }, + { + value: 425, + label: '阳山县', + pvalue: 24, + }, + { + value: 426, + label: '连州市', + pvalue: 24, + }, + { + value: 427, + label: '连山县', + pvalue: 24, + }, + { + value: 428, + label: '连南县', + pvalue: 24, + }, + { + value: 429, + label: '清新县', + pvalue: 24, + }, + { + value: 430, + label: '东莞市', + pvalue: 24, + }, + { + value: 431, + label: '中山市', + pvalue: 24, + }, + ], + }, + { + value: 25, + label: '青海省', + pvalue: 0, + children: [ + { + value: 2208, + label: '西宁市', + pvalue: 25, + }, + { + value: 2209, + label: '湟源县', + pvalue: 25, + }, + { + value: 2210, + label: '湟中县', + pvalue: 25, + }, + { + value: 2211, + label: '大通回族土族自治县', + pvalue: 25, + }, + { + value: 2212, + label: '海东地区', + pvalue: 25, + }, + { + value: 2213, + label: '平安县', + pvalue: 25, + }, + { + value: 2214, + label: '民和回族土族自治县', + pvalue: 25, + }, + { + value: 2215, + label: '乐都县', + pvalue: 25, + }, + { + value: 2216, + label: '互助土族自治县', + pvalue: 25, + }, + { + value: 2217, + label: '化隆回族自治县', + pvalue: 25, + }, + { + value: 2218, + label: '循化撒拉族自治县', + pvalue: 25, + }, + { + value: 2219, + label: '海北藏族自治州', + pvalue: 25, + }, + { + value: 2220, + label: '门源回族自治县', + pvalue: 25, + }, + { + value: 2221, + label: '祁连县', + pvalue: 25, + }, + { + value: 2222, + label: '海晏县', + pvalue: 25, + }, + { + value: 2223, + label: '刚察县', + pvalue: 25, + }, + { + value: 2224, + label: '黄南藏族自治州', + pvalue: 25, + }, + { + value: 2225, + label: '同仁县', + pvalue: 25, + }, + { + value: 2226, + label: '尖扎县', + pvalue: 25, + }, + { + value: 2227, + label: '泽库县', + pvalue: 25, + }, + { + value: 2228, + label: '河南蒙古族自治县', + pvalue: 25, + }, + { + value: 2229, + label: '海南藏族自治州', + pvalue: 25, + }, + { + value: 2230, + label: '共和县', + pvalue: 25, + }, + { + value: 2231, + label: '同德县', + pvalue: 25, + }, + { + value: 2232, + label: '贵德县', + pvalue: 25, + }, + { + value: 2233, + label: '兴海县', + pvalue: 25, + }, + { + value: 2234, + label: '贵南县', + pvalue: 25, + }, + { + value: 2235, + label: '果洛藏族自治州', + pvalue: 25, + }, + { + value: 2236, + label: '玛沁县', + pvalue: 25, + }, + { + value: 2237, + label: '班玛县', + pvalue: 25, + }, + { + value: 2238, + label: '甘德县', + pvalue: 25, + }, + { + value: 2239, + label: '达日县', + pvalue: 25, + }, + { + value: 2240, + label: '久治县', + pvalue: 25, + }, + { + value: 2241, + label: '玛多县', + pvalue: 25, + }, + { + value: 2242, + label: '玉树藏族自治州', + pvalue: 25, + }, + { + value: 2243, + label: '玉树县', + pvalue: 25, + }, + { + value: 2244, + label: '杂多县', + pvalue: 25, + }, + { + value: 2245, + label: '称多县', + pvalue: 25, + }, + { + value: 2246, + label: '治多县', + pvalue: 25, + }, + { + value: 2247, + label: '囊谦县', + pvalue: 25, + }, + { + value: 2248, + label: '曲麻莱县', + pvalue: 25, + }, + { + value: 2249, + label: '海西蒙古族藏族自治州', + pvalue: 25, + }, + { + value: 2250, + label: '格尔木市', + pvalue: 25, + }, + { + value: 2251, + label: '德令哈市', + pvalue: 25, + }, + { + value: 2252, + label: '乌兰县', + pvalue: 25, + }, + { + value: 2253, + label: '都兰县', + pvalue: 25, + }, + { + value: 2254, + label: '天峻县', + pvalue: 25, + }, + ], + }, + { + value: 26, + label: '西藏自治区', + pvalue: 0, + children: [ + { + value: 2051, + label: '拉萨市', + pvalue: 26, + }, + { + value: 2052, + label: '墨竹工卡县', + pvalue: 26, + }, + { + value: 2053, + label: '达孜县', + pvalue: 26, + }, + { + value: 2054, + label: '堆龙德庆县', + pvalue: 26, + }, + { + value: 2055, + label: '曲水县', + pvalue: 26, + }, + { + value: 2056, + label: '尼木县', + pvalue: 26, + }, + { + value: 2057, + label: '当雄县', + pvalue: 26, + }, + { + value: 2058, + label: '林周县', + pvalue: 26, + }, + { + value: 2059, + label: '昌都县', + pvalue: 26, + }, + { + value: 2060, + label: '江达县', + pvalue: 26, + }, + { + value: 2061, + label: '贡觉县', + pvalue: 26, + }, + { + value: 2062, + label: '类乌齐县', + pvalue: 26, + }, + { + value: 2063, + label: '丁青县', + pvalue: 26, + }, + { + value: 2064, + label: '察雅县', + pvalue: 26, + }, + { + value: 2065, + label: '八宿县', + pvalue: 26, + }, + { + value: 2066, + label: '左贡县', + pvalue: 26, + }, + { + value: 2067, + label: '芒康县', + pvalue: 26, + }, + { + value: 2068, + label: '洛隆县', + pvalue: 26, + }, + { + value: 2069, + label: '边坝县', + pvalue: 26, + }, + { + value: 2070, + label: '乃东县', + pvalue: 26, + }, + { + value: 2071, + label: '扎囊县', + pvalue: 26, + }, + { + value: 2072, + label: '贡嘎县', + pvalue: 26, + }, + { + value: 2073, + label: '桑日县', + pvalue: 26, + }, + { + value: 2074, + label: '琼结县', + pvalue: 26, + }, + { + value: 2075, + label: '曲松县', + pvalue: 26, + }, + { + value: 2076, + label: '措美县', + pvalue: 26, + }, + { + value: 2077, + label: '洛扎县', + pvalue: 26, + }, + { + value: 2078, + label: '加查县', + pvalue: 26, + }, + { + value: 2079, + label: '隆子县', + pvalue: 26, + }, + { + value: 2080, + label: '错那县', + pvalue: 26, + }, + { + value: 2081, + label: '浪卡子县', + pvalue: 26, + }, + { + value: 2082, + label: '日喀则市', + pvalue: 26, + }, + { + value: 2083, + label: '南木林县', + pvalue: 26, + }, + { + value: 2084, + label: '江孜县', + pvalue: 26, + }, + { + value: 2085, + label: '定日县', + pvalue: 26, + }, + { + value: 2086, + label: '萨迦县', + pvalue: 26, + }, + { + value: 2087, + label: '拉孜县', + pvalue: 26, + }, + { + value: 2088, + label: '昂仁县', + pvalue: 26, + }, + { + value: 2089, + label: '谢通门县', + pvalue: 26, + }, + { + value: 2090, + label: '白朗县', + pvalue: 26, + }, + { + value: 2091, + label: '仁布县', + pvalue: 26, + }, + { + value: 2092, + label: '康马县', + pvalue: 26, + }, + { + value: 2093, + label: '定结县', + pvalue: 26, + }, + { + value: 2094, + label: '仲巴县', + pvalue: 26, + }, + { + value: 2095, + label: '亚东县', + pvalue: 26, + }, + { + value: 2096, + label: '吉隆县', + pvalue: 26, + }, + { + value: 2097, + label: '聂拉木县', + pvalue: 26, + }, + { + value: 2098, + label: '萨嘎县', + pvalue: 26, + }, + { + value: 2099, + label: '岗巴县', + pvalue: 26, + }, + { + value: 2100, + label: '樟木口岸镇', + pvalue: 26, + }, + { + value: 2101, + label: '那曲县', + pvalue: 26, + }, + { + value: 2102, + label: '嘉黎县', + pvalue: 26, + }, + { + value: 2103, + label: '比如县', + pvalue: 26, + }, + { + value: 2104, + label: '聂荣县', + pvalue: 26, + }, + { + value: 2105, + label: '安多县', + pvalue: 26, + }, + { + value: 2106, + label: '申扎县', + pvalue: 26, + }, + { + value: 2107, + label: '索县', + pvalue: 26, + }, + { + value: 2108, + label: '班戈县', + pvalue: 26, + }, + { + value: 2109, + label: '巴青县', + pvalue: 26, + }, + { + value: 2110, + label: '尼玛县', + pvalue: 26, + }, + { + value: 2111, + label: '双湖特别行政区', + pvalue: 26, + }, + { + value: 2112, + label: '普兰县', + pvalue: 26, + }, + { + value: 2113, + label: '札达县', + pvalue: 26, + }, + { + value: 2114, + label: '噶尔县', + pvalue: 26, + }, + { + value: 2115, + label: '日土县', + pvalue: 26, + }, + { + value: 2116, + label: '革吉县', + pvalue: 26, + }, + { + value: 2117, + label: '改则县', + pvalue: 26, + }, + { + value: 2118, + label: '措勤县', + pvalue: 26, + }, + { + value: 2119, + label: '林芝县', + pvalue: 26, + }, + { + value: 2120, + label: '工布江达县', + pvalue: 26, + }, + { + value: 2121, + label: '米林县', + pvalue: 26, + }, + { + value: 2122, + label: '墨脱县', + pvalue: 26, + }, + { + value: 2123, + label: '波密县', + pvalue: 26, + }, + { + value: 2124, + label: '察隅县', + pvalue: 26, + }, + { + value: 2125, + label: '朗县', + pvalue: 26, + }, + ], + }, + { + value: 27, + label: '四川省', + pvalue: 0, + children: [ + { + value: 432, + label: '邛崃市', + pvalue: 27, + }, + { + value: 433, + label: '大邑县', + pvalue: 27, + }, + { + value: 434, + label: '崇州市', + pvalue: 27, + }, + { + value: 435, + label: '彭州市', + pvalue: 27, + }, + { + value: 436, + label: '郫县', + pvalue: 27, + }, + { + value: 437, + label: '双流县', + pvalue: 27, + }, + { + value: 438, + label: '金堂县', + pvalue: 27, + }, + { + value: 439, + label: '成都市', + pvalue: 27, + }, + { + value: 440, + label: '都江堰市', + pvalue: 27, + }, + { + value: 441, + label: '新津县', + pvalue: 27, + }, + { + value: 442, + label: '蒲江县', + pvalue: 27, + }, + { + value: 443, + label: '温江区', + pvalue: 27, + }, + { + value: 444, + label: '新都区', + pvalue: 27, + }, + { + value: 445, + label: '自贡市', + pvalue: 27, + }, + { + value: 446, + label: '荣县', + pvalue: 27, + }, + { + value: 447, + label: '富顺县', + pvalue: 27, + }, + { + value: 448, + label: '攀枝花市', + pvalue: 27, + }, + { + value: 449, + label: '米易县', + pvalue: 27, + }, + { + value: 450, + label: '盐边县', + pvalue: 27, + }, + { + value: 451, + label: '泸州市', + pvalue: 27, + }, + { + value: 452, + label: '泸县', + pvalue: 27, + }, + { + value: 453, + label: '合江县', + pvalue: 27, + }, + { + value: 454, + label: '纳溪区', + pvalue: 27, + }, + { + value: 455, + label: '叙永县', + pvalue: 27, + }, + { + value: 456, + label: '古蔺县', + pvalue: 27, + }, + { + value: 457, + label: '德阳市', + pvalue: 27, + }, + { + value: 458, + label: '绵竹市', + pvalue: 27, + }, + { + value: 459, + label: '中江县', + pvalue: 27, + }, + { + value: 460, + label: '什邡市', + pvalue: 27, + }, + { + value: 461, + label: '广汉市', + pvalue: 27, + }, + { + value: 462, + label: '罗江县', + pvalue: 27, + }, + { + value: 463, + label: '绵阳市', + pvalue: 27, + }, + { + value: 464, + label: '三台县', + pvalue: 27, + }, + { + value: 465, + label: '盐亭县', + pvalue: 27, + }, + { + value: 466, + label: '安县', + pvalue: 27, + }, + { + value: 467, + label: '梓潼县', + pvalue: 27, + }, + { + value: 468, + label: '北川县', + pvalue: 27, + }, + { + value: 469, + label: '平武县', + pvalue: 27, + }, + { + value: 470, + label: '江油市', + pvalue: 27, + }, + { + value: 471, + label: '广元市', + pvalue: 27, + }, + { + value: 472, + label: '旺苍县', + pvalue: 27, + }, + { + value: 473, + label: '青川县', + pvalue: 27, + }, + { + value: 474, + label: '剑阁县', + pvalue: 27, + }, + { + value: 475, + label: '苍溪县', + pvalue: 27, + }, + { + value: 476, + label: '遂宁市', + pvalue: 27, + }, + { + value: 477, + label: '蓬溪县', + pvalue: 27, + }, + { + value: 478, + label: '射洪县', + pvalue: 27, + }, + { + value: 479, + label: '大英县', + pvalue: 27, + }, + { + value: 480, + label: '内江市', + pvalue: 27, + }, + { + value: 481, + label: '乐至县', + pvalue: 27, + }, + { + value: 482, + label: '安岳县', + pvalue: 27, + }, + { + value: 483, + label: '威远县', + pvalue: 27, + }, + { + value: 484, + label: '资中县', + pvalue: 27, + }, + { + value: 485, + label: '资阳市', + pvalue: 27, + }, + { + value: 486, + label: '简阳市', + pvalue: 27, + }, + { + value: 487, + label: '隆昌县', + pvalue: 27, + }, + { + value: 488, + label: '乐山市', + pvalue: 27, + }, + { + value: 489, + label: '仁寿县', + pvalue: 27, + }, + { + value: 490, + label: '眉山市', + pvalue: 27, + }, + { + value: 491, + label: '犍为县', + pvalue: 27, + }, + { + value: 492, + label: '井研县', + pvalue: 27, + }, + { + value: 493, + label: '夹江县', + pvalue: 27, + }, + { + value: 494, + label: '洪雅县', + pvalue: 27, + }, + { + value: 495, + label: '彭山县', + pvalue: 27, + }, + { + value: 496, + label: '沐川县', + pvalue: 27, + }, + { + value: 497, + label: '青神县', + pvalue: 27, + }, + { + value: 498, + label: '峨边县', + pvalue: 27, + }, + { + value: 499, + label: '马边县', + pvalue: 27, + }, + { + value: 500, + label: '峨眉山市', + pvalue: 27, + }, + { + value: 501, + label: '丹棱县', + pvalue: 27, + }, + { + value: 502, + label: '宜宾市', + pvalue: 27, + }, + { + value: 503, + label: '宜宾县', + pvalue: 27, + }, + { + value: 504, + label: '南溪县', + pvalue: 27, + }, + { + value: 505, + label: '江安县', + pvalue: 27, + }, + { + value: 506, + label: '长宁县', + pvalue: 27, + }, + { + value: 507, + label: '高县', + pvalue: 27, + }, + { + value: 508, + label: '筠连县', + pvalue: 27, + }, + { + value: 509, + label: '珙县', + pvalue: 27, + }, + { + value: 510, + label: '兴文县', + pvalue: 27, + }, + { + value: 511, + label: '屏山县', + pvalue: 27, + }, + { + value: 512, + label: '南充市', + pvalue: 27, + }, + { + value: 513, + label: '华蓥市', + pvalue: 27, + }, + { + value: 514, + label: '南部县', + pvalue: 27, + }, + { + value: 515, + label: '岳池县', + pvalue: 27, + }, + { + value: 516, + label: '营山县', + pvalue: 27, + }, + { + value: 517, + label: '广安市', + pvalue: 27, + }, + { + value: 518, + label: '蓬安县', + pvalue: 27, + }, + { + value: 519, + label: '仪陇县', + pvalue: 27, + }, + { + value: 520, + label: '武胜县', + pvalue: 27, + }, + { + value: 521, + label: '西充县', + pvalue: 27, + }, + { + value: 522, + label: '阆中市', + pvalue: 27, + }, + { + value: 523, + label: '达州市', + pvalue: 27, + }, + { + value: 524, + label: '达县', + pvalue: 27, + }, + { + value: 525, + label: '宣汉县', + pvalue: 27, + }, + { + value: 526, + label: '开江县', + pvalue: 27, + }, + { + value: 527, + label: '万源市', + pvalue: 27, + }, + { + value: 528, + label: '通江县', + pvalue: 27, + }, + { + value: 529, + label: '南江县', + pvalue: 27, + }, + { + value: 530, + label: '巴中市', + pvalue: 27, + }, + { + value: 531, + label: '平昌县', + pvalue: 27, + }, + { + value: 532, + label: '大竹县', + pvalue: 27, + }, + { + value: 533, + label: '渠县', + pvalue: 27, + }, + { + value: 534, + label: '邻水县', + pvalue: 27, + }, + { + value: 535, + label: '雅安市', + pvalue: 27, + }, + { + value: 536, + label: '名山县', + pvalue: 27, + }, + { + value: 537, + label: '荥经县', + pvalue: 27, + }, + { + value: 538, + label: '汉源县', + pvalue: 27, + }, + { + value: 539, + label: '石棉县', + pvalue: 27, + }, + { + value: 540, + label: '天全县', + pvalue: 27, + }, + { + value: 541, + label: '芦山县', + pvalue: 27, + }, + { + value: 542, + label: '宝兴县', + pvalue: 27, + }, + { + value: 543, + label: '马尔康县', + pvalue: 27, + }, + { + value: 544, + label: '汶川县', + pvalue: 27, + }, + { + value: 545, + label: '理县', + pvalue: 27, + }, + { + value: 546, + label: '茂县', + pvalue: 27, + }, + { + value: 547, + label: '松潘县', + pvalue: 27, + }, + { + value: 548, + label: '九寨沟县', + pvalue: 27, + }, + { + value: 549, + label: '小金县', + pvalue: 27, + }, + { + value: 550, + label: '黑水县', + pvalue: 27, + }, + { + value: 551, + label: '壤塘县', + pvalue: 27, + }, + { + value: 552, + label: '阿坝县', + pvalue: 27, + }, + { + value: 553, + label: '若尔盖县', + pvalue: 27, + }, + { + value: 554, + label: '红原县', + pvalue: 27, + }, + { + value: 555, + label: '金川县', + pvalue: 27, + }, + { + value: 556, + label: '康定县', + pvalue: 27, + }, + { + value: 557, + label: '泸定县', + pvalue: 27, + }, + { + value: 558, + label: '丹巴县', + pvalue: 27, + }, + { + value: 559, + label: '九龙县', + pvalue: 27, + }, + { + value: 560, + label: '雅江县', + pvalue: 27, + }, + { + value: 561, + label: '道孚县', + pvalue: 27, + }, + { + value: 562, + label: '炉霍县', + pvalue: 27, + }, + { + value: 563, + label: '甘孜县', + pvalue: 27, + }, + { + value: 564, + label: '新龙县', + pvalue: 27, + }, + { + value: 565, + label: '德格县', + pvalue: 27, + }, + { + value: 566, + label: '白玉县', + pvalue: 27, + }, + { + value: 567, + label: '石渠县', + pvalue: 27, + }, + { + value: 568, + label: '色达县', + pvalue: 27, + }, + { + value: 569, + label: '理塘县', + pvalue: 27, + }, + { + value: 570, + label: '巴塘县', + pvalue: 27, + }, + { + value: 571, + label: '乡城县', + pvalue: 27, + }, + { + value: 572, + label: '稻城县', + pvalue: 27, + }, + { + value: 573, + label: '得荣县', + pvalue: 27, + }, + { + value: 574, + label: '西昌市', + pvalue: 27, + }, + { + value: 575, + label: '木里县', + pvalue: 27, + }, + { + value: 576, + label: '盐源县', + pvalue: 27, + }, + { + value: 577, + label: '会理县', + pvalue: 27, + }, + { + value: 578, + label: '会东县', + pvalue: 27, + }, + { + value: 579, + label: '宁南县', + pvalue: 27, + }, + { + value: 580, + label: '普格县', + pvalue: 27, + }, + { + value: 581, + label: '布拖县', + pvalue: 27, + }, + { + value: 582, + label: '金阳县', + pvalue: 27, + }, + { + value: 583, + label: '昭觉县', + pvalue: 27, + }, + { + value: 584, + label: '喜德县', + pvalue: 27, + }, + { + value: 585, + label: '冕宁县', + pvalue: 27, + }, + { + value: 586, + label: '越西县', + pvalue: 27, + }, + { + value: 587, + label: '甘洛县', + pvalue: 27, + }, + { + value: 588, + label: '美姑县', + pvalue: 27, + }, + { + value: 589, + label: '雷波县', + pvalue: 27, + }, + { + value: 590, + label: '德昌县', + pvalue: 27, + }, + ], + }, + { + value: 28, + label: '宁夏回族自治区', + pvalue: 0, + children: [ + { + value: 591, + label: '银川市', + pvalue: 28, + }, + { + value: 592, + label: '灵武市', + pvalue: 28, + }, + { + value: 593, + label: '贺兰县', + pvalue: 28, + }, + { + value: 594, + label: '永宁县', + pvalue: 28, + }, + { + value: 595, + label: '石嘴山市', + pvalue: 28, + }, + { + value: 596, + label: '平罗县', + pvalue: 28, + }, + { + value: 597, + label: '吴忠市', + pvalue: 28, + }, + { + value: 598, + label: '青铜峡市', + pvalue: 28, + }, + { + value: 599, + label: '中卫市', + pvalue: 28, + }, + { + value: 600, + label: '中宁县', + pvalue: 28, + }, + { + value: 601, + label: '盐池县', + pvalue: 28, + }, + { + value: 602, + label: '同心县', + pvalue: 28, + }, + { + value: 603, + label: '固原市', + pvalue: 28, + }, + { + value: 604, + label: '海原县', + pvalue: 28, + }, + { + value: 605, + label: '西吉县', + pvalue: 28, + }, + { + value: 606, + label: '隆德县', + pvalue: 28, + }, + { + value: 607, + label: '泾源县', + pvalue: 28, + }, + { + value: 608, + label: '彭阳县', + pvalue: 28, + }, + ], + }, + { + value: 29, + label: '海南省', + pvalue: 0, + children: [ + { + value: 1157, + label: '海口市', + pvalue: 29, + }, + { + value: 1158, + label: '琼中县', + pvalue: 29, + }, + { + value: 1159, + label: '保亭县', + pvalue: 29, + }, + { + value: 1160, + label: '陵水县', + pvalue: 29, + }, + { + value: 1161, + label: '乐东县', + pvalue: 29, + }, + { + value: 1162, + label: '东方市', + pvalue: 29, + }, + { + value: 1163, + label: '昌江县', + pvalue: 29, + }, + { + value: 1164, + label: '白沙县', + pvalue: 29, + }, + { + value: 1165, + label: '儋州市', + pvalue: 29, + }, + { + value: 1166, + label: '临高县', + pvalue: 29, + }, + { + value: 1167, + label: '澄迈县', + pvalue: 29, + }, + { + value: 1168, + label: '屯昌县', + pvalue: 29, + }, + { + value: 1169, + label: '定安县', + pvalue: 29, + }, + { + value: 1170, + label: '万宁市', + pvalue: 29, + }, + { + value: 1171, + label: '琼海市', + pvalue: 29, + }, + { + value: 1172, + label: '文昌市', + pvalue: 29, + }, + { + value: 1173, + label: '琼山市', + pvalue: 29, + }, + { + value: 1174, + label: '五指山市', + pvalue: 29, + }, + { + value: 1175, + label: '三亚市', + pvalue: 29, + }, + ], + }, + { + value: 30, + label: '台湾', + pvalue: 0, + }, + { + value: 31, + label: '澳门', + pvalue: 0, + }, + { + value: 32, + label: '香港', + pvalue: 0, + }, + { + value: 33, + label: '北京市', + pvalue: 0, + children: [ + { + value: 2379, + label: '东城区', + pvalue: 33, + }, + { + value: 2380, + label: '西城区', + pvalue: 33, + }, + { + value: 2381, + label: '朝阳区', + pvalue: 33, + }, + { + value: 2382, + label: '丰台区', + pvalue: 33, + }, + { + value: 2383, + label: '石景山区', + pvalue: 33, + }, + { + value: 2384, + label: '海淀区', + pvalue: 33, + }, + { + value: 2385, + label: '顺义区', + pvalue: 33, + }, + { + value: 2386, + label: '通州区', + pvalue: 33, + }, + { + value: 2387, + label: '大兴区', + pvalue: 33, + }, + { + value: 2388, + label: '房山区', + pvalue: 33, + }, + { + value: 2389, + label: '门头沟区', + pvalue: 33, + }, + { + value: 2390, + label: '昌平区', + pvalue: 33, + }, + { + value: 2391, + label: '平谷区', + pvalue: 33, + }, + { + value: 2392, + label: '密云区', + pvalue: 33, + }, + { + value: 2393, + label: '怀柔区', + pvalue: 33, + }, + { + value: 2394, + label: '延庆区', + pvalue: 33, + }, + ], + }, + { + value: 34, + label: '湖北省', + pvalue: 0, + children: [ + { + value: 266, + label: '武汉市', + pvalue: 34, + }, + { + value: 267, + label: '黄石市', + pvalue: 34, + }, + { + value: 268, + label: '大冶市', + pvalue: 34, + }, + { + value: 269, + label: '十堰市', + pvalue: 34, + }, + { + value: 270, + label: '宜昌市', + pvalue: 34, + }, + { + value: 271, + label: '宜都市', + pvalue: 34, + }, + { + value: 272, + label: '当阳市', + pvalue: 34, + }, + { + value: 273, + label: '宜昌县', + pvalue: 34, + }, + { + value: 274, + label: '枝江市', + pvalue: 34, + }, + { + value: 275, + label: '远安县', + pvalue: 34, + }, + { + value: 276, + label: '兴山县', + pvalue: 34, + }, + { + value: 277, + label: '秭归县', + pvalue: 34, + }, + { + value: 278, + label: '长阳县', + pvalue: 34, + }, + { + value: 279, + label: '五峰县', + pvalue: 34, + }, + { + value: 280, + label: '襄樊市', + pvalue: 34, + }, + { + value: 281, + label: '宜城县', + pvalue: 34, + }, + { + value: 282, + label: '南漳县', + pvalue: 34, + }, + { + value: 283, + label: '谷城县', + pvalue: 34, + }, + { + value: 284, + label: '保康县', + pvalue: 34, + }, + { + value: 285, + label: '随州市', + pvalue: 34, + }, + { + value: 286, + label: '老河口市', + pvalue: 34, + }, + { + value: 287, + label: '枣阳市', + pvalue: 34, + }, + { + value: 288, + label: '鄂州市', + pvalue: 34, + }, + { + value: 289, + label: '神农架林区', + pvalue: 34, + }, + { + value: 290, + label: '荆门市', + pvalue: 34, + }, + { + value: 291, + label: '黄冈市', + pvalue: 34, + }, + { + value: 292, + label: '麻城市', + pvalue: 34, + }, + { + value: 293, + label: '武穴市', + pvalue: 34, + }, + { + value: 294, + label: '团风县', + pvalue: 34, + }, + { + value: 295, + label: '红安县', + pvalue: 34, + }, + { + value: 296, + label: '罗田县', + pvalue: 34, + }, + { + value: 297, + label: '英山县', + pvalue: 34, + }, + { + value: 298, + label: '浠水县', + pvalue: 34, + }, + { + value: 299, + label: '蕲春县', + pvalue: 34, + }, + { + value: 300, + label: '黄梅县', + pvalue: 34, + }, + { + value: 301, + label: '孝感市', + pvalue: 34, + }, + { + value: 302, + label: '孝昌县', + pvalue: 34, + }, + { + value: 303, + label: '应城市', + pvalue: 34, + }, + { + value: 304, + label: '安陆市', + pvalue: 34, + }, + { + value: 305, + label: '广水市', + pvalue: 34, + }, + { + value: 306, + label: '大悟县', + pvalue: 34, + }, + { + value: 307, + label: '云梦县', + pvalue: 34, + }, + { + value: 308, + label: '汉川县', + pvalue: 34, + }, + { + value: 309, + label: '咸宁市', + pvalue: 34, + }, + { + value: 310, + label: '赤壁市', + pvalue: 34, + }, + { + value: 311, + label: '嘉鱼县', + pvalue: 34, + }, + { + value: 312, + label: '通城县', + pvalue: 34, + }, + { + value: 313, + label: '崇阳县', + pvalue: 34, + }, + { + value: 314, + label: '通山县', + pvalue: 34, + }, + { + value: 315, + label: '阳新县', + pvalue: 34, + }, + { + value: 316, + label: '荆州市', + pvalue: 34, + }, + { + value: 317, + label: '仙桃市', + pvalue: 34, + }, + { + value: 318, + label: '石首市', + pvalue: 34, + }, + { + value: 319, + label: '洪湖市', + pvalue: 34, + }, + { + value: 320, + label: '天门市', + pvalue: 34, + }, + { + value: 321, + label: '潜江市', + pvalue: 34, + }, + { + value: 322, + label: '松滋市', + pvalue: 34, + }, + { + value: 323, + label: '公安县', + pvalue: 34, + }, + { + value: 324, + label: '监利县', + pvalue: 34, + }, + { + value: 325, + label: '钟祥市', + pvalue: 34, + }, + { + value: 326, + label: '京山县', + pvalue: 34, + }, + { + value: 327, + label: '沙洋县', + pvalue: 34, + }, + { + value: 328, + label: '丹江口市', + pvalue: 34, + }, + { + value: 329, + label: '郧县', + pvalue: 34, + }, + { + value: 330, + label: '郧西县', + pvalue: 34, + }, + { + value: 331, + label: '竹山县', + pvalue: 34, + }, + { + value: 332, + label: '竹溪县', + pvalue: 34, + }, + { + value: 333, + label: '房县', + pvalue: 34, + }, + { + value: 334, + label: '恩施州', + pvalue: 34, + }, + { + value: 335, + label: '利川市', + pvalue: 34, + }, + { + value: 336, + label: '建始县', + pvalue: 34, + }, + { + value: 337, + label: '巴东县', + pvalue: 34, + }, + { + value: 338, + label: '宣恩县', + pvalue: 34, + }, + { + value: 339, + label: '咸丰县', + pvalue: 34, + }, + { + value: 340, + label: '来凤县', + pvalue: 34, + }, + { + value: 341, + label: '鹤峰县', + pvalue: 34, + }, + ], + }, +]; diff --git a/apps/web-antd/src/util/tool.ts b/apps/web-antd/src/util/tool.ts new file mode 100644 index 00000000..a9b70cf3 --- /dev/null +++ b/apps/web-antd/src/util/tool.ts @@ -0,0 +1,405 @@ +import type { VbenFormProps } from '#/adapter/form'; +import type { DescItem } from '#/components/description'; + +import { isFunction } from '@vben/utils'; + +export const omit = (obj: any, keysToOmit: string[]) => { + // 如果 obj 不是对象或者 keysToOmit 不是数组,则直接返回 obj + if (typeof obj !== 'object' || !Array.isArray(keysToOmit)) { + return obj; + } + + // 创建一个新的对象,避免修改原始对象 + const result = {} as any; + + // 遍历 obj 的所有键值对 + for (const key in obj) { + // 如果当前键不在要忽略的键列表中,则复制到新对象 + if (!keysToOmit.includes(key)) { + result[key] = obj[key]; + } + } + + return result; +}; +export const get = (object: any, path: string) => { + // 如果 object 不是对象或者 path 不是字符串,则直接返回 defaultValue + if ( + typeof object !== 'object' || + object === null || + typeof path !== 'string' + ) { + return object; + } + + // 将路径字符串转换为数组 + const pathArray = path.split('.').filter(Boolean); // 过滤掉空字符串 + let current = object; + + // 遍历路径数组 + for (const element of pathArray) { + // 如果当前层级不是对象或没有对应的键,则返回 defaultValue + if ( + typeof current !== 'object' || + current === null || + !(element in current) + ) { + return object; + } + // 更新 current 到下一层级 + current = current[element]; + } + + // 返回最终找到的值 + return current; +}; +export const ifDetail = (renderCallbackParams: any): boolean => { + const schema = renderCallbackParams.schema; + if (isFunction(schema.ifDetail)) { + return schema.ifDetail(renderCallbackParams); + } + return schema.ifDetail !== false; +}; + +/** + * 将表单元数据转换为详情表单 + * @param formOptions + * @param values + */ +export const schemaToDetailForm = ( + formOptions: VbenFormProps, + values: any, +): DescItem[] => { + const group: Array = []; + const formSchemas = formOptions.schema; + if (!Array.isArray(formSchemas)) return group; + for (let i = 0; i < formSchemas.length; i++) { + const item = formSchemas[i]; + // 找到分割线 + if (item?.component === 'Divider') { + group.push({ + field: item.fieldName, + label: item.label, + children: [], + } as unknown as DescItem); + // 将分割线后面的数据添加到group中 + for (let j = i + 1; j < formSchemas.length; j++) { + const nextItem = formSchemas[j]; + // 找到下面的分割线 + if (nextItem?.component === 'Divider') { + // 中断 + i = j - 1; + break; + } else { + if ( + ifDetail({ + schema: nextItem, + values, + model: values, + field: item.fieldName, + }) + ) { + group[group.length - 1]?.children?.push({ + field: nextItem?.fieldName, + label: nextItem?.label, + span: nextItem?.detailSpan || 12, + component: nextItem?.component, + componentProps: nextItem?.componentProps, + } as DescItem); + } + } + } + } + } + if (group.length > 0) { + return group; + } + return [ + { + field: 'baseinfo', + label: '基本信息', + children: formSchemas + .filter((item) => { + return ifDetail({ + schema: item, + values, + model: values, + field: item.fieldName, + }); + }) + .map((item) => { + return { + field: item.fieldName, + label: item.label, + span: item.detailSpan || 12, + component: item.component, + componentProps: item.componentProps, + } as DescItem; + }), + } as DescItem, + ]; +}; + +// 获取子节点id +export const getChildIds = (record: any) => { + const ids = [record.id]; + record.children?.forEach((item: any) => { + ids.push(...getChildIds(item)); + }); + return ids; +}; + +/** + * 获取所有叶子节点 + * @param treeData + */ +export const getLeafNodeIds = (treeData: any) => { + const leafNodeIds: any = []; + + function traverse(node: any) { + // 如果当前节点没有 children 或 children 是空数组,则它是叶子节点 + if (!node.children || node.children.length === 0) { + leafNodeIds.push(node.id); + } else { + // 否则,递归遍历每个子节点 + for (const child of node.children) { + traverse(child); + } + } + } + + // 遍历树的根节点 + for (const root of treeData) { + traverse(root); + } + return leafNodeIds; +}; + +/** + * 获取所有节点id + * @param treeData + */ +export const getAllNodeIds = (treeData: any) => { + const allNodeIds: any = []; + + function traverse(node: any) { + // 收集当前节点的 id + allNodeIds.push(node.id); + + // 如果当前节点有 children,则递归遍历每个子节点 + if (node.children && node.children.length > 0) { + for (const child of node.children) { + traverse(child); + } + } + } + + // 遍历树的根节点 + for (const root of treeData) { + traverse(root); + } + + return allNodeIds; +}; + +/** + * -转大驼峰 + * @param str + */ +export const toPascalCase = (str: any) => { + // 将连字符或下划线替换为空格,以便后续处理 + const words = str.replaceAll(/[-_]/g, ' ').split(' '); + + // 将每个单词的首字母大写,并将其余部分保持原样 + const pascalCaseWords = words.map((word: any) => { + if (word) { + return word.charAt(0).toUpperCase() + word.slice(1).toLowerCase(); + } + return word; + }); + + // 将处理后的单词拼接成一个新的字符串 + return pascalCaseWords.join(''); +}; + +/** + * 转-kebab + */ +export const toKebabCase = (str: string) => { + // 将每个单词的首字母小写,并在单词之间插入连字符 + return str + .replaceAll(/([A-Z])/g, (match, _p1, offset) => { + // 如果是第一个字符,直接转为小写 + if (offset === 0) { + return match.toLowerCase(); + } + // 否则,在大写字母前加上连字符,并将大写字母转为小写 + return `-${match.toLowerCase()}`; + }) + .toLowerCase(); // 确保整个字符串都是小写 +}; + +export function getFileNameWithoutExtension(path: string) { + // 使用正则表达式匹配最后一个 / 后面的所有字符,但不包括最后一个点(.)之后的内容 + const match = path.match(/[^/]+(?=\.[^./]+$|$)/); + return match ? match[0].replace(/\.[^/.]+$/, '') : null; +} + +/** + * 数据脱敏 + * @param data + * @param type + */ +export function desensitize(data: string, type: 'bankCard' | 'idCard'): string { + if (!data) return ''; + + switch (type) { + case 'bankCard': { + // 银行卡号脱敏规则:显示前6位和后4位,中间用*代替 + if (data.length < 12) { + throw new Error('Invalid bank card number length'); + } + return data.slice(0, 6) + '*'.repeat(data.length - 10) + data.slice(-4); + } + + case 'idCard': { + // 身份证号脱敏规则:显示前6位和后4位,中间用*代替 + if (data.length !== 18) { + throw new Error('Invalid ID card number length'); + } + return data.slice(0, 6) + '*'.repeat(10) + data.slice(-4); + } + + default: { + throw new Error('Unsupported desensitization type'); + } + } +} + +/** + * 获取操作系统的Icon + * @param str + */ +export function getIcon(str: string) { + switch (str) { + case 'Api Post': { + return 'logos:async-api-icon'; + } + case 'Chrome': { + return 'devicon:chrome'; + } + case 'Edge': + case 'Microsoft Edge': { + return 'logos:microsoft-edge'; + } + case 'Firefox': { + return 'devicon:firefox'; + } + case 'Linux': { + return 'logos:linux-tux'; + } + case 'Mac': { + return 'wpf:mac-os'; + } + case 'Safari': { + return 'devicon:safari'; + } + case 'Windows': { + return 'logos:microsoft-windows-icon'; + } + default: { + return 'logos:microsoft-windows-icon'; + } + } +} + +/** + * 获取接诊状态 + * @param status + */ +export function getRegisterStatus(status: number) { + switch (status) { + case 0: { + return '待支付'; + } + case 1: { + return '待接诊'; + } + case 2: { + return '接诊中'; + } + case 3: { + return '已结束'; + } + case 4: { + return '已取消'; + } + case 5: { + return '待评价'; + } + case 6: { + return '已评价'; + } + case 7: { + return '已拒诊'; + } + default: { + return '未知状态'; + } + } +} + +// 把格式化时间转换成相对时间(刚刚,几分钟前,几小时前,几天前,几周前) +export function formatTimeToRelative(time: string) { + const now = new Date(); + const date = new Date(time); + const diff = now.getTime() - date.getTime(); + const seconds = Math.floor(diff / 1000); + const minutes = Math.floor(seconds / 60); + const hours = Math.floor(minutes / 60); + const days = Math.floor(hours / 24); + const weeks = Math.floor(days / 7); + + if (seconds < 60) { + return '刚刚'; + } else if (minutes < 60) { + return `${minutes} 分钟前`; + } else if (hours < 24) { + return `${hours} 小时前`; + } else if (days < 7) { + return `${days} 天前`; + } else if (weeks < 4) { + return `${weeks} 周前`; + } + return time; +} + +/** + * Download according to the background interface file stream + * @param {*} data + * @param {*} filename + * @param {*} mime + * @param {*} bom + */ +export function downloadByData( + data: BlobPart, + filename: string, + mime?: string, + bom?: BlobPart, +) { + const blobData = bom === undefined ? [data] : [bom, data]; + const blob = new Blob(blobData, { type: mime || 'application/octet-stream' }); + + const blobURL = window.URL.createObjectURL(blob); + const tempLink = document.createElement('a'); + tempLink.style.display = 'none'; + tempLink.href = blobURL; + tempLink.setAttribute('download', filename); + if (tempLink.download === undefined) { + tempLink.setAttribute('target', '_blank'); + } + document.body.append(tempLink); + tempLink.click(); + tempLink.remove(); + window.URL.revokeObjectURL(blobURL); +} diff --git a/apps/web-antd/src/views/_core/authentication/login.vue b/apps/web-antd/src/views/_core/authentication/login.vue index 099e4c8c..74dee9d9 100644 --- a/apps/web-antd/src/views/_core/authentication/login.vue +++ b/apps/web-antd/src/views/_core/authentication/login.vue @@ -1,10 +1,9 @@ @@ -93,6 +70,12 @@ const formSchema = computed((): VbenFormSchema[] => { diff --git a/apps/web-antd/src/views/system/admin/api/index.ts b/apps/web-antd/src/views/system/admin/api/index.ts new file mode 100644 index 00000000..eae99dc1 --- /dev/null +++ b/apps/web-antd/src/views/system/admin/api/index.ts @@ -0,0 +1,89 @@ +import { requestClient } from '#/api/request'; + +const prefix = 'admin/'; +/** + * 分页查询用户列表 + * @param data + */ +export async function getAdminList(data: any) { + return requestClient.get(`${prefix}list`, { params: data }); +} +/** + * 分页查询用户列表 + * @param data + */ +export async function getAdminAccountBalance(data: any = {}) { + return requestClient.get(`${prefix}my-balance`, { params: data }); +} + +/** + * 获取管理员详情 + * @param id + */ +export async function getAdminInfo(id: number) { + return requestClient.get(`${prefix}detail`, { params: { id } }); +} + +/** + * 新增管理员 + * @param data + */ +export async function createAdmin(data: Record) { + return requestClient.post(`${prefix}create`, data); +} + +/** + * 编辑管理员 + * @param data + */ +export async function updateAdmin(data: Record) { + return requestClient.post(`${prefix}update`, data); +} + +/** + * 删除管理员 + * @param data + */ +export async function deleteAdmin(data: Record) { + return requestClient.post(`${prefix}delete`, data); +} + +/** + * 修改密码 + * @param data + */ +export async function updatePassword(data: Record) { + return requestClient.post(`${prefix}update-password`, data); +} + +/** + * 删除管理员 + * @param id + */ +export async function resetPassword(id: number) { + return requestClient.post(`${prefix}reset-password`, { + id, + }); +} + +/** + * 获取我绑定的银行卡 + */ +export async function getMyCard() { + return requestClient.get(`${prefix}my-card`); +} + +/** + * 获取我绑定的银行卡 + */ +export async function getQuickMenuApi() { + return requestClient.get(`${prefix}get-quick-menu`); +} + +/** + * 编辑账户绑定银行卡 + * @param data + */ +export async function saveCard(data: Record) { + return requestClient.post(`${prefix}save-card`, data); +} diff --git a/apps/web-antd/src/views/system/admin/components/modal.vue b/apps/web-antd/src/views/system/admin/components/modal.vue new file mode 100644 index 00000000..5452c45d --- /dev/null +++ b/apps/web-antd/src/views/system/admin/components/modal.vue @@ -0,0 +1,65 @@ + + diff --git a/apps/web-antd/src/views/system/admin/config/form.ts b/apps/web-antd/src/views/system/admin/config/form.ts new file mode 100644 index 00000000..1e933b6d --- /dev/null +++ b/apps/web-antd/src/views/system/admin/config/form.ts @@ -0,0 +1,150 @@ +import type { VbenFormProps } from '#/adapter/form'; + +import { z } from '#/adapter/form'; +import { getRoleOption } from '#/views/system/role/api'; + +const defaultPassword = 'Xk123456@'; + +export const modalFormProps: VbenFormProps = { + wrapperClass: 'grid-cols-12', // 24栅格, + commonConfig: { + formItemClass: 'col-span-12', + // 所有表单项 + componentProps: { + class: 'w-full', + }, + }, + // handleSubmit: onSubmit, + layout: 'horizontal', + schema: [ + { + component: 'VbenInput', + fieldName: 'id', + label: 'ID', + formItemClass: 'col-span-6', + dependencies: { + show: false, + triggerFields: ['id'], + }, + }, + { + component: 'VbenInput', + componentProps: { + placeholder: '请输入管理员昵称', + }, + fieldName: 'nick_name', + label: '昵称', + rules: 'required', + formItemClass: 'col-span-6', + }, + { + component: 'Avatar', + fieldName: 'avatar', + label: '头像', + rules: 'required', + formItemClass: 'col-span-6', + }, + // { + // component: 'UploadImage', + // fieldName: 'images', + // label: '其他图片', + // rules: 'required', + // formItemClass: 'col-span-6', + // }, + { + component: 'VbenInput', + componentProps: { + placeholder: '请输入管理员手机号码', + }, + fieldName: 'phone', + label: '手机号', + rules: 'required', + formItemClass: 'col-span-6', + }, + { + component: 'ApiSelect', + componentProps: { + allowClear: true, + filterOption: (input: string, option: any) => { + // 自定义过滤逻辑,确保可以根据 name 进行搜索 + return option?.label.toLowerCase().indexOf(input.toLowerCase()) >= 0; + }, + showSearch: true, + // 菜单接口转options格式 + afterFetch: (data: { id: number; name: string }[]) => { + return data.map((item: any) => ({ + label: item.name, + value: item.id, + })); + }, + api: getRoleOption, + placeholder: '请选择', + }, + fieldName: 'role_id', + formItemClass: 'col-span-6', + label: '角色', + rules: 'required', + }, + { + fieldName: 'password', + label: '密码', + component: 'InputPassword', + help: '5-18位数字、字母、特殊字符组成。', + componentProps: { + placeholder: '请输入密码', + allowClear: true, + }, + defaultValue: defaultPassword, + rules: z + .string() + .regex( + /^(?=.*[A-Z0-9])(?=.*[!@#$%^&*])[A-Z0-9!@#$%^&*]{5,18}$/i, + '密码由5-18位数字、字母、特殊字符组成。', + ), + dependencies: { + if({ id }) { + return !id; + }, + triggerFields: ['id'], + }, + formItemClass: 'col-span-6', + }, + { + fieldName: 'confirmPassword', + label: '确认密码', + component: 'InputPassword', + componentProps: { + placeholder: '请输入确认密码', + allowClear: true, + }, + defaultValue: defaultPassword, + rules: z + .string() + .regex(/[\w!@#$%^&*]{5,18}/, '密码由5-18位数字、字母、特殊字符组成。'), + dependencies: { + if({ id }) { + return !id; + }, + triggerFields: ['id', 'confirmPassword'], + rules: (values) => { + return z + .string() + .regex( + /[\w!@#$%^&*]{5,18}/, + '密码由5-18位数字、字母、特殊字符组成。', + ) + .refine( + (confirmPassword) => { + return confirmPassword === values.password; + }, + { + message: '确认密码必须与密码一致', + }, + ); + }, + }, + formItemClass: 'col-span-6', + }, + ], + showDefaultActions: false, +}; diff --git a/apps/web-antd/src/views/system/admin/config/search.ts b/apps/web-antd/src/views/system/admin/config/search.ts new file mode 100644 index 00000000..bc3ee56b --- /dev/null +++ b/apps/web-antd/src/views/system/admin/config/search.ts @@ -0,0 +1,56 @@ +import type { VbenFormProps } from '#/adapter/form'; + +import { getRoleOption } from '#/views/system/role/api'; + +export const formOptions: VbenFormProps = { + // 默认展开 + collapsed: false, + schema: [ + { + component: 'VbenInput', + componentProps: { + placeholder: '输入名称', + }, + defaultValue: '', + fieldName: 'nick_name', + label: '管理员名称', + }, + { + component: 'VbenInput', + componentProps: { + placeholder: '输入手机号码', + }, + defaultValue: '', + fieldName: 'phone', + label: '手机号码', + }, + { + component: 'ApiSelect', + componentProps: { + allowClear: true, + filterOption: true, + showSearch: true, + // 菜单接口转options格式 + afterFetch: (data: { id: number; name: string }[]) => { + return data.map((item: any) => ({ + label: item.name, + value: item.id, + })); + }, + api: getRoleOption, + placeholder: '请选择', + }, + fieldName: 'role_id', + label: '角色', + }, + ], + // 控制表单是否显示折叠按钮 + showCollapseButton: true, + submitButtonOptions: { + content: '查询', + }, + // 是否在字段值改变时提交表单 + submitOnChange: true, + // 按下回车时是否提交表单 + submitOnEnter: false, +}; diff --git a/apps/web-antd/src/views/system/admin/config/table.ts b/apps/web-antd/src/views/system/admin/config/table.ts new file mode 100644 index 00000000..8e6aa49d --- /dev/null +++ b/apps/web-antd/src/views/system/admin/config/table.ts @@ -0,0 +1,83 @@ +import type { VxeGridProps } from '#/adapter/vxe-table'; + +import { getAdminList } from '#/views/system/admin/api'; + +interface RowType { + id: string; + nick_name: string; + email: string; + avatar: string; + roles: { name: string }[]; + open_id: string; + code: string; + platform_id: string; + phone: string; + desc: string; + created_at: string; +} + +export const gridOptions: VxeGridProps = { + checkboxConfig: { + highlight: true, + labelField: '', + }, + columnConfig: { + useKey: true, + }, + rowConfig: { + useKey: true, + }, + columns: [ + { type: 'checkbox', width: 60 }, + { field: 'id', align: 'left', title: 'ID', width: 100 }, + { field: 'nick_name', align: 'left', title: '名称' }, + { + field: 'avatar', + align: 'left', + title: '头像', + slots: { default: 'avatar' }, + width: 130, + }, + { field: 'role.name', title: '角色' }, + { field: 'open_id', title: 'Open ID' }, + { field: 'phone', title: '手机号码' }, + { field: 'email', title: '邮箱' }, + { field: 'desc', title: '备注' }, + { field: 'created_at', title: '注册时间' }, + { type: 'html', title: '操作', width: 200, slots: { default: 'action' } }, + ], + keepSource: true, + pagerConfig: {}, + proxyConfig: { + ajax: { + // 请求后端接口方法 + query: async ({ page }, formValues) => { + return await getAdminList({ + page: page.currentPage, + pageSize: page.pageSize, + ...formValues, + }); + }, + }, + }, + height: 'auto', + border: false, + toolbarConfig: { + // 是否显示搜索表单控制按钮 + // @ts-ignore 正式环境时有完整的类型声明 + search: true, + refresh: true, // 刷新 + print: false, // 打印 + export: false, // 导出 + // custom: true, // 自定义列 + zoom: true, // 最大化最小化 + slots: { + buttons: 'toolbar-buttons', + }, + custom: { + // 自定义列-图标 + icon: 'vxe-icon-menu', + }, + }, + showOverflow: false, +}; diff --git a/apps/web-antd/src/views/system/admin/index.vue b/apps/web-antd/src/views/system/admin/index.vue new file mode 100644 index 00000000..2202be88 --- /dev/null +++ b/apps/web-antd/src/views/system/admin/index.vue @@ -0,0 +1,151 @@ + + + diff --git a/apps/web-antd/src/views/system/menu/api/index.ts b/apps/web-antd/src/views/system/menu/api/index.ts new file mode 100644 index 00000000..22de278c --- /dev/null +++ b/apps/web-antd/src/views/system/menu/api/index.ts @@ -0,0 +1,75 @@ +import { requestClient } from '#/api/request'; + +const prefix = 'menu/'; + +/** + * 分页查询用户列表 + * @param data + */ +export async function getMenuList(data: any) { + return requestClient.get(`${prefix}list`, { params: data }); +} + +/** + * 查询菜单下拉框 + * @param data + */ +export async function getMenuOption(data: any) { + return requestClient.get(`${prefix}option`, { + params: { + ...data, + is_select: true, + }, + }); +} + +/** + * 查询菜单树形下拉框 + * @param data + */ +export async function getMenuTreeOption(data: any) { + return requestClient.get(`${prefix}get-tree-option`, data); +} + +/** + * 查询菜单树形下拉框 + */ +export async function getMenuTreeOptionSelect() { + return requestClient.get(`${prefix}get-tree-option`, { + params: { + is_select: true, + }, + }); +} + +/** + * 获取详情 + * @param id + */ +export async function getMenuInfo(id: number) { + return requestClient.get(`${prefix}detail`, { params: { id } }); +} + +/** + * 新增角色 + * @param data + */ +export async function createMenu(data: Record) { + return requestClient.post(`${prefix}create`, data); +} + +/** + * 编辑角色 + * @param data + */ +export async function updateMenu(data: Record) { + return requestClient.post(`${prefix}update`, data); +} + +/** + * 删除角色 + * @param data + */ +export async function deleteMenu(data: Record) { + return requestClient.post(`${prefix}delete`, data); +} diff --git a/apps/web-antd/src/views/system/menu/components/modal.vue b/apps/web-antd/src/views/system/menu/components/modal.vue new file mode 100644 index 00000000..d5ca745c --- /dev/null +++ b/apps/web-antd/src/views/system/menu/components/modal.vue @@ -0,0 +1,63 @@ + + diff --git a/apps/web-antd/src/views/system/menu/config/form.ts b/apps/web-antd/src/views/system/menu/config/form.ts new file mode 100644 index 00000000..6b0f7ebf --- /dev/null +++ b/apps/web-antd/src/views/system/menu/config/form.ts @@ -0,0 +1,180 @@ +import type { VbenFormProps } from '#/adapter/form'; + +import { getMenuTreeOptionSelect } from '#/views/system/menu/api'; + +export const modalFormProps: VbenFormProps = { + wrapperClass: 'grid-cols-12', // 24栅格, + commonConfig: { + formItemClass: 'col-span-6', + // 所有表单项 + componentProps: { + class: 'w-full', + }, + }, + // handleSubmit: onSubmit, + layout: 'horizontal', + schema: [ + { + component: 'VbenInput', + fieldName: 'id', + label: 'ID', + dependencies: { + show: false, + triggerFields: ['id'], + }, + }, + { + component: 'VbenInput', + componentProps: { + placeholder: '请输入菜单标题', + }, + fieldName: 'title', + label: '菜单标题', + rules: 'required', + }, + { + component: 'ApiTreeSelect', + // 对应组件的参数 + componentProps: { + childrenField: 'children', + labelField: 'title', + valueField: 'id', + // 菜单接口 + api: getMenuTreeOptionSelect, + }, + defaultValue: 0, + fieldName: 'pid', + label: '父级菜单', + rules: 'required', + }, + { + component: 'VbenInput', + componentProps: { + placeholder: '请输入菜单图标', + }, + fieldName: 'icon', + label: '菜单图标', + rules: 'required', + }, + // { + // component: 'IconPicker', + // componentProps: { + // placeholder: '请输入菜单图标', + // }, + // fieldName: 'icon', + // label: '菜单图标', + // rules: 'required', + // }, + { + component: 'VbenInput', + componentProps: { + placeholder: '请输入路由名称', + }, + fieldName: 'name', + label: '路由名称', + rules: 'required', + }, + { + component: 'VbenInput', + componentProps: { + placeholder: '请输入访问路由', + }, + fieldName: 'path', + label: '访问路由', + rules: 'required', + }, + { + component: 'InputNumber', + componentProps: { + placeholder: '请输入排序', + }, + defaultValue: 0, + fieldName: 'sort', + label: '排序', + rules: 'required', + }, + { + component: 'RadioGroup', + componentProps: { + options: [ + { + label: '开启', + value: 0, + }, + { + label: '关闭', + value: 1, + }, + ], + }, + defaultValue: 1, + fieldName: 'keep_alive', + label: '缓存', + rules: 'required', + }, + { + component: 'RadioGroup', + componentProps: { + options: [ + { + label: '展示', + value: 0, + }, + { + label: '隐藏', + value: 1, + }, + ], + }, + defaultValue: 0, + fieldName: 'hide_in_menu', + label: '是否展示', + rules: 'required', + }, + { + component: 'RadioGroup', + componentProps: { + options: [ + { + label: '是', + value: 0, + }, + { + label: '否', + value: 1, + }, + ], + }, + defaultValue: 1, + fieldName: 'affix_tab', + label: '是否置顶', + rules: 'required', + }, + { + component: 'VbenInput', + componentProps: { + placeholder: '请输入组件地址', + }, + defaultValue: 'BasicLayout', + fieldName: 'component', + label: '组件地址', + }, + { + component: 'VbenInput', + componentProps: { + placeholder: '请输入重定向地址', + }, + fieldName: 'redirect', + label: '重定向地址', + }, + { + component: 'VbenInput', + componentProps: { + placeholder: '请输入携带参数', + }, + fieldName: 'query', + label: '携带参数', + }, + ], + showDefaultActions: false, +}; diff --git a/apps/web-antd/src/views/system/menu/config/search.ts b/apps/web-antd/src/views/system/menu/config/search.ts new file mode 100644 index 00000000..2f579aeb --- /dev/null +++ b/apps/web-antd/src/views/system/menu/config/search.ts @@ -0,0 +1,47 @@ +import type { VbenFormProps } from '#/adapter/form'; + +export const formOptions: VbenFormProps = { + // 默认展开 + collapsed: false, + schema: [ + { + component: 'VbenInput', + componentProps: { + placeholder: '输入标题', + }, + defaultValue: '', + fieldName: 'title', + label: '菜单标题', + }, + // { + // component: 'VbenSelect', + // componentProps: { + // allowClear: true, + // filterOption: true, + // showSearch: true, + // options: [ + // { + // label: '超管', + // value: 1, + // }, + // { + // label: '菜单', + // value: 2, + // }, + // ], + // placeholder: '请选择', + // }, + // fieldName: 'role_id', + // label: '角色', + // }, + ], + // 控制表单是否显示折叠按钮 + showCollapseButton: true, + submitButtonOptions: { + content: '查询', + }, + // 是否在字段值改变时提交表单 + submitOnChange: true, + // 按下回车时是否提交表单 + submitOnEnter: false, +}; diff --git a/apps/web-antd/src/views/system/menu/config/table.ts b/apps/web-antd/src/views/system/menu/config/table.ts new file mode 100644 index 00000000..f4f2338a --- /dev/null +++ b/apps/web-antd/src/views/system/menu/config/table.ts @@ -0,0 +1,97 @@ +import type { VxeGridProps } from '#/adapter/vxe-table'; + +import { getMenuList } from '../api'; + +interface RowType { + id: string; + nick_name: string; + email: string; + avatar: string; + roles: { name: string }[]; + open_id: string; + code: string; + platform_id: string; + phone: string; + desc: string; + created_at: string; +} + +export const gridOptions: VxeGridProps = { + checkboxConfig: { + highlight: true, + labelField: '', + }, + columnConfig: { + useKey: true, + }, + rowConfig: { + useKey: true, + }, + columns: [ + { type: 'checkbox', width: 60 }, + { width: 60, treeNode: true }, + { field: 'id', align: 'left', title: 'ID', width: 100 }, + { field: 'title', align: 'left', title: '菜单名称' }, + { field: 'icon', title: '图标', slots: { default: 'icon' } }, + { field: 'path', title: '路由' }, + { field: 'name', title: '路由Name' }, + { field: 'component', title: '组件地址' }, + { field: 'redirect', title: '重定向' }, + { field: 'keep_alive', title: '页面缓存' }, + { field: 'hide_in_menu', title: '菜单展示' }, + { field: 'badge', title: '徽标' }, + { field: 'badge_type', title: '徽标类型' }, + { field: 'badge_variants', title: '徽标颜色' }, + { field: 'iframe_src', title: '引用的页面地址' }, + { field: 'sort', title: '排序' }, + { field: 'query', title: '默认参数' }, + { field: 'created_at', title: '创建时间' }, + { + type: 'html', + align: 'right', + title: '操作', + slots: { default: 'action' }, + width: 200, + }, + ], + treeConfig: { + parentField: 'pid', + rowField: 'id', + transform: true, + expandAll: true, + }, + keepSource: true, + pagerConfig: {}, + proxyConfig: { + ajax: { + // 请求后端接口方法 + query: async ({ page }, formValues) => { + return await getMenuList({ + page: page.currentPage, + pageSize: page.pageSize, + ...formValues, + }); + }, + }, + }, + height: 'auto', + border: false, + toolbarConfig: { + // 是否显示搜索表单控制按钮 + // @ts-ignore 正式环境时有完整的类型声明 + search: true, + refresh: true, // 刷新 + print: false, // 打印 + export: false, // 导出 + // custom: true, // 自定义列 + zoom: true, // 最大化最小化 + slots: { + buttons: 'toolbar-buttons', + }, + custom: { + // 自定义列-图标 + icon: 'vxe-icon-menu', + }, + }, + showOverflow: false, +}; diff --git a/apps/web-antd/src/views/system/menu/index.vue b/apps/web-antd/src/views/system/menu/index.vue new file mode 100644 index 00000000..698fc85e --- /dev/null +++ b/apps/web-antd/src/views/system/menu/index.vue @@ -0,0 +1,166 @@ + + + diff --git a/apps/web-antd/src/views/system/role/api/index.ts b/apps/web-antd/src/views/system/role/api/index.ts new file mode 100644 index 00000000..d9afd86e --- /dev/null +++ b/apps/web-antd/src/views/system/role/api/index.ts @@ -0,0 +1,69 @@ +import { requestClient } from '#/api/request'; + +const prefix = 'role/'; +/** + * 分页查询用户列表 + * @param data + */ +export async function getRoleList(data: any) { + return requestClient.get(`${prefix}list`, { params: data }); +} +/** + * 分页查询用户列表 + * @param data + */ +export async function getRoleOption(data: any) { + return requestClient.get(`${prefix}option`, { params: data }); +} + +/** + * 获取详情 + * @param id + */ +export async function getRoleInfo(id: number) { + return requestClient.get(`${prefix}detail`, { params: { id } }); +} + +/** + * 查询菜单下拉框 + * @param data + */ +export async function getMenuIdsByRoleIds(data: any) { + return requestClient.get(`${prefix}get-menu-ids-by-role-ids`, { + params: { + role_id: data.id, + }, + }); +} + +/** + * 编辑角色 + * @param data + */ +export async function saveRoleMenu(data: Record) { + return requestClient.post(`${prefix}save-role-menu`, data); +} + +/** + * 新增角色 + * @param data + */ +export async function createRole(data: Record) { + return requestClient.post(`${prefix}create`, data); +} + +/** + * 编辑角色 + * @param data + */ +export async function updateRole(data: Record) { + return requestClient.post(`${prefix}update`, data); +} + +/** + * 删除角色 + * @param data + */ +export async function deleteRole(data: Record) { + return requestClient.post(`${prefix}delete`, data); +} diff --git a/apps/web-antd/src/views/system/role/components/auth-menu.vue b/apps/web-antd/src/views/system/role/components/auth-menu.vue new file mode 100644 index 00000000..67411719 --- /dev/null +++ b/apps/web-antd/src/views/system/role/components/auth-menu.vue @@ -0,0 +1,140 @@ + + diff --git a/apps/web-antd/src/views/system/role/components/modal.vue b/apps/web-antd/src/views/system/role/components/modal.vue new file mode 100644 index 00000000..723096a4 --- /dev/null +++ b/apps/web-antd/src/views/system/role/components/modal.vue @@ -0,0 +1,62 @@ + + diff --git a/apps/web-antd/src/views/system/role/config/form.ts b/apps/web-antd/src/views/system/role/config/form.ts new file mode 100644 index 00000000..b8a42df7 --- /dev/null +++ b/apps/web-antd/src/views/system/role/config/form.ts @@ -0,0 +1,53 @@ +import type { VbenFormProps } from '#/adapter/form'; + +export const modalFormProps: VbenFormProps = { + wrapperClass: 'grid-cols-12', // 24栅格, + commonConfig: { + formItemClass: 'col-span-12', + // 所有表单项 + componentProps: { + class: 'w-full', + }, + }, + // handleSubmit: onSubmit, + layout: 'horizontal', + schema: [ + { + component: 'VbenInput', + fieldName: 'id', + label: 'ID', + dependencies: { + show: false, + triggerFields: ['id'], + }, + }, + { + component: 'VbenInput', + componentProps: { + placeholder: '请输入角色昵称', + }, + fieldName: 'name', + label: '昵称', + rules: 'required', + }, + { + component: 'VbenInput', + componentProps: { + placeholder: '请输入角色代码', + }, + fieldName: 'value', + label: '角色代码', + rules: 'required', + }, + { + component: 'VbenInput', + componentProps: { + placeholder: '请输入角色说明', + }, + fieldName: 'desc', + label: '角色说明', + rules: 'required', + }, + ], + showDefaultActions: false, +}; diff --git a/apps/web-antd/src/views/system/role/config/search.ts b/apps/web-antd/src/views/system/role/config/search.ts new file mode 100644 index 00000000..db12d1c3 --- /dev/null +++ b/apps/web-antd/src/views/system/role/config/search.ts @@ -0,0 +1,35 @@ +import type { VbenFormProps } from '#/adapter/form'; + +export const formOptions: VbenFormProps = { + // 默认展开 + collapsed: false, + schema: [ + { + component: 'VbenInput', + componentProps: { + placeholder: '输入名称', + }, + defaultValue: '', + fieldName: 'name', + label: '角色名称', + }, + { + component: 'VbenInput', + componentProps: { + placeholder: '输入角色代码', + }, + defaultValue: '', + fieldName: 'value', + label: '角色代码', + }, + ], + // 控制表单是否显示折叠按钮 + showCollapseButton: true, + submitButtonOptions: { + content: '查询', + }, + // 是否在字段值改变时提交表单 + submitOnChange: true, + // 按下回车时是否提交表单 + submitOnEnter: false, +}; diff --git a/apps/web-antd/src/views/system/role/config/table.ts b/apps/web-antd/src/views/system/role/config/table.ts new file mode 100644 index 00000000..6133fbb8 --- /dev/null +++ b/apps/web-antd/src/views/system/role/config/table.ts @@ -0,0 +1,73 @@ +import type { VxeGridProps } from '#/adapter/vxe-table'; + +import { getRoleList } from '#/views/system/role/api'; + +interface RowType { + id: string; + nick_name: string; + email: string; + avatar: string; + roles: { name: string }[]; + open_id: string; + code: string; + platform_id: string; + phone: string; + desc: string; + created_at: string; +} + +export const gridOptions: VxeGridProps = { + checkboxConfig: { + highlight: true, + labelField: '', + }, + columnConfig: { + useKey: true, + }, + rowConfig: { + useKey: true, + }, + columns: [ + { type: 'checkbox', width: 60 }, + { field: 'id', align: 'left', title: 'ID', width: 100 }, + { field: 'name', align: 'left', title: '名称' }, + { field: 'value', title: '角色代码' }, + { field: 'desc', title: '备注' }, + { field: 'created_at', title: '创建时间' }, + { type: 'html', title: '操作', slots: { default: 'action' } }, + ], + keepSource: true, + pagerConfig: {}, + proxyConfig: { + ajax: { + // 请求后端接口方法 + query: async ({ page }, formValues) => { + return await getRoleList({ + page: page.currentPage, + pageSize: page.pageSize, + ...formValues, + }); + }, + }, + }, + height: 'auto', + border: false, + toolbarConfig: { + // 是否显示搜索表单控制按钮 + // @ts-ignore 正式环境时有完整的类型声明 + search: true, + refresh: true, // 刷新 + print: false, // 打印 + export: false, // 导出 + // custom: true, // 自定义列 + zoom: true, // 最大化最小化 + slots: { + buttons: 'toolbar-buttons', + }, + custom: { + // 自定义列-图标 + icon: 'vxe-icon-menu', + }, + }, + showOverflow: false, +}; diff --git a/apps/web-antd/src/views/system/role/index.vue b/apps/web-antd/src/views/system/role/index.vue new file mode 100644 index 00000000..a0d7f506 --- /dev/null +++ b/apps/web-antd/src/views/system/role/index.vue @@ -0,0 +1,157 @@ + + + diff --git a/apps/web-antd/vite.config.mts b/apps/web-antd/vite.config.mts index e0031ac1..861e05ef 100644 --- a/apps/web-antd/vite.config.mts +++ b/apps/web-antd/vite.config.mts @@ -11,7 +11,8 @@ export default defineConfig(async () => { changeOrigin: true, rewrite: (path) => path.replace(/^\/api/, ''), // mock代理目标地址 - target: 'http://localhost:5320/api', + // target: 'http://localhost:5320/api', + target: 'http://127.0.0.1:18009/api/', ws: true, }, },