CN-1317 fix: 调整npm location地图逻辑
1.地图右上角筛选框只提供有数据的选项; 2.更新“国家名称-code”的字典; 3.少数国家/地区无下钻地理数据的,只缩放而不下钻,并提示暂无地图数据;
This commit is contained in:
@@ -1884,495 +1884,471 @@ export const chartColor6 = ['#E99F67', '#D9C74B']
|
||||
export const iso36112 = {
|
||||
[storageKey.iso36112Capital]: 'data/countriesWithCapital',
|
||||
[storageKey.iso36112WorldLow]: 'worldChinaLow',
|
||||
XK: 'kosovoLow',
|
||||
IE: 'irelandLow',
|
||||
MM: 'myanmarLow',
|
||||
TZ: 'tanzaniaLow',
|
||||
BS: 'bahamasLow',
|
||||
DM: 'dominicaLow',
|
||||
VC: 'saintVincentLow',
|
||||
BG: 'bulgariaLow',
|
||||
SK: 'slovakiaLow',
|
||||
UZ: 'uzbekistanLow',
|
||||
IS: 'icelandLow',
|
||||
CA: 'canadaLow',
|
||||
AT: 'austriaLow',
|
||||
DO: 'dominicanRepublicLow',
|
||||
MY: 'malaysiaLow',
|
||||
BW: 'botswanaLow',
|
||||
SH: 'saintHelenaLow',
|
||||
NO: 'norway2020Low',
|
||||
CF: 'centralAfricanRepublicLow',
|
||||
GA: 'gabonLow',
|
||||
GD: 'grenadaLow',
|
||||
RU: 'russiaLow',
|
||||
FR: 'franceLow',
|
||||
TJ: 'tajikistanLow',
|
||||
CU: 'cubaLow',
|
||||
NP: 'nepalLow',
|
||||
ZW: 'zimbabweLow',
|
||||
CW: 'curacaoLow',
|
||||
GW: 'guineaBissauLow',
|
||||
EE: 'estoniaLow',
|
||||
AG: 'antiguaBarbudaLow',
|
||||
TT: 'trinidadTobagoLow',
|
||||
BF: 'burkinaFasoLow',
|
||||
LI: 'liechtensteinLow',
|
||||
OM: 'omanLow',
|
||||
GY: 'guyanaLow',
|
||||
GR: 'greeceLow',
|
||||
KG: 'kyrgyzstanLow',
|
||||
SD: 'sudanLow',
|
||||
AD: 'andorraLow',
|
||||
AE: 'uaeLow',
|
||||
KY: 'caymanIslandsLow',
|
||||
LA: 'laosLow',
|
||||
LT: 'lithuaniaLow',
|
||||
UG: 'ugandaLow',
|
||||
MR: 'mauritaniaLow',
|
||||
SS: 'southSudan2015Low',
|
||||
SI: 'sloveniaLow',
|
||||
MX: 'mexicoLow',
|
||||
GH: 'ghanaLow',
|
||||
GN: 'guineaLow',
|
||||
BB: 'barbadosLow',
|
||||
HN: 'hondurasLow',
|
||||
SN: 'senegalLow',
|
||||
BD: 'bangladeshLow',
|
||||
BQ: 'bonaireSintEustatiusSabaLow',
|
||||
CC: 'cocosKeelingLow',
|
||||
HR: 'croatiaLow',
|
||||
PL: 'polandLow',
|
||||
ST: 'saoTomePrincipeLow',
|
||||
TC: 'turksCaicosLow',
|
||||
GT: 'guatemalaLow',
|
||||
IT: 'italyLow',
|
||||
RW: 'rwandaLow',
|
||||
LC: 'saintLuciaLow',
|
||||
TL: 'timorLesteLow',
|
||||
CZ: 'czechiaLow',
|
||||
GQ: 'equatorialGuineaLow',
|
||||
FJ: 'fijiEastLow',
|
||||
MA: 'moroccoLow',
|
||||
DJ: 'djiboutiLow',
|
||||
NE: 'nigerLow',
|
||||
LV: 'latviaLow',
|
||||
RS: 'serbiaLow',
|
||||
PE: 'peruLow',
|
||||
SE: 'swedenLow',
|
||||
GE: 'georgiaLow',
|
||||
DE: 'bosniaHerzegovinaLow',
|
||||
AF: 'afghanistanLow',
|
||||
AR: 'argentinaLow',
|
||||
KE: 'kenyaLow',
|
||||
AS: 'americanSamoaLow',
|
||||
FI: 'finlandLow',
|
||||
IR: 'iranLow',
|
||||
UY: 'uruguayLow',
|
||||
SA: 'saudiArabiaLow',
|
||||
EC: 'ecuadorLow',
|
||||
AW: 'arubaLow',
|
||||
ZA: 'southAfricaLow',
|
||||
PM: 'stPierreMiquelonLow',
|
||||
SC: 'seychellesLow',
|
||||
MG: 'madagascarProvinceLow',
|
||||
YE: 'yemenLow',
|
||||
BR: 'brazilLow',
|
||||
ML: 'maliLow',
|
||||
CL: 'chileLow',
|
||||
LB: 'lebanonLow',
|
||||
DZ: 'algeriaLow',
|
||||
FO: 'faroeIslandsLow',
|
||||
VE: 'venezuelaLow',
|
||||
CR: 'costaRicaLow',
|
||||
GP: 'guadeloupeLow',
|
||||
SV: 'elSalvadorLow',
|
||||
LK: 'sriLankaLow',
|
||||
KZ: 'kazakhstanLow',
|
||||
NL: 'netherlandsLow',
|
||||
GM: 'gambiaLow',
|
||||
TR: 'turkeyLow',
|
||||
BE: 'belgiumLow',
|
||||
PA: 'panamaLow',
|
||||
AZ: 'azerbaijanLow',
|
||||
PT: 'portugalLow',
|
||||
VA: 'vaticanLow',
|
||||
MW: 'malawiLow',
|
||||
KN: 'stKittsNevisLow',
|
||||
NI: 'nicaraguaLow',
|
||||
MD: 'moldovaLow',
|
||||
IN: 'indiaLow',
|
||||
MZ: 'mozambiqueLow',
|
||||
WS: 'samoaLow',
|
||||
ET: 'ethiopiaLow',
|
||||
MV: 'maldivesLow',
|
||||
TH: 'thailandLow',
|
||||
PH: 'philippinesLow',
|
||||
MQ: 'martiniqueLow',
|
||||
KP: 'northKoreaLow',
|
||||
PR: 'puertoRicoLow',
|
||||
CV: 'capeVerdeLow',
|
||||
TG: 'togoLow',
|
||||
AL: 'albaniaLow',
|
||||
SJ: 'svalbardLow',
|
||||
BH: 'bahrainLow',
|
||||
AU: 'australiaLow',
|
||||
BI: 'burundiLow',
|
||||
QA: 'qatarLow',
|
||||
TD: 'chadLow',
|
||||
BZ: 'belizeLow',
|
||||
GS: 'georgiaSouthOssetiaLow',
|
||||
MS: 'montserratLow',
|
||||
BM: 'bermudaLow',
|
||||
ZM: 'zambiaLow',
|
||||
JP: 'japanLow',
|
||||
JO: 'jordanLow',
|
||||
BT: 'bhutanLow',
|
||||
NZ: 'newZealandLow',
|
||||
MK: 'northMacedoniaLow',
|
||||
TN: 'tunisiaLow',
|
||||
BL: 'stBarthelemyLow',
|
||||
PY: 'paraguayLow',
|
||||
ID: 'indonesiaLow',
|
||||
HT: 'haitiLow',
|
||||
FK: 'falklandIslandsLow',
|
||||
MP: 'northernMarianaLow',
|
||||
PS: 'palestineLow',
|
||||
CD: 'congoDRLow',
|
||||
AM: 'armeniaLow',
|
||||
DK: 'denmarkLow',
|
||||
NG: 'nigeriaLow',
|
||||
RO: 'romaniaLow',
|
||||
ER: 'eritreaLow',
|
||||
BN: 'bruneiDarussalamLow',
|
||||
AO: 'angolaLow',
|
||||
BA: 'bosniaHerzegovinaCantonsLow',
|
||||
PK: 'pakistanLow',
|
||||
GL: 'greenlandLow',
|
||||
TM: 'turkmenistanLow',
|
||||
BJ: 'beninLow',
|
||||
CI: 'cotedIvoireLow',
|
||||
CN: 'chinaLow',
|
||||
CH: 'switzerlandLow',
|
||||
VG: 'britishVirginIslandsLow',
|
||||
VI: 'usVirginIslandsLow',
|
||||
IL: 'israelLow',
|
||||
SR: 'surinameLow',
|
||||
CO: 'colombiaLow',
|
||||
MT: 'maltaLow',
|
||||
CM: 'cameroonLow',
|
||||
LY: 'libyaLow',
|
||||
IQ: 'iraqLow',
|
||||
UA: 'ukraineLow',
|
||||
VN: 'vietnamLow',
|
||||
KH: 'cambodiaLow',
|
||||
AG: 'antiguaBarbudaLow',
|
||||
AI: 'anguillaLow',
|
||||
ME: 'montenegroLow',
|
||||
SB: 'solomonIslandsLow',
|
||||
KR: 'southKoreaLow',
|
||||
GB: 'ukLow',
|
||||
SG: 'singaporeLow',
|
||||
EG: 'egyptLow',
|
||||
CY: 'cyprusLow',
|
||||
KM: 'comorosLow',
|
||||
GU: 'guamLow',
|
||||
HK: 'hongKongLow',
|
||||
SO: 'somaliaLow',
|
||||
NA: 'namibiaLow',
|
||||
HU: 'hungaryLow',
|
||||
BY: 'belarusLow',
|
||||
AL: 'albaniaLow',
|
||||
AM: 'armeniaLow',
|
||||
AO: 'angolaLow',
|
||||
AR: 'argentinaLow',
|
||||
AS: 'americanSamoaLow',
|
||||
AT: 'austriaLow',
|
||||
AU: 'australiaLow',
|
||||
AW: 'arubaLow',
|
||||
AZ: 'azerbaijanLow',
|
||||
BA: 'bosniaHerzegovinaCantonsLow',
|
||||
BB: 'barbadosLow',
|
||||
BD: 'bangladeshLow',
|
||||
BE: 'belgiumLow',
|
||||
BF: 'burkinaFasoLow',
|
||||
BG: 'bulgariaLow',
|
||||
BH: 'bahrainLow',
|
||||
BI: 'burundiLow',
|
||||
BJ: 'beninLow',
|
||||
BL: 'stBarthelemyLow',
|
||||
BM: 'bermudaLow',
|
||||
BN: 'bruneiDarussalamLow',
|
||||
BO: 'boliviaLow',
|
||||
BQ: 'bonaireSintEustatiusSabaLow',
|
||||
BR: 'brazilLow',
|
||||
BS: 'bahamasLow',
|
||||
BT: 'bhutanLow',
|
||||
BW: 'botswanaLow',
|
||||
BY: 'belarusLow',
|
||||
BZ: 'belizeLow',
|
||||
CA: 'canadaLow',
|
||||
CC: 'cocosKeelingLow',
|
||||
CD: 'congoDRLow',
|
||||
CF: 'centralAfricanRepublicLow',
|
||||
CG: 'congoLow',
|
||||
CH: 'switzerlandLow',
|
||||
CI: 'cotedIvoireLow',
|
||||
CL: 'chileLow',
|
||||
CM: 'cameroonLow',
|
||||
CN: 'chinaLow',
|
||||
CO: 'colombiaLow',
|
||||
CR: 'costaRicaLow',
|
||||
CU: 'cubaLow',
|
||||
CV: 'capeVerdeLow',
|
||||
CW: 'curacaoLow',
|
||||
CY: 'cyprusLow',
|
||||
CZ: 'czechiaLow',
|
||||
DE: 'bosniaHerzegovinaLow',
|
||||
DJ: 'djiboutiLow',
|
||||
DK: 'denmarkLow',
|
||||
DM: 'dominicaLow',
|
||||
DO: 'dominicanRepublicLow',
|
||||
DZ: 'algeriaLow',
|
||||
EC: 'ecuadorLow',
|
||||
EE: 'estoniaLow',
|
||||
EG: 'egyptLow',
|
||||
ER: 'eritreaLow',
|
||||
ES: 'spainLow',
|
||||
ET: 'ethiopiaLow',
|
||||
FI: 'finlandLow',
|
||||
FJ: 'fijiEastLow',
|
||||
FK: 'falklandIslandsLow',
|
||||
FO: 'faroeIslandsLow',
|
||||
FR: 'franceLow',
|
||||
GA: 'gabonLow',
|
||||
GB: 'ukLow',
|
||||
GD: 'grenadaLow',
|
||||
GE: 'georgiaLow',
|
||||
GF: 'frenchGuianaLow',
|
||||
US: 'usaLow',
|
||||
GH: 'ghanaLow',
|
||||
GL: 'greenlandLow',
|
||||
GM: 'gambiaLow',
|
||||
GN: 'guineaLow',
|
||||
GP: 'guadeloupeLow',
|
||||
GQ: 'equatorialGuineaLow',
|
||||
GR: 'greeceLow',
|
||||
GS: 'georgiaSouthOssetiaLow',
|
||||
GT: 'guatemalaLow',
|
||||
GU: 'guamLow',
|
||||
GW: 'guineaBissauLow',
|
||||
GY: 'guyanaLow',
|
||||
HK: 'hongKongLow',
|
||||
HN: 'hondurasLow',
|
||||
HR: 'croatiaLow',
|
||||
HT: 'haitiLow',
|
||||
HU: 'hungaryLow',
|
||||
ID: 'indonesiaLow',
|
||||
IE: 'irelandLow',
|
||||
IL: 'israelLow',
|
||||
IN: 'indiaLow',
|
||||
IO: 'britishIndianOceanTerritoryLow',
|
||||
IQ: 'iraqLow',
|
||||
IR: 'iranLow',
|
||||
IS: 'icelandLow',
|
||||
IT: 'italyLow',
|
||||
JM: 'jamaicaLow',
|
||||
JO: 'jordanLow',
|
||||
JP: 'japanLow',
|
||||
KE: 'kenyaLow',
|
||||
KG: 'kyrgyzstanLow',
|
||||
KH: 'cambodiaLow',
|
||||
KM: 'comorosLow',
|
||||
KN: 'stKittsNevisLow',
|
||||
KP: 'northKoreaLow',
|
||||
KR: 'southKoreaLow',
|
||||
KW: 'kuwaitLow',
|
||||
KY: 'caymanIslandsLow',
|
||||
KZ: 'kazakhstanLow',
|
||||
LA: 'laosLow',
|
||||
LB: 'lebanonLow',
|
||||
LC: 'saintLuciaLow',
|
||||
LI: 'liechtensteinLow',
|
||||
LK: 'sriLankaLow',
|
||||
LR: 'liberiaLow',
|
||||
LS: 'lesothoLow',
|
||||
LT: 'lithuaniaLow',
|
||||
LU: 'luxembourgLow',
|
||||
LV: 'latviaLow',
|
||||
LY: 'libyaLow',
|
||||
MA: 'moroccoLow',
|
||||
MD: 'moldovaLow',
|
||||
ME: 'montenegroLow',
|
||||
MG: 'madagascarProvinceLow',
|
||||
MK: 'northMacedoniaLow',
|
||||
ML: 'maliLow',
|
||||
MM: 'myanmarLow',
|
||||
MN: 'mongoliaLow',
|
||||
MP: 'northernMarianaLow',
|
||||
MQ: 'martiniqueLow',
|
||||
MR: 'mauritaniaLow',
|
||||
MS: 'montserratLow',
|
||||
MT: 'maltaLow',
|
||||
MU: 'mauritiusLow',
|
||||
MV: 'maldivesLow',
|
||||
MW: 'malawiLow',
|
||||
MX: 'mexicoLow',
|
||||
MY: 'malaysiaLow',
|
||||
MZ: 'mozambiqueLow',
|
||||
NA: 'namibiaLow',
|
||||
NE: 'nigerLow',
|
||||
NG: 'nigeriaLow',
|
||||
NI: 'nicaraguaLow',
|
||||
NL: 'netherlandsLow',
|
||||
NO: 'norway2020Low',
|
||||
NP: 'nepalLow',
|
||||
NZ: 'newZealandLow',
|
||||
OM: 'omanLow',
|
||||
PA: 'panamaLow',
|
||||
PE: 'peruLow',
|
||||
PF: 'frenchPolynesiaLow',
|
||||
PH: 'philippinesLow',
|
||||
PK: 'pakistanLow',
|
||||
PL: 'polandLow',
|
||||
PM: 'stPierreMiquelonLow',
|
||||
PR: 'puertoRicoLow',
|
||||
PS: 'palestineLow',
|
||||
PT: 'portugalLow',
|
||||
PY: 'paraguayLow',
|
||||
QA: 'qatarLow',
|
||||
RO: 'romaniaLow',
|
||||
RS: 'serbiaLow',
|
||||
RU: 'russiaLow',
|
||||
RW: 'rwandaLow',
|
||||
SA: 'saudiArabiaLow',
|
||||
SB: 'solomonIslandsLow',
|
||||
SC: 'seychellesLow',
|
||||
SD: 'sudanLow',
|
||||
SE: 'swedenLow',
|
||||
SG: 'singaporeLow',
|
||||
SH: 'saintHelenaLow',
|
||||
SI: 'sloveniaLow',
|
||||
SJ: 'svalbardLow',
|
||||
SK: 'slovakiaLow',
|
||||
SL: 'sierraLeoneLow',
|
||||
SM: 'sanMarinoLow',
|
||||
AD: 'andorraLow',
|
||||
ES: 'spainLow',
|
||||
KW: 'kuwaitLow',
|
||||
CG: 'congoLow',
|
||||
LU: 'luxembourgLow',
|
||||
JM: 'jamaicaLow',
|
||||
SN: 'senegalLow',
|
||||
SO: 'somaliaLow',
|
||||
SR: 'surinameLow',
|
||||
SS: 'southSudan2015Low',
|
||||
ST: 'saoTomePrincipeLow',
|
||||
SV: 'elSalvadorLow',
|
||||
SY: 'syriaLow',
|
||||
SZ: 'eswatiniLow',
|
||||
MN: 'mongoliaLow'
|
||||
TC: 'turksCaicosLow',
|
||||
TD: 'chadLow',
|
||||
TG: 'togoLow',
|
||||
TH: 'thailandLow',
|
||||
TJ: 'tajikistanLow',
|
||||
TL: 'timorLesteLow',
|
||||
TM: 'turkmenistanLow',
|
||||
TN: 'tunisiaLow',
|
||||
TR: 'turkeyLow',
|
||||
TT: 'trinidadTobagoLow',
|
||||
TZ: 'tanzaniaLow',
|
||||
UA: 'ukraineLow',
|
||||
UG: 'ugandaLow',
|
||||
US: 'usaLow',
|
||||
UY: 'uruguayLow',
|
||||
UZ: 'uzbekistanLow',
|
||||
VA: 'vaticanLow',
|
||||
VC: 'saintVincentLow',
|
||||
VE: 'venezuelaLow',
|
||||
VG: 'britishVirginIslandsLow',
|
||||
VI: 'usVirginIslandsLow',
|
||||
VN: 'vietnamLow',
|
||||
WS: 'samoaLow',
|
||||
XK: 'kosovoLow',
|
||||
YE: 'yemenLow',
|
||||
ZA: 'southAfricaLow',
|
||||
ZM: 'zambiaLow',
|
||||
ZW: 'zimbabweLow'
|
||||
}
|
||||
|
||||
export const countryNameIdMapping = {
|
||||
'Private IP': 'CN',
|
||||
Andorra: 'AD',
|
||||
'United Arab Emirates': 'AE',
|
||||
Afghanistan: 'AF',
|
||||
'Antigua and Barbuda': 'AG',
|
||||
Anguilla: 'AI',
|
||||
Albania: 'AL',
|
||||
Armenia: 'AM',
|
||||
Angola: 'AO',
|
||||
Antarctica: 'AQ',
|
||||
Argentina: 'AR',
|
||||
'American Samoa': 'AS',
|
||||
Austria: 'AT',
|
||||
Australia: 'AU',
|
||||
Aruba: 'AW',
|
||||
Ahvenanmaa: 'AX',
|
||||
'Åland Islands': 'AX',
|
||||
Azerbaijan: 'AZ',
|
||||
'Bosnia and Herzegovina': 'BA',
|
||||
Barbados: 'BB',
|
||||
Bangladesh: 'BD',
|
||||
Belgium: 'BE',
|
||||
'Burkina Faso': 'BF',
|
||||
Bulgaria: 'BG',
|
||||
Bahrain: 'BH',
|
||||
Burundi: 'BI',
|
||||
Benin: 'BJ',
|
||||
'Saint Barthelemy': 'BL',
|
||||
Bermuda: 'BM',
|
||||
Brunei: 'BN',
|
||||
'Brunei Darussalam': 'BN',
|
||||
Bolivia: 'BO',
|
||||
'Bonaire, Sint Eustatius, and Saba': 'BQ',
|
||||
'Caribbean Netherlands': 'BQ',
|
||||
Brazil: 'BR',
|
||||
Bahamas: 'BS',
|
||||
Bhutan: 'BT',
|
||||
'Bouvet Island': 'BV',
|
||||
Botswana: 'BW',
|
||||
Belarus: 'BY',
|
||||
Belize: 'BZ',
|
||||
Canada: 'CA',
|
||||
'Cocos (Keeling) Islands': 'CC',
|
||||
'Democratic Republic of the Congo': 'CD',
|
||||
'DR Congo': 'CD',
|
||||
'Central African Republic': 'CF',
|
||||
'Congo Republic': 'CG',
|
||||
'Republic of the Congo': 'CG',
|
||||
Switzerland: 'CH',
|
||||
"Cote D'Ivoire": 'CI',
|
||||
'Ivory Coast': 'CI',
|
||||
'Cook Islands': 'CK',
|
||||
Chile: 'CL',
|
||||
Cameroon: 'CM',
|
||||
China: 'CN',
|
||||
Colombia: 'CO',
|
||||
'Costa Rica': 'CR',
|
||||
Cuba: 'CU',
|
||||
'Cabo Verde': 'CV',
|
||||
'Cape Verde': 'CV',
|
||||
Curaao: 'CW',
|
||||
Curaçao: 'CW',
|
||||
'Christmas Island': 'CX',
|
||||
Cyprus: 'CY',
|
||||
'Czech Republic': 'CZ',
|
||||
Czechia: 'CZ',
|
||||
Germany: 'DE',
|
||||
Djibouti: 'DJ',
|
||||
Denmark: 'DK',
|
||||
Dominica: 'DM',
|
||||
'Dominican Republic': 'DO',
|
||||
Algeria: 'DZ',
|
||||
Ecuador: 'EC',
|
||||
Estonia: 'EE',
|
||||
Egypt: 'EG',
|
||||
'Western Sahara': 'EH',
|
||||
Eritrea: 'ER',
|
||||
Spain: 'ES',
|
||||
Ethiopia: 'ET',
|
||||
Finland: 'FI',
|
||||
Fiji: 'FJ',
|
||||
'Falkland Islands': 'FK',
|
||||
'Federated States of Micronesia': 'FM',
|
||||
Micronesia: 'FM',
|
||||
'Faroe Islands': 'FO',
|
||||
France: 'FR',
|
||||
Gabon: 'GA',
|
||||
'United Kingdom': 'GB',
|
||||
Grenada: 'GD',
|
||||
Georgia: 'GE',
|
||||
'French Guiana': 'GF',
|
||||
Guernsey: 'GG',
|
||||
Ghana: 'GH',
|
||||
Gibraltar: 'GI',
|
||||
Greenland: 'GL',
|
||||
Gambia: 'GM',
|
||||
Guinea: 'GN',
|
||||
Guadeloupe: 'GP',
|
||||
'Equatorial Guinea': 'GQ',
|
||||
Greece: 'GR',
|
||||
'South Georgia and The South Sandwich Islands': 'GS',
|
||||
Guatemala: 'GT',
|
||||
Guam: 'GU',
|
||||
'Guinea-Bissau': 'GW',
|
||||
Guyana: 'GY',
|
||||
'Hong Kong': 'HK',
|
||||
'Heard and McDonald Islands': 'HM',
|
||||
'Heard Island and McDonald Islands': 'HM',
|
||||
Honduras: 'HN',
|
||||
Croatia: 'HR',
|
||||
Haiti: 'HT',
|
||||
Hungary: 'HU',
|
||||
Indonesia: 'ID',
|
||||
Ireland: 'IE',
|
||||
Israel: 'IL',
|
||||
'Isle of Man': 'IM',
|
||||
India: 'IN',
|
||||
'British Indian Ocean Territory': 'IO',
|
||||
Iraq: 'IQ',
|
||||
Iran: 'IR',
|
||||
Iceland: 'IS',
|
||||
Italy: 'IT',
|
||||
Jersey: 'JE',
|
||||
Jamaica: 'JM',
|
||||
Jordan: 'JO',
|
||||
Japan: 'JP',
|
||||
Kenya: 'KE',
|
||||
Kyrgyzstan: 'KG',
|
||||
Cambodia: 'KH',
|
||||
Kiribati: 'KI',
|
||||
Comoros: 'KM',
|
||||
'Saint Kitts and Nevis': 'KN',
|
||||
'St Kitts and Nevis': 'KN',
|
||||
'North Korea': 'KP',
|
||||
'South Korea': 'KR',
|
||||
Kuwait: 'KW',
|
||||
'Cayman Islands': 'KY',
|
||||
Kazakhstan: 'KZ',
|
||||
Laos: 'LA',
|
||||
Lebanon: 'LB',
|
||||
'Saint Lucia': 'LC',
|
||||
Liechtenstein: 'LI',
|
||||
'Sri Lanka': 'LK',
|
||||
Liberia: 'LR',
|
||||
Lesotho: 'LS',
|
||||
Lithuania: 'LT',
|
||||
Luxembourg: 'LU',
|
||||
Latvia: 'LV',
|
||||
Libya: 'LY',
|
||||
Morocco: 'MA',
|
||||
Monaco: 'MC',
|
||||
Moldova: 'MD',
|
||||
Montenegro: 'ME',
|
||||
'Saint Martin': 'MF',
|
||||
Madagascar: 'MG',
|
||||
'Marshall Islands': 'MH',
|
||||
'North Macedonia': 'MK',
|
||||
'The Republic of North Macedonia': 'MK',
|
||||
Mali: 'ML',
|
||||
Myanmar: 'MM',
|
||||
Mongolia: 'MN',
|
||||
Macao: 'MO',
|
||||
'Northern Mariana Islands': 'MP',
|
||||
Martinique: 'MQ',
|
||||
Mauritania: 'MR',
|
||||
Montserrat: 'MS',
|
||||
Malta: 'MT',
|
||||
Mauritius: 'MU',
|
||||
Maldives: 'MV',
|
||||
Malawi: 'MW',
|
||||
Mexico: 'MX',
|
||||
Malaysia: 'MY',
|
||||
Mozambique: 'MZ',
|
||||
Namibia: 'NA',
|
||||
'New Caledonia': 'NC',
|
||||
Niger: 'NE',
|
||||
'Norfolk Island': 'NF',
|
||||
Nigeria: 'NG',
|
||||
Nicaragua: 'NI',
|
||||
Netherlands: 'NL',
|
||||
'The Netherlands': 'NL',
|
||||
Norway: 'NO',
|
||||
Nepal: 'NP',
|
||||
Nauru: 'NR',
|
||||
Niue: 'NU',
|
||||
'New Zealand': 'NZ',
|
||||
Oman: 'OM',
|
||||
Panama: 'PA',
|
||||
Peru: 'PE',
|
||||
'French Polynesia': 'PF',
|
||||
'Papua New Guinea': 'PG',
|
||||
Philippines: 'PH',
|
||||
Pakistan: 'PK',
|
||||
Poland: 'PL',
|
||||
'Saint Pierre and Miquelon': 'PM',
|
||||
'Saint-Pierre and Miquelon': 'PM',
|
||||
Pitcairn: 'PN',
|
||||
'Pitcairn Islands': 'PN',
|
||||
'Puerto Rico': 'PR',
|
||||
Palestine: 'PS',
|
||||
Portugal: 'PT',
|
||||
Palau: 'PW',
|
||||
Paraguay: 'PY',
|
||||
Qatar: 'QA',
|
||||
Reunion: 'RE',
|
||||
Romania: 'RO',
|
||||
Serbia: 'RS',
|
||||
Russia: 'RU',
|
||||
Rwanda: 'RW',
|
||||
'Saudi Arabia': 'SA',
|
||||
'Solomon Islands': 'SB',
|
||||
Seychelles: 'SC',
|
||||
Sudan: 'SD',
|
||||
Sweden: 'SE',
|
||||
Singapore: 'SG',
|
||||
'Saint Helena': 'SH',
|
||||
Slovenia: 'SI',
|
||||
'Svalbard and Jan Mayen': 'SJ',
|
||||
Slovakia: 'SK',
|
||||
'Sierra Leone': 'SL',
|
||||
'San Marino': 'SM',
|
||||
Senegal: 'SN',
|
||||
Somalia: 'SO',
|
||||
Suriname: 'SR',
|
||||
'South Sudan': 'SS',
|
||||
'Sao Tome and Principe': 'ST',
|
||||
'El Salvador': 'SV',
|
||||
'Sint Maarten': 'SX',
|
||||
Syria: 'SY',
|
||||
Eswatini: 'SZ',
|
||||
Swaziland: 'SZ',
|
||||
'Turks and Caicos Islands': 'TC',
|
||||
Chad: 'TD',
|
||||
'French Southern and Antarctic Lands': 'TF',
|
||||
'French Southern Territories': 'TF',
|
||||
Togo: 'TG',
|
||||
Thailand: 'TH',
|
||||
Tajikistan: 'TJ',
|
||||
Tokelau: 'TK',
|
||||
'East Timor': 'TL',
|
||||
'Timor-Leste': 'TL',
|
||||
Turkmenistan: 'TM',
|
||||
Tunisia: 'TN',
|
||||
Tonga: 'TO',
|
||||
Turkey: 'TR',
|
||||
'Trinidad and Tobago': 'TT',
|
||||
Tuvalu: 'TV',
|
||||
Taiwan: 'TW',
|
||||
Tanzania: 'TZ',
|
||||
Ukraine: 'UA',
|
||||
Uganda: 'UG',
|
||||
'US Minor Outlying Islands': 'UM',
|
||||
'US-Outlying Islands': 'UM',
|
||||
Unknown: 'Unknown',
|
||||
'United States': 'US',
|
||||
Uruguay: 'UY',
|
||||
Uzbekistan: 'UZ',
|
||||
'Vatican City': 'VA',
|
||||
'Saint Vincent and the Grenadines': 'VC',
|
||||
'St Vincent and Grenadines': 'VC',
|
||||
Venezuela: 'VE',
|
||||
'British Virgin Islands': 'VG',
|
||||
'United States Virgin Islands': 'VI',
|
||||
'US-Virgin Islands': 'VI',
|
||||
'Viet Nam': 'VN',
|
||||
Vietnam: 'VN',
|
||||
Vanuatu: 'VU',
|
||||
'Wallis and Futuna': 'WF',
|
||||
Samoa: 'WS',
|
||||
Kosovo: 'XK',
|
||||
'The Republic of Kosovo': 'XK',
|
||||
Yemen: 'YE',
|
||||
Mayotte: 'YT',
|
||||
'South Africa': 'ZA',
|
||||
Zambia: 'ZM',
|
||||
Zimbabwe: 'ZW'
|
||||
"Private IP": "CN",
|
||||
"Andorra": "AD",
|
||||
"United Arab Emirates": "AE",
|
||||
"Afghanistan": "AF",
|
||||
"Antigua and Barbuda": "AG",
|
||||
"Anguilla": "AI",
|
||||
"Albania": "AL",
|
||||
"Armenia": "AM",
|
||||
"Angola": "AO",
|
||||
"Argentina": "AR",
|
||||
"American Samoa": "AS",
|
||||
"Austria": "AT",
|
||||
"Australia": "AU",
|
||||
"Aruba": "AW",
|
||||
"Ahvenanmaa": "AX", // TODO 芬兰自治区阿兰群岛,无下钻数据
|
||||
"Azerbaijan": "AZ",
|
||||
"Bosnia and Herzegovina": "BA",
|
||||
"Barbados": "BB",
|
||||
"Bangladesh": "BD",
|
||||
"Belgium": "BE",
|
||||
"Burkina Faso": "BF",
|
||||
"Bulgaria": "BG",
|
||||
"Bahrain": "BH",
|
||||
"Burundi": "BI",
|
||||
"Benin": "BJ",
|
||||
"Saint Barthelemy": "BL",
|
||||
"Bermuda": "BM",
|
||||
"Brunei Darussalam": "BN",
|
||||
"Bolivia": "BO",
|
||||
"Caribbean Netherlands": "BQ",
|
||||
"Brazil": "BR",
|
||||
"Bahamas": "BS",
|
||||
"Bhutan": "BT",
|
||||
"Bouvet Island": "BV", // TODO 挪威领地布维岛,下钻地图数据缺失
|
||||
"Botswana": "BW",
|
||||
"Belarus": "BY",
|
||||
"Belize": "BZ",
|
||||
"Canada": "CA",
|
||||
"Cocos (Keeling) Islands": "CC",
|
||||
"Democratic Republic of the Congo": "CD",
|
||||
"Central African Republic": "CF",
|
||||
"Republic of the Congo": "CG",
|
||||
"Switzerland": "CH",
|
||||
"Cote D'Ivoire": "CI",
|
||||
"Cook Islands": "CK", // TODO 新西兰的库克群岛,下钻地图数据缺失
|
||||
"Chile": "CL",
|
||||
"Cameroon": "CM",
|
||||
"China": "CN",
|
||||
"Colombia": "CO",
|
||||
"Costa Rica": "CR",
|
||||
"Cuba": "CU",
|
||||
"Cape Verde": "CV",
|
||||
"Curaao": "CW",
|
||||
"Christmas Island": "CX", // TODO 澳大利亚的圣诞到,下钻地图数据缺失
|
||||
"Cyprus": "CY",
|
||||
"Czech Republic": "CZ",
|
||||
"Germany": "DE",
|
||||
"Djibouti": "DJ",
|
||||
"Denmark": "DK",
|
||||
"Dominica": "DM",
|
||||
"Dominican Republic": "DO",
|
||||
"Algeria": "DZ",
|
||||
"Ecuador": "EC",
|
||||
"Estonia": "EE",
|
||||
"Egypt": "EG",
|
||||
"Western Sahara": "EH", // TODO 西撒哈拉地区,下钻地图数据缺失
|
||||
"Eritrea": "ER",
|
||||
"Spain": "ES",
|
||||
"Ethiopia": "ET",
|
||||
"Finland": "FI",
|
||||
"Fiji": "FJ",
|
||||
"Falkland Islands": "FK",
|
||||
"Micronesia": "FM", // TODO 密克罗尼西亚联邦,下钻地图数据缺失
|
||||
"Faroe Islands": "FO",
|
||||
"France": "FR",
|
||||
"Gabon": "GA",
|
||||
"United Kingdom": "GB",
|
||||
"Grenada": "GD",
|
||||
"Georgia": "GE",
|
||||
"French Guiana": "GF",
|
||||
"Guernsey": "GG", // TODO 英属根西岛,下钻地图数据缺失
|
||||
"Ghana": "GH",
|
||||
"Gibraltar": "GI", // TODO 英属直布罗陀,下钻地图数据缺失
|
||||
"Greenland": "GL",
|
||||
"Gambia": "GM",
|
||||
"Guinea": "GN",
|
||||
"Guadeloupe": "GP",
|
||||
"Equatorial Guinea": "GQ",
|
||||
"Greece": "GR",
|
||||
"South Georgia and The South Sandwich Islands": "GS",
|
||||
"Guatemala": "GT",
|
||||
"Guam": "GU",
|
||||
"Guinea-Bissau": "GW",
|
||||
"Guyana": "GY",
|
||||
"Heard Island and McDonald Islands": "HM", // TODO 澳大利亚领地赫德岛和麦克唐纳群岛,下钻地图数据缺失
|
||||
"Honduras": "HN",
|
||||
"Croatia": "HR",
|
||||
"Haiti": "HT",
|
||||
"Hungary": "HU",
|
||||
"Indonesia": "ID",
|
||||
"Ireland": "IE",
|
||||
"Israel": "IL",
|
||||
"Isle of Man": "IM", // TODO 英属马恩岛,下钻地图数据缺失
|
||||
"India": "IN",
|
||||
"British Indian Ocean Territory": "IO",
|
||||
"Iraq": "IQ",
|
||||
"Iran": "IR",
|
||||
"Iceland": "IS",
|
||||
"Italy": "IT",
|
||||
"Jersey": "JE", // TODO 英属泽西岛,下钻地图数据缺失
|
||||
"Jamaica": "JM",
|
||||
"Jordan": "JO",
|
||||
"Japan": "JP",
|
||||
"Kenya": "KE",
|
||||
"Kyrgyzstan": "KG",
|
||||
"Cambodia": "KH",
|
||||
"Kiribati": "KI", // TODO 基里巴斯共和国,下钻地图数据缺失
|
||||
"Comoros": "KM",
|
||||
"Saint Kitts and Nevis": "KN",
|
||||
"North Korea": "KP",
|
||||
"South Korea": "KR",
|
||||
"Kuwait": "KW",
|
||||
"Cayman Islands": "KY",
|
||||
"Kazakhstan": "KZ",
|
||||
"Laos": "LA",
|
||||
"Lebanon": "LB",
|
||||
"Saint Lucia": "LC",
|
||||
"Liechtenstein": "LI",
|
||||
"Sri Lanka": "LK",
|
||||
"Liberia": "LR",
|
||||
"Lesotho": "LS",
|
||||
"Lithuania": "LT",
|
||||
"Luxembourg": "LU",
|
||||
"Latvia": "LV",
|
||||
"Libya": "LY",
|
||||
"Morocco": "MA",
|
||||
"Monaco": "MC", // TODO 摩纳哥,2平方公里,下钻地图数据缺失
|
||||
"Moldova": "MD",
|
||||
"Montenegro": "ME",
|
||||
"Saint Martin": "MF", // TODO 法属圣马丁,下钻地图数据缺失
|
||||
"Madagascar": "MG",
|
||||
"Marshall Islands": "MH", // TODO 马绍尔群岛共和国,下钻地图数据缺失
|
||||
"The Republic of North Macedonia": "MK",
|
||||
"Mali": "ML",
|
||||
"Myanmar": "MM",
|
||||
"Mongolia": "MN",
|
||||
"Northern Mariana Islands": "MP",
|
||||
"Martinique": "MQ",
|
||||
"Mauritania": "MR",
|
||||
"Montserrat": "MS",
|
||||
"Malta": "MT",
|
||||
"Mauritius": "MU",
|
||||
"Maldives": "MV",
|
||||
"Malawi": "MW",
|
||||
"Mexico": "MX",
|
||||
"Malaysia": "MY",
|
||||
"Mozambique": "MZ",
|
||||
"Namibia": "NA",
|
||||
"New Caledonia": "NC", // TODO 法属新喀里多尼亚,下钻地图数据缺失
|
||||
"Niger": "NE",
|
||||
"Norfolk Island": "NF", // TODO 澳大利亚属诺福克岛,下钻地图数据缺失
|
||||
"Nigeria": "NG",
|
||||
"Nicaragua": "NI",
|
||||
"The Netherlands": "NL",
|
||||
"Norway": "NO",
|
||||
"Nepal": "NP",
|
||||
"Nauru": "NR", // TODO 瑙鲁共和国,下钻地图数据缺失
|
||||
"Niue": "NU", // TODO 新西兰属纽埃岛,下钻地图数据缺失
|
||||
"New Zealand": "NZ",
|
||||
"Oman": "OM",
|
||||
"Panama": "PA",
|
||||
"Peru": "PE",
|
||||
"French Polynesia": "PF",
|
||||
"Papua New Guinea": "PG", // TODO 巴布亚新几内亚,下钻地图数据缺失
|
||||
"Philippines": "PH",
|
||||
"Pakistan": "PK",
|
||||
"Poland": "PL",
|
||||
"Saint-Pierre and Miquelon": "PM",
|
||||
"Pitcairn": "PN", // TODO 英属皮特凯恩群岛,下钻地图数据缺失
|
||||
"Puerto Rico": "PR",
|
||||
"Palestine": "PS",
|
||||
"Portugal": "PT",
|
||||
"Palau": "PW", // TODO 帕劳共和国,下钻地图数据缺失
|
||||
"Paraguay": "PY",
|
||||
"Qatar": "QA",
|
||||
"Reunion": "RE", // TODO 法属留尼汪岛,下钻地图数据缺失
|
||||
"Romania": "RO",
|
||||
"Serbia": "RS",
|
||||
"Russia": "RU",
|
||||
"Rwanda": "RW",
|
||||
"Saudi Arabia": "SA",
|
||||
"Solomon Islands": "SB",
|
||||
"Seychelles": "SC",
|
||||
"Sudan": "SD",
|
||||
"Sweden": "SE",
|
||||
"Singapore": "SG",
|
||||
"Saint Helena": "SH",
|
||||
"Slovenia": "SI",
|
||||
"Svalbard and Jan Mayen": "SJ",
|
||||
"Slovakia": "SK",
|
||||
"Sierra Leone": "SL",
|
||||
"San Marino": "SM",
|
||||
"Senegal": "SN",
|
||||
"Somalia": "SO",
|
||||
"Suriname": "SR",
|
||||
"South Sudan": "SS",
|
||||
"Sao Tome and Principe": "ST",
|
||||
"El Salvador": "SV",
|
||||
"Sint Maarten": "SX", // TODO 荷兰属圣马丁,下钻地图数据缺失
|
||||
"Syria": "SY",
|
||||
"Swaziland": "SZ",
|
||||
"Turks and Caicos Islands": "TC",
|
||||
"Chad": "TD",
|
||||
"French Southern and Antarctic Lands": "TF", // TODO 法属南部和南极领地,下钻地图数据缺失
|
||||
"Togo": "TG",
|
||||
"Thailand": "TH",
|
||||
"Tajikistan": "TJ",
|
||||
"Tokelau": "TK", // TODO 新西兰属托克劳群岛,下钻地图数据缺失
|
||||
"East Timor": "TL",
|
||||
"Turkmenistan": "TM",
|
||||
"Tunisia": "TN",
|
||||
"Tonga": "TO", // TODO 汤加共和国,下钻地图数据缺失
|
||||
"Turkey": "TR",
|
||||
"Trinidad and Tobago": "TT",
|
||||
"Tuvalu": "TV", // TODO 图瓦卢,下钻地图数据缺失
|
||||
"Tanzania": "TZ",
|
||||
"Ukraine": "UA",
|
||||
"Uganda": "UG",
|
||||
"US Minor Outlying Islands": "UM", // TODO 美国本土外小岛屿,一共9座,分布很散,上层坐标缺失,下钻地图数据缺失
|
||||
"United States": "US",
|
||||
"Uruguay": "UY",
|
||||
"Uzbekistan": "UZ",
|
||||
"Vatican City": "VA",
|
||||
"Saint Vincent and the Grenadines": "VC",
|
||||
"Venezuela": "VE",
|
||||
"British Virgin Islands": "VG",
|
||||
"United States Virgin Islands": "VI",
|
||||
"Viet Nam": "VN",
|
||||
"Vanuatu": "VU", // TODO 瓦努阿图共和国,下钻地图数据缺失
|
||||
"Wallis and Futuna": "WF", // TODO 法属瓦利斯和富图纳群岛,下钻地图数据缺失
|
||||
"Samoa": "WS",
|
||||
"The Republic of Kosovo": "XK",
|
||||
"Yemen": "YE",
|
||||
"Mayotte": "YT", // TODO 法属马约特岛,下钻地图数据缺失
|
||||
"South Africa": "ZA",
|
||||
"Zambia": "ZM",
|
||||
"Zimbabwe": "ZW"
|
||||
}
|
||||
|
||||
export const reg = {
|
||||
|
||||
@@ -1,994 +0,0 @@
|
||||
export default [
|
||||
{
|
||||
value: 'Afghanistan',
|
||||
label: 'Afghanistan'
|
||||
},
|
||||
{
|
||||
value: 'Albania',
|
||||
label: 'Albania'
|
||||
},
|
||||
{
|
||||
value: 'Algeria',
|
||||
label: 'Algeria'
|
||||
},
|
||||
{
|
||||
value: 'American Samoa',
|
||||
label: 'American Samoa'
|
||||
},
|
||||
{
|
||||
value: 'Andorra',
|
||||
label: 'Andorra'
|
||||
},
|
||||
{
|
||||
value: 'Angola',
|
||||
label: 'Angola'
|
||||
},
|
||||
{
|
||||
value: 'Anguilla',
|
||||
label: 'Anguilla'
|
||||
},
|
||||
{
|
||||
value: 'Antarctica',
|
||||
label: 'Antarctica'
|
||||
},
|
||||
{
|
||||
value: 'Antigua and Barbuda',
|
||||
label: 'Antigua and Barbuda'
|
||||
},
|
||||
{
|
||||
value: 'Argentina',
|
||||
label: 'Argentina'
|
||||
},
|
||||
{
|
||||
value: 'Armenia',
|
||||
label: 'Armenia'
|
||||
},
|
||||
{
|
||||
value: 'Aruba',
|
||||
label: 'Aruba'
|
||||
},
|
||||
{
|
||||
value: 'Australia',
|
||||
label: 'Australia'
|
||||
},
|
||||
{
|
||||
value: 'Austria',
|
||||
label: 'Austria'
|
||||
},
|
||||
{
|
||||
value: 'Azerbaijan',
|
||||
label: 'Azerbaijan'
|
||||
},
|
||||
{
|
||||
value: 'Bahamas (the)',
|
||||
label: 'Bahamas (the)'
|
||||
},
|
||||
{
|
||||
value: 'Bahrain',
|
||||
label: 'Bahrain'
|
||||
},
|
||||
{
|
||||
value: 'Bangladesh',
|
||||
label: 'Bangladesh'
|
||||
},
|
||||
{
|
||||
value: 'Barbados',
|
||||
label: 'Barbados'
|
||||
},
|
||||
{
|
||||
value: 'Belarus',
|
||||
label: 'Belarus'
|
||||
},
|
||||
{
|
||||
value: 'Belgium',
|
||||
label: 'Belgium'
|
||||
},
|
||||
{
|
||||
value: 'Belize',
|
||||
label: 'Belize'
|
||||
},
|
||||
{
|
||||
value: 'Benin',
|
||||
label: 'Benin'
|
||||
},
|
||||
{
|
||||
value: 'Bermuda',
|
||||
label: 'Bermuda'
|
||||
},
|
||||
{
|
||||
value: 'Åland Islands',
|
||||
label: 'Åland Islands'
|
||||
},
|
||||
{
|
||||
value: 'Bhutan',
|
||||
label: 'Bhutan'
|
||||
},
|
||||
{
|
||||
value: 'Bolivia (Plurinational State of)',
|
||||
label: 'Bolivia (Plurinational State of)'
|
||||
},
|
||||
{
|
||||
value: 'Bonaire, Sint Eustatius and Saba',
|
||||
label: 'Bonaire, Sint Eustatius and Saba'
|
||||
},
|
||||
{
|
||||
value: 'Bosnia and Herzegovina',
|
||||
label: 'Bosnia and Herzegovina'
|
||||
},
|
||||
{
|
||||
value: 'Botswana',
|
||||
label: 'Botswana'
|
||||
},
|
||||
{
|
||||
value: 'Bouvet Island',
|
||||
label: 'Bouvet Island'
|
||||
},
|
||||
{
|
||||
value: 'Brazil',
|
||||
label: 'Brazil'
|
||||
},
|
||||
{
|
||||
value: 'British Indian Ocean Territory (the)',
|
||||
label: 'British Indian Ocean Territory (the)'
|
||||
},
|
||||
{
|
||||
value: 'Brunei Darussalam',
|
||||
label: 'Brunei Darussalam'
|
||||
},
|
||||
{
|
||||
value: 'Bulgaria',
|
||||
label: 'Bulgaria'
|
||||
},
|
||||
{
|
||||
value: 'Burkina Faso',
|
||||
label: 'Burkina Faso'
|
||||
},
|
||||
{
|
||||
value: 'Burundi',
|
||||
label: 'Burundi'
|
||||
},
|
||||
{
|
||||
value: 'Cabo Verde',
|
||||
label: 'Cabo Verde'
|
||||
},
|
||||
{
|
||||
value: 'Cambodia',
|
||||
label: 'Cambodia'
|
||||
},
|
||||
{
|
||||
value: 'Cameroon',
|
||||
label: 'Cameroon'
|
||||
},
|
||||
{
|
||||
value: 'Canada',
|
||||
label: 'Canada'
|
||||
},
|
||||
{
|
||||
value: 'Cayman Islands (the)',
|
||||
label: 'Cayman Islands (the)'
|
||||
},
|
||||
{
|
||||
value: 'Central African Republic (the)',
|
||||
label: 'Central African Republic (the)'
|
||||
},
|
||||
{
|
||||
value: 'Chad',
|
||||
label: 'Chad'
|
||||
},
|
||||
{
|
||||
value: 'Chile',
|
||||
label: 'Chile'
|
||||
},
|
||||
{
|
||||
value: 'China',
|
||||
label: 'China'
|
||||
},
|
||||
{
|
||||
value: 'Christmas Island',
|
||||
label: 'Christmas Island'
|
||||
},
|
||||
{
|
||||
value: 'Cocos (Keeling) Islands (the)',
|
||||
label: 'Cocos (Keeling) Islands (the)'
|
||||
},
|
||||
{
|
||||
value: 'Colombia',
|
||||
label: 'Colombia'
|
||||
},
|
||||
{
|
||||
value: 'Comoros (the)',
|
||||
label: 'Comoros (the)'
|
||||
},
|
||||
{
|
||||
value: 'Congo (the Democratic Republic of the)',
|
||||
label: 'Congo (the Democratic Republic of the)'
|
||||
},
|
||||
{
|
||||
value: 'Congo (the)',
|
||||
label: 'Congo (the)'
|
||||
},
|
||||
{
|
||||
value: 'Cook Islands (the)',
|
||||
label: 'Cook Islands (the)'
|
||||
},
|
||||
{
|
||||
value: 'Costa Rica',
|
||||
label: 'Costa Rica'
|
||||
},
|
||||
{
|
||||
value: 'Croatia',
|
||||
label: 'Croatia'
|
||||
},
|
||||
{
|
||||
value: 'Cuba',
|
||||
label: 'Cuba'
|
||||
},
|
||||
{
|
||||
value: 'Curaçao',
|
||||
label: 'Curaçao'
|
||||
},
|
||||
{
|
||||
value: 'Cyprus',
|
||||
label: 'Cyprus'
|
||||
},
|
||||
{
|
||||
value: 'Czech Republic',
|
||||
label: 'Czech Republic'
|
||||
},
|
||||
{
|
||||
value: "Côte d'Ivoire",
|
||||
label: "Côte d'Ivoire"
|
||||
},
|
||||
{
|
||||
value: 'Denmark',
|
||||
label: 'Denmark'
|
||||
},
|
||||
{
|
||||
value: 'Djibouti',
|
||||
label: 'Djibouti'
|
||||
},
|
||||
{
|
||||
value: 'Dominica',
|
||||
label: 'Dominica'
|
||||
},
|
||||
{
|
||||
value: 'Dominican Republic (the)',
|
||||
label: 'Dominican Republic (the)'
|
||||
},
|
||||
{
|
||||
value: 'Ecuador',
|
||||
label: 'Ecuador'
|
||||
},
|
||||
{
|
||||
value: 'Egypt',
|
||||
label: 'Egypt'
|
||||
},
|
||||
{
|
||||
value: 'El Salvador',
|
||||
label: 'El Salvador'
|
||||
},
|
||||
{
|
||||
value: 'Equatorial Guinea',
|
||||
label: 'Equatorial Guinea'
|
||||
},
|
||||
{
|
||||
value: 'Eritrea',
|
||||
label: 'Eritrea'
|
||||
},
|
||||
{
|
||||
value: 'Estonia',
|
||||
label: 'Estonia'
|
||||
},
|
||||
{
|
||||
value: 'Eswatini',
|
||||
label: 'Eswatini'
|
||||
},
|
||||
{
|
||||
value: 'Ethiopia',
|
||||
label: 'Ethiopia'
|
||||
},
|
||||
{
|
||||
value: 'Falkland Islands (the) [Malvinas]',
|
||||
label: 'Falkland Islands (the) [Malvinas]'
|
||||
},
|
||||
{
|
||||
value: 'Faroe Islands (the)',
|
||||
label: 'Faroe Islands (the)'
|
||||
},
|
||||
{
|
||||
value: 'Fiji',
|
||||
label: 'Fiji'
|
||||
},
|
||||
{
|
||||
value: 'Finland',
|
||||
label: 'Finland'
|
||||
},
|
||||
{
|
||||
value: 'France',
|
||||
label: 'France'
|
||||
},
|
||||
{
|
||||
value: 'French Guiana',
|
||||
label: 'French Guiana'
|
||||
},
|
||||
{
|
||||
value: 'French Polynesia',
|
||||
label: 'French Polynesia'
|
||||
},
|
||||
{
|
||||
value: 'French Southern Territories (the)',
|
||||
label: 'French Southern Territories (the)'
|
||||
},
|
||||
{
|
||||
value: 'Gabon',
|
||||
label: 'Gabon'
|
||||
},
|
||||
{
|
||||
value: 'Gambia (the)',
|
||||
label: 'Gambia (the)'
|
||||
},
|
||||
{
|
||||
value: 'Georgia',
|
||||
label: 'Georgia'
|
||||
},
|
||||
{
|
||||
value: 'Germany',
|
||||
label: 'Germany'
|
||||
},
|
||||
{
|
||||
value: 'Ghana',
|
||||
label: 'Ghana'
|
||||
},
|
||||
{
|
||||
value: 'Gibraltar',
|
||||
label: 'Gibraltar'
|
||||
},
|
||||
{
|
||||
value: 'Greece',
|
||||
label: 'Greece'
|
||||
},
|
||||
{
|
||||
value: 'Greenland',
|
||||
label: 'Greenland'
|
||||
},
|
||||
{
|
||||
value: 'Grenada',
|
||||
label: 'Grenada'
|
||||
},
|
||||
{
|
||||
value: 'Guadeloupe',
|
||||
label: 'Guadeloupe'
|
||||
},
|
||||
{
|
||||
value: 'Guam',
|
||||
label: 'Guam'
|
||||
},
|
||||
{
|
||||
value: 'Guatemala',
|
||||
label: 'Guatemala'
|
||||
},
|
||||
{
|
||||
value: 'Guernsey',
|
||||
label: 'Guernsey'
|
||||
},
|
||||
{
|
||||
value: 'Guinea',
|
||||
label: 'Guinea'
|
||||
},
|
||||
{
|
||||
value: 'Guinea-Bissau',
|
||||
label: 'Guinea-Bissau'
|
||||
},
|
||||
{
|
||||
value: 'Guyana',
|
||||
label: 'Guyana'
|
||||
},
|
||||
{
|
||||
value: 'Haiti',
|
||||
label: 'Haiti'
|
||||
},
|
||||
{
|
||||
value: 'Heard Island and McDonald Islands',
|
||||
label: 'Heard Island and McDonald Islands'
|
||||
},
|
||||
{
|
||||
value: 'Holy See (the)',
|
||||
label: 'Holy See (the)'
|
||||
},
|
||||
{
|
||||
value: 'Honduras',
|
||||
label: 'Honduras'
|
||||
},
|
||||
{
|
||||
value: 'Hong Kong',
|
||||
label: 'Hong Kong'
|
||||
},
|
||||
{
|
||||
value: 'Hungary',
|
||||
label: 'Hungary'
|
||||
},
|
||||
{
|
||||
value: 'Iceland',
|
||||
label: 'Iceland'
|
||||
},
|
||||
{
|
||||
value: 'India',
|
||||
label: 'India'
|
||||
},
|
||||
{
|
||||
value: 'Indonesia',
|
||||
label: 'Indonesia'
|
||||
},
|
||||
{
|
||||
value: 'Iran (Islamic Republic of)',
|
||||
label: 'Iran (Islamic Republic of)'
|
||||
},
|
||||
{
|
||||
value: 'Iraq',
|
||||
label: 'Iraq'
|
||||
},
|
||||
{
|
||||
value: 'Ireland',
|
||||
label: 'Ireland'
|
||||
},
|
||||
{
|
||||
value: 'Isle of Man',
|
||||
label: 'Isle of Man'
|
||||
},
|
||||
{
|
||||
value: 'Israel',
|
||||
label: 'Israel'
|
||||
},
|
||||
{
|
||||
value: 'Italy',
|
||||
label: 'Italy'
|
||||
},
|
||||
{
|
||||
value: 'Jamaica',
|
||||
label: 'Jamaica'
|
||||
},
|
||||
{
|
||||
value: 'Japan',
|
||||
label: 'Japan'
|
||||
},
|
||||
{
|
||||
value: 'Jersey',
|
||||
label: 'Jersey'
|
||||
},
|
||||
{
|
||||
value: 'Jordan',
|
||||
label: 'Jordan'
|
||||
},
|
||||
{
|
||||
value: 'Kazakhstan',
|
||||
label: 'Kazakhstan'
|
||||
},
|
||||
{
|
||||
value: 'Kenya',
|
||||
label: 'Kenya'
|
||||
},
|
||||
{
|
||||
value: 'Kiribati',
|
||||
label: 'Kiribati'
|
||||
},
|
||||
{
|
||||
value: 'Korea',
|
||||
label: 'Korea'
|
||||
},
|
||||
{
|
||||
value: 'Kuwait',
|
||||
label: 'Kuwait'
|
||||
},
|
||||
{
|
||||
value: 'Kyrgyzstan',
|
||||
label: 'Kyrgyzstan'
|
||||
},
|
||||
{
|
||||
value: "Lao People's Democratic Republic (the)",
|
||||
label: "Lao People's Democratic Republic (the)"
|
||||
},
|
||||
{
|
||||
value: 'Latvia',
|
||||
label: 'Latvia'
|
||||
},
|
||||
{
|
||||
value: 'Lebanon',
|
||||
label: 'Lebanon'
|
||||
},
|
||||
{
|
||||
value: 'Lesotho',
|
||||
label: 'Lesotho'
|
||||
},
|
||||
{
|
||||
value: 'Liberia',
|
||||
label: 'Liberia'
|
||||
},
|
||||
{
|
||||
value: 'Libya',
|
||||
label: 'Libya'
|
||||
},
|
||||
{
|
||||
value: 'Liechtenstein',
|
||||
label: 'Liechtenstein'
|
||||
},
|
||||
{
|
||||
value: 'Lithuania',
|
||||
label: 'Lithuania'
|
||||
},
|
||||
{
|
||||
value: 'Luxembourg',
|
||||
label: 'Luxembourg'
|
||||
},
|
||||
{
|
||||
value: 'Macao',
|
||||
label: 'Macao'
|
||||
},
|
||||
{
|
||||
value: 'Madagascar',
|
||||
label: 'Madagascar'
|
||||
},
|
||||
{
|
||||
value: 'Malawi',
|
||||
label: 'Malawi'
|
||||
},
|
||||
{
|
||||
value: 'Malaysia',
|
||||
label: 'Malaysia'
|
||||
},
|
||||
{
|
||||
value: 'Maldives',
|
||||
label: 'Maldives'
|
||||
},
|
||||
{
|
||||
value: 'Mali',
|
||||
label: 'Mali'
|
||||
},
|
||||
{
|
||||
value: 'Malta',
|
||||
label: 'Malta'
|
||||
},
|
||||
{
|
||||
value: 'Marshall Islands (the)',
|
||||
label: 'Marshall Islands (the)'
|
||||
},
|
||||
{
|
||||
value: 'Martinique',
|
||||
label: 'Martinique'
|
||||
},
|
||||
{
|
||||
value: 'Mauritania',
|
||||
label: 'Mauritania'
|
||||
},
|
||||
{
|
||||
value: 'Mauritius',
|
||||
label: 'Mauritius'
|
||||
},
|
||||
{
|
||||
value: 'Mayotte',
|
||||
label: 'Mayotte'
|
||||
},
|
||||
{
|
||||
value: 'Mexico',
|
||||
label: 'Mexico'
|
||||
},
|
||||
{
|
||||
value: 'Micronesia (Federated States of)',
|
||||
label: 'Micronesia (Federated States of)'
|
||||
},
|
||||
{
|
||||
value: 'Moldova (the Republic of)',
|
||||
label: 'Moldova (the Republic of)'
|
||||
},
|
||||
{
|
||||
value: 'Monaco',
|
||||
label: 'Monaco'
|
||||
},
|
||||
{
|
||||
value: 'Mongolia',
|
||||
label: 'Mongolia'
|
||||
},
|
||||
{
|
||||
value: 'Montenegro',
|
||||
label: 'Montenegro'
|
||||
},
|
||||
{
|
||||
value: 'Montserrat',
|
||||
label: 'Montserrat'
|
||||
},
|
||||
{
|
||||
value: 'Morocco',
|
||||
label: 'Morocco'
|
||||
},
|
||||
{
|
||||
value: 'Mozambique',
|
||||
label: 'Mozambique'
|
||||
},
|
||||
{
|
||||
value: 'Myanmar',
|
||||
label: 'Myanmar'
|
||||
},
|
||||
{
|
||||
value: 'Namibia',
|
||||
label: 'Namibia'
|
||||
},
|
||||
{
|
||||
value: 'Nauru',
|
||||
label: 'Nauru'
|
||||
},
|
||||
{
|
||||
value: 'Nepal',
|
||||
label: 'Nepal'
|
||||
},
|
||||
{
|
||||
value: 'Netherlands',
|
||||
label: 'Netherlands'
|
||||
},
|
||||
{
|
||||
value: 'New Caledonia',
|
||||
label: 'New Caledonia'
|
||||
},
|
||||
{
|
||||
value: 'New Zealand',
|
||||
label: 'New Zealand'
|
||||
},
|
||||
{
|
||||
value: 'Nicaragua',
|
||||
label: 'Nicaragua'
|
||||
},
|
||||
{
|
||||
value: 'Niger',
|
||||
label: 'Niger'
|
||||
},
|
||||
{
|
||||
value: 'Nigeria',
|
||||
label: 'Nigeria'
|
||||
},
|
||||
{
|
||||
value: 'Niue',
|
||||
label: 'Niue'
|
||||
},
|
||||
{
|
||||
value: 'Norfolk Island',
|
||||
label: 'Norfolk Island'
|
||||
},
|
||||
{
|
||||
value: 'North Macedonia',
|
||||
label: 'North Macedonia'
|
||||
},
|
||||
{
|
||||
value: 'Northern Mariana Islands (the)',
|
||||
label: 'Northern Mariana Islands (the)'
|
||||
},
|
||||
{
|
||||
value: 'Norway',
|
||||
label: 'Norway'
|
||||
},
|
||||
{
|
||||
value: 'Oman',
|
||||
label: 'Oman'
|
||||
},
|
||||
{
|
||||
value: 'Pakistan',
|
||||
label: 'Pakistan'
|
||||
},
|
||||
{
|
||||
value: 'Palau',
|
||||
label: 'Palau'
|
||||
},
|
||||
{
|
||||
value: 'Palestine, State of',
|
||||
label: 'Palestine, State of'
|
||||
},
|
||||
{
|
||||
value: 'Panama',
|
||||
label: 'Panama'
|
||||
},
|
||||
{
|
||||
value: 'Papua New Guinea',
|
||||
label: 'Papua New Guinea'
|
||||
},
|
||||
{
|
||||
value: 'Paraguay',
|
||||
label: 'Paraguay'
|
||||
},
|
||||
{
|
||||
value: 'Peru',
|
||||
label: 'Peru'
|
||||
},
|
||||
{
|
||||
value: 'Philippines',
|
||||
label: 'Philippines'
|
||||
},
|
||||
{
|
||||
value: 'Pitcairn',
|
||||
label: 'Pitcairn'
|
||||
},
|
||||
{
|
||||
value: 'Poland',
|
||||
label: 'Poland'
|
||||
},
|
||||
{
|
||||
value: 'Portugal',
|
||||
label: 'Portugal'
|
||||
},
|
||||
{
|
||||
value: 'Puerto Rico',
|
||||
label: 'Puerto Rico'
|
||||
},
|
||||
{
|
||||
value: 'Qatar',
|
||||
label: 'Qatar'
|
||||
},
|
||||
{
|
||||
value: 'Romania',
|
||||
label: 'Romania'
|
||||
},
|
||||
{
|
||||
value: 'Russian Federation',
|
||||
label: 'Russian Federation'
|
||||
},
|
||||
{
|
||||
value: 'Rwanda',
|
||||
label: 'Rwanda'
|
||||
},
|
||||
{
|
||||
value: 'Réunion',
|
||||
label: 'Réunion'
|
||||
},
|
||||
{
|
||||
value: 'Saint Barthélemy',
|
||||
label: 'Saint Barthélemy'
|
||||
},
|
||||
{
|
||||
value: 'Saint Helena, Ascension and Tristan da Cunha',
|
||||
label: 'Saint Helena, Ascension and Tristan da Cunha'
|
||||
},
|
||||
{
|
||||
value: 'Saint Kitts and Nevis',
|
||||
label: 'Saint Kitts and Nevis'
|
||||
},
|
||||
{
|
||||
value: 'Saint Lucia',
|
||||
label: 'Saint Lucia'
|
||||
},
|
||||
{
|
||||
value: 'Saint Martin',
|
||||
label: 'Saint Martin'
|
||||
},
|
||||
{
|
||||
value: 'Saint Pierre and Miquelon',
|
||||
label: 'Saint Pierre and Miquelon'
|
||||
},
|
||||
{
|
||||
value: 'Saint Vincent and the Grenadines',
|
||||
label: 'Saint Vincent and the Grenadines'
|
||||
},
|
||||
{
|
||||
value: 'Samoa',
|
||||
label: 'Samoa'
|
||||
},
|
||||
{
|
||||
value: 'San Marino',
|
||||
label: 'San Marino'
|
||||
},
|
||||
{
|
||||
value: 'Sao Tome and Principe',
|
||||
label: 'Sao Tome and Principe'
|
||||
},
|
||||
{
|
||||
value: 'Saudi Arabia',
|
||||
label: 'Saudi Arabia'
|
||||
},
|
||||
{
|
||||
value: 'Senegal',
|
||||
label: 'Senegal'
|
||||
},
|
||||
{
|
||||
value: 'Serbia',
|
||||
label: 'Serbia'
|
||||
},
|
||||
{
|
||||
value: 'Seychelles',
|
||||
label: 'Seychelles'
|
||||
},
|
||||
{
|
||||
value: 'Sierra Leone',
|
||||
label: 'Sierra Leone'
|
||||
},
|
||||
{
|
||||
value: 'Singapore',
|
||||
label: 'Singapore'
|
||||
},
|
||||
{
|
||||
value: 'Sint Maarten',
|
||||
label: 'Sint Maarten'
|
||||
},
|
||||
{
|
||||
value: 'Slovakia',
|
||||
label: 'Slovakia'
|
||||
},
|
||||
{
|
||||
value: 'Slovenia',
|
||||
label: 'Slovenia'
|
||||
},
|
||||
{
|
||||
value: 'Solomon Islands',
|
||||
label: 'Solomon Islands'
|
||||
},
|
||||
{
|
||||
value: 'Somalia',
|
||||
label: 'Somalia'
|
||||
},
|
||||
{
|
||||
value: 'South Africa',
|
||||
label: 'South Africa'
|
||||
},
|
||||
{
|
||||
value: 'South Georgia and the South Sandwich Islands',
|
||||
label: 'South Georgia and the South Sandwich Islands'
|
||||
},
|
||||
{
|
||||
value: 'South Sudan',
|
||||
label: 'South Sudan'
|
||||
},
|
||||
{
|
||||
value: 'Spain',
|
||||
label: 'Spain'
|
||||
},
|
||||
{
|
||||
value: 'Sri Lanka',
|
||||
label: 'Sri Lanka'
|
||||
},
|
||||
{
|
||||
value: 'Sudan',
|
||||
label: 'Sudan'
|
||||
},
|
||||
{
|
||||
value: 'Suriname',
|
||||
label: 'Suriname'
|
||||
},
|
||||
{
|
||||
value: 'Svalbard and Jan Mayen',
|
||||
label: 'Svalbard and Jan Mayen'
|
||||
},
|
||||
{
|
||||
value: 'Sweden',
|
||||
label: 'Sweden'
|
||||
},
|
||||
{
|
||||
value: 'Switzerland',
|
||||
label: 'Switzerland'
|
||||
},
|
||||
{
|
||||
value: 'Syrian Arab Republic',
|
||||
label: 'Syrian Arab Republic'
|
||||
},
|
||||
{
|
||||
value: 'Taiwan',
|
||||
label: 'Taiwan'
|
||||
},
|
||||
{
|
||||
value: 'Tajikistan',
|
||||
label: 'Tajikistan'
|
||||
},
|
||||
{
|
||||
value: 'Tanzania, the United Republic of',
|
||||
label: 'Tanzania, the United Republic of'
|
||||
},
|
||||
{
|
||||
value: 'Thailand',
|
||||
label: 'Thailand'
|
||||
},
|
||||
{
|
||||
value: 'Timor-Leste',
|
||||
label: 'Timor-Leste'
|
||||
},
|
||||
{
|
||||
value: 'Togo',
|
||||
label: 'Togo'
|
||||
},
|
||||
{
|
||||
value: 'Tokelau',
|
||||
label: 'Tokelau'
|
||||
},
|
||||
{
|
||||
value: 'Tonga',
|
||||
label: 'Tonga'
|
||||
},
|
||||
{
|
||||
value: 'Trinidad and Tobago',
|
||||
label: 'Trinidad and Tobago'
|
||||
},
|
||||
{
|
||||
value: 'Tunisia',
|
||||
label: 'Tunisia'
|
||||
},
|
||||
{
|
||||
value: 'Turkey',
|
||||
label: 'Turkey'
|
||||
},
|
||||
{
|
||||
value: 'Turkmenistan',
|
||||
label: 'Turkmenistan'
|
||||
},
|
||||
{
|
||||
value: 'Turks and Caicos Islands',
|
||||
label: 'Turks and Caicos Islands'
|
||||
},
|
||||
{
|
||||
value: 'Tuvalu',
|
||||
label: 'Tuvalu'
|
||||
},
|
||||
{
|
||||
value: 'Uganda',
|
||||
label: 'Uganda'
|
||||
},
|
||||
{
|
||||
value: 'Ukraine',
|
||||
label: 'Ukraine'
|
||||
},
|
||||
{
|
||||
value: 'United Arab Emirates',
|
||||
label: 'United Arab Emirates'
|
||||
},
|
||||
{
|
||||
value: 'United Kingdom of Great Britain and Northern Ireland',
|
||||
label: 'United Kingdom of Great Britain and Northern Ireland'
|
||||
},
|
||||
{
|
||||
value: 'United States Minor Outlying Islands',
|
||||
label: 'United States Minor Outlying Islands'
|
||||
},
|
||||
{
|
||||
value: 'United States',
|
||||
label: 'United States'
|
||||
},
|
||||
{
|
||||
value: 'Uruguay',
|
||||
label: 'Uruguay'
|
||||
},
|
||||
{
|
||||
value: 'Uzbekistan',
|
||||
label: 'Uzbekistan'
|
||||
},
|
||||
{
|
||||
value: 'Vanuatu',
|
||||
label: 'Vanuatu'
|
||||
},
|
||||
{
|
||||
value: 'Venezuela (Bolivarian Republic of)',
|
||||
label: 'Venezuela (Bolivarian Republic of)'
|
||||
},
|
||||
{
|
||||
value: 'Viet Nam',
|
||||
label: 'Viet Nam'
|
||||
},
|
||||
{
|
||||
value: 'Virgin Islands (British)',
|
||||
label: 'Virgin Islands (British)'
|
||||
},
|
||||
{
|
||||
value: 'Virgin Islands (U.S.)',
|
||||
label: 'Virgin Islands (U.S.)'
|
||||
},
|
||||
{
|
||||
value: 'Wallis and Futuna',
|
||||
label: 'Wallis and Futuna'
|
||||
},
|
||||
{
|
||||
value: 'Western Sahara*',
|
||||
label: 'Western Sahara*'
|
||||
},
|
||||
{
|
||||
value: 'Yemen',
|
||||
label: 'Yemen'
|
||||
},
|
||||
{
|
||||
value: 'Zambia',
|
||||
label: 'Zambia'
|
||||
},
|
||||
{
|
||||
value: 'Zimbabwe',
|
||||
label: 'Zimbabwe'
|
||||
}
|
||||
]
|
||||
@@ -25,7 +25,7 @@
|
||||
:popper-append-to-body="false"
|
||||
>
|
||||
<template #prefix><i class="cn-icon cn-icon-location" style="color: #575757;"></i></template>
|
||||
<el-option v-for="(country, index) in locationOptions" :key="index" :value="country.value">{{country.label}}</el-option>
|
||||
<el-option v-for="country in showLocationOptions" :key="country" :value="country">{{country}}</el-option>
|
||||
</el-select>
|
||||
</div>
|
||||
<div class="map-legend">
|
||||
@@ -50,8 +50,7 @@ import { shallowRef } from 'vue'
|
||||
import * as am4Core from '@amcharts/amcharts4/core'
|
||||
import * as am4Maps from '@amcharts/amcharts4/maps'
|
||||
import { computeScore, getGeoData } from '@/utils/tools'
|
||||
import { countryNameIdMapping, storageKey, unitTypes } from '@/utils/constants'
|
||||
import locationOptions from '@/views/charts2/charts/locationOptions'
|
||||
import { countryNameIdMapping, storageKey, unitTypes, iso36112 } from '@/utils/constants'
|
||||
import { valueToRangeValue } from '@/utils/unit-convert'
|
||||
import { getSecond } from '@/utils/date-util'
|
||||
import { api } from '@/utils/api'
|
||||
@@ -65,7 +64,7 @@ export default {
|
||||
components: { ChartError },
|
||||
data () {
|
||||
return {
|
||||
locationOptions,
|
||||
showLocationOptions: [],
|
||||
myChart: null,
|
||||
polygonSeries: null,
|
||||
countrySeries: null,
|
||||
@@ -228,6 +227,13 @@ export default {
|
||||
color: this.scoreColor(r.tooltip.data.score),
|
||||
border: this.scoreColor(r.tooltip.data.score)
|
||||
}))
|
||||
if (!this.location) {
|
||||
this.filterLocationOptions(_data)
|
||||
}
|
||||
},
|
||||
filterLocationOptions (data) {
|
||||
const showLocationOptions = Object.keys(countryNameIdMapping).filter(c => data.some(d => d.countryRegion === c))
|
||||
this.showLocationOptions = Array.from(new Set(showLocationOptions))
|
||||
},
|
||||
scoreColor (score) {
|
||||
if (score >= 0 && score <= 2) {
|
||||
@@ -352,6 +358,7 @@ export default {
|
||||
if (countryId) {
|
||||
const targetMapObject = this.polygonSeries.getPolygonById(countryId)
|
||||
targetMapObject.series.chart.zoomToMapObject(targetMapObject)
|
||||
if (iso36112[countryId]) {
|
||||
const geoData = await getGeoData(countryId)
|
||||
if (geoData) {
|
||||
if (!this.countrySeries) {
|
||||
@@ -379,6 +386,9 @@ export default {
|
||||
} else {
|
||||
this.$message.warning(this.$t('tip.noDetailMap'))
|
||||
}
|
||||
} else {
|
||||
this.$message.warning(this.$t('tip.noDetailMap'))
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user