fix: pc端城市选择香港、澳门不能选择市 (#5774)

* 调整 saveAs  fileName 优先级

* feat: 移动端人员选择增加确定按钮

* Update UserSelect.tsx

* fix: 人员选择ts 类型错误

* fix: 城市选择组件移动端回显问题

* fix: 移动端级联选择器选中值bug修复

* Update Cascader.tsx

* fix: 城市选择香港、澳门不能选择市

* fix: 删除错误城市数据

Co-authored-by: zhangxulong <zhangxulong@baidu.com>
This commit is contained in:
ls 2022-11-22 21:39:32 +08:00 committed by GitHub
parent 96704f6b4d
commit 3a29f1f5b6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 42 deletions

View File

@ -4008,24 +4008,6 @@ const db: {
820100: '澳门半岛',
820200: '离岛',
810000: '香港特别行政区',
810001: '中西区',
810002: '湾仔区',
810003: '东区',
810004: '南区',
810005: '油尖旺区',
810006: '深水埗区',
810007: '九龙城区',
810008: '黄大仙区',
810009: '观塘区',
810010: '荃湾区',
810011: '屯门区',
810012: '元朗区',
810013: '北区',
810014: '大埔区',
810015: '西贡区',
810016: '沙田区',
810017: '葵青区',
810018: '离岛区',
810101: '中西区',
810102: '湾仔区',
810103: '东区',
@ -4045,14 +4027,6 @@ const db: {
810308: '葵青区',
810309: '离岛区',
820000: '澳门特别行政区',
820001: '花地玛堂区',
820002: '花王堂区',
820003: '望德堂区',
820004: '大堂区',
820005: '风顺堂区',
820006: '嘉模堂区',
820007: '路凼填海区',
820008: '圣方济各堂区',
820102: '花地玛堂区',
820103: '花王堂区',
820104: '望德堂区',

View File

@ -420,22 +420,7 @@ export class CityPicker extends React.Component<
onChange={this.handleProvinceChange}
/>
{provinceCode &&
allowDistrict &&
Array.isArray(db.district[provinceCode]) ? (
<Select
searchable={searchable}
disabled={disabled}
options={(db.district[provinceCode] as Array<number>).map(item => ({
label: db[item],
value: item
}))}
value={districtCode || ''}
onChange={this.handleDistrictChange}
/>
) : allowCity &&
db.city[provinceCode] &&
db.city[provinceCode].length ? (
{allowCity && db.city[provinceCode] && db.city[provinceCode].length ? (
<Select
searchable={searchable}
disabled={disabled}