@fmdevui/fm-dev 1.0.86 → 1.0.88
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/core/index.d.ts +1 -0
- package/es/core/utils/cityparess/index.d.ts +6 -0
- package/es/index.mjs +1 -0
- package/es/packages/core/index.mjs +1 -0
- package/es/packages/core/ui/components/fmaddressparsing/index.vue2.mjs +40 -22
- package/es/packages/core/utils/cityparess/index.mjs +44877 -0
- package/es/{defaults.css → version.css} +2 -1
- package/index.js +3560 -23
- package/index.min.js +30 -30
- package/index.min.mjs +30 -30
- package/index.mjs +3560 -24
- package/lib/core/index.d.ts +1 -0
- package/lib/core/utils/cityparess/index.d.ts +6 -0
- package/lib/index.js +2 -0
- package/lib/packages/core/index.js +2 -0
- package/lib/packages/core/ui/components/fmaddressparsing/index.vue2.js +40 -22
- package/lib/packages/core/utils/cityparess/index.js +44879 -0
- package/package.json +1 -1
package/lib/core/index.d.ts
CHANGED
package/lib/index.js
CHANGED
|
@@ -42,6 +42,7 @@ var index$g = require('./packages/core/utils/const/index.js');
|
|
|
42
42
|
var index$h = require('./packages/core/auth/index.js');
|
|
43
43
|
var dateTimeShortCust = require('./packages/core/hook/dateTimeShortCust.js');
|
|
44
44
|
var useVxeTableOptionsHook = require('./packages/core/hook/useVxeTableOptionsHook.js');
|
|
45
|
+
var index$i = require('./packages/core/utils/cityparess/index.js');
|
|
45
46
|
|
|
46
47
|
const install = defaults.default.install;
|
|
47
48
|
|
|
@@ -169,4 +170,5 @@ exports.hAuthAll = index$h.hAuthAll;
|
|
|
169
170
|
exports.hAuths = index$h.hAuths;
|
|
170
171
|
exports.useDateTimeShortCust = dateTimeShortCust.useDateTimeShortCust;
|
|
171
172
|
exports.useVxeTable = useVxeTableOptionsHook.useVxeTable;
|
|
173
|
+
exports.addressparsing = index$i.addressparsing;
|
|
172
174
|
exports.install = install;
|
|
@@ -11,6 +11,7 @@ require('./utils/index.js');
|
|
|
11
11
|
var index$g = require('./auth/index.js');
|
|
12
12
|
var dateTimeShortCust = require('./hook/dateTimeShortCust.js');
|
|
13
13
|
var useVxeTableOptionsHook = require('./hook/useVxeTableOptionsHook.js');
|
|
14
|
+
var index$h = require('./utils/cityparess/index.js');
|
|
14
15
|
require('./types/index.js');
|
|
15
16
|
var index$1 = require('./ui/components/svgIcon/index.js');
|
|
16
17
|
var index$5 = require('./api/base/index.js');
|
|
@@ -76,6 +77,7 @@ exports.hAuthAll = index$g.hAuthAll;
|
|
|
76
77
|
exports.hAuths = index$g.hAuths;
|
|
77
78
|
exports.useDateTimeShortCust = dateTimeShortCust.useDateTimeShortCust;
|
|
78
79
|
exports.useVxeTable = useVxeTableOptionsHook.useVxeTable;
|
|
80
|
+
exports.addressparsing = index$h.addressparsing;
|
|
79
81
|
exports.elSvg = index$1.elSvg;
|
|
80
82
|
exports.useApi = index$5.useApi;
|
|
81
83
|
exports.useBaseApi = index$5.useBaseApi;
|
|
@@ -61,9 +61,9 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
61
61
|
if (newValue.length < 2) {
|
|
62
62
|
return;
|
|
63
63
|
}
|
|
64
|
-
let cityobj = chkeCity(newValue.substr(0, 2));
|
|
64
|
+
let cityobj = chkeCity(province, newValue.substr(0, 2));
|
|
65
65
|
if (cityobj.c == "" && newValue.length > 2) {
|
|
66
|
-
cityobj = chkeCity(newValue.substr(0, 3));
|
|
66
|
+
cityobj = chkeCity(province, newValue.substr(0, 3));
|
|
67
67
|
if (cityobj.c != "" && province == "") {
|
|
68
68
|
province = cityobj.p;
|
|
69
69
|
}
|
|
@@ -72,29 +72,29 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
72
72
|
if (newValue.length < 2) {
|
|
73
73
|
return;
|
|
74
74
|
}
|
|
75
|
-
let countyOjb = chkeCounty(newValue.substr(0, 2));
|
|
75
|
+
let countyOjb = chkeCounty(province, cityobj.c, newValue.substr(0, 2));
|
|
76
76
|
if (countyOjb.x == "" && newValue.length > 2) {
|
|
77
|
-
countyOjb = chkeCounty(newValue.substr(0, 3));
|
|
77
|
+
countyOjb = chkeCounty(province, cityobj.c, newValue.substr(0, 3));
|
|
78
78
|
if (countyOjb.x == "" && newValue.length > 3) {
|
|
79
|
-
countyOjb = chkeCounty(newValue.substr(0, 4));
|
|
79
|
+
countyOjb = chkeCounty(province, cityobj.c, newValue.substr(0, 4));
|
|
80
80
|
if (countyOjb.x == "" && newValue.length > 4) {
|
|
81
|
-
countyOjb = chkeCounty(newValue.substr(0, 5));
|
|
81
|
+
countyOjb = chkeCounty(province, cityobj.c, newValue.substr(0, 5));
|
|
82
82
|
if (countyOjb.x == "" && newValue.length > 5) {
|
|
83
|
-
countyOjb = chkeCounty(newValue.substr(0, 6));
|
|
83
|
+
countyOjb = chkeCounty(province, cityobj.c, newValue.substr(0, 6));
|
|
84
84
|
if (countyOjb.x == "" && newValue.length > 6) {
|
|
85
|
-
countyOjb = chkeCounty(newValue.substr(0, 7));
|
|
85
|
+
countyOjb = chkeCounty(province, cityobj.c, newValue.substr(0, 7));
|
|
86
86
|
if (countyOjb.x == "" && newValue.length > 7) {
|
|
87
|
-
countyOjb = chkeCounty(newValue.substr(0, 8));
|
|
87
|
+
countyOjb = chkeCounty(province, cityobj.c, newValue.substr(0, 8));
|
|
88
88
|
if (countyOjb.x == "" && newValue.length > 8) {
|
|
89
|
-
countyOjb = chkeCounty(newValue.substr(0, 9));
|
|
89
|
+
countyOjb = chkeCounty(province, cityobj.c, newValue.substr(0, 9));
|
|
90
90
|
if (countyOjb.x == "" && newValue.length > 9) {
|
|
91
|
-
countyOjb = chkeCounty(newValue.substr(0, 10));
|
|
91
|
+
countyOjb = chkeCounty(province, cityobj.c, newValue.substr(0, 10));
|
|
92
92
|
if (countyOjb.x == "" && newValue.length > 10) {
|
|
93
|
-
countyOjb = chkeCounty(newValue.substr(0, 11));
|
|
93
|
+
countyOjb = chkeCounty(province, cityobj.c, newValue.substr(0, 11));
|
|
94
94
|
if (countyOjb.x == "" && newValue.length > 11) {
|
|
95
|
-
countyOjb = chkeCounty(newValue.substr(0, 12));
|
|
95
|
+
countyOjb = chkeCounty(province, cityobj.c, newValue.substr(0, 12));
|
|
96
96
|
if (countyOjb.x == "" && newValue.length > 12) {
|
|
97
|
-
countyOjb = chkeCounty(newValue.substr(0, 13));
|
|
97
|
+
countyOjb = chkeCounty(province, cityobj.c, newValue.substr(0, 13));
|
|
98
98
|
}
|
|
99
99
|
}
|
|
100
100
|
}
|
|
@@ -184,7 +184,7 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
184
184
|
}
|
|
185
185
|
return province;
|
|
186
186
|
};
|
|
187
|
-
const chkeCity = (val) => {
|
|
187
|
+
const chkeCity = (province, val) => {
|
|
188
188
|
if (val == null || val == void 0 || val == "") {
|
|
189
189
|
return { p: "", c: "" };
|
|
190
190
|
}
|
|
@@ -194,15 +194,24 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
194
194
|
const arrTemp = cityData[i].split("|");
|
|
195
195
|
const arr = arrTemp.filter((item) => item == val);
|
|
196
196
|
if (arr && arr.length > 0) {
|
|
197
|
-
|
|
198
|
-
|
|
197
|
+
if (province != "") {
|
|
198
|
+
if (cityData[i].split("|")[0] == province) {
|
|
199
|
+
cityobj.p = cityData[i].split("|")[0];
|
|
200
|
+
cityobj.c = cityData[i].split("|")[1];
|
|
201
|
+
break;
|
|
202
|
+
}
|
|
203
|
+
} else {
|
|
204
|
+
cityobj.p = cityData[i].split("|")[0];
|
|
205
|
+
cityobj.c = cityData[i].split("|")[1];
|
|
206
|
+
break;
|
|
207
|
+
}
|
|
199
208
|
break;
|
|
200
209
|
}
|
|
201
210
|
}
|
|
202
211
|
}
|
|
203
212
|
return cityobj;
|
|
204
213
|
};
|
|
205
|
-
const chkeCounty = (val) => {
|
|
214
|
+
const chkeCounty = (province, city, val) => {
|
|
206
215
|
if (val == null || val == void 0 || val == "") {
|
|
207
216
|
return { p: "", c: "", x: "" };
|
|
208
217
|
}
|
|
@@ -212,10 +221,19 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
212
221
|
const arrTemp = countyData[i].split("|");
|
|
213
222
|
const arr = arrTemp.filter((item) => item == val);
|
|
214
223
|
if (arr && arr.length > 0) {
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
224
|
+
if (province != "" && city != "") {
|
|
225
|
+
if (countyData[i].split("|")[0] == province && countyData[i].split("|")[1] == city) {
|
|
226
|
+
countyobj.p = countyData[i].split("|")[0];
|
|
227
|
+
countyobj.c = countyData[i].split("|")[1];
|
|
228
|
+
countyobj.x = countyData[i].split("|")[2];
|
|
229
|
+
break;
|
|
230
|
+
}
|
|
231
|
+
} else {
|
|
232
|
+
countyobj.p = countyData[i].split("|")[0];
|
|
233
|
+
countyobj.c = countyData[i].split("|")[1];
|
|
234
|
+
countyobj.x = countyData[i].split("|")[2];
|
|
235
|
+
break;
|
|
236
|
+
}
|
|
219
237
|
}
|
|
220
238
|
}
|
|
221
239
|
}
|